typo in abbreviated months
[AROS.git] / configure
blobcab282b17f040fbdaed418b61c90b996f2faa1e5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 aros_target_cc
714 aros_target_ld
715 aros_target_as_ln
716 aros_kernel_ld
717 aros_target_ar_ln
718 aros_target_nm_ln
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
722 aros_target_strip_ln
723 aros_kernel_rescomp
724 aros_target_nostdinc_cflags
725 aros_target_nostartup_ldflags
726 aros_target_nix_ldflags
727 aros_target_detach_ldflags
728 aros_target_nostdlib_ldflags
729 host_cflags_iquote
730 host_cflags_iquote_end
731 kernel_cflags_iquote
732 kernel_cflags_iquote_end
733 aros_cflags_iquote
734 aros_cflags_iquote_end
735 XMKMF
736 SDL_CONFIG
737 SDL_CFLAGS
738 SDL_LIBS
739 aros_arch
740 aros_cpu
741 aros_flavour
742 aros_flavour_uc
743 AROS_BUILDDIR
744 AROS_BUILDDIR_UNIX
745 SRCDIR
746 AROS_PORTSSRCDIR
747 aros_cc_pre
748 aros_host_arch
749 aros_host_cpu
750 aros_host_cc
751 aros_host_make
752 aros_host_cflags
753 aros_host_ldflags
754 aros_host_debug
755 aros_host_mkdep
756 aros_host_mkargs
757 aros_host_exe_suffix
758 aros_host_lib_suffix
759 aros_tools_dir
760 aros_target_guitheme
761 aros_target_iconset
762 aros_target_bootloader
763 aros_target_arch
764 aros_target_cpu
765 aros_target_variant
766 aros_target_suffix
767 aros_target_incl
768 aros_target_ar
769 aros_target_ranlib
770 aros_kernel_nm
771 orig_target_cc
772 aros_target_cxx
773 aros_kernel_cc
774 aros_target_as
775 orig_target_ld
776 aros_target_cc_includes
777 aros_target_cc_path
778 aros_target_objdump
779 aros_target_objcopy
780 aros_target_strip
781 aros_target_nm
782 aros_shared_default
783 aros_shared_ld
784 aros_object_format
785 aros_compiler_libs
786 aros_arch_libs
787 aros_config_cflags
788 aros_config_aflags
789 aros_config_ldflags
790 aros_shared_cflags
791 aros_shared_aflags
792 aros_shared_ldflags
793 aros_kernel_cflags
794 aros_kernel_ldflags
795 aros_debug_cflags
796 aros_debug_aflags
797 aros_debug_ldflags
798 aros_target_genmap
799 aros_target_strip_flags
800 x11_hidd_target
801 sdl_hidd_target
802 aros_default_wbwidth
803 aros_default_wbheight
804 aros_default_wbdepth
805 DO_XSHM_SUPPORT
806 DO_VIDMODE_SUPPORT
807 aros_host_x11_includes
808 aros_host_x11_libdirs
809 aros_host_sdl_cflags
810 aros_host_sdl_libs
811 aros_serial_debug
812 aros_palm_debug_hack
813 aros_nesting_supervisor
814 ENABLE_DBUS
815 DBUS_CFLAGS
816 DBUS_LIBFLAGS
817 KERNEL_DBUS_KOBJ
818 KERNEL_DBUS_INCLUDES
819 ENABLE_X11
820 aros_debug
821 aros_mungwall_debug
822 aros_stack_debug
823 aros_modules_debug
824 ignore_undefined_symbols
825 gcc_target_cpu
826 LTLIBOBJS'
827 ac_subst_files=''
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
837 XMKMF'
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
886 ac_prev=
887 ac_dashdash=
888 for ac_option
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
906 ac_dashdash=yes ;;
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
925 --config-cache | -C)
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
947 eval enable_$ac_feature=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
959 -enable-* | --enable-*)
960 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
963 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
964 { (exit 1); exit 1; }; }
965 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
966 eval enable_$ac_feature=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1156 -with-* | --with-*)
1157 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1163 eval with_$ac_package=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 { echo "$as_me: error: invalid package name: $ac_package" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1172 eval with_$ac_package=no ;;
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) { echo "$as_me: error: unrecognized option: $ac_option
1193 Try \`$0 --help' for more information." >&2
1194 { (exit 1); exit 1; }; }
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1202 { (exit 1); exit 1; }; }
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214 esac
1215 done
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 { echo "$as_me: error: missing argument to $ac_option" >&2
1220 { (exit 1); exit 1; }; }
1223 # Be sure to have absolute directory names.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1229 eval ac_val=\$$ac_var
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1235 { (exit 1); exit 1; }; }
1236 done
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1250 If a cross compiler is detected then cross compile mode will be used." >&2
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259 test "$silent" = yes && exec 6>/dev/null
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 { echo "$as_me: error: Working directory cannot be determined" >&2
1266 { (exit 1); exit 1; }; }
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 { echo "$as_me: error: pwd does not report name of working directory" >&2
1269 { (exit 1); exit 1; }; }
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$0" ||
1277 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$0" : 'X\(//\)[^/]' \| \
1279 X"$0" : 'X\(//\)$' \| \
1280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1281 echo X"$0" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1290 /^X\(\/\/\)$/{
1291 s//\1/
1294 /^X\(\/\).*/{
1295 s//\1/
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1303 else
1304 ac_srcdir_defaulted=no
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1309 { (exit 1); exit 1; }; }
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1314 { (exit 1); exit 1; }; }
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures this package to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1395 cat <<\_ACEOF
1397 X features:
1398 --x-includes=DIR X include files are in DIR
1399 --x-libraries=DIR X library files are in DIR
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1407 if test -n "$ac_init_help"; then
1409 cat <<\_ACEOF
1411 Optional Features:
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-build-type=TYPE
1415 Select the build type. Available types are:
1416 personal, nightly, snapshot, milestone, release. Do
1417 NOT use this option unless you know what you are
1418 doing! (default=personal)
1419 --enable-debug=list Enable different types of debug. Commas or
1420 whitespaces can be used to separate the items in the
1421 list. Available types of debug are: all, none,
1422 messages, stack, mungwall, modules, symbols. If no
1423 list is provided then "all" is assumed.
1424 (default=none)
1425 --enable-crosstools Build cross-compiler toolchains if necessary
1426 (default=no).
1427 --enable-distcc Use distcc as a front end to the compiler
1428 (default=no).
1429 --enable-ccache Use ccache as a front end to the compiler
1430 (default=no).
1431 --enable-target-variant=NAME
1432 Enable a specific target variant(default=none)
1433 --enable-includes=dir Alternative system include directory
1434 --enable-palm-debug-hack
1435 Enable palm debug output hack in palm native
1436 (default=no)
1437 --enable-nesting-supervisor
1438 Enable nesting supervisor support in unix
1439 (default=no)
1440 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1441 --enable-x11-shm use X11 shared memory (default=auto)
1442 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1443 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1444 --disable-sdltest Do not try to compile and run a test SDL program
1445 --enable-dbus Enable DBUS support via dbus.library (default=no)
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-optimization=FLAGS
1451 Use optimization flags FLAGS (default=-O2).
1452 --with-portssources=DIR Where to download sourcecode for external ports
1453 --with-bootloader=NAME Use a specific bootloader
1454 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1455 --with-theme=NAME Use a specific GUI Theme
1456 --with-resolution=XRESxYRESxDEPTH
1457 Default resolution of the initial WorkbenchScreen
1458 --with-serial-debug Enable serial debug output in native (default=no)
1459 --with-x use the X Window System
1460 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1461 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 CPP C preprocessor
1472 XMKMF Path to xmkmf, Makefile generator for X Window System
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 _ACEOF
1478 ac_status=$?
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" || continue
1485 ac_builddir=.
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 configure
1538 generated by GNU Autoconf 2.61
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1551 It was created by $as_me, which was
1552 generated by GNU Autoconf 2.61. Invocation command line was
1554 $ $0 $@
1556 _ACEOF
1557 exec 5>>config.log
1559 cat <<_ASUNAME
1560 ## --------- ##
1561 ## Platform. ##
1562 ## --------- ##
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1574 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1577 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1578 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1579 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 _ASUNAME
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
1588 echo "PATH: $as_dir"
1589 done
1590 IFS=$as_save_IFS
1592 } >&5
1594 cat >&5 <<_ACEOF
1597 ## ----------- ##
1598 ## Core tests. ##
1599 ## ----------- ##
1601 _ACEOF
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_configure_args=
1610 ac_configure_args0=
1611 ac_configure_args1=
1612 ac_must_keep_next=false
1613 for ac_pass in 1 2
1615 for ac_arg
1617 case $ac_arg in
1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620 | -silent | --silent | --silen | --sile | --sil)
1621 continue ;;
1622 *\'*)
1623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 esac
1625 case $ac_pass in
1626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629 if test $ac_must_keep_next = true; then
1630 ac_must_keep_next=false # Got value, back to normal.
1631 else
1632 case $ac_arg in
1633 *=* | --config-cache | -C | -disable-* | --disable-* \
1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636 | -with-* | --with-* | -without-* | --without-* | --x)
1637 case "$ac_configure_args0 " in
1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 esac
1641 -* ) ac_must_keep_next=true ;;
1642 esac
1644 ac_configure_args="$ac_configure_args '$ac_arg'"
1646 esac
1647 done
1648 done
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log. We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1660 echo
1662 cat <<\_ASBOX
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1666 _ASBOX
1667 echo
1668 # The following way of writing the cache mishandles newlines in values,
1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671 eval ac_val=\$$ac_var
1672 case $ac_val in #(
1673 *${as_nl}*)
1674 case $ac_var in #(
1675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 esac
1678 case $ac_var in #(
1679 _ | IFS | as_nl) ;; #(
1680 *) $as_unset $ac_var ;;
1681 esac ;;
1682 esac
1683 done
1684 (set) 2>&1 |
1685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686 *${as_nl}ac_space=\ *)
1687 sed -n \
1688 "s/'\''/'\''\\\\'\'''\''/g;
1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 ;; #(
1692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694 esac |
1695 sort
1697 echo
1699 cat <<\_ASBOX
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1703 _ASBOX
1704 echo
1705 for ac_var in $ac_subst_vars
1707 eval ac_val=\$$ac_var
1708 case $ac_val in
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 esac
1711 echo "$ac_var='\''$ac_val'\''"
1712 done | sort
1713 echo
1715 if test -n "$ac_subst_files"; then
1716 cat <<\_ASBOX
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1720 _ASBOX
1721 echo
1722 for ac_var in $ac_subst_files
1724 eval ac_val=\$$ac_var
1725 case $ac_val in
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 esac
1728 echo "$ac_var='\''$ac_val'\''"
1729 done | sort
1730 echo
1733 if test -s confdefs.h; then
1734 cat <<\_ASBOX
1735 ## ----------- ##
1736 ## confdefs.h. ##
1737 ## ----------- ##
1738 _ASBOX
1739 echo
1740 cat confdefs.h
1741 echo
1743 test "$ac_signal" != 0 &&
1744 echo "$as_me: caught signal $ac_signal"
1745 echo "$as_me: exit $exit_status"
1746 } >&5
1747 rm -f core *.core core.conftest.* &&
1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 exit $exit_status
1751 for ac_signal in 1 2 13 15; do
1752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 done
1754 ac_signal=0
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1759 # Predefined preprocessor variables.
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 _ACEOF
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 _ACEOF
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 _ACEOF
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 _ACEOF
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 _ACEOF
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer explicitly selected file to automatically selected ones.
1788 if test -n "$CONFIG_SITE"; then
1789 set x "$CONFIG_SITE"
1790 elif test "x$prefix" != xNONE; then
1791 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 else
1793 set x "$ac_default_prefix/share/config.site" \
1794 "$ac_default_prefix/etc/config.site"
1796 shift
1797 for ac_site_file
1799 if test -r "$ac_site_file"; then
1800 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801 echo "$as_me: loading site script $ac_site_file" >&6;}
1802 sed 's/^/| /' "$ac_site_file" >&5
1803 . "$ac_site_file"
1805 done
1807 if test -r "$cache_file"; then
1808 # Some versions of bash will fail to source /dev/null (special
1809 # files actually), so we avoid doing that.
1810 if test -f "$cache_file"; then
1811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812 echo "$as_me: loading cache $cache_file" >&6;}
1813 case $cache_file in
1814 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815 *) . "./$cache_file";;
1816 esac
1818 else
1819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820 echo "$as_me: creating cache $cache_file" >&6;}
1821 >$cache_file
1824 # Check that the precious variables saved in the cache have kept the same
1825 # value.
1826 ac_cache_corrupted=false
1827 for ac_var in $ac_precious_vars; do
1828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829 eval ac_new_set=\$ac_env_${ac_var}_set
1830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831 eval ac_new_val=\$ac_env_${ac_var}_value
1832 case $ac_old_set,$ac_new_set in
1833 set,)
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1837 ,set)
1838 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1840 ac_cache_corrupted=: ;;
1841 ,);;
1843 if test "x$ac_old_val" != "x$ac_new_val"; then
1844 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1847 echo "$as_me: former value: $ac_old_val" >&2;}
1848 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1849 echo "$as_me: current value: $ac_new_val" >&2;}
1850 ac_cache_corrupted=:
1851 fi;;
1852 esac
1853 # Pass precious variables to config.status.
1854 if test "$ac_new_set" = set; then
1855 case $ac_new_val in
1856 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1857 *) ac_arg=$ac_var=$ac_new_val ;;
1858 esac
1859 case " $ac_configure_args " in
1860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1861 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862 esac
1864 done
1865 if $ac_cache_corrupted; then
1866 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870 { (exit 1); exit 1; }; }
1889 ac_ext=c
1890 ac_cpp='$CPP $CPPFLAGS'
1891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897 ac_aux_dir=
1898 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1899 if test -f "$ac_dir/install-sh"; then
1900 ac_aux_dir=$ac_dir
1901 ac_install_sh="$ac_aux_dir/install-sh -c"
1902 break
1903 elif test -f "$ac_dir/install.sh"; then
1904 ac_aux_dir=$ac_dir
1905 ac_install_sh="$ac_aux_dir/install.sh -c"
1906 break
1907 elif test -f "$ac_dir/shtool"; then
1908 ac_aux_dir=$ac_dir
1909 ac_install_sh="$ac_aux_dir/shtool install -c"
1910 break
1912 done
1913 if test -z "$ac_aux_dir"; then
1914 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1915 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1916 { (exit 1); exit 1; }; }
1919 # These three variables are undocumented and unsupported,
1920 # and are intended to be withdrawn in a future Autoconf release.
1921 # They can cause serious problems if a builder's source tree is in a directory
1922 # whose full name contains unusual characters.
1923 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1924 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1925 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1929 # Check what host we are running on.
1930 # If a target is not suggested, we use this one.
1931 # Note that what we call a target, Autoconf calls a host.
1932 # Make sure we can run config.sub.
1933 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1934 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1935 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1936 { (exit 1); exit 1; }; }
1938 { echo "$as_me:$LINENO: checking build system type" >&5
1939 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1940 if test "${ac_cv_build+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943 ac_build_alias=$build_alias
1944 test "x$ac_build_alias" = x &&
1945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1946 test "x$ac_build_alias" = x &&
1947 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1948 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1949 { (exit 1); exit 1; }; }
1950 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1951 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1952 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1953 { (exit 1); exit 1; }; }
1956 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1957 echo "${ECHO_T}$ac_cv_build" >&6; }
1958 case $ac_cv_build in
1959 *-*-*) ;;
1960 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1961 echo "$as_me: error: invalid value of canonical build" >&2;}
1962 { (exit 1); exit 1; }; };;
1963 esac
1964 build=$ac_cv_build
1965 ac_save_IFS=$IFS; IFS='-'
1966 set x $ac_cv_build
1967 shift
1968 build_cpu=$1
1969 build_vendor=$2
1970 shift; shift
1971 # Remember, the first character of IFS is used to create $*,
1972 # except with old shells:
1973 build_os=$*
1974 IFS=$ac_save_IFS
1975 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1978 { echo "$as_me:$LINENO: checking host system type" >&5
1979 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1980 if test "${ac_cv_host+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test "x$host_alias" = x; then
1984 ac_cv_host=$ac_cv_build
1985 else
1986 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1987 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1989 { (exit 1); exit 1; }; }
1993 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1994 echo "${ECHO_T}$ac_cv_host" >&6; }
1995 case $ac_cv_host in
1996 *-*-*) ;;
1997 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1998 echo "$as_me: error: invalid value of canonical host" >&2;}
1999 { (exit 1); exit 1; }; };;
2000 esac
2001 host=$ac_cv_host
2002 ac_save_IFS=$IFS; IFS='-'
2003 set x $ac_cv_host
2004 shift
2005 host_cpu=$1
2006 host_vendor=$2
2007 shift; shift
2008 # Remember, the first character of IFS is used to create $*,
2009 # except with old shells:
2010 host_os=$*
2011 IFS=$ac_save_IFS
2012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2016 # The AROS target is slightly different to the normal GNU style
2017 # format. We don't have the middle part, and we reverse the order
2018 # of the $(CPU) and $(OS) bits.
2020 # Don't strip the version of the target yet, it might be
2021 # useful on some systems.
2023 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2024 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2026 if test "$target" = "NONE" ; then
2027 target=$host_os-$host_cpu
2028 cross_compile=no
2029 else
2030 if test "$target" = "" ; then
2031 target=$host_os-$host_cpu
2032 cross_compile=no
2033 else
2034 cross_compile=yes
2037 { echo "$as_me:$LINENO: result: $target" >&5
2038 echo "${ECHO_T}$target" >&6; }
2040 if test "$host_os" = "mingw32" ; then
2041 PWDCMD="pwd -W"
2044 #don't know where else to put this...
2045 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2046 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2047 AROS_BUILDDIR=`${PWDCMD-pwd}`
2048 AROS_BUILDDIR_UNIX=${PWD}
2049 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2050 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2052 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2053 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2054 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2055 SRCDIR=${srcpwd}
2056 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2057 echo "${ECHO_T}$SRCDIR" >&6; }
2059 # Parse the target field into something useful.
2061 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2062 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2065 aros_default_wbwidth=800
2066 aros_default_wbheight=600
2067 aros_default_wbdepth=4
2070 # The first step is to find the host binaries.
2071 # Check for a compiler.
2072 ac_ext=c
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077 if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2099 done
2100 done
2101 IFS=$as_save_IFS
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107 { echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6; }
2109 else
2110 { echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6; }
2116 if test -z "$ac_cv_prog_CC"; then
2117 ac_ct_CC=$CC
2118 # Extract the first word of "gcc", so it can be a program name with args.
2119 set dummy gcc; ac_word=$2
2120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 ac_cv_prog_ac_ct_CC="gcc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137 break 2
2139 done
2140 done
2141 IFS=$as_save_IFS
2145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146 if test -n "$ac_ct_CC"; then
2147 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148 echo "${ECHO_T}$ac_ct_CC" >&6; }
2149 else
2150 { echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6; }
2154 if test "x$ac_ct_CC" = x; then
2155 CC=""
2156 else
2157 case $cross_compiling:$ac_tool_warned in
2158 yes:)
2159 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&5
2162 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2163 whose name does not start with the host triplet. If you think this
2164 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2165 ac_tool_warned=yes ;;
2166 esac
2167 CC=$ac_ct_CC
2169 else
2170 CC="$ac_cv_prog_CC"
2173 if test -z "$CC"; then
2174 if test -n "$ac_tool_prefix"; then
2175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}cc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_CC="${ac_tool_prefix}cc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2196 done
2197 done
2198 IFS=$as_save_IFS
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204 { echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6; }
2206 else
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2214 if test -z "$CC"; then
2215 # Extract the first word of "cc", so it can be a program name with args.
2216 set dummy cc; ac_word=$2
2217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2234 ac_prog_rejected=yes
2235 continue
2237 ac_cv_prog_CC="cc"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2241 done
2242 done
2243 IFS=$as_save_IFS
2245 if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy $ac_cv_prog_CC
2248 shift
2249 if test $# != 0; then
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2253 shift
2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261 { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2263 else
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 for ac_prog in cl.exe
2274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278 if test "${ac_cv_prog_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2297 IFS=$as_save_IFS
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303 { echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6; }
2305 else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2311 test -n "$CC" && break
2312 done
2314 if test -z "$CC"; then
2315 ac_ct_CC=$CC
2316 for ac_prog in cl.exe
2318 # Extract the first word of "$ac_prog", so it can be a program name with args.
2319 set dummy $ac_prog; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 if test -n "$ac_ct_CC"; then
2326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_ac_ct_CC="$ac_prog"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2339 done
2340 done
2341 IFS=$as_save_IFS
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348 echo "${ECHO_T}$ac_ct_CC" >&6; }
2349 else
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2355 test -n "$ac_ct_CC" && break
2356 done
2358 if test "x$ac_ct_CC" = x; then
2359 CC=""
2360 else
2361 case $cross_compiling:$ac_tool_warned in
2362 yes:)
2363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet. If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&5
2366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2369 ac_tool_warned=yes ;;
2370 esac
2371 CC=$ac_ct_CC
2378 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: no acceptable C compiler found in \$PATH
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2384 # Provide some information about the compiler.
2385 echo "$as_me:$LINENO: checking for C compiler version" >&5
2386 ac_compiler=`set X $ac_compile; echo $2`
2387 { (ac_try="$ac_compiler --version >&5"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compiler --version >&5") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397 { (ac_try="$ac_compiler -v >&5"
2398 case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401 esac
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compiler -v >&5") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2407 { (ac_try="$ac_compiler -V >&5"
2408 case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411 esac
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_compiler -V >&5") 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2426 main ()
2430 return 0;
2432 _ACEOF
2433 ac_clean_files_save=$ac_clean_files
2434 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2435 # Try to create an executable without -o first, disregard a.out.
2436 # It will help us diagnose broken compilers, and finding out an intuition
2437 # of exeext.
2438 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2439 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2440 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2442 # List of possible output files, starting from the most likely.
2443 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2444 # only as a last resort. b.out is created by i960 compilers.
2445 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2447 # The IRIX 6 linker writes into existing files which may not be
2448 # executable, retaining their permissions. Remove them first so a
2449 # subsequent execution test works.
2450 ac_rmfiles=
2451 for ac_file in $ac_files
2453 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2455 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2456 esac
2457 done
2458 rm -f $ac_rmfiles
2460 if { (ac_try="$ac_link_default"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_link_default") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; then
2470 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2471 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2472 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2473 # so that the user can short-circuit this test for compilers unknown to
2474 # Autoconf.
2475 for ac_file in $ac_files ''
2477 test -f "$ac_file" || continue
2478 case $ac_file in
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2481 [ab].out )
2482 # We found the default executable, but exeext='' is most
2483 # certainly right.
2484 break;;
2485 *.* )
2486 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2487 then :; else
2488 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2490 # We set ac_cv_exeext here because the later test for it is not
2491 # safe: cross compilers may not add the suffix if given an `-o'
2492 # argument, so we may need to know it at that point already.
2493 # Even if this section looks crufty: it has the advantage of
2494 # actually working.
2495 break;;
2497 break;;
2498 esac
2499 done
2500 test "$ac_cv_exeext" = no && ac_cv_exeext=
2502 else
2503 ac_file=''
2506 { echo "$as_me:$LINENO: result: $ac_file" >&5
2507 echo "${ECHO_T}$ac_file" >&6; }
2508 if test -z "$ac_file"; then
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2512 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2513 See \`config.log' for more details." >&5
2514 echo "$as_me: error: C compiler cannot create executables
2515 See \`config.log' for more details." >&2;}
2516 { (exit 77); exit 77; }; }
2519 ac_exeext=$ac_cv_exeext
2521 # Check that the compiler produces executables we can run. If not, either
2522 # the compiler is broken, or we cross compile.
2523 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2524 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2525 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2526 # If not cross compiling, check that we can run a simple program.
2527 if test "$cross_compiling" != yes; then
2528 if { ac_try='./$ac_file'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 cross_compiling=no
2539 else
2540 if test "$cross_compiling" = maybe; then
2541 cross_compiling=yes
2542 else
2543 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2544 If you meant to cross compile, use \`--host'.
2545 See \`config.log' for more details." >&5
2546 echo "$as_me: error: cannot run C compiled programs.
2547 If you meant to cross compile, use \`--host'.
2548 See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2553 { echo "$as_me:$LINENO: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6; }
2556 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2557 ac_clean_files=$ac_clean_files_save
2558 # Check that the compiler produces executables we can run. If not, either
2559 # the compiler is broken, or we cross compile.
2560 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2561 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2562 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2563 echo "${ECHO_T}$cross_compiling" >&6; }
2565 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2566 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2567 if { (ac_try="$ac_link"
2568 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571 esac
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_link") 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; then
2577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2579 # work properly (i.e., refer to `conftest.exe'), while it won't with
2580 # `rm'.
2581 for ac_file in conftest.exe conftest conftest.*; do
2582 test -f "$ac_file" || continue
2583 case $ac_file in
2584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2586 break;;
2587 * ) break;;
2588 esac
2589 done
2590 else
2591 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2594 See \`config.log' for more details." >&2;}
2595 { (exit 1); exit 1; }; }
2598 rm -f conftest$ac_cv_exeext
2599 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2600 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2602 rm -f conftest.$ac_ext
2603 EXEEXT=$ac_cv_exeext
2604 ac_exeext=$EXEEXT
2605 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2606 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2607 if test "${ac_cv_objext+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2618 main ()
2622 return 0;
2624 _ACEOF
2625 rm -f conftest.o conftest.obj
2626 if { (ac_try="$ac_compile"
2627 case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630 esac
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_compile") 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; then
2636 for ac_file in conftest.o conftest.obj conftest.*; do
2637 test -f "$ac_file" || continue;
2638 case $ac_file in
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2640 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2641 break;;
2642 esac
2643 done
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }
2655 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2657 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2658 echo "${ECHO_T}$ac_cv_objext" >&6; }
2659 OBJEXT=$ac_cv_objext
2660 ac_objext=$OBJEXT
2661 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2662 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2663 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 main ()
2676 #ifndef __GNUC__
2677 choke me
2678 #endif
2681 return 0;
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } && {
2698 test -z "$ac_c_werror_flag" ||
2699 test ! -s conftest.err
2700 } && test -s conftest.$ac_objext; then
2701 ac_compiler_gnu=yes
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2706 ac_compiler_gnu=no
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2713 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2714 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2715 GCC=`test $ac_compiler_gnu = yes && echo yes`
2716 ac_test_CFLAGS=${CFLAGS+set}
2717 ac_save_CFLAGS=$CFLAGS
2718 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2719 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_cc_g+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 ac_save_c_werror_flag=$ac_c_werror_flag
2724 ac_c_werror_flag=yes
2725 ac_cv_prog_cc_g=no
2726 CFLAGS="-g"
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2735 main ()
2739 return 0;
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (ac_try="$ac_compile"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compile") 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } && {
2756 test -z "$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2758 } && test -s conftest.$ac_objext; then
2759 ac_cv_prog_cc_g=yes
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 CFLAGS=""
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 main ()
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (ac_try="$ac_compile"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && {
2794 test -z "$ac_c_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest.$ac_objext; then
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2803 CFLAGS="-g"
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2812 main ()
2816 return 0;
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (ac_try="$ac_compile"
2821 case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_compile") 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } && {
2833 test -z "$ac_c_werror_flag" ||
2834 test ! -s conftest.err
2835 } && test -s conftest.$ac_objext; then
2836 ac_cv_prog_cc_g=yes
2837 else
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 ac_c_werror_flag=$ac_save_c_werror_flag
2853 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2855 if test "$ac_test_CFLAGS" = set; then
2856 CFLAGS=$ac_save_CFLAGS
2857 elif test $ac_cv_prog_cc_g = yes; then
2858 if test "$GCC" = yes; then
2859 CFLAGS="-g -O2"
2860 else
2861 CFLAGS="-g"
2863 else
2864 if test "$GCC" = yes; then
2865 CFLAGS="-O2"
2866 else
2867 CFLAGS=
2870 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2871 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_cc_c89+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 ac_cv_prog_cc_c89=no
2876 ac_save_CC=$CC
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <stdarg.h>
2884 #include <stdio.h>
2885 #include <sys/types.h>
2886 #include <sys/stat.h>
2887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2888 struct buf { int x; };
2889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2890 static char *e (p, i)
2891 char **p;
2892 int i;
2894 return p[i];
2896 static char *f (char * (*g) (char **, int), char **p, ...)
2898 char *s;
2899 va_list v;
2900 va_start (v,p);
2901 s = g (p, va_arg (v,int));
2902 va_end (v);
2903 return s;
2906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2907 function prototypes and stuff, but not '\xHH' hex character constants.
2908 These don't provoke an error unfortunately, instead are silently treated
2909 as 'x'. The following induces an error, until -std is added to get
2910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2911 array size at least. It's necessary to write '\x00'==0 to get something
2912 that's true only with -std. */
2913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2916 inside strings and character constants. */
2917 #define FOO(x) 'x'
2918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2920 int test (int i, double x);
2921 struct s1 {int (*f) (int a);};
2922 struct s2 {int (*f) (double a);};
2923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2924 int argc;
2925 char **argv;
2927 main ()
2929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2931 return 0;
2933 _ACEOF
2934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2937 CC="$ac_save_CC $ac_arg"
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } && {
2952 test -z "$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2954 } && test -s conftest.$ac_objext; then
2955 ac_cv_prog_cc_c89=$ac_arg
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2963 rm -f core conftest.err conftest.$ac_objext
2964 test "x$ac_cv_prog_cc_c89" != "xno" && break
2965 done
2966 rm -f conftest.$ac_ext
2967 CC=$ac_save_CC
2970 # AC_CACHE_VAL
2971 case "x$ac_cv_prog_cc_c89" in
2973 { echo "$as_me:$LINENO: result: none needed" >&5
2974 echo "${ECHO_T}none needed" >&6; } ;;
2975 xno)
2976 { echo "$as_me:$LINENO: result: unsupported" >&5
2977 echo "${ECHO_T}unsupported" >&6; } ;;
2979 CC="$CC $ac_cv_prog_cc_c89"
2980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2982 esac
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 case $ac_cv_prog_cc_stdc in
2992 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2993 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2994 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_c99+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 ac_cv_prog_cc_c99=no
2999 ac_save_CC=$CC
3000 cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <stdarg.h>
3007 #include <stdbool.h>
3008 #include <stdlib.h>
3009 #include <wchar.h>
3010 #include <stdio.h>
3012 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3013 #define debug(...) fprintf (stderr, __VA_ARGS__)
3014 #define showlist(...) puts (#__VA_ARGS__)
3015 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3016 static void
3017 test_varargs_macros (void)
3019 int x = 1234;
3020 int y = 5678;
3021 debug ("Flag");
3022 debug ("X = %d\n", x);
3023 showlist (The first, second, and third items.);
3024 report (x>y, "x is %d but y is %d", x, y);
3027 // Check long long types.
3028 #define BIG64 18446744073709551615ull
3029 #define BIG32 4294967295ul
3030 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3031 #if !BIG_OK
3032 your preprocessor is broken;
3033 #endif
3034 #if BIG_OK
3035 #else
3036 your preprocessor is broken;
3037 #endif
3038 static long long int bignum = -9223372036854775807LL;
3039 static unsigned long long int ubignum = BIG64;
3041 struct incomplete_array
3043 int datasize;
3044 double data[];
3047 struct named_init {
3048 int number;
3049 const wchar_t *name;
3050 double average;
3053 typedef const char *ccp;
3055 static inline int
3056 test_restrict (ccp restrict text)
3058 // See if C++-style comments work.
3059 // Iterate through items via the restricted pointer.
3060 // Also check for declarations in for loops.
3061 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3062 continue;
3063 return 0;
3066 // Check varargs and va_copy.
3067 static void
3068 test_varargs (const char *format, ...)
3070 va_list args;
3071 va_start (args, format);
3072 va_list args_copy;
3073 va_copy (args_copy, args);
3075 const char *str;
3076 int number;
3077 float fnumber;
3079 while (*format)
3081 switch (*format++)
3083 case 's': // string
3084 str = va_arg (args_copy, const char *);
3085 break;
3086 case 'd': // int
3087 number = va_arg (args_copy, int);
3088 break;
3089 case 'f': // float
3090 fnumber = va_arg (args_copy, double);
3091 break;
3092 default:
3093 break;
3096 va_end (args_copy);
3097 va_end (args);
3101 main ()
3104 // Check bool.
3105 _Bool success = false;
3107 // Check restrict.
3108 if (test_restrict ("String literal") == 0)
3109 success = true;
3110 char *restrict newvar = "Another string";
3112 // Check varargs.
3113 test_varargs ("s, d' f .", "string", 65, 34.234);
3114 test_varargs_macros ();
3116 // Check flexible array members.
3117 struct incomplete_array *ia =
3118 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3119 ia->datasize = 10;
3120 for (int i = 0; i < ia->datasize; ++i)
3121 ia->data[i] = i * 1.234;
3123 // Check named initializers.
3124 struct named_init ni = {
3125 .number = 34,
3126 .name = L"Test wide string",
3127 .average = 543.34343,
3130 ni.number = 58;
3132 int dynamic_array[ni.number];
3133 dynamic_array[ni.number - 1] = 543;
3135 // work around unused variable warnings
3136 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3137 || dynamic_array[ni.number - 1] != 543);
3140 return 0;
3142 _ACEOF
3143 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3145 CC="$ac_save_CC $ac_arg"
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3154 ac_status=$?
3155 grep -v '^ *+' conftest.er1 >conftest.err
3156 rm -f conftest.er1
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3163 ac_cv_prog_cc_c99=$ac_arg
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3171 rm -f core conftest.err conftest.$ac_objext
3172 test "x$ac_cv_prog_cc_c99" != "xno" && break
3173 done
3174 rm -f conftest.$ac_ext
3175 CC=$ac_save_CC
3178 # AC_CACHE_VAL
3179 case "x$ac_cv_prog_cc_c99" in
3181 { echo "$as_me:$LINENO: result: none needed" >&5
3182 echo "${ECHO_T}none needed" >&6; } ;;
3183 xno)
3184 { echo "$as_me:$LINENO: result: unsupported" >&5
3185 echo "${ECHO_T}unsupported" >&6; } ;;
3187 CC="$CC $ac_cv_prog_cc_c99"
3188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3189 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3190 esac
3191 if test "x$ac_cv_prog_cc_c99" != xno; then
3192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3193 else
3194 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3195 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3196 if test "${ac_cv_prog_cc_c89+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 ac_cv_prog_cc_c89=no
3200 ac_save_CC=$CC
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 #include <stdarg.h>
3208 #include <stdio.h>
3209 #include <sys/types.h>
3210 #include <sys/stat.h>
3211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3212 struct buf { int x; };
3213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3214 static char *e (p, i)
3215 char **p;
3216 int i;
3218 return p[i];
3220 static char *f (char * (*g) (char **, int), char **p, ...)
3222 char *s;
3223 va_list v;
3224 va_start (v,p);
3225 s = g (p, va_arg (v,int));
3226 va_end (v);
3227 return s;
3230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3231 function prototypes and stuff, but not '\xHH' hex character constants.
3232 These don't provoke an error unfortunately, instead are silently treated
3233 as 'x'. The following induces an error, until -std is added to get
3234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3235 array size at least. It's necessary to write '\x00'==0 to get something
3236 that's true only with -std. */
3237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3240 inside strings and character constants. */
3241 #define FOO(x) 'x'
3242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3244 int test (int i, double x);
3245 struct s1 {int (*f) (int a);};
3246 struct s2 {int (*f) (double a);};
3247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3248 int argc;
3249 char **argv;
3251 main ()
3253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3255 return 0;
3257 _ACEOF
3258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3261 CC="$ac_save_CC $ac_arg"
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && {
3276 test -z "$ac_c_werror_flag" ||
3277 test ! -s conftest.err
3278 } && test -s conftest.$ac_objext; then
3279 ac_cv_prog_cc_c89=$ac_arg
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3287 rm -f core conftest.err conftest.$ac_objext
3288 test "x$ac_cv_prog_cc_c89" != "xno" && break
3289 done
3290 rm -f conftest.$ac_ext
3291 CC=$ac_save_CC
3294 # AC_CACHE_VAL
3295 case "x$ac_cv_prog_cc_c89" in
3297 { echo "$as_me:$LINENO: result: none needed" >&5
3298 echo "${ECHO_T}none needed" >&6; } ;;
3299 xno)
3300 { echo "$as_me:$LINENO: result: unsupported" >&5
3301 echo "${ECHO_T}unsupported" >&6; } ;;
3303 CC="$CC $ac_cv_prog_cc_c89"
3304 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3305 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3306 esac
3307 if test "x$ac_cv_prog_cc_c89" != xno; then
3308 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3309 else
3310 ac_cv_prog_cc_stdc=no
3317 esac
3318 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3319 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 case $ac_cv_prog_cc_stdc in
3325 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3326 echo "${ECHO_T}unsupported" >&6; } ;;
3327 '') { echo "$as_me:$LINENO: result: none needed" >&5
3328 echo "${ECHO_T}none needed" >&6; } ;;
3329 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3330 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3331 esac
3334 ac_ext=c
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3340 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3341 # On Suns, sometimes $CPP names a directory.
3342 if test -n "$CPP" && test -d "$CPP"; then
3343 CPP=
3345 if test -z "$CPP"; then
3346 if test "${ac_cv_prog_CPP+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 # Double quotes because CPP needs to be expanded
3350 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3352 ac_preproc_ok=false
3353 for ac_c_preproc_warn_flag in '' yes
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #ifdef __STDC__
3368 # include <limits.h>
3369 #else
3370 # include <assert.h>
3371 #endif
3372 Syntax error
3373 _ACEOF
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null && {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 }; then
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Broken: fails on valid input.
3396 continue
3399 rm -f conftest.err conftest.$ac_ext
3401 # OK, works on sane cases. Now check whether nonexistent headers
3402 # can be detected and how.
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null && {
3424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3425 test ! -s conftest.err
3426 }; then
3427 # Broken: success on invalid input.
3428 continue
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Passes both tests.
3434 ac_preproc_ok=:
3435 break
3438 rm -f conftest.err conftest.$ac_ext
3440 done
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3444 break
3447 done
3448 ac_cv_prog_CPP=$CPP
3451 CPP=$ac_cv_prog_CPP
3452 else
3453 ac_cv_prog_CPP=$CPP
3455 { echo "$as_me:$LINENO: result: $CPP" >&5
3456 echo "${ECHO_T}$CPP" >&6; }
3457 ac_preproc_ok=false
3458 for ac_c_preproc_warn_flag in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #ifdef __STDC__
3473 # include <limits.h>
3474 #else
3475 # include <assert.h>
3476 #endif
3477 Syntax error
3478 _ACEOF
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 }; then
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3501 continue
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null && {
3529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 }; then
3532 # Broken: success on invalid input.
3533 continue
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 # Passes both tests.
3539 ac_preproc_ok=:
3540 break
3543 rm -f conftest.err conftest.$ac_ext
3545 done
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then
3550 else
3551 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3552 See \`config.log' for more details." >&5
3553 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3554 See \`config.log' for more details." >&2;}
3555 { (exit 1); exit 1; }; }
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 # Check for a compatible awk
3566 for ac_prog in gawk nawk
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3572 if test "${ac_cv_prog_AWK+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 if test -n "$AWK"; then
3576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_AWK="$ac_prog"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3589 done
3590 done
3591 IFS=$as_save_IFS
3595 AWK=$ac_cv_prog_AWK
3596 if test -n "$AWK"; then
3597 { echo "$as_me:$LINENO: result: $AWK" >&5
3598 echo "${ECHO_T}$AWK" >&6; }
3599 else
3600 { echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6; }
3605 test -n "$AWK" && break
3606 done
3608 if test "$AWK" = ""; then
3609 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3610 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3611 { (exit 1); exit 1; }; }
3613 # Extract the first word of "mmake", so it can be a program name with args.
3614 set dummy mmake; ac_word=$2
3615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3617 if test "${ac_cv_prog_MMAKE+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 if test -n "$MMAKE"; then
3621 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630 ac_cv_prog_MMAKE="mmake "
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3640 MMAKE=$ac_cv_prog_MMAKE
3641 if test -n "$MMAKE"; then
3642 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3643 echo "${ECHO_T}$MMAKE" >&6; }
3644 else
3645 { echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6; }
3651 # Perform some default variable assignments. Note all of these will be
3652 # Regenerated from the script, so there is no need to cache them.
3654 aros_host_cc="$CC"
3655 if test "$GCC" = "yes"; then
3656 aros_gcc_ld=`$CC -print-prog-name=ld`
3657 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3658 set dummy `basename $aros_gcc_ld`; ac_word=$2
3659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3661 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 case $aros_host_ld in
3665 [\\/]* | ?:[\\/]*)
3666 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in `dirname $aros_gcc_ld`
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3680 done
3681 done
3682 IFS=$as_save_IFS
3685 esac
3687 aros_host_ld=$ac_cv_path_aros_host_ld
3688 if test -n "$aros_host_ld"; then
3689 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3690 echo "${ECHO_T}$aros_host_ld" >&6; }
3691 else
3692 { echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6; }
3698 if test "$aros_host_ld" = ""; then
3699 # Extract the first word of "ld", so it can be a program name with args.
3700 set dummy ld; ac_word=$2
3701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3703 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 case $aros_host_ld in
3707 [\\/]* | ?:[\\/]*)
3708 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3727 esac
3729 aros_host_ld=$ac_cv_path_aros_host_ld
3730 if test -n "$aros_host_ld"; then
3731 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3732 echo "${ECHO_T}$aros_host_ld" >&6; }
3733 else
3734 { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3740 if test "$aros_host_ld" = ""; then
3741 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3742 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3743 { (exit 1); exit 1; }; }
3745 aros_host_make="make"
3746 aros_host_cflags=$CFLAGS
3747 aros_host_ldflags=$LDFLAGS
3748 aros_host_debug="-g -O0"
3749 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3750 aros_host_mkargs="--no-print-directory"
3751 aros_host_incl="/usr/include"
3752 aros_host_exe_suffix="$EXEEXT"
3753 aros_host_lib_suffix=""
3755 for ac_prog in aclocal aclocal19 aclocal-1.9
3757 # Extract the first word of "$ac_prog", so it can be a program name with args.
3758 set dummy $ac_prog; ac_word=$2
3759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3761 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 if test -n "$aros_host_aclocal"; then
3765 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_prog_aros_host_aclocal="$ac_prog"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3778 done
3779 done
3780 IFS=$as_save_IFS
3784 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3785 if test -n "$aros_host_aclocal"; then
3786 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3787 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3788 else
3789 { echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6; }
3794 test -n "$aros_host_aclocal" && break
3795 done
3797 for ac_prog in autoconf autoconf259 autoconf253
3799 # Extract the first word of "$ac_prog", so it can be a program name with args.
3800 set dummy $ac_prog; ac_word=$2
3801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3803 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 if test -n "$aros_host_autoconf"; then
3807 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_aros_host_autoconf="$ac_prog"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3820 done
3821 done
3822 IFS=$as_save_IFS
3826 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3827 if test -n "$aros_host_autoconf"; then
3828 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3829 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3830 else
3831 { echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6; }
3836 test -n "$aros_host_autoconf" && break
3837 done
3839 for ac_prog in autoheader autoheader259 autoheader253
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3845 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$aros_host_autoheader"; then
3849 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_aros_host_autoheader="$ac_prog"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3864 IFS=$as_save_IFS
3868 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3869 if test -n "$aros_host_autoheader"; then
3870 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3871 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3872 else
3873 { echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6; }
3878 test -n "$aros_host_autoheader" && break
3879 done
3881 for ac_prog in automake automake19 automake-1.9
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3887 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 if test -n "$aros_host_automake"; then
3891 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_aros_host_automake="$ac_prog"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3904 done
3905 done
3906 IFS=$as_save_IFS
3910 aros_host_automake=$ac_cv_prog_aros_host_automake
3911 if test -n "$aros_host_automake"; then
3912 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3913 echo "${ECHO_T}$aros_host_automake" >&6; }
3914 else
3915 { echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6; }
3920 test -n "$aros_host_automake" && break
3921 done
3924 if test "$aros_host_aclocal" = ""; then
3925 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3926 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3927 { (exit 1); exit 1; }; }
3929 if test "$aros_host_automake" = ""; then
3930 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3931 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3932 { (exit 1); exit 1; }; }
3935 case "$aros_host_cc" in
3936 *gcc*)
3937 aros_host_cc_pipe="-pipe"
3939 icc)
3940 aros_host_cc_pipe=""
3943 aros_host_cc_pipe=""
3945 esac
3947 aros_target_cc_includes=""
3949 # This is the main host configuration section. It is where the host
3950 # can change the values of any variables it needs to change. We do
3951 # not look at anything that compiles to the target yet, we'll get
3952 # to that later.
3954 case "$host_os" in
3955 aros*)
3956 aros_host_arch="aros"
3957 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3958 case "$host_cpu" in
3959 *i?86*)
3960 aros_host_cpu="i386"
3962 *x86_64*)
3963 aros_host_cpu="x86_64"
3965 *powerpc*)
3966 aros_host_cpu="ppc"
3969 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3970 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3971 aros_host_cpu="$host_cpu"
3973 esac
3976 linux*)
3977 aros_host_arch="linux"
3978 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3979 case "$host_cpu" in
3980 *i?86*)
3981 aros_host_cpu="i386"
3983 *x86_64*)
3984 aros_host_cpu="x86_64"
3986 *m68k*)
3987 aros_host_cpu="m68k"
3989 *powerpc*)
3990 aros_host_cpu="ppc"
3992 *arm*)
3993 aros_host_cpu="arm"
3996 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3997 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3998 aros_host_cpu="$host_cpu"
4000 esac
4003 freebsd*)
4004 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4005 aros_host_make="gmake"
4006 aros_host_arch="freebsd"
4007 aros_host_cpu="i386"
4009 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4012 case $host_os in
4013 freebsd[234]*)
4014 aros_object_format="elf_i386"
4018 aros_object_format="elf_i386_fbsd"
4020 esac
4024 darwin*)
4025 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4026 aros_host_arch="darwin"
4027 case "$host_cpu" in
4028 *i?86*)
4029 aros_host_cpu="i386"
4031 *x86_64*)
4032 aros_host_cpu="x86_64"
4034 *powerpc*)
4035 aros_host_cpu="ppc"
4038 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4039 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4040 aros_host_cpu="$host_cpu"
4042 esac
4044 aros_host_ldflags="$aros_host_ldflags -liconv"
4048 dragonfly*)
4049 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4050 aros_host_make="gmake"
4051 aros_host_arch="dragonfly"
4052 case $host_cpu in
4053 *i?86*)
4054 aros_host_cpu="i386"
4056 *amd64*)
4057 aros_host_cpu="x86_64"
4060 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4061 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4062 aros_host_cpu="$host_cpu"
4064 esac
4067 netbsd*)
4068 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4069 aros_host_make="gmake"
4070 aros_host_arch="netbsd"
4071 case "$host_cpu" in
4072 *i?86*)
4073 aros_host_cpu="i386"
4075 *m68k*)
4076 aros_host_cpu="m68k"
4079 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4080 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4081 aros_host_cpu="$host_cpu"
4083 esac
4084 aros_host_lib_suffix=".0.0"
4087 openbsd*)
4088 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4089 aros_host_make="gmake"
4090 aros_host_arch="openbsd"
4091 case "$host_cpu" in
4092 *i?86*)
4093 aros_host_cpu="i386"
4096 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4097 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4098 aros_host_cpu="$host_cpu"
4100 esac
4103 solaris*)
4104 aros_host_arch="solaris"
4105 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4106 case "$host_cpu" in
4107 *i?86*)
4108 aros_host_cpu="i386"
4110 *sparc*)
4111 aros_host_cpu="sparc"
4114 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4115 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4116 aros_host_cpu="$host_cpu"
4118 esac
4121 morphos*)
4122 aros_host_arch="morphos"
4123 aros_host_cpu="ppc"
4126 amiga*)
4127 aros_host_arch="amiga"
4128 SORT="/gg/bin/sort"
4129 TEST="/gg/bin/test"
4130 UNIQ="/gg/bin/uniq"
4131 FOR="for"
4132 TOUCH="/gg/bin/touch"
4133 case "$host_cpu" in
4134 *m68k*)
4135 aros_host_cpu="m68k"
4137 *powerpc*)
4138 aros_host_cpu="ppc"
4141 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4142 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4143 aros_host_cpu="$host_cpu"
4145 esac
4148 cygwin*)
4149 aros_host_arch="cygwin"
4150 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4151 case "$host_cpu" in
4152 *i?86*)
4153 aros_host_cpu="i386"
4156 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4157 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4158 aros_host_cpu="$host_cpu"
4160 esac
4163 mingw32*)
4164 aros_host_arch="mingw32"
4165 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4166 case "$host_cpu" in
4167 *i?86*)
4168 aros_host_cpu="i386"
4171 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4172 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4173 aros_host_cpu="$host_cpu"
4175 esac
4178 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4179 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4180 { (exit 1); exit 1; }; }
4182 esac
4184 # Extract the first word of "ar", so it can be a program name with args.
4185 set dummy ar; ac_word=$2
4186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4188 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if test -n "$aros_host_ar"; then
4192 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_aros_host_ar="ar cr"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4207 IFS=$as_save_IFS
4211 aros_host_ar=$ac_cv_prog_aros_host_ar
4212 if test -n "$aros_host_ar"; then
4213 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4214 echo "${ECHO_T}$aros_host_ar" >&6; }
4215 else
4216 { echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6; }
4221 if test "$aros_host_ar" = ""; then
4222 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4223 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4224 { (exit 1); exit 1; }; }
4226 # Extract the first word of "ranlib", so it can be a program name with args.
4227 set dummy ranlib; ac_word=$2
4228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if test -n "$aros_host_ranlib"; then
4234 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_aros_host_ranlib="ranlib "
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4254 if test -n "$aros_host_ranlib"; then
4255 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4256 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4257 else
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4263 if test "$aros_host_ranlib" = ""; then
4264 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4265 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4266 { (exit 1); exit 1; }; }
4268 # Extract the first word of "strip", so it can be a program name with args.
4269 set dummy strip; ac_word=$2
4270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4272 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 if test -n "$aros_host_strip"; then
4276 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_aros_host_strip="strip "
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4295 aros_host_strip=$ac_cv_prog_aros_host_strip
4296 if test -n "$aros_host_strip"; then
4297 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4298 echo "${ECHO_T}$aros_host_strip" >&6; }
4299 else
4300 { echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6; }
4305 if test "$aros_host_strip" = ""; then
4306 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4307 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4308 { (exit 1); exit 1; }; }
4311 # Extract the first word of "rm", so it can be a program name with args.
4312 set dummy rm; ac_word=$2
4313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4315 if test "${ac_cv_prog_RM+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 if test -n "$RM"; then
4319 ac_cv_prog_RM="$RM" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_RM="rm -rf"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 RM=$ac_cv_prog_RM
4339 if test -n "$RM"; then
4340 { echo "$as_me:$LINENO: result: $RM" >&5
4341 echo "${ECHO_T}$RM" >&6; }
4342 else
4343 { echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6; }
4348 if test "$RM" = ""; then
4349 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4350 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4351 { (exit 1); exit 1; }; }
4353 # Extract the first word of "cp", so it can be a program name with args.
4354 set dummy cp; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_prog_CP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if test -n "$CP"; then
4361 ac_cv_prog_CP="$CP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_CP="cp "
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4376 IFS=$as_save_IFS
4380 CP=$ac_cv_prog_CP
4381 if test -n "$CP"; then
4382 { echo "$as_me:$LINENO: result: $CP" >&5
4383 echo "${ECHO_T}$CP" >&6; }
4384 else
4385 { echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6; }
4390 if test "$CP" = ""; then
4391 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4392 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4393 { (exit 1); exit 1; }; }
4395 # Extract the first word of "mv", so it can be a program name with args.
4396 set dummy mv; ac_word=$2
4397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399 if test "${ac_cv_prog_MV+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 if test -n "$MV"; then
4403 ac_cv_prog_MV="$MV" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_MV="mv "
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4416 done
4417 done
4418 IFS=$as_save_IFS
4422 MV=$ac_cv_prog_MV
4423 if test -n "$MV"; then
4424 { echo "$as_me:$LINENO: result: $MV" >&5
4425 echo "${ECHO_T}$MV" >&6; }
4426 else
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4432 if test "$MV" = ""; then
4433 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4434 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4435 { (exit 1); exit 1; }; }
4437 # Extract the first word of "echo", so it can be a program name with args.
4438 set dummy echo; ac_word=$2
4439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4441 if test "${ac_cv_prog_ECHO+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 if test -n "$ECHO"; then
4445 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ECHO="echo "
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4458 done
4459 done
4460 IFS=$as_save_IFS
4464 ECHO=$ac_cv_prog_ECHO
4465 if test -n "$ECHO"; then
4466 { echo "$as_me:$LINENO: result: $ECHO" >&5
4467 echo "${ECHO_T}$ECHO" >&6; }
4468 else
4469 { echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6; }
4474 if test "$ECHO" = ""; then
4475 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4476 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4477 { (exit 1); exit 1; }; }
4479 # Extract the first word of "mkdir", so it can be a program name with args.
4480 set dummy mkdir; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_prog_MKDIR+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 if test -n "$MKDIR"; then
4487 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_prog_MKDIR="mkdir -p"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4500 done
4501 done
4502 IFS=$as_save_IFS
4506 MKDIR=$ac_cv_prog_MKDIR
4507 if test -n "$MKDIR"; then
4508 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4509 echo "${ECHO_T}$MKDIR" >&6; }
4510 else
4511 { echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6; }
4516 if test "$MKDIR" = ""; then
4517 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4518 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4519 { (exit 1); exit 1; }; }
4521 # Extract the first word of "touch", so it can be a program name with args.
4522 set dummy touch; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_TOUCH+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 if test -n "$TOUCH"; then
4529 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_TOUCH="touch "
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4542 done
4543 done
4544 IFS=$as_save_IFS
4548 TOUCH=$ac_cv_prog_TOUCH
4549 if test -n "$TOUCH"; then
4550 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4551 echo "${ECHO_T}$TOUCH" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4558 if test "$TOUCH" = ""; then
4559 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4560 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4561 { (exit 1); exit 1; }; }
4563 # Extract the first word of "sort", so it can be a program name with args.
4564 set dummy sort; ac_word=$2
4565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567 if test "${ac_cv_prog_SORT+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570 if test -n "$SORT"; then
4571 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_SORT="sort "
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4584 done
4585 done
4586 IFS=$as_save_IFS
4590 SORT=$ac_cv_prog_SORT
4591 if test -n "$SORT"; then
4592 { echo "$as_me:$LINENO: result: $SORT" >&5
4593 echo "${ECHO_T}$SORT" >&6; }
4594 else
4595 { echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6; }
4600 if test "$SORT" = ""; then
4601 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4602 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4603 { (exit 1); exit 1; }; }
4605 # Extract the first word of "uniq", so it can be a program name with args.
4606 set dummy uniq; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_UNIQ+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 if test -n "$UNIQ"; then
4613 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_UNIQ="uniq "
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4626 done
4627 done
4628 IFS=$as_save_IFS
4632 UNIQ=$ac_cv_prog_UNIQ
4633 if test -n "$UNIQ"; then
4634 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4635 echo "${ECHO_T}$UNIQ" >&6; }
4636 else
4637 { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4642 if test "$UNIQ" = ""; then
4643 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4644 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4645 { (exit 1); exit 1; }; }
4647 # Extract the first word of "true", so it can be a program name with args.
4648 set dummy true; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_NOP+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test -n "$NOP"; then
4655 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_NOP="true "
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 NOP=$ac_cv_prog_NOP
4675 if test -n "$NOP"; then
4676 { echo "$as_me:$LINENO: result: $NOP" >&5
4677 echo "${ECHO_T}$NOP" >&6; }
4678 else
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4684 if test "$NOP" = ""; then
4685 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4686 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4687 { (exit 1); exit 1; }; }
4689 # Extract the first word of "cat", so it can be a program name with args.
4690 set dummy cat; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_prog_CAT+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 if test -n "$CAT"; then
4697 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_CAT="cat "
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4712 IFS=$as_save_IFS
4716 CAT=$ac_cv_prog_CAT
4717 if test -n "$CAT"; then
4718 { echo "$as_me:$LINENO: result: $CAT" >&5
4719 echo "${ECHO_T}$CAT" >&6; }
4720 else
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4726 if test "$CAT" = ""; then
4727 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4728 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4729 { (exit 1); exit 1; }; }
4731 # Extract the first word of "bison", so it can be a program name with args.
4732 set dummy bison; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_BISON+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 if test -n "$BISON"; then
4739 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_BISON="bison "
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 BISON=$ac_cv_prog_BISON
4759 if test -n "$BISON"; then
4760 { echo "$as_me:$LINENO: result: $BISON" >&5
4761 echo "${ECHO_T}$BISON" >&6; }
4762 else
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4768 if test "$BISON" = ""; then
4769 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4770 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4771 { (exit 1); exit 1; }; }
4773 # Extract the first word of "flex", so it can be a program name with args.
4774 set dummy flex; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_prog_FLEX+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 if test -n "$FLEX"; then
4781 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_FLEX="flex "
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4794 done
4795 done
4796 IFS=$as_save_IFS
4800 FLEX=$ac_cv_prog_FLEX
4801 if test -n "$FLEX"; then
4802 { echo "$as_me:$LINENO: result: $FLEX" >&5
4803 echo "${ECHO_T}$FLEX" >&6; }
4804 else
4805 { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4810 if test "$FLEX" = ""; then
4811 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4812 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4813 { (exit 1); exit 1; }; }
4815 # Extract the first word of "pngtopnm", so it can be a program name with args.
4816 set dummy pngtopnm; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 if test -n "$PNGTOPNM"; then
4823 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_PNGTOPNM="pngtopnm "
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4843 if test -n "$PNGTOPNM"; then
4844 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4845 echo "${ECHO_T}$PNGTOPNM" >&6; }
4846 else
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test "$PNGTOPNM" = ""; then
4853 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4854 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4855 { (exit 1); exit 1; }; }
4857 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4858 set dummy ppmtoilbm; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 if test -n "$PPMTOILBM"; then
4865 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4885 if test -n "$PPMTOILBM"; then
4886 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4887 echo "${ECHO_T}$PPMTOILBM" >&6; }
4888 else
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4894 if test "$PPMTOILBM" = ""; then
4895 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4896 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4897 { (exit 1); exit 1; }; }
4899 # Extract the first word of "sed", so it can be a program name with args.
4900 set dummy sed; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_SED+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 if test -n "$SED"; then
4907 ac_cv_prog_SED="$SED" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_SED="sed "
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 SED=$ac_cv_prog_SED
4927 if test -n "$SED"; then
4928 { echo "$as_me:$LINENO: result: $SED" >&5
4929 echo "${ECHO_T}$SED" >&6; }
4930 else
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4936 if test "$SED" = ""; then
4937 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4938 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4939 { (exit 1); exit 1; }; }
4941 # Extract the first word of "chmod", so it can be a program name with args.
4942 set dummy chmod; ac_word=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_prog_CHMOD+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 if test -n "$CHMOD"; then
4949 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_CHMOD="chmod "
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 CHMOD=$ac_cv_prog_CHMOD
4969 if test -n "$CHMOD"; then
4970 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4971 echo "${ECHO_T}$CHMOD" >&6; }
4972 else
4973 { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4978 if test "$CHMOD" = ""; then
4979 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4980 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4981 { (exit 1); exit 1; }; }
4988 if test -n "$PYTHON"; then
4989 # If the user set $PYTHON, use it and don't search something else.
4990 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
4991 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
4992 prog="import sys, string
4993 # split strings by '.' and convert to numeric. Append some zeros
4994 # because we need at least 4 digits for the hex conversion.
4995 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
4996 minverhex = 0
4997 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4998 sys.exit(sys.hexversion < minverhex)"
4999 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5000 ($PYTHON -c "$prog") >&5 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; then
5004 { echo "$as_me:$LINENO: result: yes" >&5
5005 echo "${ECHO_T}yes" >&6; }
5006 else
5007 { { echo "$as_me:$LINENO: error: too old" >&5
5008 echo "$as_me: error: too old" >&2;}
5009 { (exit 1); exit 1; }; }
5012 am_display_PYTHON=$PYTHON
5013 else
5014 # Otherwise, try each interpreter until we find one that satisfies
5015 # VERSION.
5016 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5017 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5018 if test "${am_cv_pathless_PYTHON+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5022 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
5023 test "$am_cv_pathless_PYTHON" = none && break
5024 prog="import sys, string
5025 # split strings by '.' and convert to numeric. Append some zeros
5026 # because we need at least 4 digits for the hex conversion.
5027 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5028 minverhex = 0
5029 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5030 sys.exit(sys.hexversion < minverhex)"
5031 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5032 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; then
5036 break
5039 done
5041 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5042 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5043 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5044 if test "$am_cv_pathless_PYTHON" = none; then
5045 PYTHON=:
5046 else
5047 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5048 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_PYTHON+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 case $PYTHON in
5055 [\\/]* | ?:[\\/]*)
5056 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5070 done
5071 done
5072 IFS=$as_save_IFS
5075 esac
5077 PYTHON=$ac_cv_path_PYTHON
5078 if test -n "$PYTHON"; then
5079 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5080 echo "${ECHO_T}$PYTHON" >&6; }
5081 else
5082 { echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6; }
5088 am_display_PYTHON=$am_cv_pathless_PYTHON
5092 if test "$PYTHON" = :; then
5093 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5094 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5095 { (exit 1); exit 1; }; }
5096 else
5099 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5100 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5101 if test "${am_cv_python_version+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5106 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5107 echo "${ECHO_T}$am_cv_python_version" >&6; }
5108 PYTHON_VERSION=$am_cv_python_version
5112 PYTHON_PREFIX='${prefix}'
5114 PYTHON_EXEC_PREFIX='${exec_prefix}'
5118 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5119 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5120 if test "${am_cv_python_platform+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5125 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5126 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5127 PYTHON_PLATFORM=$am_cv_python_platform
5132 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5133 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5134 if test "${am_cv_python_pythondir+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5138 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5140 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5141 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5142 pythondir=$am_cv_python_pythondir
5146 pkgpythondir=\${pythondir}/$PACKAGE
5149 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5150 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5151 if test "${am_cv_python_pyexecdir+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5155 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5157 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5158 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5159 pyexecdir=$am_cv_python_pyexecdir
5163 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5171 FOR=for
5173 IF=if
5175 TEST=test
5177 CMP=cmp
5181 # Check for some includes for the X11 HIDD and the kernel
5184 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5185 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_GREP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 # Extract the first word of "grep ggrep" to use in msg output
5190 if test -z "$GREP"; then
5191 set dummy grep ggrep; ac_prog_name=$2
5192 if test "${ac_cv_path_GREP+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 ac_path_GREP_found=false
5196 # Loop through the user's path and test for each of PROGNAME-LIST
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_prog in grep ggrep; do
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5205 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5206 # Check for GNU ac_path_GREP and select it if it is found.
5207 # Check for GNU $ac_path_GREP
5208 case `"$ac_path_GREP" --version 2>&1` in
5209 *GNU*)
5210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5212 ac_count=0
5213 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5214 while :
5216 cat "conftest.in" "conftest.in" >"conftest.tmp"
5217 mv "conftest.tmp" "conftest.in"
5218 cp "conftest.in" "conftest.nl"
5219 echo 'GREP' >> "conftest.nl"
5220 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5222 ac_count=`expr $ac_count + 1`
5223 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5224 # Best one so far, save it but keep looking for a better one
5225 ac_cv_path_GREP="$ac_path_GREP"
5226 ac_path_GREP_max=$ac_count
5228 # 10*(2^10) chars as input seems more than enough
5229 test $ac_count -gt 10 && break
5230 done
5231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5232 esac
5235 $ac_path_GREP_found && break 3
5236 done
5237 done
5239 done
5240 IFS=$as_save_IFS
5245 GREP="$ac_cv_path_GREP"
5246 if test -z "$GREP"; then
5247 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5248 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5249 { (exit 1); exit 1; }; }
5252 else
5253 ac_cv_path_GREP=$GREP
5258 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5259 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5260 GREP="$ac_cv_path_GREP"
5263 { echo "$as_me:$LINENO: checking for egrep" >&5
5264 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5265 if test "${ac_cv_path_EGREP+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5269 then ac_cv_path_EGREP="$GREP -E"
5270 else
5271 # Extract the first word of "egrep" to use in msg output
5272 if test -z "$EGREP"; then
5273 set dummy egrep; ac_prog_name=$2
5274 if test "${ac_cv_path_EGREP+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 ac_path_EGREP_found=false
5278 # Loop through the user's path and test for each of PROGNAME-LIST
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_prog in egrep; do
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5287 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5288 # Check for GNU ac_path_EGREP and select it if it is found.
5289 # Check for GNU $ac_path_EGREP
5290 case `"$ac_path_EGREP" --version 2>&1` in
5291 *GNU*)
5292 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5294 ac_count=0
5295 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5296 while :
5298 cat "conftest.in" "conftest.in" >"conftest.tmp"
5299 mv "conftest.tmp" "conftest.in"
5300 cp "conftest.in" "conftest.nl"
5301 echo 'EGREP' >> "conftest.nl"
5302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5304 ac_count=`expr $ac_count + 1`
5305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5306 # Best one so far, save it but keep looking for a better one
5307 ac_cv_path_EGREP="$ac_path_EGREP"
5308 ac_path_EGREP_max=$ac_count
5310 # 10*(2^10) chars as input seems more than enough
5311 test $ac_count -gt 10 && break
5312 done
5313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314 esac
5317 $ac_path_EGREP_found && break 3
5318 done
5319 done
5321 done
5322 IFS=$as_save_IFS
5327 EGREP="$ac_cv_path_EGREP"
5328 if test -z "$EGREP"; then
5329 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5330 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5331 { (exit 1); exit 1; }; }
5334 else
5335 ac_cv_path_EGREP=$EGREP
5341 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5342 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5343 EGREP="$ac_cv_path_EGREP"
5346 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5348 if test "${ac_cv_header_stdc+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 #include <stdlib.h>
5358 #include <stdarg.h>
5359 #include <string.h>
5360 #include <float.h>
5363 main ()
5367 return 0;
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (ac_try="$ac_compile"
5372 case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compile") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && {
5384 test -z "$ac_c_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest.$ac_objext; then
5387 ac_cv_header_stdc=yes
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ac_cv_header_stdc=no
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 if test $ac_cv_header_stdc = yes; then
5398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5399 cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h. */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 #include <string.h>
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "memchr" >/dev/null 2>&1; then
5411 else
5412 ac_cv_header_stdc=no
5414 rm -f -r conftest*
5418 if test $ac_cv_header_stdc = yes; then
5419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <stdlib.h>
5428 _ACEOF
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "free" >/dev/null 2>&1; then
5432 else
5433 ac_cv_header_stdc=no
5435 rm -f -r conftest*
5439 if test $ac_cv_header_stdc = yes; then
5440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5441 if test "$cross_compiling" = yes; then
5443 else
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 #include <ctype.h>
5451 #include <stdlib.h>
5452 #if ((' ' & 0x0FF) == 0x020)
5453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5455 #else
5456 # define ISLOWER(c) \
5457 (('a' <= (c) && (c) <= 'i') \
5458 || ('j' <= (c) && (c) <= 'r') \
5459 || ('s' <= (c) && (c) <= 'z'))
5460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5461 #endif
5463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5465 main ()
5467 int i;
5468 for (i = 0; i < 256; i++)
5469 if (XOR (islower (i), ISLOWER (i))
5470 || toupper (i) != TOUPPER (i))
5471 return 2;
5472 return 0;
5474 _ACEOF
5475 rm -f conftest$ac_exeext
5476 if { (ac_try="$ac_link"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_link") 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5496 else
5497 echo "$as_me: program exited with status $ac_status" >&5
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ( exit $ac_status )
5502 ac_cv_header_stdc=no
5504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5511 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5512 if test $ac_cv_header_stdc = yes; then
5514 cat >>confdefs.h <<\_ACEOF
5515 #define STDC_HEADERS 1
5516 _ACEOF
5520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5530 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5531 inttypes.h stdint.h unistd.h
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 $ac_includes_default
5547 #include <$ac_header>
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (ac_try="$ac_compile"
5551 case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compile") 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && {
5563 test -z "$ac_c_werror_flag" ||
5564 test ! -s conftest.err
5565 } && test -s conftest.$ac_objext; then
5566 eval "$as_ac_Header=yes"
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 eval "$as_ac_Header=no"
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 ac_res=`eval echo '${'$as_ac_Header'}'`
5577 { echo "$as_me:$LINENO: result: $ac_res" >&5
5578 echo "${ECHO_T}$ac_res" >&6; }
5579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 _ACEOF
5586 done
5598 for ac_header in sys/ipc.h sys/shm.h \
5599 sys/mmap.h sys/mman.h sysexits.h \
5600 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 ac_res=`eval echo '${'$as_ac_Header'}'`
5611 { echo "$as_me:$LINENO: result: $ac_res" >&5
5612 echo "${ECHO_T}$ac_res" >&6; }
5613 else
5614 # Is the header compilable?
5615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5624 #include <$ac_header>
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5628 case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_compile") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && {
5640 test -z "$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 } && test -s conftest.$ac_objext; then
5643 ac_header_compiler=yes
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_header_compiler=no
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5653 echo "${ECHO_T}$ac_header_compiler" >&6; }
5655 # Is the header present?
5656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <$ac_header>
5665 _ACEOF
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } >/dev/null && {
5679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 }; then
5682 ac_header_preproc=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_header_preproc=no
5690 rm -f conftest.err conftest.$ac_ext
5691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6; }
5694 # So? What about this header?
5695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5696 yes:no: )
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5701 ac_header_preproc=yes
5703 no:yes:* )
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5718 esac
5719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 eval "$as_ac_Header=\$ac_header_preproc"
5726 ac_res=`eval echo '${'$as_ac_Header'}'`
5727 { echo "$as_me:$LINENO: result: $ac_res" >&5
5728 echo "${ECHO_T}$ac_res" >&6; }
5731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5732 cat >>confdefs.h <<_ACEOF
5733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5734 _ACEOF
5738 done
5742 for ac_header in sys/mount.h
5744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/param.h>
5758 #include <$ac_header>
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (ac_try="$ac_compile"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compile") 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } && {
5774 test -z "$ac_c_werror_flag" ||
5775 test ! -s conftest.err
5776 } && test -s conftest.$ac_objext; then
5777 eval "$as_ac_Header=yes"
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 eval "$as_ac_Header=no"
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_res=`eval echo '${'$as_ac_Header'}'`
5788 { echo "$as_me:$LINENO: result: $ac_res" >&5
5789 echo "${ECHO_T}$ac_res" >&6; }
5790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5791 cat >>confdefs.h <<_ACEOF
5792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793 _ACEOF
5797 done
5805 ac_header_dirent=no
5806 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5807 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5808 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5809 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 #include <$ac_hdr>
5823 main ()
5825 if ((DIR *) 0)
5826 return 0;
5828 return 0;
5830 _ACEOF
5831 rm -f conftest.$ac_objext
5832 if { (ac_try="$ac_compile"
5833 case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
5848 eval "$as_ac_Header=yes"
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 eval "$as_ac_Header=no"
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ac_res=`eval echo '${'$as_ac_Header'}'`
5859 { echo "$as_me:$LINENO: result: $ac_res" >&5
5860 echo "${ECHO_T}$ac_res" >&6; }
5861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5862 cat >>confdefs.h <<_ACEOF
5863 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5864 _ACEOF
5866 ac_header_dirent=$ac_hdr; break
5869 done
5870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5871 if test $ac_header_dirent = dirent.h; then
5872 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5873 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5874 if test "${ac_cv_search_opendir+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 ac_func_search_save_LIBS=$LIBS
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5885 /* Override any GCC internal prototype to avoid an error.
5886 Use char because int might match the return type of a GCC
5887 builtin and then its argument prototype would still apply. */
5888 #ifdef __cplusplus
5889 extern "C"
5890 #endif
5891 char opendir ();
5893 main ()
5895 return opendir ();
5897 return 0;
5899 _ACEOF
5900 for ac_lib in '' dir; do
5901 if test -z "$ac_lib"; then
5902 ac_res="none required"
5903 else
5904 ac_res=-l$ac_lib
5905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (ac_try="$ac_link"
5909 case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912 esac
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_link") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest$ac_exeext &&
5924 $as_test_x conftest$ac_exeext; then
5925 ac_cv_search_opendir=$ac_res
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5934 conftest$ac_exeext
5935 if test "${ac_cv_search_opendir+set}" = set; then
5936 break
5938 done
5939 if test "${ac_cv_search_opendir+set}" = set; then
5941 else
5942 ac_cv_search_opendir=no
5944 rm conftest.$ac_ext
5945 LIBS=$ac_func_search_save_LIBS
5947 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5948 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5949 ac_res=$ac_cv_search_opendir
5950 if test "$ac_res" != no; then
5951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5955 else
5956 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5957 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5958 if test "${ac_cv_search_opendir+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 ac_func_search_save_LIBS=$LIBS
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5969 /* Override any GCC internal prototype to avoid an error.
5970 Use char because int might match the return type of a GCC
5971 builtin and then its argument prototype would still apply. */
5972 #ifdef __cplusplus
5973 extern "C"
5974 #endif
5975 char opendir ();
5977 main ()
5979 return opendir ();
5981 return 0;
5983 _ACEOF
5984 for ac_lib in '' x; do
5985 if test -z "$ac_lib"; then
5986 ac_res="none required"
5987 else
5988 ac_res=-l$ac_lib
5989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5991 rm -f conftest.$ac_objext conftest$ac_exeext
5992 if { (ac_try="$ac_link"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_link") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest$ac_exeext &&
6008 $as_test_x conftest$ac_exeext; then
6009 ac_cv_search_opendir=$ac_res
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6018 conftest$ac_exeext
6019 if test "${ac_cv_search_opendir+set}" = set; then
6020 break
6022 done
6023 if test "${ac_cv_search_opendir+set}" = set; then
6025 else
6026 ac_cv_search_opendir=no
6028 rm conftest.$ac_ext
6029 LIBS=$ac_func_search_save_LIBS
6031 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6032 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6033 ac_res=$ac_cv_search_opendir
6034 if test "$ac_res" != no; then
6035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6041 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6042 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6043 if test "${ac_cv_header_stat_broken+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <sys/types.h>
6053 #include <sys/stat.h>
6055 #if defined S_ISBLK && defined S_IFDIR
6056 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6057 #endif
6059 #if defined S_ISBLK && defined S_IFCHR
6060 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6061 #endif
6063 #if defined S_ISLNK && defined S_IFREG
6064 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6065 #endif
6067 #if defined S_ISSOCK && defined S_IFREG
6068 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6069 #endif
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6074 case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6089 ac_cv_header_stat_broken=no
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_cv_header_stat_broken=yes
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6100 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6101 if test $ac_cv_header_stat_broken = yes; then
6103 cat >>confdefs.h <<\_ACEOF
6104 #define STAT_MACROS_BROKEN 1
6105 _ACEOF
6109 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6111 if test "${ac_cv_header_stdc+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 #include <stdlib.h>
6121 #include <stdarg.h>
6122 #include <string.h>
6123 #include <float.h>
6126 main ()
6130 return 0;
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
6150 ac_cv_header_stdc=yes
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_cv_header_stdc=no
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 if test $ac_cv_header_stdc = yes; then
6161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <string.h>
6170 _ACEOF
6171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6172 $EGREP "memchr" >/dev/null 2>&1; then
6174 else
6175 ac_cv_header_stdc=no
6177 rm -f -r conftest*
6181 if test $ac_cv_header_stdc = yes; then
6182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <stdlib.h>
6191 _ACEOF
6192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6193 $EGREP "free" >/dev/null 2>&1; then
6195 else
6196 ac_cv_header_stdc=no
6198 rm -f -r conftest*
6202 if test $ac_cv_header_stdc = yes; then
6203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6204 if test "$cross_compiling" = yes; then
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 #include <ctype.h>
6214 #include <stdlib.h>
6215 #if ((' ' & 0x0FF) == 0x020)
6216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6218 #else
6219 # define ISLOWER(c) \
6220 (('a' <= (c) && (c) <= 'i') \
6221 || ('j' <= (c) && (c) <= 'r') \
6222 || ('s' <= (c) && (c) <= 'z'))
6223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6224 #endif
6226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6228 main ()
6230 int i;
6231 for (i = 0; i < 256; i++)
6232 if (XOR (islower (i), ISLOWER (i))
6233 || toupper (i) != TOUPPER (i))
6234 return 2;
6235 return 0;
6237 _ACEOF
6238 rm -f conftest$ac_exeext
6239 if { (ac_try="$ac_link"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_link") 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6259 else
6260 echo "$as_me: program exited with status $ac_status" >&5
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ( exit $ac_status )
6265 ac_cv_header_stdc=no
6267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6273 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6274 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6275 if test $ac_cv_header_stdc = yes; then
6277 cat >>confdefs.h <<\_ACEOF
6278 #define STDC_HEADERS 1
6279 _ACEOF
6283 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6284 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6285 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <sys/types.h>
6295 #include <sys/wait.h>
6296 #ifndef WEXITSTATUS
6297 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6298 #endif
6299 #ifndef WIFEXITED
6300 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6301 #endif
6304 main ()
6306 int s;
6307 wait (&s);
6308 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6310 return 0;
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6315 case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318 esac
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compile") 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && {
6327 test -z "$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest.$ac_objext; then
6330 ac_cv_header_sys_wait_h=yes
6331 else
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 ac_cv_header_sys_wait_h=no
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6341 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6342 if test $ac_cv_header_sys_wait_h = yes; then
6344 cat >>confdefs.h <<\_ACEOF
6345 #define HAVE_SYS_WAIT_H 1
6346 _ACEOF
6350 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6351 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6352 if test "${ac_cv_header_time+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <sys/types.h>
6362 #include <sys/time.h>
6363 #include <time.h>
6366 main ()
6368 if ((struct tm *) 0)
6369 return 0;
6371 return 0;
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (ac_try="$ac_compile"
6376 case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_c_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
6391 ac_cv_header_time=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 ac_cv_header_time=no
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6402 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6403 if test $ac_cv_header_time = yes; then
6405 cat >>confdefs.h <<\_ACEOF
6406 #define TIME_WITH_SYS_TIME 1
6407 _ACEOF
6411 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6412 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6413 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6424 main ()
6426 static struct stat ac_aggr;
6427 if (ac_aggr.st_blksize)
6428 return 0;
6430 return 0;
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6435 case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438 esac
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 ac_cv_member_struct_stat_st_blksize=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 $ac_includes_default
6463 main ()
6465 static struct stat ac_aggr;
6466 if (sizeof ac_aggr.st_blksize)
6467 return 0;
6469 return 0;
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6489 ac_cv_member_struct_stat_st_blksize=yes
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 ac_cv_member_struct_stat_st_blksize=no
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6503 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6504 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6508 _ACEOF
6511 cat >>confdefs.h <<\_ACEOF
6512 #define HAVE_ST_BLKSIZE 1
6513 _ACEOF
6518 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6519 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6520 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6531 main ()
6533 static struct stat ac_aggr;
6534 if (ac_aggr.st_blocks)
6535 return 0;
6537 return 0;
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (ac_try="$ac_compile"
6542 case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
6557 ac_cv_member_struct_stat_st_blocks=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 $ac_includes_default
6570 main ()
6572 static struct stat ac_aggr;
6573 if (sizeof ac_aggr.st_blocks)
6574 return 0;
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6581 case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584 esac
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest.$ac_objext; then
6596 ac_cv_member_struct_stat_st_blocks=yes
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_member_struct_stat_st_blocks=no
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6610 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6611 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6613 cat >>confdefs.h <<_ACEOF
6614 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6615 _ACEOF
6618 cat >>confdefs.h <<\_ACEOF
6619 #define HAVE_ST_BLOCKS 1
6620 _ACEOF
6622 else
6623 case " $LIBOBJS " in
6624 *" fileblocks.$ac_objext "* ) ;;
6625 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6627 esac
6632 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6633 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6634 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h. */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 $ac_includes_default
6645 main ()
6647 static struct stat ac_aggr;
6648 if (ac_aggr.st_rdev)
6649 return 0;
6651 return 0;
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (ac_try="$ac_compile"
6656 case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_member_struct_stat_st_rdev=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 $ac_includes_default
6684 main ()
6686 static struct stat ac_aggr;
6687 if (sizeof ac_aggr.st_rdev)
6688 return 0;
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (ac_try="$ac_compile"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 ac_cv_member_struct_stat_st_rdev=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_cv_member_struct_stat_st_rdev=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6724 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6725 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define HAVE_STRUCT_STAT_ST_RDEV 1
6729 _ACEOF
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_ST_RDEV 1
6734 _ACEOF
6739 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6741 if test "${ac_cv_struct_tm+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <sys/types.h>
6751 #include <time.h>
6754 main ()
6756 struct tm tm;
6757 int *p = &tm.tm_sec;
6758 return !p;
6760 return 0;
6762 _ACEOF
6763 rm -f conftest.$ac_objext
6764 if { (ac_try="$ac_compile"
6765 case "(($ac_try" in
6766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767 *) ac_try_echo=$ac_try;;
6768 esac
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_cv_struct_tm=time.h
6781 else
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ac_cv_struct_tm=sys/time.h
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6791 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6792 if test $ac_cv_struct_tm = sys/time.h; then
6794 cat >>confdefs.h <<\_ACEOF
6795 #define TM_IN_SYS_TIME 1
6796 _ACEOF
6800 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6801 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6802 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 #include <sys/types.h>
6812 #include <$ac_cv_struct_tm>
6816 main ()
6818 static struct tm ac_aggr;
6819 if (ac_aggr.tm_zone)
6820 return 0;
6822 return 0;
6824 _ACEOF
6825 rm -f conftest.$ac_objext
6826 if { (ac_try="$ac_compile"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_compile") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest.$ac_objext; then
6842 ac_cv_member_struct_tm_tm_zone=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <sys/types.h>
6854 #include <$ac_cv_struct_tm>
6858 main ()
6860 static struct tm ac_aggr;
6861 if (sizeof ac_aggr.tm_zone)
6862 return 0;
6864 return 0;
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (ac_try="$ac_compile"
6869 case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 ac_cv_member_struct_tm_tm_zone=yes
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_member_struct_tm_tm_zone=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6898 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6899 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6901 cat >>confdefs.h <<_ACEOF
6902 #define HAVE_STRUCT_TM_TM_ZONE 1
6903 _ACEOF
6908 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6910 cat >>confdefs.h <<\_ACEOF
6911 #define HAVE_TM_ZONE 1
6912 _ACEOF
6914 else
6915 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6916 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6917 if test "${ac_cv_have_decl_tzname+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 #include <time.h>
6929 main ()
6931 #ifndef tzname
6932 (void) tzname;
6933 #endif
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_have_decl_tzname=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_have_decl_tzname=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6967 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6968 if test $ac_cv_have_decl_tzname = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define HAVE_DECL_TZNAME 1
6972 _ACEOF
6975 else
6976 cat >>confdefs.h <<_ACEOF
6977 #define HAVE_DECL_TZNAME 0
6978 _ACEOF
6984 { echo "$as_me:$LINENO: checking for tzname" >&5
6985 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6986 if test "${ac_cv_var_tzname+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <time.h>
6996 #if !HAVE_DECL_TZNAME
6997 extern char *tzname[];
6998 #endif
7001 main ()
7003 return tzname[0][0];
7005 return 0;
7007 _ACEOF
7008 rm -f conftest.$ac_objext conftest$ac_exeext
7009 if { (ac_try="$ac_link"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_link") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest$ac_exeext &&
7025 $as_test_x conftest$ac_exeext; then
7026 ac_cv_var_tzname=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_cv_var_tzname=no
7034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7035 conftest$ac_exeext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7038 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7039 if test $ac_cv_var_tzname = yes; then
7041 cat >>confdefs.h <<\_ACEOF
7042 #define HAVE_TZNAME 1
7043 _ACEOF
7048 { echo "$as_me:$LINENO: checking for off_t" >&5
7049 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7050 if test "${ac_cv_type_off_t+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 $ac_includes_default
7060 typedef off_t ac__type_new_;
7062 main ()
7064 if ((ac__type_new_ *) 0)
7065 return 0;
7066 if (sizeof (ac__type_new_))
7067 return 0;
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7074 case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7089 ac_cv_type_off_t=yes
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_cv_type_off_t=no
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7100 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7101 if test $ac_cv_type_off_t = yes; then
7103 else
7105 cat >>confdefs.h <<_ACEOF
7106 #define off_t long int
7107 _ACEOF
7111 { echo "$as_me:$LINENO: checking for pid_t" >&5
7112 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7113 if test "${ac_cv_type_pid_t+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7123 typedef pid_t ac__type_new_;
7125 main ()
7127 if ((ac__type_new_ *) 0)
7128 return 0;
7129 if (sizeof (ac__type_new_))
7130 return 0;
7132 return 0;
7134 _ACEOF
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7137 case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140 esac
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7152 ac_cv_type_pid_t=yes
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 ac_cv_type_pid_t=no
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7163 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7164 if test $ac_cv_type_pid_t = yes; then
7166 else
7168 cat >>confdefs.h <<_ACEOF
7169 #define pid_t int
7170 _ACEOF
7174 { echo "$as_me:$LINENO: checking for size_t" >&5
7175 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7176 if test "${ac_cv_type_size_t+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 $ac_includes_default
7186 typedef size_t ac__type_new_;
7188 main ()
7190 if ((ac__type_new_ *) 0)
7191 return 0;
7192 if (sizeof (ac__type_new_))
7193 return 0;
7195 return 0;
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7200 case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203 esac
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7215 ac_cv_type_size_t=yes
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_cv_type_size_t=no
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7226 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7227 if test $ac_cv_type_size_t = yes; then
7229 else
7231 cat >>confdefs.h <<_ACEOF
7232 #define size_t unsigned int
7233 _ACEOF
7237 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7238 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7239 if test "${ac_cv_type_uid_t+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 #include <sys/types.h>
7250 _ACEOF
7251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7252 $EGREP "uid_t" >/dev/null 2>&1; then
7253 ac_cv_type_uid_t=yes
7254 else
7255 ac_cv_type_uid_t=no
7257 rm -f -r conftest*
7260 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7261 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7262 if test $ac_cv_type_uid_t = no; then
7264 cat >>confdefs.h <<\_ACEOF
7265 #define uid_t int
7266 _ACEOF
7269 cat >>confdefs.h <<\_ACEOF
7270 #define gid_t int
7271 _ACEOF
7276 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7277 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7278 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7289 main ()
7291 static struct tm ac_aggr;
7292 if (ac_aggr.tm_gmtoff)
7293 return 0;
7295 return 0;
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7300 case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303 esac
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.$ac_objext; then
7315 ac_cv_member_struct_tm_tm_gmtoff=yes
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 $ac_includes_default
7328 main ()
7330 static struct tm ac_aggr;
7331 if (sizeof ac_aggr.tm_gmtoff)
7332 return 0;
7334 return 0;
7336 _ACEOF
7337 rm -f conftest.$ac_objext
7338 if { (ac_try="$ac_compile"
7339 case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_compile") 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest.$ac_objext; then
7354 ac_cv_member_struct_tm_tm_gmtoff=yes
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 ac_cv_member_struct_tm_tm_gmtoff=no
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7368 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7369 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7371 cat >>confdefs.h <<_ACEOF
7372 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7373 _ACEOF
7379 # Look for some functions
7394 for ac_func in getpagesize kqueue statfs statvfs \
7395 clone kse_create rfork_thread thr_create sa_register \
7396 getcontext makecontext setcontext sigaltstack swapcontext
7398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7412 #define $ac_func innocuous_$ac_func
7414 /* System header to define __stub macros and hopefully few prototypes,
7415 which can conflict with char $ac_func (); below.
7416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7417 <limits.h> exists even on freestanding compilers. */
7419 #ifdef __STDC__
7420 # include <limits.h>
7421 #else
7422 # include <assert.h>
7423 #endif
7425 #undef $ac_func
7427 /* Override any GCC internal prototype to avoid an error.
7428 Use char because int might match the return type of a GCC
7429 builtin and then its argument prototype would still apply. */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 char $ac_func ();
7434 /* The GNU C library defines this for functions which it implements
7435 to always fail with ENOSYS. Some functions are actually named
7436 something starting with __ and the normal name is an alias. */
7437 #if defined __stub_$ac_func || defined __stub___$ac_func
7438 choke me
7439 #endif
7442 main ()
7444 return $ac_func ();
7446 return 0;
7448 _ACEOF
7449 rm -f conftest.$ac_objext conftest$ac_exeext
7450 if { (ac_try="$ac_link"
7451 case "(($ac_try" in
7452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453 *) ac_try_echo=$ac_try;;
7454 esac
7455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456 (eval "$ac_link") 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } && {
7463 test -z "$ac_c_werror_flag" ||
7464 test ! -s conftest.err
7465 } && test -s conftest$ac_exeext &&
7466 $as_test_x conftest$ac_exeext; then
7467 eval "$as_ac_var=yes"
7468 else
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 eval "$as_ac_var=no"
7475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476 conftest$ac_exeext conftest.$ac_ext
7478 ac_res=`eval echo '${'$as_ac_var'}'`
7479 { echo "$as_me:$LINENO: result: $ac_res" >&5
7480 echo "${ECHO_T}$ac_res" >&6; }
7481 if test `eval echo '${'$as_ac_var'}'` = yes; then
7482 cat >>confdefs.h <<_ACEOF
7483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7484 _ACEOF
7487 done
7492 for ac_header in stdlib.h unistd.h
7494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_res=`eval echo '${'$as_ac_Header'}'`
7502 { echo "$as_me:$LINENO: result: $ac_res" >&5
7503 echo "${ECHO_T}$ac_res" >&6; }
7504 else
7505 # Is the header compilable?
7506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7515 #include <$ac_header>
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (ac_try="$ac_compile"
7519 case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522 esac
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_compile") 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest.$ac_objext; then
7534 ac_header_compiler=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 ac_header_compiler=no
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7544 echo "${ECHO_T}$ac_header_compiler" >&6; }
7546 # Is the header present?
7547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7549 cat >conftest.$ac_ext <<_ACEOF
7550 /* confdefs.h. */
7551 _ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7555 #include <$ac_header>
7556 _ACEOF
7557 if { (ac_try="$ac_cpp conftest.$ac_ext"
7558 case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7561 esac
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } >/dev/null && {
7570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7571 test ! -s conftest.err
7572 }; then
7573 ac_header_preproc=yes
7574 else
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7578 ac_header_preproc=no
7581 rm -f conftest.err conftest.$ac_ext
7582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7583 echo "${ECHO_T}$ac_header_preproc" >&6; }
7585 # So? What about this header?
7586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7587 yes:no: )
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7592 ac_header_preproc=yes
7594 no:yes:* )
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7609 esac
7610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 eval "$as_ac_Header=\$ac_header_preproc"
7617 ac_res=`eval echo '${'$as_ac_Header'}'`
7618 { echo "$as_me:$LINENO: result: $ac_res" >&5
7619 echo "${ECHO_T}$ac_res" >&6; }
7622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7623 cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7625 _ACEOF
7629 done
7632 for ac_func in getpagesize
7634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7648 #define $ac_func innocuous_$ac_func
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func (); below.
7652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7653 <limits.h> exists even on freestanding compilers. */
7655 #ifdef __STDC__
7656 # include <limits.h>
7657 #else
7658 # include <assert.h>
7659 #endif
7661 #undef $ac_func
7663 /* Override any GCC internal prototype to avoid an error.
7664 Use char because int might match the return type of a GCC
7665 builtin and then its argument prototype would still apply. */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 char $ac_func ();
7670 /* The GNU C library defines this for functions which it implements
7671 to always fail with ENOSYS. Some functions are actually named
7672 something starting with __ and the normal name is an alias. */
7673 #if defined __stub_$ac_func || defined __stub___$ac_func
7674 choke me
7675 #endif
7678 main ()
7680 return $ac_func ();
7682 return 0;
7684 _ACEOF
7685 rm -f conftest.$ac_objext conftest$ac_exeext
7686 if { (ac_try="$ac_link"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_link") 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest$ac_exeext &&
7702 $as_test_x conftest$ac_exeext; then
7703 eval "$as_ac_var=yes"
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 eval "$as_ac_var=no"
7711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7712 conftest$ac_exeext conftest.$ac_ext
7714 ac_res=`eval echo '${'$as_ac_var'}'`
7715 { echo "$as_me:$LINENO: result: $ac_res" >&5
7716 echo "${ECHO_T}$ac_res" >&6; }
7717 if test `eval echo '${'$as_ac_var'}'` = yes; then
7718 cat >>confdefs.h <<_ACEOF
7719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7720 _ACEOF
7723 done
7725 { echo "$as_me:$LINENO: checking for working mmap" >&5
7726 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7727 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 if test "$cross_compiling" = yes; then
7731 ac_cv_func_mmap_fixed_mapped=no
7732 else
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 $ac_includes_default
7740 /* malloc might have been renamed as rpl_malloc. */
7741 #undef malloc
7743 /* Thanks to Mike Haertel and Jim Avera for this test.
7744 Here is a matrix of mmap possibilities:
7745 mmap private not fixed
7746 mmap private fixed at somewhere currently unmapped
7747 mmap private fixed at somewhere already mapped
7748 mmap shared not fixed
7749 mmap shared fixed at somewhere currently unmapped
7750 mmap shared fixed at somewhere already mapped
7751 For private mappings, we should verify that changes cannot be read()
7752 back from the file, nor mmap's back from the file at a different
7753 address. (There have been systems where private was not correctly
7754 implemented like the infamous i386 svr4.0, and systems where the
7755 VM page cache was not coherent with the file system buffer cache
7756 like early versions of FreeBSD and possibly contemporary NetBSD.)
7757 For shared mappings, we should conversely verify that changes get
7758 propagated back to all the places they're supposed to be.
7760 Grep wants private fixed already mapped.
7761 The main things grep needs to know about mmap are:
7762 * does it exist and is it safe to write into the mmap'd area
7763 * how to use it (BSD variants) */
7765 #include <fcntl.h>
7766 #include <sys/mman.h>
7768 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7769 char *malloc ();
7770 #endif
7772 /* This mess was copied from the GNU getpagesize.h. */
7773 #ifndef HAVE_GETPAGESIZE
7774 /* Assume that all systems that can run configure have sys/param.h. */
7775 # ifndef HAVE_SYS_PARAM_H
7776 # define HAVE_SYS_PARAM_H 1
7777 # endif
7779 # ifdef _SC_PAGESIZE
7780 # define getpagesize() sysconf(_SC_PAGESIZE)
7781 # else /* no _SC_PAGESIZE */
7782 # ifdef HAVE_SYS_PARAM_H
7783 # include <sys/param.h>
7784 # ifdef EXEC_PAGESIZE
7785 # define getpagesize() EXEC_PAGESIZE
7786 # else /* no EXEC_PAGESIZE */
7787 # ifdef NBPG
7788 # define getpagesize() NBPG * CLSIZE
7789 # ifndef CLSIZE
7790 # define CLSIZE 1
7791 # endif /* no CLSIZE */
7792 # else /* no NBPG */
7793 # ifdef NBPC
7794 # define getpagesize() NBPC
7795 # else /* no NBPC */
7796 # ifdef PAGESIZE
7797 # define getpagesize() PAGESIZE
7798 # endif /* PAGESIZE */
7799 # endif /* no NBPC */
7800 # endif /* no NBPG */
7801 # endif /* no EXEC_PAGESIZE */
7802 # else /* no HAVE_SYS_PARAM_H */
7803 # define getpagesize() 8192 /* punt totally */
7804 # endif /* no HAVE_SYS_PARAM_H */
7805 # endif /* no _SC_PAGESIZE */
7807 #endif /* no HAVE_GETPAGESIZE */
7810 main ()
7812 char *data, *data2, *data3;
7813 int i, pagesize;
7814 int fd;
7816 pagesize = getpagesize ();
7818 /* First, make a file with some known garbage in it. */
7819 data = (char *) malloc (pagesize);
7820 if (!data)
7821 return 1;
7822 for (i = 0; i < pagesize; ++i)
7823 *(data + i) = rand ();
7824 umask (0);
7825 fd = creat ("conftest.mmap", 0600);
7826 if (fd < 0)
7827 return 1;
7828 if (write (fd, data, pagesize) != pagesize)
7829 return 1;
7830 close (fd);
7832 /* Next, try to mmap the file at a fixed address which already has
7833 something else allocated at it. If we can, also make sure that
7834 we see the same garbage. */
7835 fd = open ("conftest.mmap", O_RDWR);
7836 if (fd < 0)
7837 return 1;
7838 data2 = (char *) malloc (2 * pagesize);
7839 if (!data2)
7840 return 1;
7841 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7842 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7843 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7844 return 1;
7845 for (i = 0; i < pagesize; ++i)
7846 if (*(data + i) != *(data2 + i))
7847 return 1;
7849 /* Finally, make sure that changes to the mapped area do not
7850 percolate back to the file as seen by read(). (This is a bug on
7851 some variants of i386 svr4.0.) */
7852 for (i = 0; i < pagesize; ++i)
7853 *(data2 + i) = *(data2 + i) + 1;
7854 data3 = (char *) malloc (pagesize);
7855 if (!data3)
7856 return 1;
7857 if (read (fd, data3, pagesize) != pagesize)
7858 return 1;
7859 for (i = 0; i < pagesize; ++i)
7860 if (*(data + i) != *(data3 + i))
7861 return 1;
7862 close (fd);
7863 return 0;
7865 _ACEOF
7866 rm -f conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7868 case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_link") 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_func_mmap_fixed_mapped=yes
7887 else
7888 echo "$as_me: program exited with status $ac_status" >&5
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ( exit $ac_status )
7893 ac_cv_func_mmap_fixed_mapped=no
7895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7900 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7901 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7902 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7904 cat >>confdefs.h <<\_ACEOF
7905 #define HAVE_MMAP 1
7906 _ACEOF
7909 rm -f conftest.mmap
7914 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7915 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7916 aros_config_ldflags=""
7918 aros_shared_default=yes
7920 aros_shared_cflags="-fPIC"
7921 aros_shared_aflags=""
7922 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7923 aros_kernel_ldflags="-Wl,-rpath,./lib"
7925 aros_target_ar_flags="cr"
7926 aros_target_nm_flags="-C -ul"
7927 aros_target_strip_flags="--strip-unneeded -R.comment"
7929 aros_compiler_libs=
7930 aros_arch_libs=
7932 aros_target_genmap="-Wl,-Map -Xlinker"
7934 # Native flavour stuff
7935 aros_serial_debug="0"
7937 # Palm native flavour stuff
7938 aros_palm_debug_hack="0"
7940 # Unix flavour stuff
7941 aros_nesting_supervisor="0"
7943 # Collect-aros stuff: "-ius" to ignore undefined symbols
7944 ignore_undefined_symbols=""
7946 #-----------------------------------------------------------------------------
7949 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7950 # it switched on by default, and we use the host compiler, so it compiles AROS
7951 # code with this enabled resulting in link failures as we don't have support
7952 # for it.
7954 # We use two methods to disable it. For the host compiler (used to compile
7955 # some hosted modules), we test to see if the compiler supports stack
7956 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7957 # work on all platforms.
7959 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7960 # (this is done unconditionally, as it should have no effect on compilers
7961 # without the stack protection feature). This may be specific to the way that
7962 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7963 # strong enough to disable it in a generic way though, so we'll live with it
7964 # until another vendor ships GCC with it enabled in a different way, and deal
7965 # with it then.
7968 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7969 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7970 save_cflags="$CFLAGS"
7971 CFLAGS="$CFLAGS -fno-stack-protector"
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7980 main ()
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 use_no_stack_protector="yes"
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 use_no_stack_protector="no"
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8014 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8015 if test "x-$use_no_stack_protector" = "x-yes" ; then
8016 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8018 CFLAGS="$save_cflags"
8020 #-----------------------------------------------------------------------------
8022 # Disable pointer-signedness warnings if the compiler recognises the option
8023 # (this only works for the host compiler at the moment)
8025 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8026 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8027 save_cflags="$CFLAGS"
8028 CFLAGS="$CFLAGS -Wno-pointer-sign"
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8037 main ()
8041 return 0;
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 use_no_sign_warning="yes"
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 use_no_sign_warning="no"
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8071 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8072 if test "x-$use_no_sign_warning" = "x-yes" ; then
8073 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8075 CFLAGS="$save_cflags"
8077 #-----------------------------------------------------------------------------
8079 { echo "$as_me:$LINENO: checking for type of build" >&5
8080 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8081 # Check whether --enable-build_type was given.
8082 if test "${enable_build_type+set}" = set; then
8083 enableval=$enable_build_type; build_type=$enableval
8084 else
8085 build_type="personal"
8089 if test "$build_type" = "nightly"; then
8090 build_type_string="NIGHTLY"
8091 elif test "$build_type" = "snapshot"; then
8092 build_type_string="SNAPSHOT"
8093 elif test "$build_type" = "milestone"; then
8094 build_type_string="MILESTONE"
8095 elif test "$build_type" = "release"; then
8096 build_type_string="RELEASE"
8097 else
8098 build_type_string="PERSONAL"
8099 build_type="personal"
8102 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8104 { echo "$as_me:$LINENO: result: $build_type" >&5
8105 echo "${ECHO_T}$build_type" >&6; }
8107 #-----------------------------------------------------------------------------
8108 all_debug_types="messages stack modules mungwall symbols"
8110 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8111 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8112 # Check whether --enable-debug was given.
8113 if test "${enable_debug+set}" = set; then
8114 enableval=$enable_debug; debug="$enableval"
8115 else
8116 debug=""
8120 if test "$debug" = "" -o "$debug" = "no"; then
8121 debug="none"
8122 elif test "$debug" = "yes"; then
8123 debug="all"
8126 if test "$debug" = "all" ; then
8127 debug="messages stack modules symbols"
8128 for d in $all_debug_types; do
8129 export aros_${d}_debug="1"
8130 done
8131 else
8132 for d in $all_debug_types; do
8133 export aros_${d}_debug="0"
8134 done
8137 if test "$debug" != "none"; then
8138 debug=`echo $debug | sed s/,/\ /g`
8139 for d in $debug; do
8140 found="0"
8141 for d2 in $all_debug_types; do
8142 if test "$d2" = "$d"; then
8143 found="1"
8144 break
8146 done
8147 if test "$found" = "0"; then
8148 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8149 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8150 { (exit 1); exit 1; }; }
8152 export aros_${d}_debug="1"
8153 done
8154 aros_debug="yes"
8156 { echo "$as_me:$LINENO: result: $debug" >&5
8157 echo "${ECHO_T}$debug" >&6; }
8159 if test "$aros_messages_debug" = "1"; then
8160 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8161 else
8162 aros_messages_debug=""
8164 if test "$aros_symbols_debug" = "1"; then
8165 aros_symbols_debug="-g"
8166 else
8167 aros_symbols_debug=""
8170 # These are the flags to pass when compiling debugged programs
8171 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8172 aros_debug_aflags=""
8173 aros_debug_ldflags="$aros_symbols_debug"
8175 aros_crosstools="no"
8177 #-----------------------------------------------------------------------------
8178 # Checking if we should build crosstools..
8179 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8180 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8181 # Check whether --enable-crosstools was given.
8182 if test "${enable_crosstools+set}" = set; then
8183 enableval=$enable_crosstools; crosstools="$enableval"
8184 else
8185 crosstools="no"
8188 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8189 { echo "$as_me:$LINENO: result: yes" >&5
8190 echo "${ECHO_T}yes" >&6; }
8191 aros_crosstools="yes"
8192 else
8193 { echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6; }
8197 #-----------------------------------------------------------------------------
8198 # Checking for distcc and ccache.
8200 # Always apply the transforms in this particular order. Basically you should
8201 # always run 'ccache distcc compiler' in that order for the best performance.
8203 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8204 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8205 # Check whether --enable-distcc was given.
8206 if test "${enable_distcc+set}" = set; then
8207 enableval=$enable_distcc; distcc="$enableval"
8208 else
8209 distcc="no"
8212 if test "$distcc" != "" -a "$distcc" != "no"; then
8213 # AC_CHECK_PROG will print out the result in this case
8214 # Extract the first word of "distcc", so it can be a program name with args.
8215 set dummy distcc; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_DISTCC+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 case $DISTCC in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8241 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8243 esac
8245 DISTCC=$ac_cv_path_DISTCC
8246 if test -n "$DISTCC"; then
8247 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8248 echo "${ECHO_T}$DISTCC" >&6; }
8249 else
8250 { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8255 else
8256 { echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6; }
8260 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8261 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8262 # Check whether --enable-ccache was given.
8263 if test "${enable_ccache+set}" = set; then
8264 enableval=$enable_ccache; ccache="$enableval"
8265 else
8266 ccache="no"
8269 if test "$ccache" != "" -a "$ccache" != "no"; then
8270 # AC_CHECK_PROG will print out the result in this case
8271 # Extract the first word of "ccache", so it can be a program name with args.
8272 set dummy ccache; ac_word=$2
8273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8275 if test "${ac_cv_prog_CCACHE+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 if test -n "$CCACHE"; then
8279 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_CCACHE="ccache"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8294 IFS=$as_save_IFS
8298 CCACHE=$ac_cv_prog_CCACHE
8299 if test -n "$CCACHE"; then
8300 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8301 echo "${ECHO_T}$CCACHE" >&6; }
8302 else
8303 { echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6; }
8308 else
8309 { echo "$as_me:$LINENO: result: no" >&5
8310 echo "${ECHO_T}no" >&6; }
8313 #-----------------------------------------------------------------------------
8314 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8315 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8317 # Check whether --with-optimization was given.
8318 if test "${with_optimization+set}" = set; then
8319 withval=$with_optimization; optimization="$withval"
8320 else
8321 optimization="unknown"
8324 if test "$optimization" = "unknown"; then
8325 if test "$debug" != "none"; then
8326 optimization="-O0"
8327 else
8328 optimization="-O2"
8331 aros_config_cflags="$aros_config_cflags $optimization"
8332 { echo "$as_me:$LINENO: result: $optimization" >&5
8333 echo "${ECHO_T}$optimization" >&6; }
8335 #-----------------------------------------------------------------------------
8336 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8337 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8338 # Check whether --enable-target_variant was given.
8339 if test "${enable_target_variant+set}" = set; then
8340 enableval=$enable_target_variant; target_variant=$enableval
8341 else
8342 target_variant="none"
8345 if test "$target_variant" = "none"; then
8346 aros_target_variant=""
8347 aros_target_suffix=""
8348 else
8349 aros_target_variant="$target_variant"
8350 aros_target_suffix="-$target_variant"
8352 { echo "$as_me:$LINENO: result: $enableval" >&5
8353 echo "${ECHO_T}$enableval" >&6; }
8355 target_bootloader="none"
8357 #-----------------------------------------------------------------------------
8358 # This is the target configuration switch.
8359 case "$target_os" in
8360 linux*)
8361 aros_target_arch="linux"
8362 case "$target_cpu" in
8363 *m68k*)
8364 aros_target_cpu="m68k"
8365 aros_object_format="m68kelf"
8366 aros_flavour="emulcompat"
8367 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8368 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8369 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8370 gcc_target_cpu="mc68000"
8372 *i?86*)
8373 aros_target_cpu="i386"
8374 aros_object_format="elf_i386"
8375 aros_flavour="emulation"
8376 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8377 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8378 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8379 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8380 aros_config_ldflags="-m32 -march=i486"
8381 aros_kernel_ldflags="-melf_i386"
8382 aros_default_wbdepth=8
8383 gcc_target_cpu="i386"
8385 *x86_64*)
8386 aros_target_cpu="x86_64"
8387 aros_object_format="elf_x86_64"
8388 aros_flavour="emulation"
8389 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8390 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8391 aros_default_wbdepth=8
8392 gcc_target_cpu="x86_64"
8394 *powerpc*)
8395 aros_target_cpu="ppc"
8396 aros_object_format="elf32ppc"
8397 aros_flavour="emulation"
8398 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8399 aros_default_wbdepth=8
8400 gcc_target_cpu="ppc"
8402 # TODO
8403 # Same as powerpc, but I need this for the nightly build to work again.
8404 # Actually, the nightly should be made working with powerpc target.
8405 # That just was too much work for the moment, another week or two.
8406 *ppc*)
8407 aros_target_cpu="ppc"
8408 aros_object_format="elf32ppc"
8409 aros_flavour="emulation"
8410 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8411 aros_default_wbdepth=8
8412 gcc_target_cpu="ppc"
8414 *arm*)
8415 aros_target_cpu="arm"
8416 aros_object_format="armelf_linux_eabi"
8417 aros_flavour="emulation"
8418 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8419 gcc_target_cpu="arm"
8420 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8421 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8424 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8425 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8426 { (exit 1); exit 1; }; }
8428 esac
8432 aros_target_arch="pc"
8433 aros_shared_default="no"
8434 target_bootloader="grub2"
8435 case "$target_cpu" in
8436 *i?86*)
8437 aros_target_cpu="i386"
8440 if test "$aros_object_format" = "" ; then
8441 aros_object_format="elf_i386"
8443 aros_flavour="standalone"
8444 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8445 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8446 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8447 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8448 aros_config_ldflags="-m32 -march=i486"
8449 aros_kernel_ldflags="-melf_i386"
8450 aros_default_wbwidth=640
8451 aros_default_wbheight=480
8452 gcc_target_cpu="i386"
8454 *x86_64*)
8455 aros_target_cpu="x86_64"
8456 aros_serial_debug=1
8457 if test "$aros_object_format" = "" ; then
8458 aros_object_format="elf_x86_64"
8460 aros_flavour="standalone"
8461 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8462 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8463 aros_kernel_ldflags=""
8464 aros_default_wbwidth=640
8465 aros_default_wbheight=480
8466 gcc_target_cpu="x86_64"
8469 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8470 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8471 { (exit 1); exit 1; }; }
8473 esac
8476 prep)
8477 aros_target_arch="prep"
8478 aros_shared_default="no"
8479 aros_target_cpu="ppc"
8480 aros_object_format="elf32ppc"
8481 aros_flavour="ppcnative"
8482 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8483 aros_kernel_ldflags=""
8484 aros_default_wbwidth=640
8485 aros_default_wbheight=480
8486 gcc_target_cpu="ppc"
8489 freebsd*)
8490 aros_target_arch="freebsd"
8491 aros_target_cpu="i386"
8492 aros_flavour="emulation"
8493 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8494 gcc_target_cpu="i386"
8496 aros_target_strip_flags="-x"
8499 darwin*)
8500 aros_target_arch="darwin"
8501 aros_flavour="emulation"
8502 case "$target_cpu" in
8503 *i?86*)
8504 aros_target_cpu="i386"
8505 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8506 aros_kernel_cflags="$aros_kernel_cflags -m32"
8507 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8508 aros_default_wbdepth=8
8509 gcc_target_cpu="i386"
8510 aros_object_format="elf_i386"
8511 aros_target_strip_flags="-x"
8512 aros_target_cc="i386-aros-gcc"
8513 aros_target_cxx="i386-aros-g++"
8514 aros_target_ld="i386-aros-ld"
8515 aros_target_as="i386-aros-as"
8516 aros_target_ar="i386-aros-ar"
8517 aros_target_ranlib="i386-aros-ranlib"
8518 aros_target_nm="i386-aros-nm"
8519 aros_target_strip="i386-aros-strip"
8520 aros_target_objcopy="i386-aros-objcopy"
8521 aros_target_objdump="i386-aros-objdump"
8522 target_tool_prefix="i686-apple-darwin10-"
8524 *x86_64*)
8525 aros_target_cpu="x86_64"
8526 aros_object_format="elf_x86_64"
8527 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8528 aros_kernel_cflags="$aros_kernel_cflags -m64"
8529 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8530 aros_default_wbdepth=8
8531 gcc_target_cpu="x86_64"
8532 aros_target_cc="x86_64-aros-gcc"
8533 aros_target_cxx="x86_64-aros-g++"
8534 aros_target_ld="x86_64-aros-ld"
8535 aros_target_as="x86_64-aros-as"
8536 aros_target_ar="x86_64-aros-ar"
8537 aros_target_ranlib="x86_64-aros-ranlib"
8538 aros_target_nm="x86_64-aros-nm"
8539 aros_target_strip="x86_64-aros-strip"
8540 aros_target_objcopy="x86_64-aros-objcopy"
8541 aros_target_objdump="x86_64-aros-objdump"
8542 target_tool_prefix="i686-apple-darwin10-"
8544 *ppc*)
8545 aros_target_cpu="ppc"
8546 aros_object_format="elf32_ppc"
8547 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8548 aros_default_wbdepth=8
8549 gcc_target_cpu="ppc"
8550 aros_target_cc="ppc-aros-gcc"
8551 aros_target_cxx="ppc-aros-g++"
8552 aros_target_ld="ppc-aros-ld"
8553 aros_target_as="ppc-aros-as"
8554 aros_target_ar="ppc-aros-ar"
8555 aros_target_ranlib="ppc-aros-ranlib"
8556 aros_target_nm="ppc-aros-nm"
8557 aros_target_strip="ppc-aros-strip"
8558 aros_target_objcopy="ppc-aros-objcopy"
8559 aros_target_objdump="ppc-aros-objdump"
8560 target_tool_prefix="powerpc-apple-darwin10-"
8563 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8564 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8565 { (exit 1); exit 1; }; }
8567 esac
8570 dragonfly*)
8571 aros_target_arch="dragonfly"
8572 aros_flavour="emulation"
8573 case "$target_cpu" in
8574 *i?86*)
8575 aros_target_cpu="i386"
8576 aros_object_format="elf_i386"
8577 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8579 *x86_64*)
8580 aros_target_cpu="x86_64"
8581 aros_object_format="elf_x86_64"
8582 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8585 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8586 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8587 { (exit 1); exit 1; }; }
8589 esac
8592 netbsd*)
8593 aros_target_arch="netbsd"
8594 case "$target_cpu" in
8595 *m68k*)
8596 aros_target_cpu="m68k"
8597 aros_object_format="m68kelf"
8598 aros_flavour="emulcompat"
8599 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8600 gcc_target_cpu="mc68000"
8602 *i?86*)
8603 aros_target_cpu="i386"
8604 aros_object_format="elf_i386"
8605 aros_flavour="emulation"
8606 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8607 aros_default_wbdepth=8
8608 gcc_target_cpu="i386"
8611 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8612 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8613 { (exit 1); exit 1; }; }
8615 esac
8616 aros_target_genmap="-Wl,-M -Xlinker >"
8617 aros_flavour="emulation"
8618 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8621 openbsd*)
8622 aros_target_arch="openbsd"
8623 case "$target_cpu" in
8624 *i?86*)
8625 aros_target_cpu="i386"
8626 aros_object_format="elf_i386"
8627 aros_flavour="emulation"
8628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8629 gcc_target_cpu="i386"
8632 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8633 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8634 { (exit 1); exit 1; }; }
8636 esac
8637 aros_target_genmap="-Wl,-M -Xlinker >"
8638 aros_target_nm_flags="-u"
8639 aros_flavour="emulation"
8642 solaris*)
8643 aros_target_arch="solaris"
8644 case "$target_cpu" in
8645 *i?86*)
8646 aros_target_cpu="i386"
8647 aros_object_format="elf_i386"
8648 aros_flavour="emulation"
8649 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8650 aros_default_wbdepth=8
8651 gcc_target_cpu="i386"
8653 *sparc*)
8654 aros_target_cpu="sparc"
8655 aros_object_format="elf_sparc"
8656 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8657 gcc_target_cpu="sparc"
8660 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8661 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8662 { (exit 1); exit 1; }; }
8664 esac
8665 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8666 aros_flavour="emulation"
8669 morphos*)
8670 aros_target_arch="morphos"
8671 aros_shared_default="no"
8672 aros_target_cpu="ppc"
8673 aros_object_format="elf_ppc"
8674 aros_flavour="nativecompat"
8675 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8676 gcc_target_cpu="ppc"
8679 sam440)
8680 aros_target_arch="sam440"
8681 aros_shared_default="no"
8682 aros_target_cpu="ppc"
8683 aros_object_format="elf32ppc"
8684 aros_flavour="ppcnative"
8685 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8686 aros_kernel_ldflags=""
8687 aros_default_wbwidth=1024
8688 aros_default_wbheight=768
8689 aros_default_wbdepth=24
8690 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8691 gcc_target_cpu="powerpc"
8694 efika)
8695 aros_target_arch="efika"
8696 aros_shared_default="no"
8697 aros_target_cpu="arm"
8698 aros_object_format="armelf_linux_eabi"
8699 aros_flavour="standalone"
8700 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8701 aros_kernel_ldflags=""
8702 aros_default_wbwidth=1024
8703 aros_default_wbheight=600
8704 aros_arch_libs="-laeabi"
8705 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8706 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8709 chrp)
8710 aros_target_arch="chrp"
8711 aros_shared_default="no"
8712 aros_target_cpu="ppc"
8713 aros_object_format="elf32ppc"
8714 aros_flavour="ppcnative"
8715 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8716 aros_kernel_ldflags=""
8717 aros_default_wbwidth=640
8718 aros_default_wbheight=480
8719 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8720 gcc_target_cpu="powerpc"
8721 case "$aros_target_variant" in
8722 efika)
8723 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8725 esac
8728 amiga*)
8729 aros_target_arch="amiga"
8730 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8731 aros_shared_default="no"
8733 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8735 case "$target_cpu" in
8736 *m68k*)
8737 aros_target_cpu="m68k"
8738 aros_object_format="m68kelf"
8739 aros_flavour="nativecompat"
8740 gcc_target_cpu="mc68000"
8742 *ppc*)
8743 aros_cpu="ppc"
8744 aros_flavour="native"
8745 gcc_target_cpu="ppc"
8748 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8749 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8750 { (exit 1); exit 1; }; }
8752 esac
8755 mingw*)
8756 aros_target_arch="mingw32"
8757 aros_shared_default="no"
8758 aros_flavour="emulation"
8759 aros_shared_cflags=""
8760 need_dlopen="no"
8761 rescomp="windres"
8762 case "$target_cpu" in
8763 *i?86*)
8764 aros_target_cpu="i386"
8765 aros_object_format="elf_i386"
8766 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8767 aros_default_wbdepth=8
8768 gcc_target_cpu="i386"
8769 aros_target_cc="i386-aros-gcc"
8770 aros_target_cxx="i386-aros-g++"
8771 aros_target_ld="i386-aros-ld"
8772 aros_target_as="i386-aros-as"
8773 aros_target_ar="i386-aros-ar"
8774 aros_target_ranlib="i386-aros-ranlib"
8775 aros_target_nm="i386-aros-nm"
8776 aros_target_strip="i386-aros-strip"
8777 aros_target_objcopy="i386-aros-objcopy"
8778 aros_target_objdump="i386-aros-objdump"
8779 target_tool_prefix="i386-mingw32-"
8781 *x86_64*)
8782 aros_target_cpu="x86_64"
8783 aros_object_format="elf_x86_64"
8784 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8785 aros_default_wbdepth=8
8786 gcc_target_cpu="x86_64"
8787 aros_target_cc="x86_64-aros-gcc"
8788 aros_target_cxx="x86_64-aros-g++"
8789 aros_target_ld="x86_64-aros-ld"
8790 aros_target_as="x86_64-aros-as"
8791 aros_target_ar="x86_64-aros-ar"
8792 aros_target_ranlib="x86_64-aros-ranlib"
8793 aros_target_nm="x86_64-aros-nm"
8794 aros_target_strip="x86_64-aros-strip"
8795 aros_target_objcopy="x86_64-aros-objcopy"
8796 aros_target_objdump="x86_64-aros-objdump"
8797 target_tool_prefix="x86_64-w64-mingw32-"
8799 *arm*)
8800 aros_target_cpu="arm"
8801 aros_object_format="armelf_linux_eabi"
8802 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8803 aros_default_wbdepth=8
8804 gcc_target_cpu="arm"
8805 aros_target_cc="arm-elf-gcc"
8806 aros_target_ld="arm-elf-ld"
8807 aros_target_as="arm-elf-as"
8808 aros_target_ar="arm-elf-ar"
8809 aros_target_ranlib="arm-elf-ranlib"
8810 aros_target_nm="arm-elf-nm"
8811 aros_target_strip="arm-elf-strip"
8812 aros_target_objcopy="arm-elf-objcopy"
8813 aros_target_objdump="arm-elf-objdump"
8814 target_tool_prefix="arm-mingw32ce-"
8815 aros_default_wbwidth=160
8816 aros_default_wbheight=160
8819 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8820 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8821 { (exit 1); exit 1; }; }
8823 esac
8824 if test $host_os = "cygwin"; then
8825 aros_kernel_cflags="-mno-cygwin"
8828 pp*)
8829 aros_target_arch="pp"
8830 aros_shared_default="no"
8831 case "$target_cpu" in
8832 *m68k*)
8833 aros_target_cpu="m68k"
8834 aros_object_format="m68kelf"
8835 aros_flavour="palmnative"
8836 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8837 aros_default_wbwidth=160
8838 aros_default_wbheight=160
8839 aros_default_wbdepth=1
8840 aros_target_ar_flags="cru"
8841 aros_compiler_libs="-lgcc1"
8842 aros_shared_default=no
8843 aros_shared_cflags="-fpic"
8844 aros_shared_aflags=""
8845 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8846 aros_kernel_ldflags="-Wl,-rpath,./lib"
8847 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8848 aros_debug_aflags=""
8849 aros_debug_ldflags="$aros_symbols_debug"
8850 aros_mungwall_debug="0"
8851 aros_modules_debug="0"
8852 gcc_target_cpu="mc68000"
8853 ignore_undefined_symbols="-ius"
8856 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8857 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8858 { (exit 1); exit 1; }; }
8860 esac
8863 mac*)
8864 aros_target_arch="mac"
8865 aros_shared_default="no"
8866 case "$target_cpu" in
8867 *m68k*)
8868 aros_target_cpu="m68k"
8869 aros_object_format="m68kelf"
8870 aros_flavour="mac68knative"
8871 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8872 aros_default_wbwidth=512
8873 aros_default_wbheight=384
8874 aros_default_wbdepth=8
8875 aros_target_ar_flags="cru"
8876 aros_compiler_libs="-lgcc1"
8877 aros_shared_default=no
8878 aros_shared_cflags="-fpic"
8879 aros_shared_aflags=""
8880 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8881 aros_kernel_ldflags="-Wl,-rpath,./lib"
8882 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8883 aros_debug_aflags=""
8884 aros_debug_ldflags="$aros_symbols_debug"
8885 aros_mungwall_debug="0"
8886 aros_modules_debug="0"
8887 gcc_target_cpu="mc68000"
8888 ignore_undefined_symbols="-ius"
8891 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8892 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8893 { (exit 1); exit 1; }; }
8895 esac
8899 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8900 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8901 { (exit 1); exit 1; }; }
8903 esac
8905 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8906 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8908 # Check whether --with-portssources was given.
8909 if test "${with_portssources+set}" = set; then
8910 withval=$with_portssources; with_portssrcdir=$withval
8911 else
8912 with_portssrcdir="default"
8915 if test "$with_portssrcdir" = "default"; then
8916 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8917 else
8918 AROS_PORTSSRCDIR="$with_portssrcdir"
8920 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8921 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8923 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8924 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8926 # Check whether --with-bootloader was given.
8927 if test "${with_bootloader+set}" = set; then
8928 withval=$with_bootloader; target_bootloader=$withval
8929 else
8930 target_bootloader=$target_bootloader
8933 if test "$target_bootloader" = "none"; then
8934 aros_target_bootloader=""
8935 else
8936 aros_target_bootloader="$target_bootloader"
8938 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8939 echo "${ECHO_T}$target_bootloader" >&6; }
8941 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
8942 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
8944 # Check whether --with-iconset was given.
8945 if test "${with_iconset+set}" = set; then
8946 withval=$with_iconset; target_iconset=$withval
8947 else
8948 target_iconset="default"
8951 if test "$target_iconset" = "default"; then
8952 aros_target_iconset="Gorilla"
8953 target_iconset="default (Gorilla)"
8954 else
8955 aros_target_iconset="$target_iconset"
8957 { echo "$as_me:$LINENO: result: $target_iconset" >&5
8958 echo "${ECHO_T}$target_iconset" >&6; }
8960 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
8961 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
8963 # Check whether --with-theme was given.
8964 if test "${with_theme+set}" = set; then
8965 withval=$with_theme; target_guitheme=$withval
8966 else
8967 target_guitheme="default"
8970 if test "$target_guitheme" = "default"; then
8971 aros_target_guitheme="Ice"
8972 else
8973 aros_target_guitheme="$target_guitheme"
8975 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
8976 echo "${ECHO_T}$aros_target_guitheme" >&6; }
8978 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8979 # for target code)
8980 cross_compiling=no
8981 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8982 cross_compiling=yes
8984 if test "$aros_host_cpu" == "x86_64" ; then
8985 if test "$aros_target_cpu" == "i386" ; then
8986 if test "$aros_target_arch" != "mingw32"; then
8987 cross_compiling=no
8992 # Set prefix for target compiler etc. if we're cross-compiling
8993 # (should possibly be earlier but needs to be after AC_PROG_CC)
8994 if test "$cross_compiling" = "yes" ; then
8995 if test "$target_tool_prefix" = ""; then
8996 target_tool_prefix=${target_cpu}-elf-
8998 CC=${target_tool_prefix}gcc
9001 #-----------------------------------------------------------------------------
9003 # Disable pointer-signedness warnings if the compiler recognises the option
9005 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9006 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9007 save_cflags="$CFLAGS"
9008 CFLAGS="$CFLAGS -Wno-pointer-sign"
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h. */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9017 main ()
9021 return 0;
9023 _ACEOF
9024 rm -f conftest.$ac_objext
9025 if { (ac_try="$ac_compile"
9026 case "(($ac_try" in
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9029 esac
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_compile") 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && {
9038 test -z "$ac_c_werror_flag" ||
9039 test ! -s conftest.err
9040 } && test -s conftest.$ac_objext; then
9041 use_no_sign_warning="yes"
9042 else
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 use_no_sign_warning="no"
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9051 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9052 if test "x-$use_no_sign_warning" = "x-yes" ; then
9053 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9055 CFLAGS="$save_cflags"
9057 #-----------------------------------------------------------------------------
9059 # Find all the tools we need to compile. This could be cross-compiling
9060 # though! If that is the case we use the GNU form of the target and
9061 # simply add this to the front of the binary name. This is rather simple,
9062 # but it should work under most circumstances.
9064 # The default tools are to use the same as the host, but only if the
9065 # host and target CPU are the same. With GCC this is normally enough.
9068 aros_cc_pre=""
9069 aros_shared_ld="$aros_host_ld"
9071 aros_target_mkdep="$aros_host_mkdep"
9072 aros_target_incl_def="$aros_host_incl"
9074 aros_kernel_cc="$CC"
9076 # The default tools executables to be linked to.
9077 if test "$aros_target_cc" != ""; then
9078 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9079 set dummy $aros_target_cc; ac_word=$2
9080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9082 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 case $aros_target_cc in
9086 [\\/]* | ?:[\\/]*)
9087 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in $PATH
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9097 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9101 done
9102 done
9103 IFS=$as_save_IFS
9106 esac
9108 aros_target_cc=$ac_cv_path_aros_target_cc
9109 if test -n "$aros_target_cc"; then
9110 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9111 echo "${ECHO_T}$aros_target_cc" >&6; }
9112 else
9113 { echo "$as_me:$LINENO: result: no" >&5
9114 echo "${ECHO_T}no" >&6; }
9118 if test "$aros_target_cc" = ""; then
9119 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9120 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9121 { (exit 1); exit 1; }; }
9124 if test "$aros_target_ld" != ""; then
9125 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9126 set dummy $aros_target_ld; ac_word=$2
9127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9129 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132 case $aros_target_ld in
9133 [\\/]* | ?:[\\/]*)
9134 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9148 done
9149 done
9150 IFS=$as_save_IFS
9153 esac
9155 aros_target_ld=$ac_cv_path_aros_target_ld
9156 if test -n "$aros_target_ld"; then
9157 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9158 echo "${ECHO_T}$aros_target_ld" >&6; }
9159 else
9160 { echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6; }
9165 if test "$aros_target_ld" = ""; then
9166 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9167 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9168 { (exit 1); exit 1; }; }
9172 if test "$crosstools" != "yes"; then
9174 if test "$aros_target_as" = ""; then
9175 if test "$cross_compiling" = "yes" ; then
9176 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9177 set dummy ${target_tool_prefix}as; ac_word=$2
9178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9180 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 case $aros_target_as_ln in
9184 [\\/]* | ?:[\\/]*)
9185 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9199 done
9200 done
9201 IFS=$as_save_IFS
9204 esac
9206 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9207 if test -n "$aros_target_as_ln"; then
9208 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9209 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9210 else
9211 { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9216 else
9217 if test "$GCC" = "yes"; then
9218 aros_gcc_as=`$CC -print-prog-name=as`
9219 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9220 set dummy `basename $aros_gcc_as`; ac_word=$2
9221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9223 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226 case $aros_target_as_ln in
9227 [\\/]* | ?:[\\/]*)
9228 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 for as_dir in `dirname $aros_gcc_as`
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9238 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9242 done
9243 done
9244 IFS=$as_save_IFS
9247 esac
9249 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9250 if test -n "$aros_target_as_ln"; then
9251 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9252 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9253 else
9254 { echo "$as_me:$LINENO: result: no" >&5
9255 echo "${ECHO_T}no" >&6; }
9260 if test "$aros_target_as_ln" = ""; then
9261 # Extract the first word of "as", so it can be a program name with args.
9262 set dummy as; ac_word=$2
9263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9265 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 case $aros_target_as_ln in
9269 [\\/]* | ?:[\\/]*)
9270 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9289 esac
9291 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9292 if test -n "$aros_target_as_ln"; then
9293 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9294 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9295 else
9296 { echo "$as_me:$LINENO: result: no" >&5
9297 echo "${ECHO_T}no" >&6; }
9303 else
9304 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9305 set dummy $aros_target_as; ac_word=$2
9306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9308 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311 case $aros_target_as_ln in
9312 [\\/]* | ?:[\\/]*)
9313 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9323 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 break 2
9327 done
9328 done
9329 IFS=$as_save_IFS
9332 esac
9334 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9335 if test -n "$aros_target_as_ln"; then
9336 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9337 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9338 else
9339 { echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6; }
9346 if test "$aros_target_as_ln" = ""; then
9347 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9348 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9349 { (exit 1); exit 1; }; }
9352 if test "$aros_kernel_ld" = ""; then
9353 if test "$cross_compiling" = "yes" ; then
9354 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9355 set dummy ${target_tool_prefix}ld; ac_word=$2
9356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9358 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361 case $aros_kernel_ld in
9362 [\\/]* | ?:[\\/]*)
9363 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367 for as_dir in $PATH
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9373 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9375 break 2
9377 done
9378 done
9379 IFS=$as_save_IFS
9382 esac
9384 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9385 if test -n "$aros_kernel_ld"; then
9386 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9387 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9388 else
9389 { echo "$as_me:$LINENO: result: no" >&5
9390 echo "${ECHO_T}no" >&6; }
9394 else
9395 if test "$GCC" = "yes"; then
9396 aros_gcc_ld=`$CC -print-prog-name=ld`
9397 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9398 set dummy `basename $aros_gcc_ld`; ac_word=$2
9399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9401 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 case $aros_kernel_ld in
9405 [\\/]* | ?:[\\/]*)
9406 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410 for as_dir in `dirname $aros_gcc_ld`
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9416 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9418 break 2
9420 done
9421 done
9422 IFS=$as_save_IFS
9425 esac
9427 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9428 if test -n "$aros_kernel_ld"; then
9429 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9430 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9431 else
9432 { echo "$as_me:$LINENO: result: no" >&5
9433 echo "${ECHO_T}no" >&6; }
9438 if test "$aros_kernel_ld" = ""; then
9439 # Extract the first word of "ld", so it can be a program name with args.
9440 set dummy ld; ac_word=$2
9441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9443 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 case $aros_kernel_ld in
9447 [\\/]* | ?:[\\/]*)
9448 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 break 2
9462 done
9463 done
9464 IFS=$as_save_IFS
9467 esac
9469 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9470 if test -n "$aros_kernel_ld"; then
9471 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9472 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9473 else
9474 { echo "$as_me:$LINENO: result: no" >&5
9475 echo "${ECHO_T}no" >&6; }
9481 else
9482 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9483 set dummy $aros_kernel_ld; ac_word=$2
9484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9486 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 case $aros_kernel_ld in
9490 [\\/]* | ?:[\\/]*)
9491 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9501 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 break 2
9505 done
9506 done
9507 IFS=$as_save_IFS
9510 esac
9512 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9513 if test -n "$aros_kernel_ld"; then
9514 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9515 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9516 else
9517 { echo "$as_me:$LINENO: result: no" >&5
9518 echo "${ECHO_T}no" >&6; }
9524 if test "$aros_kernel_ld" = ""; then
9525 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9526 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9527 { (exit 1); exit 1; }; }
9530 if test "$aros_target_ar" = ""; then
9531 if test "$cross_compiling" = "yes" ; then
9532 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9533 set dummy ${target_tool_prefix}ar; ac_word=$2
9534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9536 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539 case $aros_target_ar_ln in
9540 [\\/]* | ?:[\\/]*)
9541 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9560 esac
9562 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9563 if test -n "$aros_target_ar_ln"; then
9564 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9565 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9566 else
9567 { echo "$as_me:$LINENO: result: no" >&5
9568 echo "${ECHO_T}no" >&6; }
9572 else
9573 if test "$GCC" = "yes"; then
9574 aros_gcc_ar=`$CC -print-prog-name=ar`
9575 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9576 set dummy `basename $aros_gcc_ar`; ac_word=$2
9577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9579 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582 case $aros_target_ar_ln in
9583 [\\/]* | ?:[\\/]*)
9584 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in `dirname $aros_gcc_ar`
9590 IFS=$as_save_IFS
9591 test -z "$as_dir" && as_dir=.
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9594 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 break 2
9598 done
9599 done
9600 IFS=$as_save_IFS
9603 esac
9605 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9606 if test -n "$aros_target_ar_ln"; then
9607 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9608 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9609 else
9610 { echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6; }
9616 if test "$aros_target_ar_ln" = ""; then
9617 # Extract the first word of "ar", so it can be a program name with args.
9618 set dummy ar; ac_word=$2
9619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9621 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624 case $aros_target_ar_ln in
9625 [\\/]* | ?:[\\/]*)
9626 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9632 IFS=$as_save_IFS
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 break 2
9640 done
9641 done
9642 IFS=$as_save_IFS
9645 esac
9647 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9648 if test -n "$aros_target_ar_ln"; then
9649 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9650 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9651 else
9652 { echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6; }
9659 else
9660 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9661 set dummy $aros_target_ar; ac_word=$2
9662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9664 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 case $aros_target_ar_ln in
9668 [\\/]* | ?:[\\/]*)
9669 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9675 IFS=$as_save_IFS
9676 test -z "$as_dir" && as_dir=.
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9679 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 break 2
9683 done
9684 done
9685 IFS=$as_save_IFS
9688 esac
9690 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9691 if test -n "$aros_target_ar_ln"; then
9692 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9693 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9694 else
9695 { echo "$as_me:$LINENO: result: no" >&5
9696 echo "${ECHO_T}no" >&6; }
9702 if test "$aros_target_ar_ln" = ""; then
9703 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9704 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9705 { (exit 1); exit 1; }; }
9708 if test "$aros_target_nm" = ""; then
9709 if test "$cross_compiling" = "yes" ; then
9710 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9711 set dummy ${target_tool_prefix}nm; ac_word=$2
9712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9714 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 case $aros_target_nm_ln in
9718 [\\/]* | ?:[\\/]*)
9719 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9733 done
9734 done
9735 IFS=$as_save_IFS
9738 esac
9740 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9741 if test -n "$aros_target_nm_ln"; then
9742 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9743 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9744 else
9745 { echo "$as_me:$LINENO: result: no" >&5
9746 echo "${ECHO_T}no" >&6; }
9750 else
9751 if test "$GCC" = "yes"; then
9752 aros_gcc_nm=`$CC -print-prog-name=nm`
9753 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9754 set dummy `basename $aros_gcc_nm`; ac_word=$2
9755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9757 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 case $aros_target_nm_ln in
9761 [\\/]* | ?:[\\/]*)
9762 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in `dirname $aros_gcc_nm`
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9772 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9776 done
9777 done
9778 IFS=$as_save_IFS
9781 esac
9783 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9784 if test -n "$aros_target_nm_ln"; then
9785 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9786 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9787 else
9788 { echo "$as_me:$LINENO: result: no" >&5
9789 echo "${ECHO_T}no" >&6; }
9794 if test "$aros_target_nm_ln" = ""; then
9795 # Extract the first word of "nm", so it can be a program name with args.
9796 set dummy nm; ac_word=$2
9797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9799 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 case $aros_target_nm_ln in
9803 [\\/]* | ?:[\\/]*)
9804 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9810 IFS=$as_save_IFS
9811 test -z "$as_dir" && as_dir=.
9812 for ac_exec_ext in '' $ac_executable_extensions; do
9813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9814 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9816 break 2
9818 done
9819 done
9820 IFS=$as_save_IFS
9823 esac
9825 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9826 if test -n "$aros_target_nm_ln"; then
9827 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9828 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9829 else
9830 { echo "$as_me:$LINENO: result: no" >&5
9831 echo "${ECHO_T}no" >&6; }
9837 else
9838 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9839 set dummy $aros_target_nm; ac_word=$2
9840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9842 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 case $aros_target_nm_ln in
9846 [\\/]* | ?:[\\/]*)
9847 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9861 done
9862 done
9863 IFS=$as_save_IFS
9866 esac
9868 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9869 if test -n "$aros_target_nm_ln"; then
9870 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9871 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9872 else
9873 { echo "$as_me:$LINENO: result: no" >&5
9874 echo "${ECHO_T}no" >&6; }
9880 if test "$aros_target_nm_ln" = ""; then
9881 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9882 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9883 { (exit 1); exit 1; }; }
9886 if test "$aros_target_objcopy" = ""; then
9887 if test "$cross_compiling" = "yes" ; then
9888 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9889 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9892 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 case $aros_target_objcopy_ln in
9896 [\\/]* | ?:[\\/]*)
9897 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9916 esac
9918 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9919 if test -n "$aros_target_objcopy_ln"; then
9920 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9921 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9922 else
9923 { echo "$as_me:$LINENO: result: no" >&5
9924 echo "${ECHO_T}no" >&6; }
9928 else
9929 if test "$GCC" = "yes"; then
9930 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9931 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9932 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9935 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938 case $aros_target_objcopy_ln in
9939 [\\/]* | ?:[\\/]*)
9940 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in `dirname $aros_gcc_objcopy`
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9950 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9954 done
9955 done
9956 IFS=$as_save_IFS
9959 esac
9961 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9962 if test -n "$aros_target_objcopy_ln"; then
9963 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9964 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9965 else
9966 { echo "$as_me:$LINENO: result: no" >&5
9967 echo "${ECHO_T}no" >&6; }
9972 if test "$aros_target_objcopy_ln" = ""; then
9973 # Extract the first word of "objcopy", so it can be a program name with args.
9974 set dummy objcopy; ac_word=$2
9975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9977 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 case $aros_target_objcopy_ln in
9981 [\\/]* | ?:[\\/]*)
9982 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9996 done
9997 done
9998 IFS=$as_save_IFS
10001 esac
10003 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10004 if test -n "$aros_target_objcopy_ln"; then
10005 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10006 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10007 else
10008 { echo "$as_me:$LINENO: result: no" >&5
10009 echo "${ECHO_T}no" >&6; }
10015 else
10016 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10017 set dummy $aros_target_objcopy; ac_word=$2
10018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10020 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 case $aros_target_objcopy_ln in
10024 [\\/]* | ?:[\\/]*)
10025 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10035 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10039 done
10040 done
10041 IFS=$as_save_IFS
10044 esac
10046 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10047 if test -n "$aros_target_objcopy_ln"; then
10048 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10049 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10050 else
10051 { echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6; }
10058 if test "$aros_target_objcopy_ln" = ""; then
10059 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10060 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10061 { (exit 1); exit 1; }; }
10064 if test "$aros_target_objdump" = ""; then
10065 if test "$cross_compiling" = "yes" ; then
10066 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10067 set dummy ${target_tool_prefix}objdump; ac_word=$2
10068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10070 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 case $aros_target_objdump_ln in
10074 [\\/]* | ?:[\\/]*)
10075 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079 for as_dir in $PATH
10081 IFS=$as_save_IFS
10082 test -z "$as_dir" && as_dir=.
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10085 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 break 2
10089 done
10090 done
10091 IFS=$as_save_IFS
10094 esac
10096 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10097 if test -n "$aros_target_objdump_ln"; then
10098 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10099 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10100 else
10101 { echo "$as_me:$LINENO: result: no" >&5
10102 echo "${ECHO_T}no" >&6; }
10106 else
10107 if test "$GCC" = "yes"; then
10108 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10109 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10110 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10113 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116 case $aros_target_objdump_ln in
10117 [\\/]* | ?:[\\/]*)
10118 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in `dirname $aros_gcc_objdump`
10124 IFS=$as_save_IFS
10125 test -z "$as_dir" && as_dir=.
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10128 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10130 break 2
10132 done
10133 done
10134 IFS=$as_save_IFS
10137 esac
10139 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10140 if test -n "$aros_target_objdump_ln"; then
10141 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10142 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10143 else
10144 { echo "$as_me:$LINENO: result: no" >&5
10145 echo "${ECHO_T}no" >&6; }
10150 if test "$aros_target_objdump_ln" = ""; then
10151 # Extract the first word of "objdump", so it can be a program name with args.
10152 set dummy objdump; ac_word=$2
10153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10155 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 case $aros_target_objdump_ln in
10159 [\\/]* | ?:[\\/]*)
10160 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10174 done
10175 done
10176 IFS=$as_save_IFS
10179 esac
10181 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10182 if test -n "$aros_target_objdump_ln"; then
10183 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10184 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10185 else
10186 { echo "$as_me:$LINENO: result: no" >&5
10187 echo "${ECHO_T}no" >&6; }
10193 else
10194 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10195 set dummy $aros_target_objdump; ac_word=$2
10196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10198 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201 case $aros_target_objdump_ln in
10202 [\\/]* | ?:[\\/]*)
10203 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10209 IFS=$as_save_IFS
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 break 2
10217 done
10218 done
10219 IFS=$as_save_IFS
10222 esac
10224 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10225 if test -n "$aros_target_objdump_ln"; then
10226 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10227 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10228 else
10229 { echo "$as_me:$LINENO: result: no" >&5
10230 echo "${ECHO_T}no" >&6; }
10236 if test "$aros_target_objdump_ln" = ""; then
10237 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10238 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10239 { (exit 1); exit 1; }; }
10242 if test "$aros_target_ranlib" = ""; then
10243 if test "$cross_compiling" = "yes" ; then
10244 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10245 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10248 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251 case $aros_target_ranlib_ln in
10252 [\\/]* | ?:[\\/]*)
10253 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10263 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10267 done
10268 done
10269 IFS=$as_save_IFS
10272 esac
10274 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10275 if test -n "$aros_target_ranlib_ln"; then
10276 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10277 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10278 else
10279 { echo "$as_me:$LINENO: result: no" >&5
10280 echo "${ECHO_T}no" >&6; }
10284 else
10285 if test "$GCC" = "yes"; then
10286 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10287 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10288 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10291 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 case $aros_target_ranlib_ln in
10295 [\\/]* | ?:[\\/]*)
10296 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in `dirname $aros_gcc_ranlib`
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10306 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 break 2
10310 done
10311 done
10312 IFS=$as_save_IFS
10315 esac
10317 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10318 if test -n "$aros_target_ranlib_ln"; then
10319 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10320 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10321 else
10322 { echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6; }
10328 if test "$aros_target_ranlib_ln" = ""; then
10329 # Extract the first word of "ranlib", so it can be a program name with args.
10330 set dummy ranlib; ac_word=$2
10331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10333 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336 case $aros_target_ranlib_ln in
10337 [\\/]* | ?:[\\/]*)
10338 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10352 done
10353 done
10354 IFS=$as_save_IFS
10357 esac
10359 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10360 if test -n "$aros_target_ranlib_ln"; then
10361 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10362 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10363 else
10364 { echo "$as_me:$LINENO: result: no" >&5
10365 echo "${ECHO_T}no" >&6; }
10371 else
10372 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10373 set dummy $aros_target_ranlib; ac_word=$2
10374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10376 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 case $aros_target_ranlib_ln in
10380 [\\/]* | ?:[\\/]*)
10381 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10395 done
10396 done
10397 IFS=$as_save_IFS
10400 esac
10402 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10403 if test -n "$aros_target_ranlib_ln"; then
10404 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10405 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10406 else
10407 { echo "$as_me:$LINENO: result: no" >&5
10408 echo "${ECHO_T}no" >&6; }
10414 if test "$aros_target_ranlib_ln" = ""; then
10415 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10416 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10417 { (exit 1); exit 1; }; }
10420 if test "$aros_target_strip" = ""; then
10421 if test "$cross_compiling" = "yes" ; then
10422 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10423 set dummy ${target_tool_prefix}strip; ac_word=$2
10424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10426 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429 case $aros_target_strip_ln in
10430 [\\/]* | ?:[\\/]*)
10431 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10437 IFS=$as_save_IFS
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10441 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 break 2
10445 done
10446 done
10447 IFS=$as_save_IFS
10450 esac
10452 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10453 if test -n "$aros_target_strip_ln"; then
10454 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10455 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10456 else
10457 { echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6; }
10462 else
10463 if test "$GCC" = "yes"; then
10464 aros_gcc_strip=`$CC -print-prog-name=strip`
10465 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10466 set dummy `basename $aros_gcc_strip`; ac_word=$2
10467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10469 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 case $aros_target_strip_ln in
10473 [\\/]* | ?:[\\/]*)
10474 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in `dirname $aros_gcc_strip`
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10484 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10488 done
10489 done
10490 IFS=$as_save_IFS
10493 esac
10495 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10496 if test -n "$aros_target_strip_ln"; then
10497 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10498 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10499 else
10500 { echo "$as_me:$LINENO: result: no" >&5
10501 echo "${ECHO_T}no" >&6; }
10506 if test "$aros_target_strip_ln" = ""; then
10507 # Extract the first word of "strip", so it can be a program name with args.
10508 set dummy strip; ac_word=$2
10509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10511 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 case $aros_target_strip_ln in
10515 [\\/]* | ?:[\\/]*)
10516 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10530 done
10531 done
10532 IFS=$as_save_IFS
10535 esac
10537 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10538 if test -n "$aros_target_strip_ln"; then
10539 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10540 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10541 else
10542 { echo "$as_me:$LINENO: result: no" >&5
10543 echo "${ECHO_T}no" >&6; }
10549 else
10550 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10551 set dummy $aros_target_strip; ac_word=$2
10552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10554 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557 case $aros_target_strip_ln in
10558 [\\/]* | ?:[\\/]*)
10559 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10573 done
10574 done
10575 IFS=$as_save_IFS
10578 esac
10580 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10581 if test -n "$aros_target_strip_ln"; then
10582 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10583 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10584 else
10585 { echo "$as_me:$LINENO: result: no" >&5
10586 echo "${ECHO_T}no" >&6; }
10592 if test "$aros_target_strip_ln" = ""; then
10593 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10594 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10595 { (exit 1); exit 1; }; }
10597 # Temporarily disabled in order to let Windows-hosted port to build.
10598 # if test "$aros_target_cxx" != ""; then
10599 # AC_PATH_PROG(aros_target_cxx,$aros_target_cxx)
10600 # AROS_REQUIRED(c++,$aros_target_cxx)
10601 # fi
10602 else
10603 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10604 aros_target_cxx=""
10607 if test "$rescomp" != ""; then
10608 if test "$cross_compiling" = "yes" ; then
10609 rescomp=${target_tool_prefix}${rescomp}
10611 # Extract the first word of "$rescomp", so it can be a program name with args.
10612 set dummy $rescomp; ac_word=$2
10613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10615 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618 case $aros_kernel_rescomp in
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10634 done
10635 done
10636 IFS=$as_save_IFS
10639 esac
10641 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10642 if test -n "$aros_kernel_rescomp"; then
10643 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10644 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10645 else
10646 { echo "$as_me:$LINENO: result: no" >&5
10647 echo "${ECHO_T}no" >&6; }
10651 if test "$aros_kernel_rescomp" = ""; then
10652 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10653 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10654 { (exit 1); exit 1; }; }
10658 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10659 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10660 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10661 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10662 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10663 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10664 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10666 # aros_cc_pre is a variable that is added to the front of the compiler name
10667 # in the generated aros-gcc shell script. We need this to enable the cache
10668 # to work across cleaned builds. Also, support DISTCC using the correct
10669 # environment variable.
10672 if test "x${DISTCC}" != "x" ; then
10673 if test "x${CCACHE}" != "x" ; then
10674 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10675 else
10676 aros_cc_pre="${DISTCC} "
10678 else
10679 if test "x${CCACHE}" != "x" ; then
10680 aros_cc_pre="${CCACHE} "
10684 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10686 aros_target_nostdinc_cflags=-nostdinc
10688 aros_target_nostartup_ldflags=-nostartfiles
10690 aros_target_nix_ldflags=-nix
10692 aros_target_detach_ldflags=-detach
10694 aros_target_nostdlib_ldflags=-nostdlib
10697 # Target tools
10698 if test "$aros_target_cc" = ""; then
10699 orig_target_cc=$aros_kernel_cc
10700 else
10701 orig_target_cc=$aros_target_cc
10703 if test "$aros_target_ld" = ""; then
10704 orig_target_ld=$aros_kernel_ld
10705 else
10706 orig_target_ld=$aros_target_ld
10708 if test "$GCC" = "yes"; then
10709 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10711 aros_target_cc="${prefix}-gcc"
10712 aros_target_as="${prefix}-as"
10713 aros_target_ld="${prefix}-ld"
10714 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10715 aros_target_objcopy=${prefix}-objcopy
10716 aros_target_objdump=${prefix}-objdump
10717 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10718 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10719 aros_kernel_nm="${prefix}-nm"
10720 aros_target_strip=${prefix}-strip
10722 # Find the system include path. We can suggest that an alternative is
10723 # used if we don't get it correct. The default is to use /usr/include.
10724 # Which is set in the aros_target_incl_def variable.
10726 # Check whether --enable-includes was given.
10727 if test "${enable_includes+set}" = set; then
10728 enableval=$enable_includes; aros_target_incl=$enable_includes
10729 else
10730 aros_target_incl=$aros_target_incl_def
10734 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10735 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10736 if test "$aros_target_cc_includes" = "" ; then
10737 #try to guess where the directory is
10738 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10739 if ! test -d $aros_target_cc_includes; then
10740 #the directory doesn't exist, we need to do some more work
10741 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10743 #these are the headers we're looling for
10744 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10745 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10746 zutil.h"
10748 dirs=
10749 for h in $headers; do
10750 #which other headers each of the above headers needs?
10751 deps=$(echo "#include <$h>" | \
10752 $aros_host_cc -E -M - 2>/dev/null | \
10753 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10755 #copy all the needed headers to a directory beneath gendir
10756 for d in $deps; do
10757 h=$(basename $d)
10758 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10759 sed -n "s,^.*/include\(/.*\),\1,p")
10760 ! test -d $dir && mkdir -p $dir
10761 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10762 done
10763 done
10766 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10767 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10770 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10771 # On GCC >= 4.0 -iquote should be used
10774 save_cc="$CC"
10775 save_cflags="$CFLAGS"
10776 CFLAGS="-iquote."
10777 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10778 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10787 main ()
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (ac_try="$ac_compile"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_compile") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest.$ac_objext; then
10811 has_iquote="yes"
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 has_iquote="no"
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10821 echo "${ECHO_T}$has_iquote" >&6; }
10822 if test "x-$has_iquote" = "x-yes" ; then
10823 host_cflags_iquote=-iquote
10824 host_cflags_iquote_end=
10825 else
10826 host_cflags_iquote=-I
10827 host_cflags_iquote_end=-I-
10829 kernel_cflags_iquote=$host_cflags_iquote
10830 kernel_cflags_iquote_end=$host_cflags_iquote_end
10831 if test "x-$cross_compiling" = "x-yes"; then
10832 CC="$aros_kernel_cc"
10833 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
10834 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
10835 cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h. */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10843 main ()
10847 return 0;
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest.$ac_objext; then
10867 use_no_stack_protector="yes"
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 use_no_stack_protector="no"
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10876 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
10877 echo "${ECHO_T}$use_no_stack_protector" >&6; }
10878 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10879 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10888 main ()
10892 return 0;
10894 _ACEOF
10895 rm -f conftest.$ac_objext
10896 if { (ac_try="$ac_compile"
10897 case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_compile") 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } && {
10909 test -z "$ac_c_werror_flag" ||
10910 test ! -s conftest.err
10911 } && test -s conftest.$ac_objext; then
10912 has_iquote="yes"
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 has_iquote="no"
10920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10922 echo "${ECHO_T}$has_iquote" >&6; }
10923 if test "x-$has_iquote" = "x-yes" ; then
10924 kernel_cflags_iquote=-iquote
10925 kernel_cflags_iquote_end=
10926 else
10927 kernel_cflags_iquote=-I
10928 kernel_cflags_iquote_end=-I-
10931 aros_cflags_iquote=$kernel_cflags_iquote
10932 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10933 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10934 CC="$orig_target_cc"
10935 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10936 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h. */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10945 main ()
10949 return 0;
10951 _ACEOF
10952 rm -f conftest.$ac_objext
10953 if { (ac_try="$ac_compile"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_compile") 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && {
10966 test -z "$ac_c_werror_flag" ||
10967 test ! -s conftest.err
10968 } && test -s conftest.$ac_objext; then
10969 has_iquote="yes"
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 has_iquote="no"
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10979 echo "${ECHO_T}$has_iquote" >&6; }
10980 if test "x-$has_iquote" = "x-yes" ; then
10981 aros_cflags_iquote=-iquote
10982 aros_cflags_iquote_end=
10983 else
10984 aros_cflags_iquote=-I
10985 aros_cflags_iquote_end=-I-
10988 if test "x-$use_no_stack_protector" = "x-yes" ; then
10989 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10992 #-----------------------------------------------------------------------------
10994 # Check if we can explicitly choose older version of symbol hashing
10996 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10997 CC="$aros_kernel_cc"
10998 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10999 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11008 main ()
11012 return 0;
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest$ac_exeext &&
11032 $as_test_x conftest$ac_exeext; then
11033 use_hash_style="yes"
11034 else
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 use_hash_style="no"
11041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11042 conftest$ac_exeext conftest.$ac_ext
11043 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11044 echo "${ECHO_T}$use_hash_style" >&6; }
11045 if test "x-$use_hash_style" = "x-yes" ; then
11046 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11048 CC="$save_cc"
11049 CFLAGS="$save_cflags"
11059 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11060 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11062 # Check whether --with-resolution was given.
11063 if test "${with_resolution+set}" = set; then
11064 withval=$with_resolution; resolution=$withval
11065 else
11066 resolution=none
11069 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11070 if test "$resolution" = "yes" ; then
11071 resolution="none"
11073 if test "$resolution" = "no" ; then
11074 resolution="none"
11076 if test "$resolution" != "none" ; then
11077 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11078 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11079 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11081 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11082 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11083 aros_cv_default_wbwidth=$aros_default_wbwidth
11084 aros_cv_default_wbheight=$aros_default_wbheight
11085 aros_cv_default_wbdepth=$aros_default_wbdepth
11087 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11088 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11090 # Check whether --with-serial-debug was given.
11091 if test "${with_serial_debug+set}" = set; then
11092 withval=$with_serial_debug; serial_debug=$withval
11093 else
11094 serial_debug=none
11097 if test "$aros_serial_debug" = 0 ; then
11098 serial_debug_forced=""
11099 if test "$serial_debug" = "yes" ; then
11100 serial_debug="2"
11102 if test "$serial_debug" = "no" ; then
11103 serial_debug="none"
11105 else
11106 serial_debug_forced="(forced)"
11107 serial_debug=$aros_serial_debug
11109 if test "$serial_debug" != "none" ; then
11110 aros_serial_debug=$serial_debug
11111 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11112 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11113 else
11114 { echo "$as_me:$LINENO: result: no" >&5
11115 echo "${ECHO_T}no" >&6; }
11118 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11119 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11120 # Check whether --enable-palm_debug_hack was given.
11121 if test "${enable_palm_debug_hack+set}" = set; then
11122 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11123 else
11124 palm_debug_hack="no"
11127 if test "$palm_debug_hack" = "yes" ; then
11128 aros_palm_debug_hack="1"
11130 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11131 echo "${ECHO_T}$palm_debug_hack" >&6; }
11134 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11135 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11136 # Check whether --enable-nesting_supervisor was given.
11137 if test "${enable_nesting_supervisor+set}" = set; then
11138 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11139 else
11140 nesting_supervisor="no"
11143 if test "$nesting_supervisor" = "yes" ; then
11144 aros_nesting_supervisor="1"
11146 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11147 echo "${ECHO_T}$nesting_supervisor" >&6; }
11150 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11152 if test "x-$need_dlopen" != "x-no" ; then
11153 { echo "$as_me:$LINENO: checking for dlopen" >&5
11154 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11155 if test "${ac_cv_func_dlopen+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h. */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11166 #define dlopen innocuous_dlopen
11168 /* System header to define __stub macros and hopefully few prototypes,
11169 which can conflict with char dlopen (); below.
11170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11171 <limits.h> exists even on freestanding compilers. */
11173 #ifdef __STDC__
11174 # include <limits.h>
11175 #else
11176 # include <assert.h>
11177 #endif
11179 #undef dlopen
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11184 #ifdef __cplusplus
11185 extern "C"
11186 #endif
11187 char dlopen ();
11188 /* The GNU C library defines this for functions which it implements
11189 to always fail with ENOSYS. Some functions are actually named
11190 something starting with __ and the normal name is an alias. */
11191 #if defined __stub_dlopen || defined __stub___dlopen
11192 choke me
11193 #endif
11196 main ()
11198 return dlopen ();
11200 return 0;
11202 _ACEOF
11203 rm -f conftest.$ac_objext conftest$ac_exeext
11204 if { (ac_try="$ac_link"
11205 case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_link") 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest$ac_exeext &&
11220 $as_test_x conftest$ac_exeext; then
11221 ac_cv_func_dlopen=yes
11222 else
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 ac_cv_func_dlopen=no
11229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11230 conftest$ac_exeext conftest.$ac_ext
11232 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11233 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11234 if test $ac_cv_func_dlopen = yes; then
11235 have_dl="yes"
11236 else
11237 have_dl="no"
11240 if test "x-$have_dl" = "x-no" ; then
11241 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11242 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246 ac_check_lib_save_LIBS=$LIBS
11247 LIBS="-ldl $LIBS"
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h. */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11255 /* Override any GCC internal prototype to avoid an error.
11256 Use char because int might match the return type of a GCC
11257 builtin and then its argument prototype would still apply. */
11258 #ifdef __cplusplus
11259 extern "C"
11260 #endif
11261 char dlopen ();
11263 main ()
11265 return dlopen ();
11267 return 0;
11269 _ACEOF
11270 rm -f conftest.$ac_objext conftest$ac_exeext
11271 if { (ac_try="$ac_link"
11272 case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_link") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest$ac_exeext &&
11287 $as_test_x conftest$ac_exeext; then
11288 ac_cv_lib_dl_dlopen=yes
11289 else
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 ac_cv_lib_dl_dlopen=no
11296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11297 conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11300 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11302 if test $ac_cv_lib_dl_dlopen = yes; then
11303 have_dl="yes"
11304 aros_host_ldflags="$aros_host_ldflags -ldl"
11305 else
11306 have_dl="no"
11310 if test "x-$have_dl" = "x-no" ; then
11311 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11312 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11313 { (exit 1); exit 1; }; }
11318 # Check whether --enable-x11_hidd was given.
11319 if test "${enable_x11_hidd+set}" = set; then
11320 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11321 else
11322 x11_hidd="auto"
11325 case "x-$x11_hidd" in
11326 x-yes|x-no|x-auto) ;;
11327 *) x11_hidd="auto" ;;
11328 esac
11330 ENABLE_X11=0
11332 if test "x-$x11_hidd" != "x-no" ; then
11334 { echo "$as_me:$LINENO: checking for X" >&5
11335 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11338 # Check whether --with-x was given.
11339 if test "${with_x+set}" = set; then
11340 withval=$with_x;
11343 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11344 if test "x$with_x" = xno; then
11345 # The user explicitly disabled X.
11346 have_x=disabled
11347 else
11348 case $x_includes,$x_libraries in #(
11349 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11350 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11351 { (exit 1); exit 1; }; };; #(
11352 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355 # One or both of the vars are not set, and there is no cached value.
11356 ac_x_includes=no ac_x_libraries=no
11357 rm -f -r conftest.dir
11358 if mkdir conftest.dir; then
11359 cd conftest.dir
11360 cat >Imakefile <<'_ACEOF'
11361 incroot:
11362 @echo incroot='${INCROOT}'
11363 usrlibdir:
11364 @echo usrlibdir='${USRLIBDIR}'
11365 libdir:
11366 @echo libdir='${LIBDIR}'
11367 _ACEOF
11368 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11369 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11370 for ac_var in incroot usrlibdir libdir; do
11371 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11372 done
11373 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11374 for ac_extension in a so sl dylib la dll; do
11375 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11376 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11377 ac_im_usrlibdir=$ac_im_libdir; break
11379 done
11380 # Screen out bogus values from the imake configuration. They are
11381 # bogus both because they are the default anyway, and because
11382 # using them would break gcc on systems where it needs fixed includes.
11383 case $ac_im_incroot in
11384 /usr/include) ac_x_includes= ;;
11385 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11386 esac
11387 case $ac_im_usrlibdir in
11388 /usr/lib | /lib) ;;
11389 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11390 esac
11392 cd ..
11393 rm -f -r conftest.dir
11396 # Standard set of common directories for X headers.
11397 # Check X11 before X11Rn because it is often a symlink to the current release.
11398 ac_x_header_dirs='
11399 /usr/X11/include
11400 /usr/X11R6/include
11401 /usr/X11R5/include
11402 /usr/X11R4/include
11404 /usr/include/X11
11405 /usr/include/X11R6
11406 /usr/include/X11R5
11407 /usr/include/X11R4
11409 /usr/local/X11/include
11410 /usr/local/X11R6/include
11411 /usr/local/X11R5/include
11412 /usr/local/X11R4/include
11414 /usr/local/include/X11
11415 /usr/local/include/X11R6
11416 /usr/local/include/X11R5
11417 /usr/local/include/X11R4
11419 /usr/X386/include
11420 /usr/x386/include
11421 /usr/XFree86/include/X11
11423 /usr/include
11424 /usr/local/include
11425 /usr/unsupported/include
11426 /usr/athena/include
11427 /usr/local/x11r5/include
11428 /usr/lpp/Xamples/include
11430 /usr/openwin/include
11431 /usr/openwin/share/include'
11433 if test "$ac_x_includes" = no; then
11434 # Guess where to find include files, by looking for Xlib.h.
11435 # First, try using that file with no special directory specified.
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h. */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <X11/Xlib.h>
11443 _ACEOF
11444 if { (ac_try="$ac_cpp conftest.$ac_ext"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } >/dev/null && {
11457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 }; then
11460 # We can compile using X headers with no special include directory.
11461 ac_x_includes=
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 for ac_dir in $ac_x_header_dirs; do
11467 if test -r "$ac_dir/X11/Xlib.h"; then
11468 ac_x_includes=$ac_dir
11469 break
11471 done
11474 rm -f conftest.err conftest.$ac_ext
11475 fi # $ac_x_includes = no
11477 if test "$ac_x_libraries" = no; then
11478 # Check for the libraries.
11479 # See if we find them without any special options.
11480 # Don't add to $LIBS permanently.
11481 ac_save_LIBS=$LIBS
11482 LIBS="-lX11 $LIBS"
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include <X11/Xlib.h>
11491 main ()
11493 XrmInitialize ()
11495 return 0;
11497 _ACEOF
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (ac_try="$ac_link"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest$ac_exeext &&
11515 $as_test_x conftest$ac_exeext; then
11516 LIBS=$ac_save_LIBS
11517 # We can link X programs with no special library path.
11518 ac_x_libraries=
11519 else
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 LIBS=$ac_save_LIBS
11524 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11526 # Don't even attempt the hair of trying to link an X program!
11527 for ac_extension in a so sl dylib la dll; do
11528 if test -r "$ac_dir/libX11.$ac_extension"; then
11529 ac_x_libraries=$ac_dir
11530 break 2
11532 done
11533 done
11536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11537 conftest$ac_exeext conftest.$ac_ext
11538 fi # $ac_x_libraries = no
11540 case $ac_x_includes,$ac_x_libraries in #(
11541 no,* | *,no | *\'*)
11542 # Didn't find X, or a directory has "'" in its name.
11543 ac_cv_have_x="have_x=no";; #(
11545 # Record where we found X for the cache.
11546 ac_cv_have_x="have_x=yes\
11547 ac_x_includes='$ac_x_includes'\
11548 ac_x_libraries='$ac_x_libraries'"
11549 esac
11551 ;; #(
11552 *) have_x=yes;;
11553 esac
11554 eval "$ac_cv_have_x"
11555 fi # $with_x != no
11557 if test "$have_x" != yes; then
11558 { echo "$as_me:$LINENO: result: $have_x" >&5
11559 echo "${ECHO_T}$have_x" >&6; }
11560 no_x=yes
11561 else
11562 # If each of the values was on the command line, it overrides each guess.
11563 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11564 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11565 # Update the cache value to reflect the command line values.
11566 ac_cv_have_x="have_x=yes\
11567 ac_x_includes='$x_includes'\
11568 ac_x_libraries='$x_libraries'"
11569 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11570 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11574 x_cflags=
11575 for path in $x_libraries
11577 x_cflags="$x_cflags -L$path"
11578 done
11580 for path in $x_includes
11582 x_cflags="$x_cflags -I$path"
11583 done
11585 if test "x-$no_x" = "x-yes" ; then
11587 if test "x-$x11_hidd" != "x-auto" ; then
11588 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11589 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11590 { (exit 1); exit 1; }; }
11593 else
11594 x11_hidd_target=kernel-x11gfx-kobj
11595 ENABLE_X11=1
11597 # Check whether --enable-x11_shm was given.
11598 if test "${enable_x11_shm+set}" = set; then
11599 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11600 else
11601 x11_hidd_shm="auto"
11604 case "x-$x11_hidd_shm" in
11605 x-yes|x-no|x-auto) ;;
11606 *) x11_hidd_shm="auto" ;;
11607 esac
11609 have_xshm=no
11611 if test "x-$x11_hidd_shm" != "x-no" ; then
11614 for ac_header in sys/ipc.h
11616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 ac_res=`eval echo '${'$as_ac_Header'}'`
11624 { echo "$as_me:$LINENO: result: $ac_res" >&5
11625 echo "${ECHO_T}$ac_res" >&6; }
11626 else
11627 # Is the header compilable?
11628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h. */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 $ac_includes_default
11637 #include <$ac_header>
11638 _ACEOF
11639 rm -f conftest.$ac_objext
11640 if { (ac_try="$ac_compile"
11641 case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644 esac
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_compile") 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } && {
11653 test -z "$ac_c_werror_flag" ||
11654 test ! -s conftest.err
11655 } && test -s conftest.$ac_objext; then
11656 ac_header_compiler=yes
11657 else
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 ac_header_compiler=no
11664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11666 echo "${ECHO_T}$ac_header_compiler" >&6; }
11668 # Is the header present?
11669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h. */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 #include <$ac_header>
11678 _ACEOF
11679 if { (ac_try="$ac_cpp conftest.$ac_ext"
11680 case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } >/dev/null && {
11692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11693 test ! -s conftest.err
11694 }; then
11695 ac_header_preproc=yes
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 ac_header_preproc=no
11703 rm -f conftest.err conftest.$ac_ext
11704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11705 echo "${ECHO_T}$ac_header_preproc" >&6; }
11707 # So? What about this header?
11708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11709 yes:no: )
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11714 ac_header_preproc=yes
11716 no:yes:* )
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11731 esac
11732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 eval "$as_ac_Header=\$ac_header_preproc"
11739 ac_res=`eval echo '${'$as_ac_Header'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741 echo "${ECHO_T}$ac_res" >&6; }
11744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11745 cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11747 _ACEOF
11751 done
11754 for ac_header in sys/shm.h
11756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 ac_res=`eval echo '${'$as_ac_Header'}'`
11764 { echo "$as_me:$LINENO: result: $ac_res" >&5
11765 echo "${ECHO_T}$ac_res" >&6; }
11766 else
11767 # Is the header compilable?
11768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <$ac_header>
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest.$ac_objext; then
11796 ac_header_compiler=yes
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_header_compiler=no
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 echo "${ECHO_T}$ac_header_compiler" >&6; }
11808 # Is the header present?
11809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h. */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <$ac_header>
11818 _ACEOF
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } >/dev/null && {
11832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11833 test ! -s conftest.err
11834 }; then
11835 ac_header_preproc=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_preproc=no
11843 rm -f conftest.err conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6; }
11847 # So? What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849 yes:no: )
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc=yes
11856 no:yes:* )
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11871 esac
11872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 eval "$as_ac_Header=\$ac_header_preproc"
11879 ac_res=`eval echo '${'$as_ac_Header'}'`
11880 { echo "$as_me:$LINENO: result: $ac_res" >&5
11881 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11885 cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11887 _ACEOF
11891 done
11894 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11896 save_cflags="$CFLAGS"
11897 CFLAGS="$CFLAGS $x_cflags"
11898 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11899 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11900 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903 ac_check_lib_save_LIBS=$LIBS
11904 LIBS="-lXext $LIBS"
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
11918 char XShmQueryExtension ();
11920 main ()
11922 return XShmQueryExtension ();
11924 return 0;
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (ac_try="$ac_link"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_link") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest$ac_exeext &&
11944 $as_test_x conftest$ac_exeext; then
11945 ac_cv_lib_Xext_XShmQueryExtension=yes
11946 else
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_cv_lib_Xext_XShmQueryExtension=no
11953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11954 conftest$ac_exeext conftest.$ac_ext
11955 LIBS=$ac_check_lib_save_LIBS
11957 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11958 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11959 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11960 have_xshm=yes
11963 CFLAGS="$save_cflags"
11967 if test "x-$have_xshm" = "x-yes" ; then
11968 DO_XSHM_SUPPORT="1"
11969 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11970 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11971 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11972 { (exit 1); exit 1; }; }
11973 else
11974 DO_XSHM_SUPPORT="0"
11978 # Check whether --enable-x11_vidmode was given.
11979 if test "${enable_x11_vidmode+set}" = set; then
11980 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11981 else
11982 x11_hidd_vidmode="auto"
11985 case "x-$x11_hidd_vidmode" in
11986 x-yes|x-no|x-auto) ;;
11987 *) x11_hidd_vidmode="auto" ;;
11988 esac
11990 have_vidmode=no
11992 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11994 save_cflags="$CFLAGS"
11995 CFLAGS="$CFLAGS $x_cflags"
11996 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11997 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
11998 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-lXxf86vm $LIBS"
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char XF86VidModeQueryExtension ();
12018 main ()
12020 return XF86VidModeQueryExtension ();
12022 return 0;
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_link") 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest$ac_exeext &&
12042 $as_test_x conftest$ac_exeext; then
12043 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12044 else
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12052 conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_check_lib_save_LIBS
12055 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12056 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12057 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12058 have_vidmode=yes
12061 CFLAGS="$save_cflags"
12064 if test "x-$have_vidmode" = "x-yes" ; then
12065 DO_VIDMODE_SUPPORT="1"
12066 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12067 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12068 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12069 { (exit 1); exit 1; }; }
12070 else
12071 DO_VIDMODE_SUPPORT="0"
12075 aros_host_x11_includes=$x_includes
12076 aros_host_x11_libdirs=$x_libraries
12080 # Check whether --enable-sdl_hidd was given.
12081 if test "${enable_sdl_hidd+set}" = set; then
12082 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12083 else
12084 sdl_hidd="auto"
12087 case "x-$sdl_hidd" in
12088 x-yes|x-no|x-auto) ;;
12089 *) sdl_hidd="auto" ;;
12090 esac
12092 if test "x-$sdl_hidd" != "x-no" ; then
12095 # Check whether --with-sdl-prefix was given.
12096 if test "${with_sdl_prefix+set}" = set; then
12097 withval=$with_sdl_prefix; sdl_prefix="$withval"
12098 else
12099 sdl_prefix=""
12103 # Check whether --with-sdl-exec-prefix was given.
12104 if test "${with_sdl_exec_prefix+set}" = set; then
12105 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12106 else
12107 sdl_exec_prefix=""
12110 # Check whether --enable-sdltest was given.
12111 if test "${enable_sdltest+set}" = set; then
12112 enableval=$enable_sdltest;
12113 else
12114 enable_sdltest=yes
12118 if test x$sdl_exec_prefix != x ; then
12119 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12120 if test x${SDL_CONFIG+set} != xset ; then
12121 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12124 if test x$sdl_prefix != x ; then
12125 sdl_args="$sdl_args --prefix=$sdl_prefix"
12126 if test x${SDL_CONFIG+set} != xset ; then
12127 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12131 if test "x$prefix" != xNONE; then
12132 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12134 # Extract the first word of "sdl-config", so it can be a program name with args.
12135 set dummy sdl-config; ac_word=$2
12136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12138 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 case $SDL_CONFIG in
12142 [\\/]* | ?:[\\/]*)
12143 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12153 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12157 done
12158 done
12159 IFS=$as_save_IFS
12161 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12163 esac
12165 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12166 if test -n "$SDL_CONFIG"; then
12167 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12168 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12169 else
12170 { echo "$as_me:$LINENO: result: no" >&5
12171 echo "${ECHO_T}no" >&6; }
12175 min_sdl_version=1.2.10
12176 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12177 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12178 no_sdl=""
12179 if test "$SDL_CONFIG" = "no" ; then
12180 no_sdl=yes
12181 else
12182 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12183 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12185 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12186 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12187 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12189 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12191 if test "x$enable_sdltest" = "xyes" ; then
12192 ac_save_CFLAGS="$CFLAGS"
12193 ac_save_CXXFLAGS="$CXXFLAGS"
12194 ac_save_LIBS="$LIBS"
12195 CFLAGS="$CFLAGS $SDL_CFLAGS"
12196 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12197 LIBS="$LIBS $SDL_LIBS"
12198 rm -f conf.sdltest
12199 if test "$cross_compiling" = yes; then
12200 echo $ac_n "cross compiling; assumed OK... $ac_c"
12201 else
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12209 #include <stdio.h>
12210 #include <stdlib.h>
12211 #include <string.h>
12212 #include "SDL.h"
12214 char*
12215 my_strdup (char *str)
12217 char *new_str;
12219 if (str)
12221 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12222 strcpy (new_str, str);
12224 else
12225 new_str = NULL;
12227 return new_str;
12230 int main (int argc, char *argv[])
12232 int major, minor, micro;
12233 char *tmp_version;
12235 /* This hangs on some systems (?)
12236 system ("touch conf.sdltest");
12238 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12240 /* HP/UX 9 (%@#!) writes to sscanf strings */
12241 tmp_version = my_strdup("$min_sdl_version");
12242 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12243 printf("%s, bad version string\n", "$min_sdl_version");
12244 exit(1);
12247 if (($sdl_major_version > major) ||
12248 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12249 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12251 return 0;
12253 else
12255 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12256 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12257 printf("*** best to upgrade to the required version.\n");
12258 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12259 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12260 printf("*** config.cache before re-running configure\n");
12261 return 1;
12266 _ACEOF
12267 rm -f conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12278 { (case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_try") 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12288 else
12289 echo "$as_me: program exited with status $ac_status" >&5
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ( exit $ac_status )
12294 no_sdl=yes
12296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12300 CFLAGS="$ac_save_CFLAGS"
12301 CXXFLAGS="$ac_save_CXXFLAGS"
12302 LIBS="$ac_save_LIBS"
12305 if test "x$no_sdl" = x ; then
12306 { echo "$as_me:$LINENO: result: yes" >&5
12307 echo "${ECHO_T}yes" >&6; }
12308 have_sdl="yes"
12309 else
12310 { echo "$as_me:$LINENO: result: no" >&5
12311 echo "${ECHO_T}no" >&6; }
12312 if test "$SDL_CONFIG" = "no" ; then
12313 echo "*** The sdl-config script installed by SDL could not be found"
12314 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12315 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12316 echo "*** full path to sdl-config."
12317 else
12318 if test -f conf.sdltest ; then
12320 else
12321 echo "*** Could not run SDL test program, checking why..."
12322 CFLAGS="$CFLAGS $SDL_CFLAGS"
12323 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12324 LIBS="$LIBS $SDL_LIBS"
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12332 #include <stdio.h>
12333 #include "SDL.h"
12335 int main(int argc, char *argv[])
12336 { return 0; }
12337 #undef main
12338 #define main K_and_R_C_main
12341 main ()
12343 return 0;
12345 return 0;
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (ac_try="$ac_link"
12350 case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353 esac
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_link") 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && {
12362 test -z "$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12364 } && test -s conftest$ac_exeext &&
12365 $as_test_x conftest$ac_exeext; then
12366 echo "*** The test program compiled, but did not run. This usually means"
12367 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12368 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12369 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12370 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12371 echo "*** is required on your system"
12372 echo "***"
12373 echo "*** If you have an old version installed, it is best to remove it, although"
12374 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 echo "*** The test program failed to compile or link. See the file config.log for the"
12380 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12381 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12382 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386 conftest$ac_exeext conftest.$ac_ext
12387 CFLAGS="$ac_save_CFLAGS"
12388 CXXFLAGS="$ac_save_CXXFLAGS"
12389 LIBS="$ac_save_LIBS"
12392 SDL_CFLAGS=""
12393 SDL_LIBS=""
12394 have_sdl="no"
12398 rm -f conf.sdltest
12401 if test "x-$have_sdl" != "x-yes" ; then
12403 if test "x-$sdl_hidd" != "x-auto" ; then
12404 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12405 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12406 { (exit 1); exit 1; }; }
12409 else
12410 sdl_hidd_target=kernel-hidd-sdl
12411 aros_host_sdl_cflags=SDL_CFLAGS
12412 aros_host_sdl_libs=SDL_LIBS
12419 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12420 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12421 # Check whether --enable-dbus was given.
12422 if test "${enable_dbus+set}" = set; then
12423 enableval=$enable_dbus; dbus="yes"
12424 else
12425 dbus="no"
12428 if test "$dbus" = "yes" ; then
12429 ENABLE_DBUS=1
12430 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12431 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12432 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12433 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12434 else
12435 ENABLE_DBUS=0
12437 { echo "$as_me:$LINENO: result: $dbus" >&5
12438 echo "${ECHO_T}$dbus" >&6; }
12442 # Generic
12452 # Host related
12475 # Target Related
12523 # Graphics Related
12538 # Native version related
12541 # Palm native version related
12544 # Unix/Hosted version related
12547 # DBUS related
12554 #X11 related
12557 # Debug related
12563 # Collect-aros stuff: "-ius" to ignore undefined symbols
12566 # C compiler related
12569 case "$aros_flavour" in
12570 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12571 aros_flavour="emulation" ;;
12572 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12573 aros_flavour="emulation" ;;
12574 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12575 aros_flavour="standalone";;
12576 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12577 aros_flavour="native" ;;
12578 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12579 aros_flavour="native" ;;
12580 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12581 aros_flavour="linklib" ;;
12582 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12583 aros_flavour="palmnative" ;;
12584 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12585 aros_flavour="mac68knative" ;;
12586 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12587 aros_flavour="ppcnative" ;;
12588 esac
12590 if test ! -d ${aros_inc_dir} ; then
12591 ${MKDIR} ${aros_inc_dir}
12593 if test ! -d ${aros_geninc_dir} ; then
12594 ${MKDIR} ${aros_geninc_dir}
12596 if test ! -d ${aros_hostcfg_dir} ; then
12597 ${MKDIR} ${aros_hostcfg_dir}
12599 if test ! -d ${aros_targetcfg_dir} ; then
12600 ${MKDIR} ${aros_targetcfg_dir}
12602 if test ! -d ${aros_tools_dir} ; then
12603 ${MKDIR} ${aros_tools_dir}
12605 if test ! -d ${aros_scripts_dir} ; then
12606 ${MKDIR} ${aros_scripts_dir}
12609 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12612 ac_config_commands="$ac_config_commands compiler_executable"
12614 ac_config_commands="$ac_config_commands genshared_executable"
12616 ac_config_commands="$ac_config_commands genmf_executable"
12619 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
12622 cat >confcache <<\_ACEOF
12623 # This file is a shell script that caches the results of configure
12624 # tests run on this system so they can be shared between configure
12625 # scripts and configure runs, see configure's option --config-cache.
12626 # It is not useful on other systems. If it contains results you don't
12627 # want to keep, you may remove or edit it.
12629 # config.status only pays attention to the cache file if you give it
12630 # the --recheck option to rerun configure.
12632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12634 # following values.
12636 _ACEOF
12638 # The following way of writing the cache mishandles newlines in values,
12639 # but we know of no workaround that is simple, portable, and efficient.
12640 # So, we kill variables containing newlines.
12641 # Ultrix sh set writes to stderr and can't be redirected directly,
12642 # and sets the high bit in the cache file unless we assign to the vars.
12644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12645 eval ac_val=\$$ac_var
12646 case $ac_val in #(
12647 *${as_nl}*)
12648 case $ac_var in #(
12649 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12650 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12651 esac
12652 case $ac_var in #(
12653 _ | IFS | as_nl) ;; #(
12654 *) $as_unset $ac_var ;;
12655 esac ;;
12656 esac
12657 done
12659 (set) 2>&1 |
12660 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12661 *${as_nl}ac_space=\ *)
12662 # `set' does not quote correctly, so add quotes (double-quote
12663 # substitution turns \\\\ into \\, and sed turns \\ into \).
12664 sed -n \
12665 "s/'/'\\\\''/g;
12666 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12667 ;; #(
12669 # `set' quotes correctly as required by POSIX, so do not add quotes.
12670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12672 esac |
12673 sort
12675 sed '
12676 /^ac_cv_env_/b end
12677 t clear
12678 :clear
12679 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12680 t end
12681 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12682 :end' >>confcache
12683 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12684 if test -w "$cache_file"; then
12685 test "x$cache_file" != "x/dev/null" &&
12686 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12687 echo "$as_me: updating cache $cache_file" >&6;}
12688 cat confcache >$cache_file
12689 else
12690 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12691 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12694 rm -f confcache
12696 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12697 # Let make expand exec_prefix.
12698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12700 DEFS=-DHAVE_CONFIG_H
12702 ac_libobjs=
12703 ac_ltlibobjs=
12704 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12705 # 1. Remove the extension, and $U if already installed.
12706 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12707 ac_i=`echo "$ac_i" | sed "$ac_script"`
12708 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12709 # will be set to the directory where LIBOBJS objects are built.
12710 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12711 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12712 done
12713 LIBOBJS=$ac_libobjs
12715 LTLIBOBJS=$ac_ltlibobjs
12719 : ${CONFIG_STATUS=./config.status}
12720 ac_clean_files_save=$ac_clean_files
12721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12722 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12723 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12724 cat >$CONFIG_STATUS <<_ACEOF
12725 #! $SHELL
12726 # Generated by $as_me.
12727 # Run this file to recreate the current configuration.
12728 # Compiler output produced by configure, useful for debugging
12729 # configure, is in config.log if it exists.
12731 debug=false
12732 ac_cs_recheck=false
12733 ac_cs_silent=false
12734 SHELL=\${CONFIG_SHELL-$SHELL}
12735 _ACEOF
12737 cat >>$CONFIG_STATUS <<\_ACEOF
12738 ## --------------------- ##
12739 ## M4sh Initialization. ##
12740 ## --------------------- ##
12742 # Be more Bourne compatible
12743 DUALCASE=1; export DUALCASE # for MKS sh
12744 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12745 emulate sh
12746 NULLCMD=:
12747 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12748 # is contrary to our usage. Disable this feature.
12749 alias -g '${1+"$@"}'='"$@"'
12750 setopt NO_GLOB_SUBST
12751 else
12752 case `(set -o) 2>/dev/null` in
12753 *posix*) set -o posix ;;
12754 esac
12761 # PATH needs CR
12762 # Avoid depending upon Character Ranges.
12763 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12764 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12765 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12766 as_cr_digits='0123456789'
12767 as_cr_alnum=$as_cr_Letters$as_cr_digits
12769 # The user is always right.
12770 if test "${PATH_SEPARATOR+set}" != set; then
12771 echo "#! /bin/sh" >conf$$.sh
12772 echo "exit 0" >>conf$$.sh
12773 chmod +x conf$$.sh
12774 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12775 PATH_SEPARATOR=';'
12776 else
12777 PATH_SEPARATOR=:
12779 rm -f conf$$.sh
12782 # Support unset when possible.
12783 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12784 as_unset=unset
12785 else
12786 as_unset=false
12790 # IFS
12791 # We need space, tab and new line, in precisely that order. Quoting is
12792 # there to prevent editors from complaining about space-tab.
12793 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12794 # splitting by setting IFS to empty value.)
12795 as_nl='
12797 IFS=" "" $as_nl"
12799 # Find who we are. Look in the path if we contain no directory separator.
12800 case $0 in
12801 *[\\/]* ) as_myself=$0 ;;
12802 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12808 done
12809 IFS=$as_save_IFS
12812 esac
12813 # We did not find ourselves, most probably we were run as `sh COMMAND'
12814 # in which case we are not to be found in the path.
12815 if test "x$as_myself" = x; then
12816 as_myself=$0
12818 if test ! -f "$as_myself"; then
12819 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12820 { (exit 1); exit 1; }
12823 # Work around bugs in pre-3.0 UWIN ksh.
12824 for as_var in ENV MAIL MAILPATH
12825 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12826 done
12827 PS1='$ '
12828 PS2='> '
12829 PS4='+ '
12831 # NLS nuisances.
12832 for as_var in \
12833 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12834 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12835 LC_TELEPHONE LC_TIME
12837 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12838 eval $as_var=C; export $as_var
12839 else
12840 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12842 done
12844 # Required to use basename.
12845 if expr a : '\(a\)' >/dev/null 2>&1 &&
12846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12847 as_expr=expr
12848 else
12849 as_expr=false
12852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12853 as_basename=basename
12854 else
12855 as_basename=false
12859 # Name of the executable.
12860 as_me=`$as_basename -- "$0" ||
12861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12862 X"$0" : 'X\(//\)$' \| \
12863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12864 echo X/"$0" |
12865 sed '/^.*\/\([^/][^/]*\)\/*$/{
12866 s//\1/
12869 /^X\/\(\/\/\)$/{
12870 s//\1/
12873 /^X\/\(\/\).*/{
12874 s//\1/
12877 s/.*/./; q'`
12879 # CDPATH.
12880 $as_unset CDPATH
12884 as_lineno_1=$LINENO
12885 as_lineno_2=$LINENO
12886 test "x$as_lineno_1" != "x$as_lineno_2" &&
12887 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12889 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12890 # uniformly replaced by the line number. The first 'sed' inserts a
12891 # line-number line after each line using $LINENO; the second 'sed'
12892 # does the real work. The second script uses 'N' to pair each
12893 # line-number line with the line containing $LINENO, and appends
12894 # trailing '-' during substitution so that $LINENO is not a special
12895 # case at line end.
12896 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12897 # scripts with optimization help from Paolo Bonzini. Blame Lee
12898 # E. McMahon (1931-1989) for sed's syntax. :-)
12899 sed -n '
12901 /[$]LINENO/=
12902 ' <$as_myself |
12903 sed '
12904 s/[$]LINENO.*/&-/
12905 t lineno
12907 :lineno
12909 :loop
12910 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12911 t loop
12912 s/-\n.*//
12913 ' >$as_me.lineno &&
12914 chmod +x "$as_me.lineno" ||
12915 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12916 { (exit 1); exit 1; }; }
12918 # Don't try to exec as it changes $[0], causing all sort of problems
12919 # (the dirname of $[0] is not the place where we might find the
12920 # original and so on. Autoconf is especially sensitive to this).
12921 . "./$as_me.lineno"
12922 # Exit status is that of the last command.
12923 exit
12927 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12928 as_dirname=dirname
12929 else
12930 as_dirname=false
12933 ECHO_C= ECHO_N= ECHO_T=
12934 case `echo -n x` in
12935 -n*)
12936 case `echo 'x\c'` in
12937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12938 *) ECHO_C='\c';;
12939 esac;;
12941 ECHO_N='-n';;
12942 esac
12944 if expr a : '\(a\)' >/dev/null 2>&1 &&
12945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12946 as_expr=expr
12947 else
12948 as_expr=false
12951 rm -f conf$$ conf$$.exe conf$$.file
12952 if test -d conf$$.dir; then
12953 rm -f conf$$.dir/conf$$.file
12954 else
12955 rm -f conf$$.dir
12956 mkdir conf$$.dir
12958 echo >conf$$.file
12959 if ln -s conf$$.file conf$$ 2>/dev/null; then
12960 as_ln_s='ln -s'
12961 # ... but there are two gotchas:
12962 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12963 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12964 # In both cases, we have to default to `cp -p'.
12965 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12966 as_ln_s='cp -p'
12967 elif ln conf$$.file conf$$ 2>/dev/null; then
12968 as_ln_s=ln
12969 else
12970 as_ln_s='cp -p'
12972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12973 rmdir conf$$.dir 2>/dev/null
12975 if mkdir -p . 2>/dev/null; then
12976 as_mkdir_p=:
12977 else
12978 test -d ./-p && rmdir ./-p
12979 as_mkdir_p=false
12982 if test -x / >/dev/null 2>&1; then
12983 as_test_x='test -x'
12984 else
12985 if ls -dL / >/dev/null 2>&1; then
12986 as_ls_L_option=L
12987 else
12988 as_ls_L_option=
12990 as_test_x='
12991 eval sh -c '\''
12992 if test -d "$1"; then
12993 test -d "$1/.";
12994 else
12995 case $1 in
12996 -*)set "./$1";;
12997 esac;
12998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12999 ???[sx]*):;;*)false;;esac;fi
13000 '\'' sh
13003 as_executable_p=$as_test_x
13005 # Sed expression to map a string onto a valid CPP name.
13006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13008 # Sed expression to map a string onto a valid variable name.
13009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13012 exec 6>&1
13014 # Save the log message, to keep $[0] and so on meaningful, and to
13015 # report actual input values of CONFIG_FILES etc. instead of their
13016 # values after options handling.
13017 ac_log="
13018 This file was extended by $as_me, which was
13019 generated by GNU Autoconf 2.61. Invocation command line was
13021 CONFIG_FILES = $CONFIG_FILES
13022 CONFIG_HEADERS = $CONFIG_HEADERS
13023 CONFIG_LINKS = $CONFIG_LINKS
13024 CONFIG_COMMANDS = $CONFIG_COMMANDS
13025 $ $0 $@
13027 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13030 _ACEOF
13032 cat >>$CONFIG_STATUS <<_ACEOF
13033 # Files that config.status was made for.
13034 config_files="$ac_config_files"
13035 config_headers="$ac_config_headers"
13036 config_commands="$ac_config_commands"
13038 _ACEOF
13040 cat >>$CONFIG_STATUS <<\_ACEOF
13041 ac_cs_usage="\
13042 \`$as_me' instantiates files from templates according to the
13043 current configuration.
13045 Usage: $0 [OPTIONS] [FILE]...
13047 -h, --help print this help, then exit
13048 -V, --version print version number and configuration settings, then exit
13049 -q, --quiet do not print progress messages
13050 -d, --debug don't remove temporary files
13051 --recheck update $as_me by reconfiguring in the same conditions
13052 --file=FILE[:TEMPLATE]
13053 instantiate the configuration file FILE
13054 --header=FILE[:TEMPLATE]
13055 instantiate the configuration header FILE
13057 Configuration files:
13058 $config_files
13060 Configuration headers:
13061 $config_headers
13063 Configuration commands:
13064 $config_commands
13066 Report bugs to <bug-autoconf@gnu.org>."
13068 _ACEOF
13069 cat >>$CONFIG_STATUS <<_ACEOF
13070 ac_cs_version="\\
13071 config.status
13072 configured by $0, generated by GNU Autoconf 2.61,
13073 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13075 Copyright (C) 2006 Free Software Foundation, Inc.
13076 This config.status script is free software; the Free Software Foundation
13077 gives unlimited permission to copy, distribute and modify it."
13079 ac_pwd='$ac_pwd'
13080 srcdir='$srcdir'
13081 _ACEOF
13083 cat >>$CONFIG_STATUS <<\_ACEOF
13084 # If no file are specified by the user, then we need to provide default
13085 # value. By we need to know if files were specified by the user.
13086 ac_need_defaults=:
13087 while test $# != 0
13089 case $1 in
13090 --*=*)
13091 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13092 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13093 ac_shift=:
13096 ac_option=$1
13097 ac_optarg=$2
13098 ac_shift=shift
13100 esac
13102 case $ac_option in
13103 # Handling of the options.
13104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13105 ac_cs_recheck=: ;;
13106 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13107 echo "$ac_cs_version"; exit ;;
13108 --debug | --debu | --deb | --de | --d | -d )
13109 debug=: ;;
13110 --file | --fil | --fi | --f )
13111 $ac_shift
13112 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13113 ac_need_defaults=false;;
13114 --header | --heade | --head | --hea )
13115 $ac_shift
13116 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13117 ac_need_defaults=false;;
13118 --he | --h)
13119 # Conflict between --help and --header
13120 { echo "$as_me: error: ambiguous option: $1
13121 Try \`$0 --help' for more information." >&2
13122 { (exit 1); exit 1; }; };;
13123 --help | --hel | -h )
13124 echo "$ac_cs_usage"; exit ;;
13125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13127 ac_cs_silent=: ;;
13129 # This is an error.
13130 -*) { echo "$as_me: error: unrecognized option: $1
13131 Try \`$0 --help' for more information." >&2
13132 { (exit 1); exit 1; }; } ;;
13134 *) ac_config_targets="$ac_config_targets $1"
13135 ac_need_defaults=false ;;
13137 esac
13138 shift
13139 done
13141 ac_configure_extra_args=
13143 if $ac_cs_silent; then
13144 exec 6>/dev/null
13145 ac_configure_extra_args="$ac_configure_extra_args --silent"
13148 _ACEOF
13149 cat >>$CONFIG_STATUS <<_ACEOF
13150 if \$ac_cs_recheck; then
13151 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13152 CONFIG_SHELL=$SHELL
13153 export CONFIG_SHELL
13154 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13157 _ACEOF
13158 cat >>$CONFIG_STATUS <<\_ACEOF
13159 exec 5>>config.log
13161 echo
13162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13163 ## Running $as_me. ##
13164 _ASBOX
13165 echo "$ac_log"
13166 } >&5
13168 _ACEOF
13169 cat >>$CONFIG_STATUS <<_ACEOF
13171 # INIT-COMMANDS
13174 aros_host_exe_suffix=${aros_host_exe_suffix}
13175 aros_tools_dir=${aros_tools_dir}
13176 aros_target_cpu=${aros_target_cpu}
13177 aros_target_arch=${aros_target_arch}
13178 aros_target_suffix=${aros_target_suffix}
13179 aros_target_nm_ln=${aros_target_nm_ln}
13180 aros_target_as_ln=${aros_target_as_ln}
13181 aros_target_ar_ln=${aros_target_ar_ln}
13182 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13183 aros_target_objdump_ln=${aros_target_objdump_ln}
13184 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13185 aros_target_strip_ln=${aros_target_strip_ln}
13188 aros_scripts_dir=${aros_scripts_dir}
13190 aros_tools_dir=${aros_tools_dir}
13193 _ACEOF
13195 cat >>$CONFIG_STATUS <<\_ACEOF
13197 # Handling of arguments.
13198 for ac_config_target in $ac_config_targets
13200 case $ac_config_target in
13201 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13202 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13203 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13204 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13206 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13207 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13208 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13209 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13210 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13211 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13212 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13213 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13214 "${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" ;;
13215 "${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" ;;
13216 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13217 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13218 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13220 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13221 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13222 { (exit 1); exit 1; }; };;
13223 esac
13224 done
13227 # If the user did not use the arguments to specify the items to instantiate,
13228 # then the envvar interface is used. Set only those that are not.
13229 # We use the long form for the default assignment because of an extremely
13230 # bizarre bug on SunOS 4.1.3.
13231 if $ac_need_defaults; then
13232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13237 # Have a temporary directory for convenience. Make it in the build tree
13238 # simply because there is no reason against having it here, and in addition,
13239 # creating and moving files from /tmp can sometimes cause problems.
13240 # Hook for its removal unless debugging.
13241 # Note that there is a small window in which the directory will not be cleaned:
13242 # after its creation but before its name has been assigned to `$tmp'.
13243 $debug ||
13245 tmp=
13246 trap 'exit_status=$?
13247 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13249 trap '{ (exit 1); exit 1; }' 1 2 13 15
13251 # Create a (secure) tmp directory for tmp files.
13254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13255 test -n "$tmp" && test -d "$tmp"
13256 } ||
13258 tmp=./conf$$-$RANDOM
13259 (umask 077 && mkdir "$tmp")
13260 } ||
13262 echo "$me: cannot create a temporary directory in ." >&2
13263 { (exit 1); exit 1; }
13267 # Set up the sed scripts for CONFIG_FILES section.
13270 # No need to generate the scripts if there are no CONFIG_FILES.
13271 # This happens for instance when ./config.status config.h
13272 if test -n "$CONFIG_FILES"; then
13274 _ACEOF
13278 ac_delim='%!_!# '
13279 for ac_last_try in false false false false false :; do
13280 cat >conf$$subs.sed <<_ACEOF
13281 SHELL!$SHELL$ac_delim
13282 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13283 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13284 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13285 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13286 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13287 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13288 exec_prefix!$exec_prefix$ac_delim
13289 prefix!$prefix$ac_delim
13290 program_transform_name!$program_transform_name$ac_delim
13291 bindir!$bindir$ac_delim
13292 sbindir!$sbindir$ac_delim
13293 libexecdir!$libexecdir$ac_delim
13294 datarootdir!$datarootdir$ac_delim
13295 datadir!$datadir$ac_delim
13296 sysconfdir!$sysconfdir$ac_delim
13297 sharedstatedir!$sharedstatedir$ac_delim
13298 localstatedir!$localstatedir$ac_delim
13299 includedir!$includedir$ac_delim
13300 oldincludedir!$oldincludedir$ac_delim
13301 docdir!$docdir$ac_delim
13302 infodir!$infodir$ac_delim
13303 htmldir!$htmldir$ac_delim
13304 dvidir!$dvidir$ac_delim
13305 pdfdir!$pdfdir$ac_delim
13306 psdir!$psdir$ac_delim
13307 libdir!$libdir$ac_delim
13308 localedir!$localedir$ac_delim
13309 mandir!$mandir$ac_delim
13310 DEFS!$DEFS$ac_delim
13311 ECHO_C!$ECHO_C$ac_delim
13312 ECHO_N!$ECHO_N$ac_delim
13313 ECHO_T!$ECHO_T$ac_delim
13314 LIBS!$LIBS$ac_delim
13315 build_alias!$build_alias$ac_delim
13316 host_alias!$host_alias$ac_delim
13317 target_alias!$target_alias$ac_delim
13318 build!$build$ac_delim
13319 build_cpu!$build_cpu$ac_delim
13320 build_vendor!$build_vendor$ac_delim
13321 build_os!$build_os$ac_delim
13322 host!$host$ac_delim
13323 host_cpu!$host_cpu$ac_delim
13324 host_vendor!$host_vendor$ac_delim
13325 host_os!$host_os$ac_delim
13326 CC!$CC$ac_delim
13327 CFLAGS!$CFLAGS$ac_delim
13328 LDFLAGS!$LDFLAGS$ac_delim
13329 CPPFLAGS!$CPPFLAGS$ac_delim
13330 ac_ct_CC!$ac_ct_CC$ac_delim
13331 EXEEXT!$EXEEXT$ac_delim
13332 OBJEXT!$OBJEXT$ac_delim
13333 CPP!$CPP$ac_delim
13334 AWK!$AWK$ac_delim
13335 MMAKE!$MMAKE$ac_delim
13336 aros_host_ld!$aros_host_ld$ac_delim
13337 aros_host_aclocal!$aros_host_aclocal$ac_delim
13338 aros_host_autoconf!$aros_host_autoconf$ac_delim
13339 aros_host_autoheader!$aros_host_autoheader$ac_delim
13340 aros_host_automake!$aros_host_automake$ac_delim
13341 aros_host_ar!$aros_host_ar$ac_delim
13342 aros_host_ranlib!$aros_host_ranlib$ac_delim
13343 aros_host_strip!$aros_host_strip$ac_delim
13344 RM!$RM$ac_delim
13345 CP!$CP$ac_delim
13346 MV!$MV$ac_delim
13347 ECHO!$ECHO$ac_delim
13348 MKDIR!$MKDIR$ac_delim
13349 TOUCH!$TOUCH$ac_delim
13350 SORT!$SORT$ac_delim
13351 UNIQ!$UNIQ$ac_delim
13352 NOP!$NOP$ac_delim
13353 CAT!$CAT$ac_delim
13354 BISON!$BISON$ac_delim
13355 FLEX!$FLEX$ac_delim
13356 PNGTOPNM!$PNGTOPNM$ac_delim
13357 PPMTOILBM!$PPMTOILBM$ac_delim
13358 SED!$SED$ac_delim
13359 CHMOD!$CHMOD$ac_delim
13360 PYTHON!$PYTHON$ac_delim
13361 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13362 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13363 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13364 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13365 pythondir!$pythondir$ac_delim
13366 pkgpythondir!$pkgpythondir$ac_delim
13367 pyexecdir!$pyexecdir$ac_delim
13368 pkgpyexecdir!$pkgpyexecdir$ac_delim
13369 FOR!$FOR$ac_delim
13370 IF!$IF$ac_delim
13371 TEST!$TEST$ac_delim
13372 CMP!$CMP$ac_delim
13373 GREP!$GREP$ac_delim
13374 EGREP!$EGREP$ac_delim
13375 LIBOBJS!$LIBOBJS$ac_delim
13376 DISTCC!$DISTCC$ac_delim
13377 CCACHE!$CCACHE$ac_delim
13378 _ACEOF
13380 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13381 break
13382 elif $ac_last_try; then
13383 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13384 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13385 { (exit 1); exit 1; }; }
13386 else
13387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13389 done
13391 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13392 if test -n "$ac_eof"; then
13393 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13394 ac_eof=`expr $ac_eof + 1`
13397 cat >>$CONFIG_STATUS <<_ACEOF
13398 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13400 _ACEOF
13401 sed '
13402 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13403 s/^/s,@/; s/!/@,|#_!!_#|/
13406 s/'"$ac_delim"'$/,g/; t
13407 s/$/\\/; p
13408 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13409 ' >>$CONFIG_STATUS <conf$$subs.sed
13410 rm -f conf$$subs.sed
13411 cat >>$CONFIG_STATUS <<_ACEOF
13412 CEOF$ac_eof
13413 _ACEOF
13416 ac_delim='%!_!# '
13417 for ac_last_try in false false false false false :; do
13418 cat >conf$$subs.sed <<_ACEOF
13419 aros_target_cc!$aros_target_cc$ac_delim
13420 aros_target_ld!$aros_target_ld$ac_delim
13421 aros_target_as_ln!$aros_target_as_ln$ac_delim
13422 aros_kernel_ld!$aros_kernel_ld$ac_delim
13423 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13424 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13425 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13426 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13427 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13428 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13429 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13430 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13431 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13432 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13433 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13434 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13435 host_cflags_iquote!$host_cflags_iquote$ac_delim
13436 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13437 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13438 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13439 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13440 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13441 XMKMF!$XMKMF$ac_delim
13442 SDL_CONFIG!$SDL_CONFIG$ac_delim
13443 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13444 SDL_LIBS!$SDL_LIBS$ac_delim
13445 aros_arch!$aros_arch$ac_delim
13446 aros_cpu!$aros_cpu$ac_delim
13447 aros_flavour!$aros_flavour$ac_delim
13448 aros_flavour_uc!$aros_flavour_uc$ac_delim
13449 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13450 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13451 SRCDIR!$SRCDIR$ac_delim
13452 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13453 aros_cc_pre!$aros_cc_pre$ac_delim
13454 aros_host_arch!$aros_host_arch$ac_delim
13455 aros_host_cpu!$aros_host_cpu$ac_delim
13456 aros_host_cc!$aros_host_cc$ac_delim
13457 aros_host_make!$aros_host_make$ac_delim
13458 aros_host_cflags!$aros_host_cflags$ac_delim
13459 aros_host_ldflags!$aros_host_ldflags$ac_delim
13460 aros_host_debug!$aros_host_debug$ac_delim
13461 aros_host_mkdep!$aros_host_mkdep$ac_delim
13462 aros_host_mkargs!$aros_host_mkargs$ac_delim
13463 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13464 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13465 aros_tools_dir!$aros_tools_dir$ac_delim
13466 aros_target_guitheme!$aros_target_guitheme$ac_delim
13467 aros_target_iconset!$aros_target_iconset$ac_delim
13468 aros_target_bootloader!$aros_target_bootloader$ac_delim
13469 aros_target_arch!$aros_target_arch$ac_delim
13470 aros_target_cpu!$aros_target_cpu$ac_delim
13471 aros_target_variant!$aros_target_variant$ac_delim
13472 aros_target_suffix!$aros_target_suffix$ac_delim
13473 aros_target_incl!$aros_target_incl$ac_delim
13474 aros_target_ar!$aros_target_ar$ac_delim
13475 aros_target_ranlib!$aros_target_ranlib$ac_delim
13476 aros_kernel_nm!$aros_kernel_nm$ac_delim
13477 orig_target_cc!$orig_target_cc$ac_delim
13478 aros_target_cxx!$aros_target_cxx$ac_delim
13479 aros_kernel_cc!$aros_kernel_cc$ac_delim
13480 aros_target_as!$aros_target_as$ac_delim
13481 orig_target_ld!$orig_target_ld$ac_delim
13482 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13483 aros_target_cc_path!$aros_target_cc_path$ac_delim
13484 aros_target_objdump!$aros_target_objdump$ac_delim
13485 aros_target_objcopy!$aros_target_objcopy$ac_delim
13486 aros_target_strip!$aros_target_strip$ac_delim
13487 aros_target_nm!$aros_target_nm$ac_delim
13488 aros_shared_default!$aros_shared_default$ac_delim
13489 aros_shared_ld!$aros_shared_ld$ac_delim
13490 aros_object_format!$aros_object_format$ac_delim
13491 aros_compiler_libs!$aros_compiler_libs$ac_delim
13492 aros_arch_libs!$aros_arch_libs$ac_delim
13493 aros_config_cflags!$aros_config_cflags$ac_delim
13494 aros_config_aflags!$aros_config_aflags$ac_delim
13495 aros_config_ldflags!$aros_config_ldflags$ac_delim
13496 aros_shared_cflags!$aros_shared_cflags$ac_delim
13497 aros_shared_aflags!$aros_shared_aflags$ac_delim
13498 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13499 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13500 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13501 aros_debug_cflags!$aros_debug_cflags$ac_delim
13502 aros_debug_aflags!$aros_debug_aflags$ac_delim
13503 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13504 aros_target_genmap!$aros_target_genmap$ac_delim
13505 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13506 x11_hidd_target!$x11_hidd_target$ac_delim
13507 sdl_hidd_target!$sdl_hidd_target$ac_delim
13508 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13509 aros_default_wbheight!$aros_default_wbheight$ac_delim
13510 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13511 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13512 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13513 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13514 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13515 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13516 _ACEOF
13518 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13519 break
13520 elif $ac_last_try; then
13521 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13522 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13523 { (exit 1); exit 1; }; }
13524 else
13525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13527 done
13529 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13530 if test -n "$ac_eof"; then
13531 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13532 ac_eof=`expr $ac_eof + 1`
13535 cat >>$CONFIG_STATUS <<_ACEOF
13536 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13538 _ACEOF
13539 sed '
13540 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13541 s/^/s,@/; s/!/@,|#_!!_#|/
13544 s/'"$ac_delim"'$/,g/; t
13545 s/$/\\/; p
13546 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13547 ' >>$CONFIG_STATUS <conf$$subs.sed
13548 rm -f conf$$subs.sed
13549 cat >>$CONFIG_STATUS <<_ACEOF
13550 CEOF$ac_eof
13551 _ACEOF
13554 ac_delim='%!_!# '
13555 for ac_last_try in false false false false false :; do
13556 cat >conf$$subs.sed <<_ACEOF
13557 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13558 aros_serial_debug!$aros_serial_debug$ac_delim
13559 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13560 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13561 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13562 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13563 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13564 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13565 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13566 ENABLE_X11!$ENABLE_X11$ac_delim
13567 aros_debug!$aros_debug$ac_delim
13568 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13569 aros_stack_debug!$aros_stack_debug$ac_delim
13570 aros_modules_debug!$aros_modules_debug$ac_delim
13571 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13572 gcc_target_cpu!$gcc_target_cpu$ac_delim
13573 LTLIBOBJS!$LTLIBOBJS$ac_delim
13574 _ACEOF
13576 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
13577 break
13578 elif $ac_last_try; then
13579 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13580 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13581 { (exit 1); exit 1; }; }
13582 else
13583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13585 done
13587 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13588 if test -n "$ac_eof"; then
13589 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13590 ac_eof=`expr $ac_eof + 1`
13593 cat >>$CONFIG_STATUS <<_ACEOF
13594 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13596 _ACEOF
13597 sed '
13598 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13599 s/^/s,@/; s/!/@,|#_!!_#|/
13602 s/'"$ac_delim"'$/,g/; t
13603 s/$/\\/; p
13604 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13605 ' >>$CONFIG_STATUS <conf$$subs.sed
13606 rm -f conf$$subs.sed
13607 cat >>$CONFIG_STATUS <<_ACEOF
13608 :end
13609 s/|#_!!_#|//g
13610 CEOF$ac_eof
13611 _ACEOF
13614 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13615 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13616 # trailing colons and then remove the whole line if VPATH becomes empty
13617 # (actually we leave an empty line to preserve line numbers).
13618 if test "x$srcdir" = x.; then
13619 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13620 s/:*\$(srcdir):*/:/
13621 s/:*\${srcdir}:*/:/
13622 s/:*@srcdir@:*/:/
13623 s/^\([^=]*=[ ]*\):*/\1/
13624 s/:*$//
13625 s/^[^=]*=[ ]*$//
13629 cat >>$CONFIG_STATUS <<\_ACEOF
13630 fi # test -n "$CONFIG_FILES"
13633 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13635 case $ac_tag in
13636 :[FHLC]) ac_mode=$ac_tag; continue;;
13637 esac
13638 case $ac_mode$ac_tag in
13639 :[FHL]*:*);;
13640 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13641 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13642 { (exit 1); exit 1; }; };;
13643 :[FH]-) ac_tag=-:-;;
13644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13645 esac
13646 ac_save_IFS=$IFS
13647 IFS=:
13648 set x $ac_tag
13649 IFS=$ac_save_IFS
13650 shift
13651 ac_file=$1
13652 shift
13654 case $ac_mode in
13655 :L) ac_source=$1;;
13656 :[FH])
13657 ac_file_inputs=
13658 for ac_f
13660 case $ac_f in
13661 -) ac_f="$tmp/stdin";;
13662 *) # Look for the file first in the build tree, then in the source tree
13663 # (if the path is not absolute). The absolute path cannot be DOS-style,
13664 # because $ac_f cannot contain `:'.
13665 test -f "$ac_f" ||
13666 case $ac_f in
13667 [\\/$]*) false;;
13668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13669 esac ||
13670 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13671 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13672 { (exit 1); exit 1; }; };;
13673 esac
13674 ac_file_inputs="$ac_file_inputs $ac_f"
13675 done
13677 # Let's still pretend it is `configure' which instantiates (i.e., don't
13678 # use $as_me), people would be surprised to read:
13679 # /* config.h. Generated by config.status. */
13680 configure_input="Generated from "`IFS=:
13681 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13682 if test x"$ac_file" != x-; then
13683 configure_input="$ac_file. $configure_input"
13684 { echo "$as_me:$LINENO: creating $ac_file" >&5
13685 echo "$as_me: creating $ac_file" >&6;}
13688 case $ac_tag in
13689 *:-:* | *:-) cat >"$tmp/stdin";;
13690 esac
13692 esac
13694 ac_dir=`$as_dirname -- "$ac_file" ||
13695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13696 X"$ac_file" : 'X\(//\)[^/]' \| \
13697 X"$ac_file" : 'X\(//\)$' \| \
13698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13699 echo X"$ac_file" |
13700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13701 s//\1/
13704 /^X\(\/\/\)[^/].*/{
13705 s//\1/
13708 /^X\(\/\/\)$/{
13709 s//\1/
13712 /^X\(\/\).*/{
13713 s//\1/
13716 s/.*/./; q'`
13717 { as_dir="$ac_dir"
13718 case $as_dir in #(
13719 -*) as_dir=./$as_dir;;
13720 esac
13721 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13722 as_dirs=
13723 while :; do
13724 case $as_dir in #(
13725 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13726 *) as_qdir=$as_dir;;
13727 esac
13728 as_dirs="'$as_qdir' $as_dirs"
13729 as_dir=`$as_dirname -- "$as_dir" ||
13730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13731 X"$as_dir" : 'X\(//\)[^/]' \| \
13732 X"$as_dir" : 'X\(//\)$' \| \
13733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13734 echo X"$as_dir" |
13735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13736 s//\1/
13739 /^X\(\/\/\)[^/].*/{
13740 s//\1/
13743 /^X\(\/\/\)$/{
13744 s//\1/
13747 /^X\(\/\).*/{
13748 s//\1/
13751 s/.*/./; q'`
13752 test -d "$as_dir" && break
13753 done
13754 test -z "$as_dirs" || eval "mkdir $as_dirs"
13755 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13756 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13757 { (exit 1); exit 1; }; }; }
13758 ac_builddir=.
13760 case "$ac_dir" in
13761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13763 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13764 # A ".." for each directory in $ac_dir_suffix.
13765 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13766 case $ac_top_builddir_sub in
13767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13769 esac ;;
13770 esac
13771 ac_abs_top_builddir=$ac_pwd
13772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13773 # for backward compatibility:
13774 ac_top_builddir=$ac_top_build_prefix
13776 case $srcdir in
13777 .) # We are building in place.
13778 ac_srcdir=.
13779 ac_top_srcdir=$ac_top_builddir_sub
13780 ac_abs_top_srcdir=$ac_pwd ;;
13781 [\\/]* | ?:[\\/]* ) # Absolute name.
13782 ac_srcdir=$srcdir$ac_dir_suffix;
13783 ac_top_srcdir=$srcdir
13784 ac_abs_top_srcdir=$srcdir ;;
13785 *) # Relative name.
13786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13787 ac_top_srcdir=$ac_top_build_prefix$srcdir
13788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13789 esac
13790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13793 case $ac_mode in
13796 # CONFIG_FILE
13799 _ACEOF
13801 cat >>$CONFIG_STATUS <<\_ACEOF
13802 # If the template does not know about datarootdir, expand it.
13803 # FIXME: This hack should be removed a few years after 2.60.
13804 ac_datarootdir_hack=; ac_datarootdir_seen=
13806 case `sed -n '/datarootdir/ {
13810 /@datadir@/p
13811 /@docdir@/p
13812 /@infodir@/p
13813 /@localedir@/p
13814 /@mandir@/p
13815 ' $ac_file_inputs` in
13816 *datarootdir*) ac_datarootdir_seen=yes;;
13817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13818 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13819 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13820 _ACEOF
13821 cat >>$CONFIG_STATUS <<_ACEOF
13822 ac_datarootdir_hack='
13823 s&@datadir@&$datadir&g
13824 s&@docdir@&$docdir&g
13825 s&@infodir@&$infodir&g
13826 s&@localedir@&$localedir&g
13827 s&@mandir@&$mandir&g
13828 s&\\\${datarootdir}&$datarootdir&g' ;;
13829 esac
13830 _ACEOF
13832 # Neutralize VPATH when `$srcdir' = `.'.
13833 # Shell code in configure.ac might set extrasub.
13834 # FIXME: do we really want to maintain this feature?
13835 cat >>$CONFIG_STATUS <<_ACEOF
13836 sed "$ac_vpsub
13837 $extrasub
13838 _ACEOF
13839 cat >>$CONFIG_STATUS <<\_ACEOF
13841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13842 s&@configure_input@&$configure_input&;t t
13843 s&@top_builddir@&$ac_top_builddir_sub&;t t
13844 s&@srcdir@&$ac_srcdir&;t t
13845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13846 s&@top_srcdir@&$ac_top_srcdir&;t t
13847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13848 s&@builddir@&$ac_builddir&;t t
13849 s&@abs_builddir@&$ac_abs_builddir&;t t
13850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13851 $ac_datarootdir_hack
13852 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13855 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13857 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13858 which seems to be undefined. Please make sure it is defined." >&5
13859 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13860 which seems to be undefined. Please make sure it is defined." >&2;}
13862 rm -f "$tmp/stdin"
13863 case $ac_file in
13864 -) cat "$tmp/out"; rm -f "$tmp/out";;
13865 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13866 esac
13870 # CONFIG_HEADER
13872 _ACEOF
13874 # Transform confdefs.h into a sed script `conftest.defines', that
13875 # substitutes the proper values into config.h.in to produce config.h.
13876 rm -f conftest.defines conftest.tail
13877 # First, append a space to every undef/define line, to ease matching.
13878 echo 's/$/ /' >conftest.defines
13879 # Then, protect against being on the right side of a sed subst, or in
13880 # an unquoted here document, in config.status. If some macros were
13881 # called several times there might be several #defines for the same
13882 # symbol, which is useless. But do not sort them, since the last
13883 # AC_DEFINE must be honored.
13884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13885 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13886 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13887 # PARAMS is the parameter list in the macro definition--in most cases, it's
13888 # just an empty string.
13889 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13890 ac_dB='\\)[ (].*,\\1define\\2'
13891 ac_dC=' '
13892 ac_dD=' ,'
13894 uniq confdefs.h |
13895 sed -n '
13896 t rset
13897 :rset
13898 s/^[ ]*#[ ]*define[ ][ ]*//
13899 t ok
13902 s/[\\&,]/\\&/g
13903 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13904 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13905 ' >>conftest.defines
13907 # Remove the space that was appended to ease matching.
13908 # Then replace #undef with comments. This is necessary, for
13909 # example, in the case of _POSIX_SOURCE, which is predefined and required
13910 # on some systems where configure will not decide to define it.
13911 # (The regexp can be short, since the line contains either #define or #undef.)
13912 echo 's/ $//
13913 s,^[ #]*u.*,/* & */,' >>conftest.defines
13915 # Break up conftest.defines:
13916 ac_max_sed_lines=50
13918 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13919 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13920 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13921 # et cetera.
13922 ac_in='$ac_file_inputs'
13923 ac_out='"$tmp/out1"'
13924 ac_nxt='"$tmp/out2"'
13926 while :
13928 # Write a here document:
13929 cat >>$CONFIG_STATUS <<_ACEOF
13930 # First, check the format of the line:
13931 cat >"\$tmp/defines.sed" <<\\CEOF
13932 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13933 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13935 :def
13936 _ACEOF
13937 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13938 echo 'CEOF
13939 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13940 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13941 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13942 grep . conftest.tail >/dev/null || break
13943 rm -f conftest.defines
13944 mv conftest.tail conftest.defines
13945 done
13946 rm -f conftest.defines conftest.tail
13948 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13949 cat >>$CONFIG_STATUS <<\_ACEOF
13950 if test x"$ac_file" != x-; then
13951 echo "/* $configure_input */" >"$tmp/config.h"
13952 cat "$ac_result" >>"$tmp/config.h"
13953 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13954 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13955 echo "$as_me: $ac_file is unchanged" >&6;}
13956 else
13957 rm -f $ac_file
13958 mv "$tmp/config.h" $ac_file
13960 else
13961 echo "/* $configure_input */"
13962 cat "$ac_result"
13964 rm -f "$tmp/out12"
13967 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13968 echo "$as_me: executing $ac_file commands" >&6;}
13970 esac
13973 case $ac_file$ac_mode in
13974 "compiler_executable":C)
13975 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13976 mkdir -p $prefix
13977 prefix="${prefix}/${aros_target_cpu}-aros"
13978 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13980 echo ${prefix}
13981 echo ${prefix2}
13982 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13984 ln -sf ${prefix2}-gcc ${prefix}-gcc
13985 ln -sf ${prefix2}-ld ${prefix}-ld
13987 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
13988 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
13989 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
13990 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
13991 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
13992 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
13993 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
13995 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
13996 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
13997 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
13998 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
13999 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14000 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14001 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14003 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14004 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14006 esac
14007 done # for ac_tag
14010 { (exit 0); exit 0; }
14011 _ACEOF
14012 chmod +x $CONFIG_STATUS
14013 ac_clean_files=$ac_clean_files_save
14016 # configure is writing to config.log, and then calls config.status.
14017 # config.status does its own redirection, appending to config.log.
14018 # Unfortunately, on DOS this fails, as config.log is still kept open
14019 # by configure, so config.status won't be able to write to it; its
14020 # output is simply discarded. So we exec the FD to /dev/null,
14021 # effectively closing config.log, so it can be properly (re)opened and
14022 # appended to by config.status. When coming back to configure, we
14023 # need to make the FD available again.
14024 if test "$no_create" != yes; then
14025 ac_cs_success=:
14026 ac_config_status_args=
14027 test "$silent" = yes &&
14028 ac_config_status_args="$ac_config_status_args --quiet"
14029 exec 5>/dev/null
14030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14031 exec 5>>config.log
14032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14033 # would make configure fail if this is the last instruction.
14034 $ac_cs_success || { (exit 1); exit 1; }
14039 #XXX compatability...
14040 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14042 if test -n "$aros_shared_cflags" ; then
14043 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14044 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg