Sync'd with documentation/db/credits
[cake.git] / configure
blobd1b8157c8ee4c9c6a6ff5a6ae525f736f984ad85
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_kernel_cc
714 aros_target_as_ln
715 aros_kernel_ld
716 aros_target_ar_ln
717 aros_target_nm_ln
718 aros_target_objcopy_ln
719 aros_target_objdump_ln
720 aros_target_ranlib_ln
721 aros_target_strip_ln
722 aros_target_nostdinc_cflags
723 aros_target_nostartup_ldflags
724 aros_target_nix_ldflags
725 aros_target_detach_ldflags
726 aros_target_nostdlib_ldflags
727 XMKMF
728 SDL_CONFIG
729 SDL_CFLAGS
730 SDL_LIBS
731 aros_arch
732 aros_cpu
733 aros_flavour
734 aros_flavour_uc
735 TOPDIR
736 aros_cc_pre
737 aros_host_arch
738 aros_host_cpu
739 aros_host_cc
740 aros_host_make
741 aros_host_cflags
742 aros_host_ldflags
743 aros_host_debug
744 aros_host_mkdep
745 aros_host_mkargs
746 aros_host_exe_suffix
747 aros_host_lib_suffix
748 aros_tools_dir
749 aros_target_arch
750 aros_target_cpu
751 aros_target_variant
752 aros_target_suffix
753 aros_target_incl
754 aros_target_ar
755 aros_target_ranlib
756 aros_kernel_nm
757 aros_target_cc
758 aros_target_as
759 aros_target_ld
760 aros_target_cc_includes
761 aros_target_cc_path
762 aros_target_objdump
763 aros_target_objcopy
764 aros_target_strip
765 aros_target_nm
766 aros_shared_default
767 aros_shared_ld
768 aros_object_format
769 aros_compiler_libs
770 aros_config_cflags
771 aros_config_aflags
772 aros_config_ldflags
773 aros_shared_cflags
774 aros_shared_aflags
775 aros_shared_ldflags
776 aros_kernel_ldflags
777 aros_debug_cflags
778 aros_debug_aflags
779 aros_debug_ldflags
780 aros_target_genmap
781 aros_target_strip_flags
782 x11_hidd_target
783 sdl_hidd_target
784 aros_default_wbwidth
785 aros_default_wbheight
786 aros_default_wbdepth
787 DO_XSHM_SUPPORT
788 DO_VIDMODE_SUPPORT
789 aros_host_x11_includes
790 aros_host_x11_libdirs
791 aros_host_sdl_cflags
792 aros_host_sdl_libs
793 aros_bochs_hack
794 aros_serial_debug
795 aros_palm_debug_hack
796 aros_nesting_supervisor
797 ENABLE_DBUS
798 DBUS_CFLAGS
799 DBUS_LIBFLAGS
800 KERNEL_DBUS_KOBJ
801 KERNEL_DBUS_INCLUDES
802 aros_debug
803 aros_mungwall_debug
804 aros_stack_debug
805 aros_modules_debug
806 ignore_undefined_symbols
807 gcc_target_cpu
808 LTLIBOBJS'
809 ac_subst_files=''
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
819 XMKMF'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
868 ac_prev=
869 ac_dashdash=
870 for ac_option
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
888 ac_dashdash=yes ;;
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
907 --config-cache | -C)
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1138 -with-* | --with-*)
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1154 eval with_$ac_package=no ;;
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 esac
1197 done
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1218 done
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1272 /^X\(\/\/\)$/{
1273 s//\1/
1276 /^X\(\/\).*/{
1277 s//\1/
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1285 else
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures this package to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1377 cat <<\_ACEOF
1379 X features:
1380 --x-includes=DIR X include files are in DIR
1381 --x-libraries=DIR X library files are in DIR
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1389 if test -n "$ac_init_help"; then
1391 cat <<\_ACEOF
1393 Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-build-type=TYPE
1397 Select the build type. Available types are:
1398 personal, nightly, snapshot, milestone, release. Do
1399 NOT use this option unless you know what you are
1400 doing! (default=personal)
1401 --enable-debug=list Enable different types of debug. Commas or
1402 whitespaces can be used to separate the items in the
1403 list. Available types of debug are: all, none,
1404 messages, stack, mungwall, modules, symbols. If no
1405 list is provided then "all" is assumed.
1406 (default=none)
1407 --enable-distcc Use distcc as a front end to the compiler
1408 (default=no).
1409 --enable-ccache Use ccache as a front end to the compiler
1410 (default=no).
1411 --enable-target-variant=NAME
1412 Enable a specific target variant(default=none)
1413 --enable-includes=dir Alternative system include directory
1414 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1415 (default=no)
1416 --enable-palm-debug-hack
1417 Enable palm debug output hack in palm native
1418 (default=no)
1419 --enable-nesting-supervisor
1420 Enable nesting supervisor support in unix
1421 (default=no)
1422 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1423 --enable-x11-shm use X11 shared memory (default=auto)
1424 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1425 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1426 --disable-sdltest Do not try to compile and run a test SDL program
1427 --enable-dbus Enable DBUS support via dbus.library (default=no)
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-optimization=FLAGS
1433 Use optimization flags FLAGS (default=-O2).
1434 --with-resolution=XRESxYRESxDEPTH
1435 Default resolution of the initial WorkbenchScreen
1436 --with-serial-debug Enable serial debug output in native (default=no)
1437 --with-x use the X Window System
1438 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1439 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 XMKMF Path to xmkmf, Makefile generator for X Window System
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 _ACEOF
1456 ac_status=$?
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" || continue
1463 ac_builddir=.
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 configure
1516 generated by GNU Autoconf 2.61
1518 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1519 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523 exit
1525 cat >config.log <<_ACEOF
1526 This file contains any messages produced by compilers while
1527 running configure, to aid debugging if configure makes a mistake.
1529 It was created by $as_me, which was
1530 generated by GNU Autoconf 2.61. Invocation command line was
1532 $ $0 $@
1534 _ACEOF
1535 exec 5>>config.log
1537 cat <<_ASUNAME
1538 ## --------- ##
1539 ## Platform. ##
1540 ## --------- ##
1542 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1543 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1544 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1545 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1546 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1549 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1551 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1552 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1553 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1554 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1555 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1556 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1557 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1559 _ASUNAME
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 echo "PATH: $as_dir"
1567 done
1568 IFS=$as_save_IFS
1570 } >&5
1572 cat >&5 <<_ACEOF
1575 ## ----------- ##
1576 ## Core tests. ##
1577 ## ----------- ##
1579 _ACEOF
1582 # Keep a trace of the command line.
1583 # Strip out --no-create and --no-recursion so they do not pile up.
1584 # Strip out --silent because we don't want to record it for future runs.
1585 # Also quote any args containing shell meta-characters.
1586 # Make two passes to allow for proper duplicate-argument suppression.
1587 ac_configure_args=
1588 ac_configure_args0=
1589 ac_configure_args1=
1590 ac_must_keep_next=false
1591 for ac_pass in 1 2
1593 for ac_arg
1595 case $ac_arg in
1596 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1598 | -silent | --silent | --silen | --sile | --sil)
1599 continue ;;
1600 *\'*)
1601 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1602 esac
1603 case $ac_pass in
1604 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1607 if test $ac_must_keep_next = true; then
1608 ac_must_keep_next=false # Got value, back to normal.
1609 else
1610 case $ac_arg in
1611 *=* | --config-cache | -C | -disable-* | --disable-* \
1612 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1613 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1614 | -with-* | --with-* | -without-* | --without-* | --x)
1615 case "$ac_configure_args0 " in
1616 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1617 esac
1619 -* ) ac_must_keep_next=true ;;
1620 esac
1622 ac_configure_args="$ac_configure_args '$ac_arg'"
1624 esac
1625 done
1626 done
1627 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1628 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630 # When interrupted or exit'd, cleanup temporary files, and complete
1631 # config.log. We remove comments because anyway the quotes in there
1632 # would cause problems or look ugly.
1633 # WARNING: Use '\'' to represent an apostrophe within the trap.
1634 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1635 trap 'exit_status=$?
1636 # Save into config.log some information that might help in debugging.
1638 echo
1640 cat <<\_ASBOX
1641 ## ---------------- ##
1642 ## Cache variables. ##
1643 ## ---------------- ##
1644 _ASBOX
1645 echo
1646 # The following way of writing the cache mishandles newlines in values,
1648 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1649 eval ac_val=\$$ac_var
1650 case $ac_val in #(
1651 *${as_nl}*)
1652 case $ac_var in #(
1653 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1654 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1655 esac
1656 case $ac_var in #(
1657 _ | IFS | as_nl) ;; #(
1658 *) $as_unset $ac_var ;;
1659 esac ;;
1660 esac
1661 done
1662 (set) 2>&1 |
1663 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1664 *${as_nl}ac_space=\ *)
1665 sed -n \
1666 "s/'\''/'\''\\\\'\'''\''/g;
1667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1668 ;; #(
1670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1672 esac |
1673 sort
1675 echo
1677 cat <<\_ASBOX
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1681 _ASBOX
1682 echo
1683 for ac_var in $ac_subst_vars
1685 eval ac_val=\$$ac_var
1686 case $ac_val in
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 esac
1689 echo "$ac_var='\''$ac_val'\''"
1690 done | sort
1691 echo
1693 if test -n "$ac_subst_files"; then
1694 cat <<\_ASBOX
1695 ## ------------------- ##
1696 ## File substitutions. ##
1697 ## ------------------- ##
1698 _ASBOX
1699 echo
1700 for ac_var in $ac_subst_files
1702 eval ac_val=\$$ac_var
1703 case $ac_val in
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705 esac
1706 echo "$ac_var='\''$ac_val'\''"
1707 done | sort
1708 echo
1711 if test -s confdefs.h; then
1712 cat <<\_ASBOX
1713 ## ----------- ##
1714 ## confdefs.h. ##
1715 ## ----------- ##
1716 _ASBOX
1717 echo
1718 cat confdefs.h
1719 echo
1721 test "$ac_signal" != 0 &&
1722 echo "$as_me: caught signal $ac_signal"
1723 echo "$as_me: exit $exit_status"
1724 } >&5
1725 rm -f core *.core core.conftest.* &&
1726 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1727 exit $exit_status
1729 for ac_signal in 1 2 13 15; do
1730 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1731 done
1732 ac_signal=0
1734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1735 rm -f -r conftest* confdefs.h
1737 # Predefined preprocessor variables.
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_NAME "$PACKAGE_NAME"
1741 _ACEOF
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1746 _ACEOF
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1751 _ACEOF
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_STRING "$PACKAGE_STRING"
1756 _ACEOF
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1761 _ACEOF
1764 # Let the site file select an alternate cache file if it wants to.
1765 # Prefer explicitly selected file to automatically selected ones.
1766 if test -n "$CONFIG_SITE"; then
1767 set x "$CONFIG_SITE"
1768 elif test "x$prefix" != xNONE; then
1769 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1770 else
1771 set x "$ac_default_prefix/share/config.site" \
1772 "$ac_default_prefix/etc/config.site"
1774 shift
1775 for ac_site_file
1777 if test -r "$ac_site_file"; then
1778 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1779 echo "$as_me: loading site script $ac_site_file" >&6;}
1780 sed 's/^/| /' "$ac_site_file" >&5
1781 . "$ac_site_file"
1783 done
1785 if test -r "$cache_file"; then
1786 # Some versions of bash will fail to source /dev/null (special
1787 # files actually), so we avoid doing that.
1788 if test -f "$cache_file"; then
1789 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1790 echo "$as_me: loading cache $cache_file" >&6;}
1791 case $cache_file in
1792 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793 *) . "./$cache_file";;
1794 esac
1796 else
1797 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1798 echo "$as_me: creating cache $cache_file" >&6;}
1799 >$cache_file
1802 # Check that the precious variables saved in the cache have kept the same
1803 # value.
1804 ac_cache_corrupted=false
1805 for ac_var in $ac_precious_vars; do
1806 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807 eval ac_new_set=\$ac_env_${ac_var}_set
1808 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809 eval ac_new_val=\$ac_env_${ac_var}_value
1810 case $ac_old_set,$ac_new_set in
1811 set,)
1812 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814 ac_cache_corrupted=: ;;
1815 ,set)
1816 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818 ac_cache_corrupted=: ;;
1819 ,);;
1821 if test "x$ac_old_val" != "x$ac_new_val"; then
1822 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1825 echo "$as_me: former value: $ac_old_val" >&2;}
1826 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1827 echo "$as_me: current value: $ac_new_val" >&2;}
1828 ac_cache_corrupted=:
1829 fi;;
1830 esac
1831 # Pass precious variables to config.status.
1832 if test "$ac_new_set" = set; then
1833 case $ac_new_val in
1834 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 *) ac_arg=$ac_var=$ac_new_val ;;
1836 esac
1837 case " $ac_configure_args " in
1838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1839 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1840 esac
1842 done
1843 if $ac_cache_corrupted; then
1844 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848 { (exit 1); exit 1; }; }
1867 ac_ext=c
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 ac_aux_dir=
1876 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1877 if test -f "$ac_dir/install-sh"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1880 break
1881 elif test -f "$ac_dir/install.sh"; then
1882 ac_aux_dir=$ac_dir
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1884 break
1885 elif test -f "$ac_dir/shtool"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1888 break
1890 done
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 # Check what host we are running on.
1908 # If a target is not suggested, we use this one.
1909 # Note that what we call a target, Autoconf calls a host.
1910 # Make sure we can run config.sub.
1911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1912 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1913 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1914 { (exit 1); exit 1; }; }
1916 { echo "$as_me:$LINENO: checking build system type" >&5
1917 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1918 if test "${ac_cv_build+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 ac_build_alias=$build_alias
1922 test "x$ac_build_alias" = x &&
1923 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1924 test "x$ac_build_alias" = x &&
1925 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1926 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1927 { (exit 1); exit 1; }; }
1928 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1929 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1930 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1931 { (exit 1); exit 1; }; }
1934 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1935 echo "${ECHO_T}$ac_cv_build" >&6; }
1936 case $ac_cv_build in
1937 *-*-*) ;;
1938 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1939 echo "$as_me: error: invalid value of canonical build" >&2;}
1940 { (exit 1); exit 1; }; };;
1941 esac
1942 build=$ac_cv_build
1943 ac_save_IFS=$IFS; IFS='-'
1944 set x $ac_cv_build
1945 shift
1946 build_cpu=$1
1947 build_vendor=$2
1948 shift; shift
1949 # Remember, the first character of IFS is used to create $*,
1950 # except with old shells:
1951 build_os=$*
1952 IFS=$ac_save_IFS
1953 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1956 { echo "$as_me:$LINENO: checking host system type" >&5
1957 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1958 if test "${ac_cv_host+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test "x$host_alias" = x; then
1962 ac_cv_host=$ac_cv_build
1963 else
1964 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1965 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1966 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1967 { (exit 1); exit 1; }; }
1971 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1972 echo "${ECHO_T}$ac_cv_host" >&6; }
1973 case $ac_cv_host in
1974 *-*-*) ;;
1975 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1976 echo "$as_me: error: invalid value of canonical host" >&2;}
1977 { (exit 1); exit 1; }; };;
1978 esac
1979 host=$ac_cv_host
1980 ac_save_IFS=$IFS; IFS='-'
1981 set x $ac_cv_host
1982 shift
1983 host_cpu=$1
1984 host_vendor=$2
1985 shift; shift
1986 # Remember, the first character of IFS is used to create $*,
1987 # except with old shells:
1988 host_os=$*
1989 IFS=$ac_save_IFS
1990 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1994 # The AROS target is slightly different to the normal GNU style
1995 # format. We don't have the middle part, and we reverse the order
1996 # of the $(CPU) and $(OS) bits.
1998 # Don't strip the version of the target yet, it might be
1999 # useful on some systems.
2001 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2002 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2004 if test "$target" = "NONE" ; then
2005 target=$host_os-$host_cpu
2006 cross_compile=no
2007 else
2008 if test "$target" = "" ; then
2009 target=$host_os-$host_cpu
2010 cross_compile=no
2011 else
2012 cross_compile=yes
2015 { echo "$as_me:$LINENO: result: $target" >&5
2016 echo "${ECHO_T}$target" >&6; }
2018 #don't know where else to put this...
2019 TOPDIR=$PWD
2021 # Parse the target field into something useful.
2023 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2024 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2027 aros_default_wbwidth=800
2028 aros_default_wbheight=600
2029 aros_default_wbdepth=4
2032 # The first step is to find the host binaries.
2033 # Check for a compiler.
2034 ac_ext=c
2035 ac_cpp='$CPP $CPPFLAGS'
2036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2063 IFS=$as_save_IFS
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069 { echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6; }
2071 else
2072 { echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6; }
2078 if test -z "$ac_cv_prog_CC"; then
2079 ac_ct_CC=$CC
2080 # Extract the first word of "gcc", so it can be a program name with args.
2081 set dummy gcc; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 if test -n "$ac_ct_CC"; then
2088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 ac_cv_prog_ac_ct_CC="gcc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2101 done
2102 done
2103 IFS=$as_save_IFS
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6; }
2111 else
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2116 if test "x$ac_ct_CC" = x; then
2117 CC=""
2118 else
2119 case $cross_compiling:$ac_tool_warned in
2120 yes:)
2121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2122 whose name does not start with the host triplet. If you think this
2123 configuration is useful to you, please write to autoconf@gnu.org." >&5
2124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2125 whose name does not start with the host triplet. If you think this
2126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2127 ac_tool_warned=yes ;;
2128 esac
2129 CC=$ac_ct_CC
2131 else
2132 CC="$ac_cv_prog_CC"
2135 if test -z "$CC"; then
2136 if test -n "$ac_tool_prefix"; then
2137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2138 set dummy ${ac_tool_prefix}cc; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2154 ac_cv_prog_CC="${ac_tool_prefix}cc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2158 done
2159 done
2160 IFS=$as_save_IFS
2164 CC=$ac_cv_prog_CC
2165 if test -n "$CC"; then
2166 { echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6; }
2168 else
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2176 if test -z "$CC"; then
2177 # Extract the first word of "cc", so it can be a program name with args.
2178 set dummy cc; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 if test -n "$CC"; then
2185 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 else
2187 ac_prog_rejected=no
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2196 ac_prog_rejected=yes
2197 continue
2199 ac_cv_prog_CC="cc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2203 done
2204 done
2205 IFS=$as_save_IFS
2207 if test $ac_prog_rejected = yes; then
2208 # We found a bogon in the path, so make sure we never use it.
2209 set dummy $ac_cv_prog_CC
2210 shift
2211 if test $# != 0; then
2212 # We chose a different compiler from the bogus one.
2213 # However, it has the same basename, so the bogon will be chosen
2214 # first if we set CC to just the basename; use the full file name.
2215 shift
2216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2221 CC=$ac_cv_prog_CC
2222 if test -n "$CC"; then
2223 { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2225 else
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2232 if test -z "$CC"; then
2233 if test -n "$ac_tool_prefix"; then
2234 for ac_prog in cl.exe
2236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2259 IFS=$as_save_IFS
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2273 test -n "$CC" && break
2274 done
2276 if test -z "$CC"; then
2277 ac_ct_CC=$CC
2278 for ac_prog in cl.exe
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$ac_ct_CC"; then
2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 ac_cv_prog_ac_ct_CC="$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2301 done
2302 done
2303 IFS=$as_save_IFS
2307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2308 if test -n "$ac_ct_CC"; then
2309 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2310 echo "${ECHO_T}$ac_ct_CC" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2317 test -n "$ac_ct_CC" && break
2318 done
2320 if test "x$ac_ct_CC" = x; then
2321 CC=""
2322 else
2323 case $cross_compiling:$ac_tool_warned in
2324 yes:)
2325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2326 whose name does not start with the host triplet. If you think this
2327 configuration is useful to you, please write to autoconf@gnu.org." >&5
2328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2329 whose name does not start with the host triplet. If you think this
2330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2331 ac_tool_warned=yes ;;
2332 esac
2333 CC=$ac_ct_CC
2340 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: no acceptable C compiler found in \$PATH
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2346 # Provide some information about the compiler.
2347 echo "$as_me:$LINENO: checking for C compiler version" >&5
2348 ac_compiler=`set X $ac_compile; echo $2`
2349 { (ac_try="$ac_compiler --version >&5"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compiler --version >&5") 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2359 { (ac_try="$ac_compiler -v >&5"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compiler -v >&5") 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369 { (ac_try="$ac_compiler -V >&5"
2370 case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373 esac
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compiler -V >&5") 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }
2380 cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h. */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2388 main ()
2392 return 0;
2394 _ACEOF
2395 ac_clean_files_save=$ac_clean_files
2396 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2397 # Try to create an executable without -o first, disregard a.out.
2398 # It will help us diagnose broken compilers, and finding out an intuition
2399 # of exeext.
2400 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2401 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2402 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2404 # List of possible output files, starting from the most likely.
2405 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2406 # only as a last resort. b.out is created by i960 compilers.
2407 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2409 # The IRIX 6 linker writes into existing files which may not be
2410 # executable, retaining their permissions. Remove them first so a
2411 # subsequent execution test works.
2412 ac_rmfiles=
2413 for ac_file in $ac_files
2415 case $ac_file in
2416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2417 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2418 esac
2419 done
2420 rm -f $ac_rmfiles
2422 if { (ac_try="$ac_link_default"
2423 case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_link_default") 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; then
2432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2435 # so that the user can short-circuit this test for compilers unknown to
2436 # Autoconf.
2437 for ac_file in $ac_files ''
2439 test -f "$ac_file" || continue
2440 case $ac_file in
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2443 [ab].out )
2444 # We found the default executable, but exeext='' is most
2445 # certainly right.
2446 break;;
2447 *.* )
2448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2449 then :; else
2450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2452 # We set ac_cv_exeext here because the later test for it is not
2453 # safe: cross compilers may not add the suffix if given an `-o'
2454 # argument, so we may need to know it at that point already.
2455 # Even if this section looks crufty: it has the advantage of
2456 # actually working.
2457 break;;
2459 break;;
2460 esac
2461 done
2462 test "$ac_cv_exeext" = no && ac_cv_exeext=
2464 else
2465 ac_file=''
2468 { echo "$as_me:$LINENO: result: $ac_file" >&5
2469 echo "${ECHO_T}$ac_file" >&6; }
2470 if test -z "$ac_file"; then
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: C compiler cannot create executables
2477 See \`config.log' for more details." >&2;}
2478 { (exit 77); exit 77; }; }
2481 ac_exeext=$ac_cv_exeext
2483 # Check that the compiler produces executables we can run. If not, either
2484 # the compiler is broken, or we cross compile.
2485 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2486 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2487 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2488 # If not cross compiling, check that we can run a simple program.
2489 if test "$cross_compiling" != yes; then
2490 if { ac_try='./$ac_file'
2491 { (case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494 esac
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_try") 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2500 cross_compiling=no
2501 else
2502 if test "$cross_compiling" = maybe; then
2503 cross_compiling=yes
2504 else
2505 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2506 If you meant to cross compile, use \`--host'.
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2515 { echo "$as_me:$LINENO: result: yes" >&5
2516 echo "${ECHO_T}yes" >&6; }
2518 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2519 ac_clean_files=$ac_clean_files_save
2520 # Check that the compiler produces executables we can run. If not, either
2521 # the compiler is broken, or we cross compile.
2522 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2523 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2524 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2525 echo "${ECHO_T}$cross_compiling" >&6; }
2527 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2528 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2529 if { (ac_try="$ac_link"
2530 case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_link") 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; then
2539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2540 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2541 # work properly (i.e., refer to `conftest.exe'), while it won't with
2542 # `rm'.
2543 for ac_file in conftest.exe conftest conftest.*; do
2544 test -f "$ac_file" || continue
2545 case $ac_file in
2546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 break;;
2549 * ) break;;
2550 esac
2551 done
2552 else
2553 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&5
2555 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2556 See \`config.log' for more details." >&2;}
2557 { (exit 1); exit 1; }; }
2560 rm -f conftest$ac_cv_exeext
2561 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2562 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2564 rm -f conftest.$ac_ext
2565 EXEEXT=$ac_cv_exeext
2566 ac_exeext=$EXEEXT
2567 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2568 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2569 if test "${ac_cv_objext+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2580 main ()
2584 return 0;
2586 _ACEOF
2587 rm -f conftest.o conftest.obj
2588 if { (ac_try="$ac_compile"
2589 case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_compile") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; then
2598 for ac_file in conftest.o conftest.obj conftest.*; do
2599 test -f "$ac_file" || continue;
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2603 break;;
2604 esac
2605 done
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2613 See \`config.log' for more details." >&2;}
2614 { (exit 1); exit 1; }; }
2617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2619 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2620 echo "${ECHO_T}$ac_cv_objext" >&6; }
2621 OBJEXT=$ac_cv_objext
2622 ac_objext=$OBJEXT
2623 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 main ()
2638 #ifndef __GNUC__
2639 choke me
2640 #endif
2643 return 0;
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (ac_try="$ac_compile"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compile") 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } && {
2660 test -z "$ac_c_werror_flag" ||
2661 test ! -s conftest.err
2662 } && test -s conftest.$ac_objext; then
2663 ac_compiler_gnu=yes
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_compiler_gnu=no
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2675 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2676 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2677 GCC=`test $ac_compiler_gnu = yes && echo yes`
2678 ac_test_CFLAGS=${CFLAGS+set}
2679 ac_save_CFLAGS=$CFLAGS
2680 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_cc_g+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 ac_save_c_werror_flag=$ac_c_werror_flag
2686 ac_c_werror_flag=yes
2687 ac_cv_prog_cc_g=no
2688 CFLAGS="-g"
2689 cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h. */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2697 main ()
2701 return 0;
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } && {
2718 test -z "$ac_c_werror_flag" ||
2719 test ! -s conftest.err
2720 } && test -s conftest.$ac_objext; then
2721 ac_cv_prog_cc_g=yes
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 CFLAGS=""
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
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 ac_c_werror_flag=$ac_save_c_werror_flag
2765 CFLAGS="-g"
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2774 main ()
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (ac_try="$ac_compile"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compile") 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } && {
2795 test -z "$ac_c_werror_flag" ||
2796 test ! -s conftest.err
2797 } && test -s conftest.$ac_objext; then
2798 ac_cv_prog_cc_g=yes
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 ac_c_werror_flag=$ac_save_c_werror_flag
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2817 if test "$ac_test_CFLAGS" = set; then
2818 CFLAGS=$ac_save_CFLAGS
2819 elif test $ac_cv_prog_cc_g = yes; then
2820 if test "$GCC" = yes; then
2821 CFLAGS="-g -O2"
2822 else
2823 CFLAGS="-g"
2825 else
2826 if test "$GCC" = yes; then
2827 CFLAGS="-O2"
2828 else
2829 CFLAGS=
2832 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2833 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_cc_c89+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837 ac_cv_prog_cc_c89=no
2838 ac_save_CC=$CC
2839 cat >conftest.$ac_ext <<_ACEOF
2840 /* confdefs.h. */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2845 #include <stdarg.h>
2846 #include <stdio.h>
2847 #include <sys/types.h>
2848 #include <sys/stat.h>
2849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2850 struct buf { int x; };
2851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2852 static char *e (p, i)
2853 char **p;
2854 int i;
2856 return p[i];
2858 static char *f (char * (*g) (char **, int), char **p, ...)
2860 char *s;
2861 va_list v;
2862 va_start (v,p);
2863 s = g (p, va_arg (v,int));
2864 va_end (v);
2865 return s;
2868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2869 function prototypes and stuff, but not '\xHH' hex character constants.
2870 These don't provoke an error unfortunately, instead are silently treated
2871 as 'x'. The following induces an error, until -std is added to get
2872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2873 array size at least. It's necessary to write '\x00'==0 to get something
2874 that's true only with -std. */
2875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2878 inside strings and character constants. */
2879 #define FOO(x) 'x'
2880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886 int argc;
2887 char **argv;
2889 main ()
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2893 return 0;
2895 _ACEOF
2896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2899 CC="$ac_save_CC $ac_arg"
2900 rm -f conftest.$ac_objext
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2917 ac_cv_prog_cc_c89=$ac_arg
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f core conftest.err conftest.$ac_objext
2926 test "x$ac_cv_prog_cc_c89" != "xno" && break
2927 done
2928 rm -f conftest.$ac_ext
2929 CC=$ac_save_CC
2932 # AC_CACHE_VAL
2933 case "x$ac_cv_prog_cc_c89" in
2935 { echo "$as_me:$LINENO: result: none needed" >&5
2936 echo "${ECHO_T}none needed" >&6; } ;;
2937 xno)
2938 { echo "$as_me:$LINENO: result: unsupported" >&5
2939 echo "${ECHO_T}unsupported" >&6; } ;;
2941 CC="$CC $ac_cv_prog_cc_c89"
2942 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2944 esac
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 case $ac_cv_prog_cc_stdc in
2954 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2955 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2956 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_c99+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 ac_cv_prog_cc_c99=no
2961 ac_save_CC=$CC
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968 #include <stdarg.h>
2969 #include <stdbool.h>
2970 #include <stdlib.h>
2971 #include <wchar.h>
2972 #include <stdio.h>
2974 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2975 #define debug(...) fprintf (stderr, __VA_ARGS__)
2976 #define showlist(...) puts (#__VA_ARGS__)
2977 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2978 static void
2979 test_varargs_macros (void)
2981 int x = 1234;
2982 int y = 5678;
2983 debug ("Flag");
2984 debug ("X = %d\n", x);
2985 showlist (The first, second, and third items.);
2986 report (x>y, "x is %d but y is %d", x, y);
2989 // Check long long types.
2990 #define BIG64 18446744073709551615ull
2991 #define BIG32 4294967295ul
2992 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2993 #if !BIG_OK
2994 your preprocessor is broken;
2995 #endif
2996 #if BIG_OK
2997 #else
2998 your preprocessor is broken;
2999 #endif
3000 static long long int bignum = -9223372036854775807LL;
3001 static unsigned long long int ubignum = BIG64;
3003 struct incomplete_array
3005 int datasize;
3006 double data[];
3009 struct named_init {
3010 int number;
3011 const wchar_t *name;
3012 double average;
3015 typedef const char *ccp;
3017 static inline int
3018 test_restrict (ccp restrict text)
3020 // See if C++-style comments work.
3021 // Iterate through items via the restricted pointer.
3022 // Also check for declarations in for loops.
3023 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3024 continue;
3025 return 0;
3028 // Check varargs and va_copy.
3029 static void
3030 test_varargs (const char *format, ...)
3032 va_list args;
3033 va_start (args, format);
3034 va_list args_copy;
3035 va_copy (args_copy, args);
3037 const char *str;
3038 int number;
3039 float fnumber;
3041 while (*format)
3043 switch (*format++)
3045 case 's': // string
3046 str = va_arg (args_copy, const char *);
3047 break;
3048 case 'd': // int
3049 number = va_arg (args_copy, int);
3050 break;
3051 case 'f': // float
3052 fnumber = va_arg (args_copy, double);
3053 break;
3054 default:
3055 break;
3058 va_end (args_copy);
3059 va_end (args);
3063 main ()
3066 // Check bool.
3067 _Bool success = false;
3069 // Check restrict.
3070 if (test_restrict ("String literal") == 0)
3071 success = true;
3072 char *restrict newvar = "Another string";
3074 // Check varargs.
3075 test_varargs ("s, d' f .", "string", 65, 34.234);
3076 test_varargs_macros ();
3078 // Check flexible array members.
3079 struct incomplete_array *ia =
3080 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3081 ia->datasize = 10;
3082 for (int i = 0; i < ia->datasize; ++i)
3083 ia->data[i] = i * 1.234;
3085 // Check named initializers.
3086 struct named_init ni = {
3087 .number = 34,
3088 .name = L"Test wide string",
3089 .average = 543.34343,
3092 ni.number = 58;
3094 int dynamic_array[ni.number];
3095 dynamic_array[ni.number - 1] = 543;
3097 // work around unused variable warnings
3098 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3099 || dynamic_array[ni.number - 1] != 543);
3102 return 0;
3104 _ACEOF
3105 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3107 CC="$ac_save_CC $ac_arg"
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } && {
3122 test -z "$ac_c_werror_flag" ||
3123 test ! -s conftest.err
3124 } && test -s conftest.$ac_objext; then
3125 ac_cv_prog_cc_c99=$ac_arg
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3133 rm -f core conftest.err conftest.$ac_objext
3134 test "x$ac_cv_prog_cc_c99" != "xno" && break
3135 done
3136 rm -f conftest.$ac_ext
3137 CC=$ac_save_CC
3140 # AC_CACHE_VAL
3141 case "x$ac_cv_prog_cc_c99" in
3143 { echo "$as_me:$LINENO: result: none needed" >&5
3144 echo "${ECHO_T}none needed" >&6; } ;;
3145 xno)
3146 { echo "$as_me:$LINENO: result: unsupported" >&5
3147 echo "${ECHO_T}unsupported" >&6; } ;;
3149 CC="$CC $ac_cv_prog_cc_c99"
3150 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3151 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3152 esac
3153 if test "x$ac_cv_prog_cc_c99" != xno; then
3154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3155 else
3156 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3157 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3158 if test "${ac_cv_prog_cc_c89+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 ac_cv_prog_cc_c89=no
3162 ac_save_CC=$CC
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <stdarg.h>
3170 #include <stdio.h>
3171 #include <sys/types.h>
3172 #include <sys/stat.h>
3173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3174 struct buf { int x; };
3175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3176 static char *e (p, i)
3177 char **p;
3178 int i;
3180 return p[i];
3182 static char *f (char * (*g) (char **, int), char **p, ...)
3184 char *s;
3185 va_list v;
3186 va_start (v,p);
3187 s = g (p, va_arg (v,int));
3188 va_end (v);
3189 return s;
3192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3193 function prototypes and stuff, but not '\xHH' hex character constants.
3194 These don't provoke an error unfortunately, instead are silently treated
3195 as 'x'. The following induces an error, until -std is added to get
3196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3197 array size at least. It's necessary to write '\x00'==0 to get something
3198 that's true only with -std. */
3199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3202 inside strings and character constants. */
3203 #define FOO(x) 'x'
3204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3206 int test (int i, double x);
3207 struct s1 {int (*f) (int a);};
3208 struct s2 {int (*f) (double a);};
3209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3210 int argc;
3211 char **argv;
3213 main ()
3215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3217 return 0;
3219 _ACEOF
3220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3223 CC="$ac_save_CC $ac_arg"
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3241 ac_cv_prog_cc_c89=$ac_arg
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f core conftest.err conftest.$ac_objext
3250 test "x$ac_cv_prog_cc_c89" != "xno" && break
3251 done
3252 rm -f conftest.$ac_ext
3253 CC=$ac_save_CC
3256 # AC_CACHE_VAL
3257 case "x$ac_cv_prog_cc_c89" in
3259 { echo "$as_me:$LINENO: result: none needed" >&5
3260 echo "${ECHO_T}none needed" >&6; } ;;
3261 xno)
3262 { echo "$as_me:$LINENO: result: unsupported" >&5
3263 echo "${ECHO_T}unsupported" >&6; } ;;
3265 CC="$CC $ac_cv_prog_cc_c89"
3266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3267 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3268 esac
3269 if test "x$ac_cv_prog_cc_c89" != xno; then
3270 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3271 else
3272 ac_cv_prog_cc_stdc=no
3279 esac
3280 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3281 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 case $ac_cv_prog_cc_stdc in
3287 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3288 echo "${ECHO_T}unsupported" >&6; } ;;
3289 '') { echo "$as_me:$LINENO: result: none needed" >&5
3290 echo "${ECHO_T}none needed" >&6; } ;;
3291 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3293 esac
3296 ac_ext=c
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3302 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3303 # On Suns, sometimes $CPP names a directory.
3304 if test -n "$CPP" && test -d "$CPP"; then
3305 CPP=
3307 if test -z "$CPP"; then
3308 if test "${ac_cv_prog_CPP+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 # Double quotes because CPP needs to be expanded
3312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 ac_preproc_ok=false
3315 for ac_c_preproc_warn_flag in '' yes
3317 # Use a header file that comes with gcc, so configuring glibc
3318 # with a fresh cross-compiler works.
3319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320 # <limits.h> exists even on freestanding compilers.
3321 # On the NeXT, cc -E runs the code through the compiler's parser,
3322 # not just through cpp. "Syntax error" is here to catch this case.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #ifdef __STDC__
3330 # include <limits.h>
3331 #else
3332 # include <assert.h>
3333 #endif
3334 Syntax error
3335 _ACEOF
3336 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } >/dev/null && {
3349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3350 test ! -s conftest.err
3351 }; then
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 # Broken: fails on valid input.
3358 continue
3361 rm -f conftest.err conftest.$ac_ext
3363 # OK, works on sane cases. Now check whether nonexistent headers
3364 # can be detected and how.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 #include <ac_nonexistent.h>
3372 _ACEOF
3373 if { (ac_try="$ac_cpp conftest.$ac_ext"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } >/dev/null && {
3386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3387 test ! -s conftest.err
3388 }; then
3389 # Broken: success on invalid input.
3390 continue
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Passes both tests.
3396 ac_preproc_ok=:
3397 break
3400 rm -f conftest.err conftest.$ac_ext
3402 done
3403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3404 rm -f conftest.err conftest.$ac_ext
3405 if $ac_preproc_ok; then
3406 break
3409 done
3410 ac_cv_prog_CPP=$CPP
3413 CPP=$ac_cv_prog_CPP
3414 else
3415 ac_cv_prog_CPP=$CPP
3417 { echo "$as_me:$LINENO: result: $CPP" >&5
3418 echo "${ECHO_T}$CPP" >&6; }
3419 ac_preproc_ok=false
3420 for ac_c_preproc_warn_flag in '' yes
3422 # Use a header file that comes with gcc, so configuring glibc
3423 # with a fresh cross-compiler works.
3424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3425 # <limits.h> exists even on freestanding compilers.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #ifdef __STDC__
3435 # include <limits.h>
3436 #else
3437 # include <assert.h>
3438 #endif
3439 Syntax error
3440 _ACEOF
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null && {
3454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3455 test ! -s conftest.err
3456 }; then
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Broken: fails on valid input.
3463 continue
3466 rm -f conftest.err conftest.$ac_ext
3468 # OK, works on sane cases. Now check whether nonexistent headers
3469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #include <ac_nonexistent.h>
3477 _ACEOF
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null && {
3491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 }; then
3494 # Broken: success on invalid input.
3495 continue
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3505 rm -f conftest.err conftest.$ac_ext
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3512 else
3513 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 # Check for a compatible awk
3528 for ac_prog in gawk nawk
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_AWK+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -n "$AWK"; then
3538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_AWK="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3551 done
3552 done
3553 IFS=$as_save_IFS
3557 AWK=$ac_cv_prog_AWK
3558 if test -n "$AWK"; then
3559 { echo "$as_me:$LINENO: result: $AWK" >&5
3560 echo "${ECHO_T}$AWK" >&6; }
3561 else
3562 { echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6; }
3567 test -n "$AWK" && break
3568 done
3570 if test "$AWK" = ""; then
3571 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3572 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3573 { (exit 1); exit 1; }; }
3575 # Extract the first word of "mmake", so it can be a program name with args.
3576 set dummy mmake; ac_word=$2
3577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3579 if test "${ac_cv_prog_MMAKE+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 if test -n "$MMAKE"; then
3583 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_MMAKE="mmake "
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 MMAKE=$ac_cv_prog_MMAKE
3603 if test -n "$MMAKE"; then
3604 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3605 echo "${ECHO_T}$MMAKE" >&6; }
3606 else
3607 { echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6; }
3613 # Perform some default variable assignments. Note all of these will be
3614 # Regenerated from the script, so there is no need to cache them.
3616 aros_host_cc="$CC"
3617 if test "$GCC" = "yes"; then
3618 aros_gcc_ld=`$CC -print-prog-name=ld`
3619 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3620 set dummy `basename $aros_gcc_ld`; ac_word=$2
3621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 case $aros_host_ld in
3627 [\\/]* | ?:[\\/]*)
3628 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in `dirname $aros_gcc_ld`
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3642 done
3643 done
3644 IFS=$as_save_IFS
3647 esac
3649 aros_host_ld=$ac_cv_path_aros_host_ld
3650 if test -n "$aros_host_ld"; then
3651 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3652 echo "${ECHO_T}$aros_host_ld" >&6; }
3653 else
3654 { echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6; }
3660 if test "$aros_host_ld" = ""; then
3661 # Extract the first word of "ld", so it can be a program name with args.
3662 set dummy ld; ac_word=$2
3663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 case $aros_host_ld in
3669 [\\/]* | ?:[\\/]*)
3670 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3684 done
3685 done
3686 IFS=$as_save_IFS
3689 esac
3691 aros_host_ld=$ac_cv_path_aros_host_ld
3692 if test -n "$aros_host_ld"; then
3693 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3694 echo "${ECHO_T}$aros_host_ld" >&6; }
3695 else
3696 { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3702 if test "$aros_host_ld" = ""; then
3703 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3704 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3705 { (exit 1); exit 1; }; }
3707 aros_host_make="make"
3708 aros_host_cflags=$CFLAGS
3709 aros_host_ldflags=$LDFLAGS
3710 aros_host_debug="-g -O0"
3711 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3712 aros_host_mkargs="--no-print-directory"
3713 aros_host_incl="/usr/include"
3714 aros_host_exe_suffix="$EXEEXT"
3715 aros_host_lib_suffix=""
3717 for ac_prog in aclocal aclocal19
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$aros_host_aclocal"; then
3727 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_aros_host_aclocal="$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3742 IFS=$as_save_IFS
3746 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3747 if test -n "$aros_host_aclocal"; then
3748 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3749 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3750 else
3751 { echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6; }
3756 test -n "$aros_host_aclocal" && break
3757 done
3759 for ac_prog in autoconf autoconf259 autoconf253
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3765 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$aros_host_autoconf"; then
3769 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_aros_host_autoconf="$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3784 IFS=$as_save_IFS
3788 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3789 if test -n "$aros_host_autoconf"; then
3790 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3791 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3792 else
3793 { echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6; }
3798 test -n "$aros_host_autoconf" && break
3799 done
3801 for ac_prog in autoheader autoheader259 autoheader253
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3807 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 if test -n "$aros_host_autoheader"; then
3811 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_prog_aros_host_autoheader="$ac_prog"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3826 IFS=$as_save_IFS
3830 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3831 if test -n "$aros_host_autoheader"; then
3832 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3833 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3834 else
3835 { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3840 test -n "$aros_host_autoheader" && break
3841 done
3843 for ac_prog in automake automake19
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3849 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$aros_host_automake"; then
3853 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_prog_aros_host_automake="$ac_prog"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3868 IFS=$as_save_IFS
3872 aros_host_automake=$ac_cv_prog_aros_host_automake
3873 if test -n "$aros_host_automake"; then
3874 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3875 echo "${ECHO_T}$aros_host_automake" >&6; }
3876 else
3877 { echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6; }
3882 test -n "$aros_host_automake" && break
3883 done
3886 case "$aros_host_cc" in
3887 *gcc*)
3888 aros_host_cc_pipe="-pipe"
3890 icc)
3891 aros_host_cc_pipe=""
3894 aros_host_cc_pipe=""
3896 esac
3898 aros_target_cc_includes=""
3900 # This is the main host configuration section. It is where the host
3901 # can change the values of any variables it needs to change. We do
3902 # not look at anything that compiles to the target yet, we'll get
3903 # to that later.
3905 case "$host_os" in
3906 linux*)
3907 aros_host_arch="linux"
3908 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3909 case "$host_cpu" in
3910 *i?86*)
3911 aros_host_cpu="i386"
3913 *x86_64*)
3914 aros_host_cpu="x86_64"
3916 *m68k*)
3917 aros_host_cpu="m68k"
3919 *powerpc*)
3920 aros_host_cpu="ppc"
3923 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3924 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3925 aros_host_cpu="$host_cpu"
3927 esac
3930 freebsd*)
3931 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3932 aros_host_make="gmake"
3933 aros_host_arch="freebsd"
3934 aros_host_cpu="i386"
3936 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3939 case $host_os in
3940 freebsd[234]*)
3941 aros_object_format="elf_i386"
3945 aros_object_format="elf_i386_fbsd"
3947 esac
3951 darwin*)
3952 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3953 aros_host_arch="darwin"
3954 case "$host_cpu" in
3955 *i?86*)
3956 aros_host_cpu="i386"
3958 *powerpc*)
3959 aros_host_cpu="ppc"
3962 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3963 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3964 aros_host_cpu="$host_cpu"
3966 esac
3968 aros_host_ldflags="$aros_host_ldflags -liconv"
3972 netbsd*)
3973 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3974 aros_host_make="gmake"
3975 aros_host_arch="netbsd"
3976 case "$host_cpu" in
3977 *i?86*)
3978 aros_host_cpu="i386"
3980 *m68k*)
3981 aros_host_cpu="m68k"
3984 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3985 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3986 aros_host_cpu="$host_cpu"
3988 esac
3989 aros_host_lib_suffix=".0.0"
3992 openbsd*)
3993 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3994 aros_host_make="gmake"
3995 aros_host_arch="openbsd"
3996 case "$host_cpu" in
3997 *i?86*)
3998 aros_host_cpu="i386"
4001 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4002 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4003 aros_host_cpu="$host_cpu"
4005 esac
4008 solaris*)
4009 aros_host_arch="solaris"
4010 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4011 case "$host_cpu" in
4012 *sparc*)
4013 aros_host_cpu="sparc"
4016 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4017 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4018 aros_host_cpu="$host_cpu"
4020 esac
4023 morphos*)
4024 aros_host_arch="morphos"
4025 aros_host_cpu="ppc"
4028 amiga*)
4029 aros_host_arch="amiga"
4030 SORT="/gg/bin/sort"
4031 TEST="/gg/bin/test"
4032 UNIQ="/gg/bin/uniq"
4033 FOR="for"
4034 TOUCH="/gg/bin/touch"
4035 case "$host_cpu" in
4036 *m68k*)
4037 aros_host_cpu="m68k"
4039 *powerpc*)
4040 aros_host_cpu="ppc"
4043 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4044 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4045 aros_host_cpu="$host_cpu"
4047 esac
4050 cygwin*)
4051 aros_host_arch="cygwin"
4052 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4053 case "$host_cpu" in
4054 *i?86*)
4055 aros_host_cpu="i386"
4058 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4059 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4060 aros_host_cpu="$host_cpu"
4062 esac
4065 mingw32*)
4066 aros_host_arch="mingw32"
4067 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4068 case "$host_cpu" in
4069 *i?86*)
4070 aros_host_cpu="i386"
4073 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4074 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4075 aros_host_cpu="$host_cpu"
4077 esac
4080 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4081 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4082 { (exit 1); exit 1; }; }
4084 esac
4086 # Extract the first word of "ar", so it can be a program name with args.
4087 set dummy ar; ac_word=$2
4088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4090 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 if test -n "$aros_host_ar"; then
4094 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4103 ac_cv_prog_aros_host_ar="ar cr"
4104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 break 2
4107 done
4108 done
4109 IFS=$as_save_IFS
4113 aros_host_ar=$ac_cv_prog_aros_host_ar
4114 if test -n "$aros_host_ar"; then
4115 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4116 echo "${ECHO_T}$aros_host_ar" >&6; }
4117 else
4118 { echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6; }
4123 if test "$aros_host_ar" = ""; then
4124 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4125 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4126 { (exit 1); exit 1; }; }
4128 # Extract the first word of "ranlib", so it can be a program name with args.
4129 set dummy ranlib; ac_word=$2
4130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4132 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 if test -n "$aros_host_ranlib"; then
4136 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_aros_host_ranlib="ranlib "
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4151 IFS=$as_save_IFS
4155 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4156 if test -n "$aros_host_ranlib"; then
4157 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4158 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4159 else
4160 { echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6; }
4165 if test "$aros_host_ranlib" = ""; then
4166 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4167 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4168 { (exit 1); exit 1; }; }
4170 # Extract the first word of "strip", so it can be a program name with args.
4171 set dummy strip; ac_word=$2
4172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4174 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 if test -n "$aros_host_strip"; then
4178 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_prog_aros_host_strip="strip "
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 aros_host_strip=$ac_cv_prog_aros_host_strip
4198 if test -n "$aros_host_strip"; then
4199 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4200 echo "${ECHO_T}$aros_host_strip" >&6; }
4201 else
4202 { echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6; }
4207 if test "$aros_host_strip" = ""; then
4208 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4209 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4210 { (exit 1); exit 1; }; }
4213 # Extract the first word of "rm", so it can be a program name with args.
4214 set dummy rm; ac_word=$2
4215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217 if test "${ac_cv_prog_RM+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 if test -n "$RM"; then
4221 ac_cv_prog_RM="$RM" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_RM="rm -rf"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4234 done
4235 done
4236 IFS=$as_save_IFS
4240 RM=$ac_cv_prog_RM
4241 if test -n "$RM"; then
4242 { echo "$as_me:$LINENO: result: $RM" >&5
4243 echo "${ECHO_T}$RM" >&6; }
4244 else
4245 { echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6; }
4250 if test "$RM" = ""; then
4251 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4252 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4253 { (exit 1); exit 1; }; }
4255 # Extract the first word of "cp", so it can be a program name with args.
4256 set dummy cp; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_CP+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 if test -n "$CP"; then
4263 ac_cv_prog_CP="$CP" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_CP="cp "
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4278 IFS=$as_save_IFS
4282 CP=$ac_cv_prog_CP
4283 if test -n "$CP"; then
4284 { echo "$as_me:$LINENO: result: $CP" >&5
4285 echo "${ECHO_T}$CP" >&6; }
4286 else
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4292 if test "$CP" = ""; then
4293 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4294 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4295 { (exit 1); exit 1; }; }
4297 # Extract the first word of "mv", so it can be a program name with args.
4298 set dummy mv; ac_word=$2
4299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4301 if test "${ac_cv_prog_MV+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304 if test -n "$MV"; then
4305 ac_cv_prog_MV="$MV" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_prog_MV="mv "
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4318 done
4319 done
4320 IFS=$as_save_IFS
4324 MV=$ac_cv_prog_MV
4325 if test -n "$MV"; then
4326 { echo "$as_me:$LINENO: result: $MV" >&5
4327 echo "${ECHO_T}$MV" >&6; }
4328 else
4329 { echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6; }
4334 if test "$MV" = ""; then
4335 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4336 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4337 { (exit 1); exit 1; }; }
4339 # Extract the first word of "echo", so it can be a program name with args.
4340 set dummy echo; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_ECHO+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 if test -n "$ECHO"; then
4347 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_ECHO="echo "
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4360 done
4361 done
4362 IFS=$as_save_IFS
4366 ECHO=$ac_cv_prog_ECHO
4367 if test -n "$ECHO"; then
4368 { echo "$as_me:$LINENO: result: $ECHO" >&5
4369 echo "${ECHO_T}$ECHO" >&6; }
4370 else
4371 { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4376 if test "$ECHO" = ""; then
4377 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4378 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4379 { (exit 1); exit 1; }; }
4381 # Extract the first word of "mkdir", so it can be a program name with args.
4382 set dummy mkdir; ac_word=$2
4383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4385 if test "${ac_cv_prog_MKDIR+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 if test -n "$MKDIR"; then
4389 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_MKDIR="mkdir -p"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4402 done
4403 done
4404 IFS=$as_save_IFS
4408 MKDIR=$ac_cv_prog_MKDIR
4409 if test -n "$MKDIR"; then
4410 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4411 echo "${ECHO_T}$MKDIR" >&6; }
4412 else
4413 { echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6; }
4418 if test "$MKDIR" = ""; then
4419 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4420 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4421 { (exit 1); exit 1; }; }
4423 # Extract the first word of "touch", so it can be a program name with args.
4424 set dummy touch; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_TOUCH+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$TOUCH"; then
4431 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_TOUCH="touch "
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 TOUCH=$ac_cv_prog_TOUCH
4451 if test -n "$TOUCH"; then
4452 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4453 echo "${ECHO_T}$TOUCH" >&6; }
4454 else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test "$TOUCH" = ""; then
4461 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4462 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4463 { (exit 1); exit 1; }; }
4465 # Extract the first word of "sort", so it can be a program name with args.
4466 set dummy sort; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_SORT+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$SORT"; then
4473 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_SORT="sort "
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 SORT=$ac_cv_prog_SORT
4493 if test -n "$SORT"; then
4494 { echo "$as_me:$LINENO: result: $SORT" >&5
4495 echo "${ECHO_T}$SORT" >&6; }
4496 else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4502 if test "$SORT" = ""; then
4503 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4504 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4505 { (exit 1); exit 1; }; }
4507 # Extract the first word of "uniq", so it can be a program name with args.
4508 set dummy uniq; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_prog_UNIQ+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 if test -n "$UNIQ"; then
4515 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_UNIQ="uniq "
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 UNIQ=$ac_cv_prog_UNIQ
4535 if test -n "$UNIQ"; then
4536 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4537 echo "${ECHO_T}$UNIQ" >&6; }
4538 else
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4544 if test "$UNIQ" = ""; then
4545 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4546 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4547 { (exit 1); exit 1; }; }
4549 # Extract the first word of "true", so it can be a program name with args.
4550 set dummy true; ac_word=$2
4551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4553 if test "${ac_cv_prog_NOP+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 if test -n "$NOP"; then
4557 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_NOP="true "
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4570 done
4571 done
4572 IFS=$as_save_IFS
4576 NOP=$ac_cv_prog_NOP
4577 if test -n "$NOP"; then
4578 { echo "$as_me:$LINENO: result: $NOP" >&5
4579 echo "${ECHO_T}$NOP" >&6; }
4580 else
4581 { echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6; }
4586 if test "$NOP" = ""; then
4587 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4588 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4589 { (exit 1); exit 1; }; }
4591 # Extract the first word of "cat", so it can be a program name with args.
4592 set dummy cat; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_prog_CAT+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 if test -n "$CAT"; then
4599 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_CAT="cat "
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4618 CAT=$ac_cv_prog_CAT
4619 if test -n "$CAT"; then
4620 { echo "$as_me:$LINENO: result: $CAT" >&5
4621 echo "${ECHO_T}$CAT" >&6; }
4622 else
4623 { echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6; }
4628 if test "$CAT" = ""; then
4629 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4630 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4631 { (exit 1); exit 1; }; }
4633 # Extract the first word of "bison", so it can be a program name with args.
4634 set dummy bison; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BISON+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$BISON"; then
4641 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_BISON="bison "
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 BISON=$ac_cv_prog_BISON
4661 if test -n "$BISON"; then
4662 { echo "$as_me:$LINENO: result: $BISON" >&5
4663 echo "${ECHO_T}$BISON" >&6; }
4664 else
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test "$BISON" = ""; then
4671 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4672 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4673 { (exit 1); exit 1; }; }
4675 # Extract the first word of "flex", so it can be a program name with args.
4676 set dummy flex; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_FLEX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 if test -n "$FLEX"; then
4683 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_FLEX="flex "
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4696 done
4697 done
4698 IFS=$as_save_IFS
4702 FLEX=$ac_cv_prog_FLEX
4703 if test -n "$FLEX"; then
4704 { echo "$as_me:$LINENO: result: $FLEX" >&5
4705 echo "${ECHO_T}$FLEX" >&6; }
4706 else
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4712 if test "$FLEX" = ""; then
4713 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4714 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4715 { (exit 1); exit 1; }; }
4717 # Extract the first word of "pngtopnm", so it can be a program name with args.
4718 set dummy pngtopnm; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 if test -n "$PNGTOPNM"; then
4725 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_PNGTOPNM="pngtopnm "
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4738 done
4739 done
4740 IFS=$as_save_IFS
4744 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4745 if test -n "$PNGTOPNM"; then
4746 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4747 echo "${ECHO_T}$PNGTOPNM" >&6; }
4748 else
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4754 if test "$PNGTOPNM" = ""; then
4755 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4756 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4757 { (exit 1); exit 1; }; }
4759 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4760 set dummy ppmtoilbm; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 if test -n "$PPMTOILBM"; then
4767 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4780 done
4781 done
4782 IFS=$as_save_IFS
4786 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4787 if test -n "$PPMTOILBM"; then
4788 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4789 echo "${ECHO_T}$PPMTOILBM" >&6; }
4790 else
4791 { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4796 if test "$PPMTOILBM" = ""; then
4797 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4798 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4799 { (exit 1); exit 1; }; }
4801 # Extract the first word of "sed", so it can be a program name with args.
4802 set dummy sed; ac_word=$2
4803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805 if test "${ac_cv_prog_SED+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 if test -n "$SED"; then
4809 ac_cv_prog_SED="$SED" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_SED="sed "
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4822 done
4823 done
4824 IFS=$as_save_IFS
4828 SED=$ac_cv_prog_SED
4829 if test -n "$SED"; then
4830 { echo "$as_me:$LINENO: result: $SED" >&5
4831 echo "${ECHO_T}$SED" >&6; }
4832 else
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4838 if test "$SED" = ""; then
4839 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4840 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4841 { (exit 1); exit 1; }; }
4843 # Extract the first word of "chmod", so it can be a program name with args.
4844 set dummy chmod; ac_word=$2
4845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4847 if test "${ac_cv_prog_CHMOD+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 if test -n "$CHMOD"; then
4851 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_CHMOD="chmod "
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4864 done
4865 done
4866 IFS=$as_save_IFS
4870 CHMOD=$ac_cv_prog_CHMOD
4871 if test -n "$CHMOD"; then
4872 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4873 echo "${ECHO_T}$CHMOD" >&6; }
4874 else
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 if test "$CHMOD" = ""; then
4881 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4882 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4883 { (exit 1); exit 1; }; }
4890 if test -n "$PYTHON"; then
4891 # If the user set $PYTHON, use it and don't search something else.
4892 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4893 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4894 prog="import sys, string
4895 # split strings by '.' and convert to numeric. Append some zeros
4896 # because we need at least 4 digits for the hex conversion.
4897 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4898 minverhex = 0
4899 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4900 sys.exit(sys.hexversion < minverhex)"
4901 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4902 ($PYTHON -c "$prog") >&5 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; then
4906 { echo "$as_me:$LINENO: result: yes" >&5
4907 echo "${ECHO_T}yes" >&6; }
4908 else
4909 { { echo "$as_me:$LINENO: error: too old" >&5
4910 echo "$as_me: error: too old" >&2;}
4911 { (exit 1); exit 1; }; }
4914 am_display_PYTHON=$PYTHON
4915 else
4916 # Otherwise, try each interpreter until we find one that satisfies
4917 # VERSION.
4918 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4919 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4920 if test "${am_cv_pathless_PYTHON+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4924 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
4925 test "$am_cv_pathless_PYTHON" = none && break
4926 prog="import sys, string
4927 # split strings by '.' and convert to numeric. Append some zeros
4928 # because we need at least 4 digits for the hex conversion.
4929 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4930 minverhex = 0
4931 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4932 sys.exit(sys.hexversion < minverhex)"
4933 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4934 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; then
4938 break
4941 done
4943 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4944 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4945 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4946 if test "$am_cv_pathless_PYTHON" = none; then
4947 PYTHON=:
4948 else
4949 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4950 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953 if test "${ac_cv_path_PYTHON+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 case $PYTHON in
4957 [\\/]* | ?:[\\/]*)
4958 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4977 esac
4979 PYTHON=$ac_cv_path_PYTHON
4980 if test -n "$PYTHON"; then
4981 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4982 echo "${ECHO_T}$PYTHON" >&6; }
4983 else
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4990 am_display_PYTHON=$am_cv_pathless_PYTHON
4994 if test "$PYTHON" = :; then
4995 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4996 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4997 { (exit 1); exit 1; }; }
4998 else
5001 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5002 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5003 if test "${am_cv_python_version+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5008 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5009 echo "${ECHO_T}$am_cv_python_version" >&6; }
5010 PYTHON_VERSION=$am_cv_python_version
5014 PYTHON_PREFIX='${prefix}'
5016 PYTHON_EXEC_PREFIX='${exec_prefix}'
5020 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5021 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5022 if test "${am_cv_python_platform+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5027 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5028 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5029 PYTHON_PLATFORM=$am_cv_python_platform
5034 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5035 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5036 if test "${am_cv_python_pythondir+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5040 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5042 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5043 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5044 pythondir=$am_cv_python_pythondir
5048 pkgpythondir=\${pythondir}/$PACKAGE
5051 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5052 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5053 if test "${am_cv_python_pyexecdir+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5057 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5059 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5060 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5061 pyexecdir=$am_cv_python_pyexecdir
5065 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5073 FOR=for
5075 IF=if
5077 TEST=test
5079 CMP=cmp
5083 # Check for some includes for the X11 HIDD and the kernel
5086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5088 if test "${ac_cv_path_GREP+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 # Extract the first word of "grep ggrep" to use in msg output
5092 if test -z "$GREP"; then
5093 set dummy grep ggrep; ac_prog_name=$2
5094 if test "${ac_cv_path_GREP+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 ac_path_GREP_found=false
5098 # Loop through the user's path and test for each of PROGNAME-LIST
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_prog in grep ggrep; do
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5108 # Check for GNU ac_path_GREP and select it if it is found.
5109 # Check for GNU $ac_path_GREP
5110 case `"$ac_path_GREP" --version 2>&1` in
5111 *GNU*)
5112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5114 ac_count=0
5115 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5116 while :
5118 cat "conftest.in" "conftest.in" >"conftest.tmp"
5119 mv "conftest.tmp" "conftest.in"
5120 cp "conftest.in" "conftest.nl"
5121 echo 'GREP' >> "conftest.nl"
5122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124 ac_count=`expr $ac_count + 1`
5125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5126 # Best one so far, save it but keep looking for a better one
5127 ac_cv_path_GREP="$ac_path_GREP"
5128 ac_path_GREP_max=$ac_count
5130 # 10*(2^10) chars as input seems more than enough
5131 test $ac_count -gt 10 && break
5132 done
5133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5134 esac
5137 $ac_path_GREP_found && break 3
5138 done
5139 done
5141 done
5142 IFS=$as_save_IFS
5147 GREP="$ac_cv_path_GREP"
5148 if test -z "$GREP"; then
5149 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5151 { (exit 1); exit 1; }; }
5154 else
5155 ac_cv_path_GREP=$GREP
5160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5162 GREP="$ac_cv_path_GREP"
5165 { echo "$as_me:$LINENO: checking for egrep" >&5
5166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171 then ac_cv_path_EGREP="$GREP -E"
5172 else
5173 # Extract the first word of "egrep" to use in msg output
5174 if test -z "$EGREP"; then
5175 set dummy egrep; ac_prog_name=$2
5176 if test "${ac_cv_path_EGREP+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 ac_path_EGREP_found=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_prog in egrep; do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5193 *GNU*)
5194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5196 ac_count=0
5197 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5198 while :
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 echo 'EGREP' >> "conftest.nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206 ac_count=`expr $ac_count + 1`
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP="$ac_path_EGREP"
5210 ac_path_EGREP_max=$ac_count
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5214 done
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5219 $ac_path_EGREP_found && break 3
5220 done
5221 done
5223 done
5224 IFS=$as_save_IFS
5229 EGREP="$ac_cv_path_EGREP"
5230 if test -z "$EGREP"; then
5231 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5233 { (exit 1); exit 1; }; }
5236 else
5237 ac_cv_path_EGREP=$EGREP
5243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5245 EGREP="$ac_cv_path_EGREP"
5248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5250 if test "${ac_cv_header_stdc+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h. */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #include <stdlib.h>
5260 #include <stdarg.h>
5261 #include <string.h>
5262 #include <float.h>
5265 main ()
5269 return 0;
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (ac_try="$ac_compile"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compile") 2>conftest.er1
5280 ac_status=$?
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && {
5286 test -z "$ac_c_werror_flag" ||
5287 test ! -s conftest.err
5288 } && test -s conftest.$ac_objext; then
5289 ac_cv_header_stdc=yes
5290 else
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294 ac_cv_header_stdc=no
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 if test $ac_cv_header_stdc = yes; then
5300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5301 cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 #include <string.h>
5309 _ACEOF
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "memchr" >/dev/null 2>&1; then
5313 else
5314 ac_cv_header_stdc=no
5316 rm -f conftest*
5320 if test $ac_cv_header_stdc = yes; then
5321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <stdlib.h>
5330 _ACEOF
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "free" >/dev/null 2>&1; then
5334 else
5335 ac_cv_header_stdc=no
5337 rm -f conftest*
5341 if test $ac_cv_header_stdc = yes; then
5342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5343 if test "$cross_compiling" = yes; then
5345 else
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 #include <ctype.h>
5353 #include <stdlib.h>
5354 #if ((' ' & 0x0FF) == 0x020)
5355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5357 #else
5358 # define ISLOWER(c) \
5359 (('a' <= (c) && (c) <= 'i') \
5360 || ('j' <= (c) && (c) <= 'r') \
5361 || ('s' <= (c) && (c) <= 'z'))
5362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5363 #endif
5365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5367 main ()
5369 int i;
5370 for (i = 0; i < 256; i++)
5371 if (XOR (islower (i), ISLOWER (i))
5372 || toupper (i) != TOUPPER (i))
5373 return 2;
5374 return 0;
5376 _ACEOF
5377 rm -f conftest$ac_exeext
5378 if { (ac_try="$ac_link"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_link") 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5388 { (case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_try") 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5398 else
5399 echo "$as_me: program exited with status $ac_status" >&5
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ( exit $ac_status )
5404 ac_cv_header_stdc=no
5406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5412 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5413 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5414 if test $ac_cv_header_stdc = yes; then
5416 cat >>confdefs.h <<\_ACEOF
5417 #define STDC_HEADERS 1
5418 _ACEOF
5422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5433 inttypes.h stdint.h unistd.h
5435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441 cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h. */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447 $ac_includes_default
5449 #include <$ac_header>
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_compile") 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } && {
5465 test -z "$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5467 } && test -s conftest.$ac_objext; then
5468 eval "$as_ac_Header=yes"
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 eval "$as_ac_Header=no"
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 ac_res=`eval echo '${'$as_ac_Header'}'`
5479 { echo "$as_me:$LINENO: result: $ac_res" >&5
5480 echo "${ECHO_T}$ac_res" >&6; }
5481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5482 cat >>confdefs.h <<_ACEOF
5483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484 _ACEOF
5488 done
5500 for ac_header in sys/ipc.h sys/shm.h \
5501 sys/mmap.h sys/mman.h sysexits.h \
5502 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_res=`eval echo '${'$as_ac_Header'}'`
5513 { echo "$as_me:$LINENO: result: $ac_res" >&5
5514 echo "${ECHO_T}$ac_res" >&6; }
5515 else
5516 # Is the header compilable?
5517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 $ac_includes_default
5526 #include <$ac_header>
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_c_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5545 ac_header_compiler=yes
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_header_compiler=no
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5555 echo "${ECHO_T}$ac_header_compiler" >&6; }
5557 # Is the header present?
5558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <$ac_header>
5567 _ACEOF
5568 if { (ac_try="$ac_cpp conftest.$ac_ext"
5569 case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } >/dev/null && {
5581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 }; then
5584 ac_header_preproc=yes
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 ac_header_preproc=no
5592 rm -f conftest.err conftest.$ac_ext
5593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594 echo "${ECHO_T}$ac_header_preproc" >&6; }
5596 # So? What about this header?
5597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598 yes:no: )
5599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5603 ac_header_preproc=yes
5605 no:yes:* )
5606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5620 esac
5621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626 eval "$as_ac_Header=\$ac_header_preproc"
5628 ac_res=`eval echo '${'$as_ac_Header'}'`
5629 { echo "$as_me:$LINENO: result: $ac_res" >&5
5630 echo "${ECHO_T}$ac_res" >&6; }
5633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5634 cat >>confdefs.h <<_ACEOF
5635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5636 _ACEOF
5640 done
5644 for ac_header in sys/mount.h
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <sys/param.h>
5660 #include <$ac_header>
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5664 case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 eval "$as_ac_Header=yes"
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 eval "$as_ac_Header=no"
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_res=`eval echo '${'$as_ac_Header'}'`
5690 { echo "$as_me:$LINENO: result: $ac_res" >&5
5691 echo "${ECHO_T}$ac_res" >&6; }
5692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5693 cat >>confdefs.h <<_ACEOF
5694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5695 _ACEOF
5699 done
5707 ac_header_dirent=no
5708 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5709 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5710 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5711 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <sys/types.h>
5722 #include <$ac_hdr>
5725 main ()
5727 if ((DIR *) 0)
5728 return 0;
5730 return 0;
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (ac_try="$ac_compile"
5735 case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compile") 2>conftest.er1
5741 ac_status=$?
5742 grep -v '^ *+' conftest.er1 >conftest.err
5743 rm -f conftest.er1
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && {
5747 test -z "$ac_c_werror_flag" ||
5748 test ! -s conftest.err
5749 } && test -s conftest.$ac_objext; then
5750 eval "$as_ac_Header=yes"
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 eval "$as_ac_Header=no"
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_res=`eval echo '${'$as_ac_Header'}'`
5761 { echo "$as_me:$LINENO: result: $ac_res" >&5
5762 echo "${ECHO_T}$ac_res" >&6; }
5763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5764 cat >>confdefs.h <<_ACEOF
5765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5766 _ACEOF
5768 ac_header_dirent=$ac_hdr; break
5771 done
5772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5773 if test $ac_header_dirent = dirent.h; then
5774 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5776 if test "${ac_cv_search_opendir+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 ac_func_search_save_LIBS=$LIBS
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5787 /* Override any GCC internal prototype to avoid an error.
5788 Use char because int might match the return type of a GCC
5789 builtin and then its argument prototype would still apply. */
5790 #ifdef __cplusplus
5791 extern "C"
5792 #endif
5793 char opendir ();
5795 main ()
5797 return opendir ();
5799 return 0;
5801 _ACEOF
5802 for ac_lib in '' dir; do
5803 if test -z "$ac_lib"; then
5804 ac_res="none required"
5805 else
5806 ac_res=-l$ac_lib
5807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (ac_try="$ac_link"
5811 case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_link") 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } && {
5823 test -z "$ac_c_werror_flag" ||
5824 test ! -s conftest.err
5825 } && test -s conftest$ac_exeext &&
5826 $as_test_x conftest$ac_exeext; then
5827 ac_cv_search_opendir=$ac_res
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5836 conftest$ac_exeext
5837 if test "${ac_cv_search_opendir+set}" = set; then
5838 break
5840 done
5841 if test "${ac_cv_search_opendir+set}" = set; then
5843 else
5844 ac_cv_search_opendir=no
5846 rm conftest.$ac_ext
5847 LIBS=$ac_func_search_save_LIBS
5849 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5850 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5851 ac_res=$ac_cv_search_opendir
5852 if test "$ac_res" != no; then
5853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5857 else
5858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5860 if test "${ac_cv_search_opendir+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 ac_func_search_save_LIBS=$LIBS
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5871 /* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
5874 #ifdef __cplusplus
5875 extern "C"
5876 #endif
5877 char opendir ();
5879 main ()
5881 return opendir ();
5883 return 0;
5885 _ACEOF
5886 for ac_lib in '' x; do
5887 if test -z "$ac_lib"; then
5888 ac_res="none required"
5889 else
5890 ac_res=-l$ac_lib
5891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5893 rm -f conftest.$ac_objext conftest$ac_exeext
5894 if { (ac_try="$ac_link"
5895 case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_link") 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && {
5907 test -z "$ac_c_werror_flag" ||
5908 test ! -s conftest.err
5909 } && test -s conftest$ac_exeext &&
5910 $as_test_x conftest$ac_exeext; then
5911 ac_cv_search_opendir=$ac_res
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5920 conftest$ac_exeext
5921 if test "${ac_cv_search_opendir+set}" = set; then
5922 break
5924 done
5925 if test "${ac_cv_search_opendir+set}" = set; then
5927 else
5928 ac_cv_search_opendir=no
5930 rm conftest.$ac_ext
5931 LIBS=$ac_func_search_save_LIBS
5933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5935 ac_res=$ac_cv_search_opendir
5936 if test "$ac_res" != no; then
5937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5943 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5944 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5945 if test "${ac_cv_header_stat_broken+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/types.h>
5955 #include <sys/stat.h>
5957 #if defined S_ISBLK && defined S_IFDIR
5958 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5959 #endif
5961 #if defined S_ISBLK && defined S_IFCHR
5962 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5963 #endif
5965 #if defined S_ISLNK && defined S_IFREG
5966 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5967 #endif
5969 #if defined S_ISSOCK && defined S_IFREG
5970 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5971 #endif
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest.$ac_objext; then
5991 ac_cv_header_stat_broken=no
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_cv_header_stat_broken=yes
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6002 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6003 if test $ac_cv_header_stat_broken = yes; then
6005 cat >>confdefs.h <<\_ACEOF
6006 #define STAT_MACROS_BROKEN 1
6007 _ACEOF
6011 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6013 if test "${ac_cv_header_stdc+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <stdlib.h>
6023 #include <stdarg.h>
6024 #include <string.h>
6025 #include <float.h>
6028 main ()
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.$ac_objext; then
6052 ac_cv_header_stdc=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 ac_cv_header_stdc=no
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 if test $ac_cv_header_stdc = yes; then
6063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <string.h>
6072 _ACEOF
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "memchr" >/dev/null 2>&1; then
6076 else
6077 ac_cv_header_stdc=no
6079 rm -f conftest*
6083 if test $ac_cv_header_stdc = yes; then
6084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <stdlib.h>
6093 _ACEOF
6094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6095 $EGREP "free" >/dev/null 2>&1; then
6097 else
6098 ac_cv_header_stdc=no
6100 rm -f conftest*
6104 if test $ac_cv_header_stdc = yes; then
6105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6106 if test "$cross_compiling" = yes; then
6108 else
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <ctype.h>
6116 #include <stdlib.h>
6117 #if ((' ' & 0x0FF) == 0x020)
6118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6120 #else
6121 # define ISLOWER(c) \
6122 (('a' <= (c) && (c) <= 'i') \
6123 || ('j' <= (c) && (c) <= 'r') \
6124 || ('s' <= (c) && (c) <= 'z'))
6125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6126 #endif
6128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6130 main ()
6132 int i;
6133 for (i = 0; i < 256; i++)
6134 if (XOR (islower (i), ISLOWER (i))
6135 || toupper (i) != TOUPPER (i))
6136 return 2;
6137 return 0;
6139 _ACEOF
6140 rm -f conftest$ac_exeext
6141 if { (ac_try="$ac_link"
6142 case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_link") 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6161 else
6162 echo "$as_me: program exited with status $ac_status" >&5
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ( exit $ac_status )
6167 ac_cv_header_stdc=no
6169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6175 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6176 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6177 if test $ac_cv_header_stdc = yes; then
6179 cat >>confdefs.h <<\_ACEOF
6180 #define STDC_HEADERS 1
6181 _ACEOF
6185 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6186 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6187 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 #include <sys/types.h>
6197 #include <sys/wait.h>
6198 #ifndef WEXITSTATUS
6199 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6200 #endif
6201 #ifndef WIFEXITED
6202 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6203 #endif
6206 main ()
6208 int s;
6209 wait (&s);
6210 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6212 return 0;
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (ac_try="$ac_compile"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 ac_cv_header_sys_wait_h=yes
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_cv_header_sys_wait_h=no
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6243 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6244 if test $ac_cv_header_sys_wait_h = yes; then
6246 cat >>confdefs.h <<\_ACEOF
6247 #define HAVE_SYS_WAIT_H 1
6248 _ACEOF
6252 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6253 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6254 if test "${ac_cv_header_time+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <sys/types.h>
6264 #include <sys/time.h>
6265 #include <time.h>
6268 main ()
6270 if ((struct tm *) 0)
6271 return 0;
6273 return 0;
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_compile") 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest.$ac_objext; then
6293 ac_cv_header_time=yes
6294 else
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_cv_header_time=no
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6304 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6305 if test $ac_cv_header_time = yes; then
6307 cat >>confdefs.h <<\_ACEOF
6308 #define TIME_WITH_SYS_TIME 1
6309 _ACEOF
6313 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6314 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6315 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6326 main ()
6328 static struct stat ac_aggr;
6329 if (ac_aggr.st_blksize)
6330 return 0;
6332 return 0;
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 ac_cv_member_struct_stat_st_blksize=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 $ac_includes_default
6365 main ()
6367 static struct stat ac_aggr;
6368 if (sizeof ac_aggr.st_blksize)
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_member_struct_stat_st_blksize=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 ac_cv_member_struct_stat_st_blksize=no
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6405 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6406 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6408 cat >>confdefs.h <<_ACEOF
6409 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6410 _ACEOF
6413 cat >>confdefs.h <<\_ACEOF
6414 #define HAVE_ST_BLKSIZE 1
6415 _ACEOF
6420 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6421 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6422 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6433 main ()
6435 static struct stat ac_aggr;
6436 if (ac_aggr.st_blocks)
6437 return 0;
6439 return 0;
6441 _ACEOF
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_compile") 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } && {
6456 test -z "$ac_c_werror_flag" ||
6457 test ! -s conftest.err
6458 } && test -s conftest.$ac_objext; then
6459 ac_cv_member_struct_stat_st_blocks=yes
6460 else
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h. */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 $ac_includes_default
6472 main ()
6474 static struct stat ac_aggr;
6475 if (sizeof ac_aggr.st_blocks)
6476 return 0;
6478 return 0;
6480 _ACEOF
6481 rm -f conftest.$ac_objext
6482 if { (ac_try="$ac_compile"
6483 case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486 esac
6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 ac_cv_member_struct_stat_st_blocks=yes
6499 else
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_cv_member_struct_stat_st_blocks=no
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6512 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6513 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6517 _ACEOF
6520 cat >>confdefs.h <<\_ACEOF
6521 #define HAVE_ST_BLOCKS 1
6522 _ACEOF
6524 else
6525 case " $LIBOBJS " in
6526 *" fileblocks.$ac_objext "* ) ;;
6527 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6529 esac
6534 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6535 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6536 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 $ac_includes_default
6547 main ()
6549 static struct stat ac_aggr;
6550 if (ac_aggr.st_rdev)
6551 return 0;
6553 return 0;
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_cv_member_struct_stat_st_rdev=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 $ac_includes_default
6586 main ()
6588 static struct stat ac_aggr;
6589 if (sizeof ac_aggr.st_rdev)
6590 return 0;
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest.$ac_objext; then
6612 ac_cv_member_struct_stat_st_rdev=yes
6613 else
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 ac_cv_member_struct_stat_st_rdev=no
6620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6626 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6627 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define HAVE_STRUCT_STAT_ST_RDEV 1
6631 _ACEOF
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_ST_RDEV 1
6636 _ACEOF
6641 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6642 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6643 if test "${ac_cv_struct_tm+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <sys/types.h>
6653 #include <time.h>
6656 main ()
6658 struct tm tm;
6659 int *p = &tm.tm_sec;
6660 return !p;
6662 return 0;
6664 _ACEOF
6665 rm -f conftest.$ac_objext
6666 if { (ac_try="$ac_compile"
6667 case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_compile") 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest.$ac_objext; then
6682 ac_cv_struct_tm=time.h
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 ac_cv_struct_tm=sys/time.h
6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6693 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6694 if test $ac_cv_struct_tm = sys/time.h; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define TM_IN_SYS_TIME 1
6698 _ACEOF
6702 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6703 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6704 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <sys/types.h>
6714 #include <$ac_cv_struct_tm>
6718 main ()
6720 static struct tm ac_aggr;
6721 if (ac_aggr.tm_zone)
6722 return 0;
6724 return 0;
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6729 case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732 esac
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_compile") 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest.$ac_objext; then
6744 ac_cv_member_struct_tm_tm_zone=yes
6745 else
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <sys/types.h>
6756 #include <$ac_cv_struct_tm>
6760 main ()
6762 static struct tm ac_aggr;
6763 if (sizeof ac_aggr.tm_zone)
6764 return 0;
6766 return 0;
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_compile") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest.$ac_objext; then
6786 ac_cv_member_struct_tm_tm_zone=yes
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_cv_member_struct_tm_tm_zone=no
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6800 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6801 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_STRUCT_TM_TM_ZONE 1
6805 _ACEOF
6810 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_TM_ZONE 1
6814 _ACEOF
6816 else
6817 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6818 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6819 if test "${ac_cv_have_decl_tzname+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 #include <time.h>
6831 main ()
6833 #ifndef tzname
6834 (void) tzname;
6835 #endif
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.$ac_objext; then
6858 ac_cv_have_decl_tzname=yes
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 ac_cv_have_decl_tzname=no
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6869 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6870 if test $ac_cv_have_decl_tzname = yes; then
6872 cat >>confdefs.h <<_ACEOF
6873 #define HAVE_DECL_TZNAME 1
6874 _ACEOF
6877 else
6878 cat >>confdefs.h <<_ACEOF
6879 #define HAVE_DECL_TZNAME 0
6880 _ACEOF
6886 { echo "$as_me:$LINENO: checking for tzname" >&5
6887 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6888 if test "${ac_cv_var_tzname+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <time.h>
6898 #if !HAVE_DECL_TZNAME
6899 extern char *tzname[];
6900 #endif
6903 main ()
6905 return tzname[0][0];
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (ac_try="$ac_link"
6912 case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915 esac
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_link") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest$ac_exeext &&
6927 $as_test_x conftest$ac_exeext; then
6928 ac_cv_var_tzname=yes
6929 else
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ac_cv_var_tzname=no
6936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6937 conftest$ac_exeext conftest.$ac_ext
6939 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6940 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6941 if test $ac_cv_var_tzname = yes; then
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_TZNAME 1
6945 _ACEOF
6950 { echo "$as_me:$LINENO: checking for off_t" >&5
6951 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6952 if test "${ac_cv_type_off_t+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h. */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 $ac_includes_default
6962 typedef off_t ac__type_new_;
6964 main ()
6966 if ((ac__type_new_ *) 0)
6967 return 0;
6968 if (sizeof (ac__type_new_))
6969 return 0;
6971 return 0;
6973 _ACEOF
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6976 case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979 esac
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_type_off_t=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_cv_type_off_t=no
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7002 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7003 if test $ac_cv_type_off_t = yes; then
7005 else
7007 cat >>confdefs.h <<_ACEOF
7008 #define off_t long int
7009 _ACEOF
7013 { echo "$as_me:$LINENO: checking for pid_t" >&5
7014 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7015 if test "${ac_cv_type_pid_t+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7025 typedef pid_t ac__type_new_;
7027 main ()
7029 if ((ac__type_new_ *) 0)
7030 return 0;
7031 if (sizeof (ac__type_new_))
7032 return 0;
7034 return 0;
7036 _ACEOF
7037 rm -f conftest.$ac_objext
7038 if { (ac_try="$ac_compile"
7039 case "(($ac_try" in
7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041 *) ac_try_echo=$ac_try;;
7042 esac
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_compile") 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest.$ac_objext; then
7054 ac_cv_type_pid_t=yes
7055 else
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7059 ac_cv_type_pid_t=no
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7065 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7066 if test $ac_cv_type_pid_t = yes; then
7068 else
7070 cat >>confdefs.h <<_ACEOF
7071 #define pid_t int
7072 _ACEOF
7076 { echo "$as_me:$LINENO: checking for size_t" >&5
7077 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7078 if test "${ac_cv_type_size_t+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7088 typedef size_t ac__type_new_;
7090 main ()
7092 if ((ac__type_new_ *) 0)
7093 return 0;
7094 if (sizeof (ac__type_new_))
7095 return 0;
7097 return 0;
7099 _ACEOF
7100 rm -f conftest.$ac_objext
7101 if { (ac_try="$ac_compile"
7102 case "(($ac_try" in
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7105 esac
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_compile") 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest.$ac_objext; then
7117 ac_cv_type_size_t=yes
7118 else
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 ac_cv_type_size_t=no
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7128 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7129 if test $ac_cv_type_size_t = yes; then
7131 else
7133 cat >>confdefs.h <<_ACEOF
7134 #define size_t unsigned int
7135 _ACEOF
7139 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7140 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7141 if test "${ac_cv_type_uid_t+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #include <sys/types.h>
7152 _ACEOF
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154 $EGREP "uid_t" >/dev/null 2>&1; then
7155 ac_cv_type_uid_t=yes
7156 else
7157 ac_cv_type_uid_t=no
7159 rm -f conftest*
7162 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7163 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7164 if test $ac_cv_type_uid_t = no; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define uid_t int
7168 _ACEOF
7171 cat >>confdefs.h <<\_ACEOF
7172 #define gid_t int
7173 _ACEOF
7178 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7179 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7180 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 $ac_includes_default
7191 main ()
7193 static struct tm ac_aggr;
7194 if (ac_aggr.tm_gmtoff)
7195 return 0;
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7202 case "(($ac_try" in
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7208 ac_status=$?
7209 grep -v '^ *+' conftest.er1 >conftest.err
7210 rm -f conftest.er1
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 ac_cv_member_struct_tm_tm_gmtoff=yes
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h. */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 $ac_includes_default
7230 main ()
7232 static struct tm ac_aggr;
7233 if (sizeof ac_aggr.tm_gmtoff)
7234 return 0;
7236 return 0;
7238 _ACEOF
7239 rm -f conftest.$ac_objext
7240 if { (ac_try="$ac_compile"
7241 case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244 esac
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_compile") 2>conftest.er1
7247 ac_status=$?
7248 grep -v '^ *+' conftest.er1 >conftest.err
7249 rm -f conftest.er1
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && {
7253 test -z "$ac_c_werror_flag" ||
7254 test ! -s conftest.err
7255 } && test -s conftest.$ac_objext; then
7256 ac_cv_member_struct_tm_tm_gmtoff=yes
7257 else
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7261 ac_cv_member_struct_tm_tm_gmtoff=no
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7270 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7271 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7273 cat >>confdefs.h <<_ACEOF
7274 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7275 _ACEOF
7281 # Look for some functions
7296 for ac_func in getpagesize kqueue statfs statvfs \
7297 clone kse_create rfork_thread thr_create sa_register \
7298 getcontext makecontext setcontext sigaltstack swapcontext
7300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h. */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7314 #define $ac_func innocuous_$ac_func
7316 /* System header to define __stub macros and hopefully few prototypes,
7317 which can conflict with char $ac_func (); below.
7318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7319 <limits.h> exists even on freestanding compilers. */
7321 #ifdef __STDC__
7322 # include <limits.h>
7323 #else
7324 # include <assert.h>
7325 #endif
7327 #undef $ac_func
7329 /* Override any GCC internal prototype to avoid an error.
7330 Use char because int might match the return type of a GCC
7331 builtin and then its argument prototype would still apply. */
7332 #ifdef __cplusplus
7333 extern "C"
7334 #endif
7335 char $ac_func ();
7336 /* The GNU C library defines this for functions which it implements
7337 to always fail with ENOSYS. Some functions are actually named
7338 something starting with __ and the normal name is an alias. */
7339 #if defined __stub_$ac_func || defined __stub___$ac_func
7340 choke me
7341 #endif
7344 main ()
7346 return $ac_func ();
7348 return 0;
7350 _ACEOF
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (ac_try="$ac_link"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_link") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest$ac_exeext &&
7368 $as_test_x conftest$ac_exeext; then
7369 eval "$as_ac_var=yes"
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 eval "$as_ac_var=no"
7377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7378 conftest$ac_exeext conftest.$ac_ext
7380 ac_res=`eval echo '${'$as_ac_var'}'`
7381 { echo "$as_me:$LINENO: result: $ac_res" >&5
7382 echo "${ECHO_T}$ac_res" >&6; }
7383 if test `eval echo '${'$as_ac_var'}'` = yes; then
7384 cat >>confdefs.h <<_ACEOF
7385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7386 _ACEOF
7389 done
7394 for ac_header in stdlib.h unistd.h
7396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 ac_res=`eval echo '${'$as_ac_Header'}'`
7404 { echo "$as_me:$LINENO: result: $ac_res" >&5
7405 echo "${ECHO_T}$ac_res" >&6; }
7406 else
7407 # Is the header compilable?
7408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7410 cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h. */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7416 $ac_includes_default
7417 #include <$ac_header>
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_compile") 2>conftest.er1
7427 ac_status=$?
7428 grep -v '^ *+' conftest.er1 >conftest.err
7429 rm -f conftest.er1
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest.$ac_objext; then
7436 ac_header_compiler=yes
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_header_compiler=no
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7446 echo "${ECHO_T}$ac_header_compiler" >&6; }
7448 # Is the header present?
7449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #include <$ac_header>
7458 _ACEOF
7459 if { (ac_try="$ac_cpp conftest.$ac_ext"
7460 case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7463 esac
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7466 ac_status=$?
7467 grep -v '^ *+' conftest.er1 >conftest.err
7468 rm -f conftest.er1
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } >/dev/null && {
7472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7473 test ! -s conftest.err
7474 }; then
7475 ac_header_preproc=yes
7476 else
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7480 ac_header_preproc=no
7483 rm -f conftest.err conftest.$ac_ext
7484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485 echo "${ECHO_T}$ac_header_preproc" >&6; }
7487 # So? What about this header?
7488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489 yes:no: )
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494 ac_header_preproc=yes
7496 no:yes:* )
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7511 esac
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517 eval "$as_ac_Header=\$ac_header_preproc"
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520 { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525 cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7531 done
7534 for ac_func in getpagesize
7536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7550 #define $ac_func innocuous_$ac_func
7552 /* System header to define __stub macros and hopefully few prototypes,
7553 which can conflict with char $ac_func (); below.
7554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555 <limits.h> exists even on freestanding compilers. */
7557 #ifdef __STDC__
7558 # include <limits.h>
7559 #else
7560 # include <assert.h>
7561 #endif
7563 #undef $ac_func
7565 /* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 char $ac_func ();
7572 /* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575 #if defined __stub_$ac_func || defined __stub___$ac_func
7576 choke me
7577 #endif
7580 main ()
7582 return $ac_func ();
7584 return 0;
7586 _ACEOF
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (ac_try="$ac_link"
7589 case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592 esac
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_link") 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } && {
7601 test -z "$ac_c_werror_flag" ||
7602 test ! -s conftest.err
7603 } && test -s conftest$ac_exeext &&
7604 $as_test_x conftest$ac_exeext; then
7605 eval "$as_ac_var=yes"
7606 else
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 eval "$as_ac_var=no"
7613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7614 conftest$ac_exeext conftest.$ac_ext
7616 ac_res=`eval echo '${'$as_ac_var'}'`
7617 { echo "$as_me:$LINENO: result: $ac_res" >&5
7618 echo "${ECHO_T}$ac_res" >&6; }
7619 if test `eval echo '${'$as_ac_var'}'` = yes; then
7620 cat >>confdefs.h <<_ACEOF
7621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7622 _ACEOF
7625 done
7627 { echo "$as_me:$LINENO: checking for working mmap" >&5
7628 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7629 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 if test "$cross_compiling" = yes; then
7633 ac_cv_func_mmap_fixed_mapped=no
7634 else
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641 $ac_includes_default
7642 /* malloc might have been renamed as rpl_malloc. */
7643 #undef malloc
7645 /* Thanks to Mike Haertel and Jim Avera for this test.
7646 Here is a matrix of mmap possibilities:
7647 mmap private not fixed
7648 mmap private fixed at somewhere currently unmapped
7649 mmap private fixed at somewhere already mapped
7650 mmap shared not fixed
7651 mmap shared fixed at somewhere currently unmapped
7652 mmap shared fixed at somewhere already mapped
7653 For private mappings, we should verify that changes cannot be read()
7654 back from the file, nor mmap's back from the file at a different
7655 address. (There have been systems where private was not correctly
7656 implemented like the infamous i386 svr4.0, and systems where the
7657 VM page cache was not coherent with the file system buffer cache
7658 like early versions of FreeBSD and possibly contemporary NetBSD.)
7659 For shared mappings, we should conversely verify that changes get
7660 propagated back to all the places they're supposed to be.
7662 Grep wants private fixed already mapped.
7663 The main things grep needs to know about mmap are:
7664 * does it exist and is it safe to write into the mmap'd area
7665 * how to use it (BSD variants) */
7667 #include <fcntl.h>
7668 #include <sys/mman.h>
7670 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7671 char *malloc ();
7672 #endif
7674 /* This mess was copied from the GNU getpagesize.h. */
7675 #ifndef HAVE_GETPAGESIZE
7676 /* Assume that all systems that can run configure have sys/param.h. */
7677 # ifndef HAVE_SYS_PARAM_H
7678 # define HAVE_SYS_PARAM_H 1
7679 # endif
7681 # ifdef _SC_PAGESIZE
7682 # define getpagesize() sysconf(_SC_PAGESIZE)
7683 # else /* no _SC_PAGESIZE */
7684 # ifdef HAVE_SYS_PARAM_H
7685 # include <sys/param.h>
7686 # ifdef EXEC_PAGESIZE
7687 # define getpagesize() EXEC_PAGESIZE
7688 # else /* no EXEC_PAGESIZE */
7689 # ifdef NBPG
7690 # define getpagesize() NBPG * CLSIZE
7691 # ifndef CLSIZE
7692 # define CLSIZE 1
7693 # endif /* no CLSIZE */
7694 # else /* no NBPG */
7695 # ifdef NBPC
7696 # define getpagesize() NBPC
7697 # else /* no NBPC */
7698 # ifdef PAGESIZE
7699 # define getpagesize() PAGESIZE
7700 # endif /* PAGESIZE */
7701 # endif /* no NBPC */
7702 # endif /* no NBPG */
7703 # endif /* no EXEC_PAGESIZE */
7704 # else /* no HAVE_SYS_PARAM_H */
7705 # define getpagesize() 8192 /* punt totally */
7706 # endif /* no HAVE_SYS_PARAM_H */
7707 # endif /* no _SC_PAGESIZE */
7709 #endif /* no HAVE_GETPAGESIZE */
7712 main ()
7714 char *data, *data2, *data3;
7715 int i, pagesize;
7716 int fd;
7718 pagesize = getpagesize ();
7720 /* First, make a file with some known garbage in it. */
7721 data = (char *) malloc (pagesize);
7722 if (!data)
7723 return 1;
7724 for (i = 0; i < pagesize; ++i)
7725 *(data + i) = rand ();
7726 umask (0);
7727 fd = creat ("conftest.mmap", 0600);
7728 if (fd < 0)
7729 return 1;
7730 if (write (fd, data, pagesize) != pagesize)
7731 return 1;
7732 close (fd);
7734 /* Next, try to mmap the file at a fixed address which already has
7735 something else allocated at it. If we can, also make sure that
7736 we see the same garbage. */
7737 fd = open ("conftest.mmap", O_RDWR);
7738 if (fd < 0)
7739 return 1;
7740 data2 = (char *) malloc (2 * pagesize);
7741 if (!data2)
7742 return 1;
7743 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7744 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7745 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7746 return 1;
7747 for (i = 0; i < pagesize; ++i)
7748 if (*(data + i) != *(data2 + i))
7749 return 1;
7751 /* Finally, make sure that changes to the mapped area do not
7752 percolate back to the file as seen by read(). (This is a bug on
7753 some variants of i386 svr4.0.) */
7754 for (i = 0; i < pagesize; ++i)
7755 *(data2 + i) = *(data2 + i) + 1;
7756 data3 = (char *) malloc (pagesize);
7757 if (!data3)
7758 return 1;
7759 if (read (fd, data3, pagesize) != pagesize)
7760 return 1;
7761 for (i = 0; i < pagesize; ++i)
7762 if (*(data + i) != *(data3 + i))
7763 return 1;
7764 close (fd);
7765 return 0;
7767 _ACEOF
7768 rm -f conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7770 case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_link") 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7779 { (case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782 esac
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_try") 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_cv_func_mmap_fixed_mapped=yes
7789 else
7790 echo "$as_me: program exited with status $ac_status" >&5
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ( exit $ac_status )
7795 ac_cv_func_mmap_fixed_mapped=no
7797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7802 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7803 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7804 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7806 cat >>confdefs.h <<\_ACEOF
7807 #define HAVE_MMAP 1
7808 _ACEOF
7811 rm -f conftest.mmap
7816 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7817 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7818 aros_config_ldflags=""
7820 aros_shared_default=yes
7822 aros_shared_cflags="-fPIC"
7823 aros_shared_aflags=""
7824 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7825 aros_kernel_ldflags="-Wl,-rpath,./lib"
7827 aros_target_ar_flags="cr"
7828 aros_target_nm_flags="-C -ul"
7829 aros_target_strip_flags="--strip-unneeded -R.comment"
7831 aros_compiler_libs=
7833 aros_target_genmap="-Wl,-Map -Xlinker"
7835 # Native flavour stuff
7836 aros_bochs_hack="0"
7837 aros_serial_debug="0"
7839 # Palm native flavour stuff
7840 aros_palm_debug_hack="0"
7842 # Unix flavour stuff
7843 aros_nesting_supervisor="0"
7845 # Collect-aros stuff: "-ius" to ignore undefined symbols
7846 ignore_undefined_symbols=""
7848 #-----------------------------------------------------------------------------
7851 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7852 # it switched on by default, and we use the host compiler, so it compiles AROS
7853 # code with this enabled resulting in link failures as we don't have support
7854 # for it.
7856 # We use two methods to disable it. For the host compiler (used to compile
7857 # some hosted modules), we test to see if the compiler supports stack
7858 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7859 # work on all platforms.
7861 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7862 # (this is done unconditionally, as it should have no effect on compilers
7863 # without the stack protection feature). This may be specific to the way that
7864 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7865 # strong enough to disable it in a generic way though, so we'll live with it
7866 # until another vendor ships GCC with it enabled in a different way, and deal
7867 # with it then.
7870 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7871 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7872 save_cflags="$CFLAGS"
7873 CFLAGS="$CFLAGS -fno-stack-protector"
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h. */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7882 main ()
7886 return 0;
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 use_no_stack_protector="yes"
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 use_no_stack_protector="no"
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7916 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7917 if test "x-$use_no_stack_protector" = "x-yes" ; then
7918 aros_config_cflags="$aros_config_cflags -fno-stack-protector"
7920 CFLAGS="$save_cflags"
7922 #-----------------------------------------------------------------------------
7924 { echo "$as_me:$LINENO: checking for type of build" >&5
7925 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7926 # Check whether --enable-build_type was given.
7927 if test "${enable_build_type+set}" = set; then
7928 enableval=$enable_build_type; build_type=$enableval
7929 else
7930 build_type="personal"
7934 if test "$build_type" = "nightly"; then
7935 build_type_string="NIGHTLY"
7936 elif test "$build_type" = "snapshot"; then
7937 build_type_string="SNAPSHOT"
7938 elif test "$build_type" = "milestone"; then
7939 build_type_string="MILESTONE"
7940 elif test "$build_type" = "release"; then
7941 build_type_string="RELEASE"
7942 else
7943 build_type_string="PERSONAL"
7944 build_type="personal"
7947 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7949 { echo "$as_me:$LINENO: result: $build_type" >&5
7950 echo "${ECHO_T}$build_type" >&6; }
7952 #-----------------------------------------------------------------------------
7953 all_debug_types="messages stack mungwall modules symbols"
7955 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7956 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7957 # Check whether --enable-debug was given.
7958 if test "${enable_debug+set}" = set; then
7959 enableval=$enable_debug; debug="$enableval"
7960 else
7961 debug=""
7965 if test "$debug" = "" -o "$debug" = "no"; then
7966 debug="none"
7967 elif test "$debug" = "yes"; then
7968 debug="all"
7971 if test "$debug" = "all" ; then
7972 debug=$all_debug_types
7973 for d in $all_debug_types; do
7974 export aros_${d}_debug="1"
7975 done
7976 else
7977 for d in $all_debug_types; do
7978 export aros_${d}_debug="0"
7979 done
7982 if test "$debug" != "none"; then
7983 debug=`echo $debug | sed s/,/\ /g`
7984 for d in $debug; do
7985 found="0"
7986 for d2 in $all_debug_types; do
7987 if test "$d2" = "$d"; then
7988 found="1"
7989 break
7991 done
7992 if test "$found" = "0"; then
7993 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7994 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7995 { (exit 1); exit 1; }; }
7997 export aros_${d}_debug="1"
7998 done
7999 aros_debug="yes"
8001 { echo "$as_me:$LINENO: result: $debug" >&5
8002 echo "${ECHO_T}$debug" >&6; }
8004 if test "$aros_messages_debug" = "1"; then
8005 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8006 else
8007 aros_messages_debug=""
8009 if test "$aros_symbols_debug" = "1"; then
8010 aros_symbols_debug="-g"
8011 else
8012 aros_symbols_debug=""
8015 # These are the flags to pass when compiling debugged programs
8016 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8017 aros_debug_aflags=""
8018 aros_debug_ldflags="$aros_symbols_debug"
8020 #-----------------------------------------------------------------------------
8021 # Checking for distcc and ccache.
8023 # Always apply the transforms in this particular order. Basically you should
8024 # always run 'ccache distcc compiler' in that order for the best performance.
8026 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8027 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8028 # Check whether --enable-distcc was given.
8029 if test "${enable_distcc+set}" = set; then
8030 enableval=$enable_distcc; distcc="$enableval"
8031 else
8032 distcc="no"
8035 if test "$distcc" != "" -a "$distcc" != "no"; then
8036 # AC_CHECK_PROG will print out the result in this case
8037 # Extract the first word of "distcc", so it can be a program name with args.
8038 set dummy distcc; ac_word=$2
8039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8041 if test "${ac_cv_path_DISTCC+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 case $DISTCC in
8045 [\\/]* | ?:[\\/]*)
8046 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8060 done
8061 done
8062 IFS=$as_save_IFS
8064 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8066 esac
8068 DISTCC=$ac_cv_path_DISTCC
8069 if test -n "$DISTCC"; then
8070 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8071 echo "${ECHO_T}$DISTCC" >&6; }
8072 else
8073 { echo "$as_me:$LINENO: result: no" >&5
8074 echo "${ECHO_T}no" >&6; }
8078 else
8079 { echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6; }
8083 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8084 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8085 # Check whether --enable-ccache was given.
8086 if test "${enable_ccache+set}" = set; then
8087 enableval=$enable_ccache; ccache="$enableval"
8088 else
8089 ccache="no"
8092 if test "$ccache" != "" -a "$ccache" != "no"; then
8093 # AC_CHECK_PROG will print out the result in this case
8094 # Extract the first word of "ccache", so it can be a program name with args.
8095 set dummy ccache; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_prog_CCACHE+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101 if test -n "$CCACHE"; then
8102 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_prog_CCACHE="ccache"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8115 done
8116 done
8117 IFS=$as_save_IFS
8121 CCACHE=$ac_cv_prog_CCACHE
8122 if test -n "$CCACHE"; then
8123 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8124 echo "${ECHO_T}$CCACHE" >&6; }
8125 else
8126 { echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6; }
8131 else
8132 { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8136 #-----------------------------------------------------------------------------
8137 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8138 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8140 # Check whether --with-optimization was given.
8141 if test "${with_optimization+set}" = set; then
8142 withval=$with_optimization; optimization="$withval"
8143 else
8144 optimization="unknown"
8147 if test "$optimization" = "unknown"; then
8148 if test "$debug" != "none"; then
8149 optimization="-O0"
8150 else
8151 optimization="-O2"
8154 aros_config_cflags="$aros_config_cflags $optimization"
8155 { echo "$as_me:$LINENO: result: $optimization" >&5
8156 echo "${ECHO_T}$optimization" >&6; }
8158 #-----------------------------------------------------------------------------
8159 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8160 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8161 # Check whether --enable-target_variant was given.
8162 if test "${enable_target_variant+set}" = set; then
8163 enableval=$enable_target_variant; target_variant=$enableval
8164 else
8165 target_variant="none"
8168 if test "$target_variant" = "none"; then
8169 aros_target_variant=""
8170 aros_target_suffix=""
8171 else
8172 aros_target_variant="$target_variant"
8173 aros_target_suffix="-$target_variant"
8175 { echo "$as_me:$LINENO: result: $enableval" >&5
8176 echo "${ECHO_T}$enableval" >&6; }
8178 #-----------------------------------------------------------------------------
8179 # This is the target configuration switch.
8180 case "$target_os" in
8181 linux*)
8182 aros_target_arch="linux"
8183 case "$target_cpu" in
8184 *m68k*)
8185 aros_target_cpu="m68k"
8186 aros_object_format="m68kelf"
8187 aros_flavour="emulcompat"
8188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8189 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8190 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8191 gcc_target_cpu="mc68000"
8193 *i?86*)
8194 aros_target_cpu="i386"
8195 aros_object_format="elf_i386"
8196 aros_flavour="emulation"
8197 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8198 aros_default_wbdepth=8
8199 gcc_target_cpu="i386"
8201 *x86_64*)
8202 aros_target_cpu="x86_64"
8203 aros_object_format="elf_x86_64"
8204 aros_flavour="emulation"
8205 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8206 aros_default_wbdepth=8
8207 gcc_target_cpu="x86_64"
8209 *powerpc*)
8210 aros_target_cpu="ppc"
8211 aros_object_format="elf32ppc"
8212 aros_flavour="emulation"
8213 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8214 aros_default_wbdepth=8
8215 gcc_target_cpu="ppc"
8218 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8219 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8220 { (exit 1); exit 1; }; }
8222 esac
8226 aros_target_arch="pc"
8227 aros_shared_default="no"
8228 case "$target_cpu" in
8229 *i?86*)
8230 aros_target_cpu="i386"
8233 if test "$aros_object_format" = "" ; then
8234 aros_object_format="elf_i386"
8236 aros_flavour="standalone"
8237 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8238 aros_kernel_ldflags=""
8239 aros_default_wbwidth=640
8240 aros_default_wbheight=480
8241 gcc_target_cpu="i386"
8243 *x86_64*)
8244 aros_target_cpu="x86_64"
8245 if test "$aros_object_format" = "" ; then
8246 aros_object_format="elf_x86_64"
8248 aros_flavour="standalone"
8249 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8250 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8251 aros_kernel_ldflags=""
8252 aros_default_wbwidth=640
8253 aros_default_wbheight=480
8254 gcc_target_cpu="x86_64"
8257 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8258 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8259 { (exit 1); exit 1; }; }
8261 esac
8264 prep)
8265 aros_target_arch="prep"
8266 aros_shared_default="no"
8267 aros_target_cpu="ppc"
8268 aros_object_format="elf32ppc"
8269 aros_flavour="ppcnative"
8270 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8271 aros_kernel_ldflags=""
8272 aros_default_wbwidth=640
8273 aros_default_wbheight=480
8274 gcc_target_cpu="ppc"
8275 case "$target_cpu" in
8276 *cross*)
8277 aros_target_cc="ppc-linux-gcc -pipe"
8278 aros_target_ld="ppc-linux-ld"
8279 aros_target_as="ppc-linux-as"
8280 aros_target_ar="ppc-linux-ar"
8281 aros_target_ranlib="ppc-linux-ranlib"
8282 aros_target_nm="ppc-linux-nm"
8283 aros_target_strip="ppc-linux-strip"
8284 aros_target_objcopy="ppc-linux-objcopy"
8285 aros_target_objdump="ppc-linux-objdump"
8286 aros_shared_ld="ppc-linux-ld"
8287 aros_kernel_ld="ppc-linux-ld"
8291 esac
8294 freebsd*)
8295 aros_target_arch="freebsd"
8296 aros_target_cpu="i386"
8297 aros_flavour="emulation"
8298 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8299 gcc_target_cpu="i386"
8301 aros_target_strip_flags="-x"
8304 darwin*)
8305 aros_target_arch="darwin"
8306 aros_target_cpu="i386"
8307 aros_flavour="emulation"
8308 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8309 gcc_target_cpu="i386"
8311 aros_target_strip_flags="-x"
8314 netbsd*)
8315 aros_target_arch="netbsd"
8316 case "$target_cpu" in
8317 *m68k*)
8318 aros_target_cpu="m68k"
8319 aros_object_format="m68kelf"
8320 aros_flavour="emulcompat"
8321 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8322 gcc_target_cpu="mc68000"
8324 *i?86*)
8325 aros_target_cpu="i386"
8326 aros_object_format="elf_i386"
8327 aros_flavour="emulation"
8328 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8329 aros_default_wbdepth=8
8330 gcc_target_cpu="i386"
8333 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8334 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8335 { (exit 1); exit 1; }; }
8337 esac
8338 aros_target_genmap="-Wl,-M -Xlinker >"
8339 aros_flavour="emulation"
8340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8343 openbsd*)
8344 aros_target_arch="openbsd"
8345 case "$target_cpu" in
8346 *i?86*)
8347 aros_target_cpu="i386"
8348 aros_object_format="elf_i386"
8349 aros_flavour="emulation"
8350 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8351 gcc_target_cpu="i386"
8354 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8355 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8356 { (exit 1); exit 1; }; }
8358 esac
8359 aros_target_genmap="-Wl,-M -Xlinker >"
8360 aros_target_nm_flags="-u"
8361 aros_flavour="emulation"
8364 solaris*)
8365 aros_target_arch="solaris"
8366 case "$target_cpu" in
8367 *sparc*)
8368 aros_target_cpu="sparc"
8369 aros_object_format="elf_sparc"
8370 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8371 gcc_target_cpu="sparc"
8374 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8375 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8376 { (exit 1); exit 1; }; }
8378 esac
8379 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8380 aros_flavour="emulation"
8383 morphos*)
8384 aros_target_arch="morphos"
8385 aros_shared_default="no"
8386 aros_target_cpu="ppc"
8387 aros_object_format="elf_ppc"
8388 aros_flavour="nativecompat"
8389 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8390 gcc_target_cpu="ppc"
8393 amiga*)
8394 aros_target_arch="amiga"
8395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8396 aros_shared_default="no"
8398 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8400 case "$target_cpu" in
8401 *m68k*)
8402 aros_target_cpu="m68k"
8403 aros_object_format="m68kelf"
8404 aros_flavour="nativecompat"
8405 gcc_target_cpu="mc68000"
8407 *ppc*)
8408 aros_cpu="ppc"
8409 aros_flavour="native"
8410 gcc_target_cpu="ppc"
8413 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8414 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8415 { (exit 1); exit 1; }; }
8417 esac
8420 cygwin*)
8421 aros_target_arch="cygwin"
8422 aros_shared_default="no"
8423 case "$target_cpu" in
8424 *i?86*)
8425 aros_target_cpu="i386"
8426 aros_object_format="elf_i386"
8427 aros_flavour="emulation"
8428 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8429 aros_shared_cflags=""
8430 aros_default_wbdepth=8
8431 gcc_target_cpu="i386"
8434 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8435 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8436 { (exit 1); exit 1; }; }
8438 esac
8441 mingw32*)
8442 aros_target_arch="mingw32"
8443 aros_shared_default="no"
8444 case "$target_cpu" in
8445 *i?86*)
8446 aros_target_cpu="i386"
8447 aros_object_format="elf_i386"
8448 aros_flavour="emulation"
8449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8450 aros_shared_cflags=""
8451 aros_default_wbdepth=8
8452 gcc_target_cpu="i386"
8455 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8456 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8457 { (exit 1); exit 1; }; }
8459 esac
8461 pp*)
8462 aros_target_arch="pp"
8463 aros_shared_default="no"
8464 case "$target_cpu" in
8465 *m68k*)
8466 aros_target_cpu="m68k"
8467 aros_object_format="m68kelf"
8468 aros_flavour="palmnative"
8469 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8470 aros_kernel_ldflags=""
8471 aros_default_wbwidth=160
8472 aros_default_wbheight=160
8473 aros_default_wbdepth=1
8474 aros_target_cc="m68k-elf-gcc -pipe"
8475 aros_target_ld="$(which m68k-elf-ld)"
8476 aros_target_as="m68k-elf-gcc -pipe"
8477 aros_shared_ld="m68k-elf-gcc"
8478 aros_kernel_ld="m68k-elf-gcc"
8479 aros_target_ar="m68k-elf-ar"
8480 aros_target_ar_flags="cru"
8481 aros_target_ranlib="m68k-elf-ranlib"
8482 aros_target_nm="m68k-elf-nm"
8483 aros_target_objcopy="m68k-elf-objcopy"
8484 aros_target_objdump="m68k-elf-objdump"
8485 aros_compiler_libs="-lgcc1"
8486 aros_shared_default=no
8487 aros_shared_cflags="-fpic"
8488 aros_shared_aflags=""
8489 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8490 aros_kernel_ldflags="-Wl,-rpath,./lib"
8491 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8492 aros_debug_aflags=""
8493 aros_debug_ldflags="$aros_symbols_debug"
8494 aros_mungwall_debug="0"
8495 aros_modules_debug="0"
8496 gcc_target_cpu="mc68000"
8497 ignore_undefined_symbols="-ius"
8500 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8501 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8502 { (exit 1); exit 1; }; }
8504 esac
8507 mac*)
8508 aros_target_arch="mac"
8509 aros_shared_default="no"
8510 case "$target_cpu" in
8511 *m68k*)
8512 aros_target_cpu="m68k"
8513 aros_object_format="m68kelf"
8514 aros_flavour="mac68knative"
8515 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8516 aros_default_wbwidth=512
8517 aros_default_wbheight=384
8518 aros_default_wbdepth=8
8519 aros_target_cc="m68k-elf-gcc -pipe"
8520 aros_target_ld="$(which m68k-elf-ld)"
8521 aros_target_as="m68k-elf-gcc -pipe"
8522 aros_shared_ld="m68k-elf-gcc"
8523 aros_kernel_ld="m68k-elf-gcc"
8524 aros_target_ar="m68k-elf-ar"
8525 aros_target_ar_flags="cru"
8526 aros_target_ranlib="m68k-elf-ranlib"
8527 aros_target_nm="m68k-elf-nm"
8528 aros_target_objcopy="m68k-elf-objcopy"
8529 aros_target_objdump="m68k-elf-objdump"
8530 aros_compiler_libs="-lgcc1"
8531 aros_shared_default=no
8532 aros_shared_cflags="-fpic"
8533 aros_shared_aflags=""
8534 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8535 aros_kernel_ldflags="-Wl,-rpath,./lib"
8536 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8537 aros_debug_aflags=""
8538 aros_debug_ldflags="$aros_symbols_debug"
8539 aros_mungwall_debug="0"
8540 aros_modules_debug="0"
8541 gcc_target_cpu="mc68000"
8542 ignore_undefined_symbols="-ius"
8545 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8546 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8547 { (exit 1); exit 1; }; }
8549 esac
8553 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8554 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8555 { (exit 1); exit 1; }; }
8557 esac
8560 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8561 # for target code)
8562 cross_compiling=no
8563 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8564 cross_compiling=yes
8566 if test "$aros_host_arch" == "darwin" ; then
8567 cross_compiling=yes
8570 # Set prefix for target compiler etc. if we're cross-compiling
8571 # (should possibly be earlier but needs to be after AC_PROG_CC)
8572 if test "$cross_compiling" = "yes" ; then
8573 target_tool_prefix=${target_cpu}-elf-
8574 CC=${target_tool_prefix}gcc
8577 # Find all the tools we need to compile. This could be cross-compiling
8578 # though! If that is the case we use the GNU form of the target and
8579 # simply add this to the front of the binary name. This is rather simple,
8580 # but it should work under most circumstances.
8582 # The default tools are to use the same as the host, but only if the
8583 # host and target CPU are the same. With GCC this is normally enough.
8586 aros_cc_pre=""
8587 aros_shared_ld="$aros_host_ld"
8589 aros_target_mkdep="$aros_host_mkdep"
8590 aros_target_incl_def="$aros_host_incl"
8592 # Extract the first word of "$CC", so it can be a program name with args.
8593 set dummy $CC; ac_word=$2
8594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8596 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599 case $aros_kernel_cc in
8600 [\\/]* | ?:[\\/]*)
8601 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8620 esac
8622 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8623 if test -n "$aros_kernel_cc"; then
8624 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8625 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8626 else
8627 { echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6; }
8633 # The default tools executables to be linked to.
8635 if test "$cross_compiling" = "yes" ; then
8636 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8637 set dummy ${target_tool_prefix}as; ac_word=$2
8638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8640 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 case $aros_target_as_ln in
8644 [\\/]* | ?:[\\/]*)
8645 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8659 done
8660 done
8661 IFS=$as_save_IFS
8664 esac
8666 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8667 if test -n "$aros_target_as_ln"; then
8668 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8669 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8670 else
8671 { echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6; }
8676 else
8677 if test "$GCC" = "yes"; then
8678 aros_gcc_as=`$CC -print-prog-name=as`
8679 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8680 set dummy `basename $aros_gcc_as`; ac_word=$2
8681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8683 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 case $aros_target_as_ln in
8687 [\\/]* | ?:[\\/]*)
8688 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in `dirname $aros_gcc_as`
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8698 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8702 done
8703 done
8704 IFS=$as_save_IFS
8707 esac
8709 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8710 if test -n "$aros_target_as_ln"; then
8711 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8712 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8713 else
8714 { echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6; }
8720 if test "$aros_target_as_ln" = ""; then
8721 # Extract the first word of "as", so it can be a program name with args.
8722 set dummy as; ac_word=$2
8723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8725 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728 case $aros_target_as_ln in
8729 [\\/]* | ?:[\\/]*)
8730 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8740 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8744 done
8745 done
8746 IFS=$as_save_IFS
8749 esac
8751 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8752 if test -n "$aros_target_as_ln"; then
8753 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8754 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8755 else
8756 { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8764 if test "$aros_target_as_ln" = ""; then
8765 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8766 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8767 { (exit 1); exit 1; }; }
8770 if test "$cross_compiling" = "yes" ; then
8771 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8772 set dummy ${target_tool_prefix}ld; ac_word=$2
8773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8775 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778 case $aros_kernel_ld in
8779 [\\/]* | ?:[\\/]*)
8780 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8794 done
8795 done
8796 IFS=$as_save_IFS
8799 esac
8801 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8802 if test -n "$aros_kernel_ld"; then
8803 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8804 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8805 else
8806 { echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6; }
8811 else
8812 if test "$GCC" = "yes"; then
8813 aros_gcc_ld=`$CC -print-prog-name=ld`
8814 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8815 set dummy `basename $aros_gcc_ld`; ac_word=$2
8816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8818 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 case $aros_kernel_ld in
8822 [\\/]* | ?:[\\/]*)
8823 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in `dirname $aros_gcc_ld`
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8833 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 break 2
8837 done
8838 done
8839 IFS=$as_save_IFS
8842 esac
8844 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8845 if test -n "$aros_kernel_ld"; then
8846 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8847 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8848 else
8849 { echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6; }
8855 if test "$aros_kernel_ld" = ""; then
8856 # Extract the first word of "ld", so it can be a program name with args.
8857 set dummy ld; ac_word=$2
8858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8860 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 case $aros_kernel_ld in
8864 [\\/]* | ?:[\\/]*)
8865 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8875 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8879 done
8880 done
8881 IFS=$as_save_IFS
8884 esac
8886 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8887 if test -n "$aros_kernel_ld"; then
8888 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8889 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8890 else
8891 { echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6; }
8899 if test "$aros_kernel_ld" = ""; then
8900 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8901 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8902 { (exit 1); exit 1; }; }
8905 if test "$cross_compiling" = "yes" ; then
8906 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8907 set dummy ${target_tool_prefix}ar; ac_word=$2
8908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8910 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 case $aros_target_ar_ln in
8914 [\\/]* | ?:[\\/]*)
8915 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in $PATH
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8925 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8929 done
8930 done
8931 IFS=$as_save_IFS
8934 esac
8936 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8937 if test -n "$aros_target_ar_ln"; then
8938 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8939 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8940 else
8941 { echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6; }
8946 else
8947 if test "$GCC" = "yes"; then
8948 aros_gcc_ar=`$CC -print-prog-name=ar`
8949 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8950 set dummy `basename $aros_gcc_ar`; ac_word=$2
8951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8953 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 case $aros_target_ar_ln in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in `dirname $aros_gcc_ar`
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8977 esac
8979 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8980 if test -n "$aros_target_ar_ln"; then
8981 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8982 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8983 else
8984 { echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6; }
8990 if test "$aros_target_ar_ln" = ""; then
8991 # Extract the first word of "ar", so it can be a program name with args.
8992 set dummy ar; ac_word=$2
8993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8995 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 case $aros_target_ar_ln in
8999 [\\/]* | ?:[\\/]*)
9000 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9014 done
9015 done
9016 IFS=$as_save_IFS
9019 esac
9021 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9022 if test -n "$aros_target_ar_ln"; then
9023 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9024 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9025 else
9026 { echo "$as_me:$LINENO: result: no" >&5
9027 echo "${ECHO_T}no" >&6; }
9034 if test "$aros_target_ar_ln" = ""; then
9035 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9036 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9037 { (exit 1); exit 1; }; }
9040 if test "$cross_compiling" = "yes" ; then
9041 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9042 set dummy ${target_tool_prefix}nm; ac_word=$2
9043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9045 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048 case $aros_target_nm_ln in
9049 [\\/]* | ?:[\\/]*)
9050 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9064 done
9065 done
9066 IFS=$as_save_IFS
9069 esac
9071 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9072 if test -n "$aros_target_nm_ln"; then
9073 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9074 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9075 else
9076 { echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6; }
9081 else
9082 if test "$GCC" = "yes"; then
9083 aros_gcc_nm=`$CC -print-prog-name=nm`
9084 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9085 set dummy `basename $aros_gcc_nm`; ac_word=$2
9086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9088 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 case $aros_target_nm_ln in
9092 [\\/]* | ?:[\\/]*)
9093 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in `dirname $aros_gcc_nm`
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9103 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9107 done
9108 done
9109 IFS=$as_save_IFS
9112 esac
9114 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9115 if test -n "$aros_target_nm_ln"; then
9116 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9117 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9118 else
9119 { echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6; }
9125 if test "$aros_target_nm_ln" = ""; then
9126 # Extract the first word of "nm", so it can be a program name with args.
9127 set dummy nm; ac_word=$2
9128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9130 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133 case $aros_target_nm_ln in
9134 [\\/]* | ?:[\\/]*)
9135 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9145 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 break 2
9149 done
9150 done
9151 IFS=$as_save_IFS
9154 esac
9156 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9157 if test -n "$aros_target_nm_ln"; then
9158 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9159 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9160 else
9161 { echo "$as_me:$LINENO: result: no" >&5
9162 echo "${ECHO_T}no" >&6; }
9169 if test "$aros_target_nm_ln" = ""; then
9170 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9171 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9172 { (exit 1); exit 1; }; }
9175 if test "$cross_compiling" = "yes" ; then
9176 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9177 set dummy ${target_tool_prefix}objcopy; 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_objcopy_ln+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 case $aros_target_objcopy_ln in
9184 [\\/]* | ?:[\\/]*)
9185 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_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_objcopy_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_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9207 if test -n "$aros_target_objcopy_ln"; then
9208 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9209 echo "${ECHO_T}$aros_target_objcopy_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_objcopy=`$CC -print-prog-name=objcopy`
9219 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9220 set dummy `basename $aros_gcc_objcopy`; 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_objcopy_ln+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226 case $aros_target_objcopy_ln in
9227 [\\/]* | ?:[\\/]*)
9228 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_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_objcopy`
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_objcopy_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_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9250 if test -n "$aros_target_objcopy_ln"; then
9251 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9252 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9253 else
9254 { echo "$as_me:$LINENO: result: no" >&5
9255 echo "${ECHO_T}no" >&6; }
9260 if test "$aros_target_objcopy_ln" = ""; then
9261 # Extract the first word of "objcopy", so it can be a program name with args.
9262 set dummy objcopy; 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_objcopy_ln+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 case $aros_target_objcopy_ln in
9269 [\\/]* | ?:[\\/]*)
9270 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_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_objcopy_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_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9292 if test -n "$aros_target_objcopy_ln"; then
9293 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9294 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9295 else
9296 { echo "$as_me:$LINENO: result: no" >&5
9297 echo "${ECHO_T}no" >&6; }
9304 if test "$aros_target_objcopy_ln" = ""; then
9305 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9306 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9307 { (exit 1); exit 1; }; }
9310 if test "$cross_compiling" = "yes" ; then
9311 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9312 set dummy ${target_tool_prefix}objdump; ac_word=$2
9313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9315 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318 case $aros_target_objdump_ln in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9330 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9334 done
9335 done
9336 IFS=$as_save_IFS
9339 esac
9341 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9342 if test -n "$aros_target_objdump_ln"; then
9343 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9344 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9345 else
9346 { echo "$as_me:$LINENO: result: no" >&5
9347 echo "${ECHO_T}no" >&6; }
9351 else
9352 if test "$GCC" = "yes"; then
9353 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9354 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9355 set dummy `basename $aros_gcc_objdump`; 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_target_objdump_ln+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361 case $aros_target_objdump_ln in
9362 [\\/]* | ?:[\\/]*)
9363 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367 for as_dir in `dirname $aros_gcc_objdump`
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_target_objdump_ln="$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_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9385 if test -n "$aros_target_objdump_ln"; then
9386 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9387 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9388 else
9389 { echo "$as_me:$LINENO: result: no" >&5
9390 echo "${ECHO_T}no" >&6; }
9395 if test "$aros_target_objdump_ln" = ""; then
9396 # Extract the first word of "objdump", so it can be a program name with args.
9397 set dummy objdump; ac_word=$2
9398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9400 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 case $aros_target_objdump_ln in
9404 [\\/]* | ?:[\\/]*)
9405 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9419 done
9420 done
9421 IFS=$as_save_IFS
9424 esac
9426 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9427 if test -n "$aros_target_objdump_ln"; then
9428 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9429 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9430 else
9431 { echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6; }
9439 if test "$aros_target_objdump_ln" = ""; then
9440 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9441 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9442 { (exit 1); exit 1; }; }
9445 if test "$cross_compiling" = "yes" ; then
9446 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9447 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9450 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 case $aros_target_ranlib_ln in
9454 [\\/]* | ?:[\\/]*)
9455 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9469 done
9470 done
9471 IFS=$as_save_IFS
9474 esac
9476 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9477 if test -n "$aros_target_ranlib_ln"; then
9478 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9479 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9480 else
9481 { echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6; }
9486 else
9487 if test "$GCC" = "yes"; then
9488 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9489 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9490 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9493 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 case $aros_target_ranlib_ln in
9497 [\\/]* | ?:[\\/]*)
9498 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in `dirname $aros_gcc_ranlib`
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9512 done
9513 done
9514 IFS=$as_save_IFS
9517 esac
9519 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9520 if test -n "$aros_target_ranlib_ln"; then
9521 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9522 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9523 else
9524 { echo "$as_me:$LINENO: result: no" >&5
9525 echo "${ECHO_T}no" >&6; }
9530 if test "$aros_target_ranlib_ln" = ""; then
9531 # Extract the first word of "ranlib", so it can be a program name with args.
9532 set dummy ranlib; ac_word=$2
9533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9535 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538 case $aros_target_ranlib_ln in
9539 [\\/]* | ?:[\\/]*)
9540 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9550 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9554 done
9555 done
9556 IFS=$as_save_IFS
9559 esac
9561 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9562 if test -n "$aros_target_ranlib_ln"; then
9563 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9564 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9565 else
9566 { echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6; }
9574 if test "$aros_target_ranlib_ln" = ""; then
9575 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9576 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9577 { (exit 1); exit 1; }; }
9580 if test "$cross_compiling" = "yes" ; then
9581 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9582 set dummy ${target_tool_prefix}strip; ac_word=$2
9583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9585 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588 case $aros_target_strip_ln in
9589 [\\/]* | ?:[\\/]*)
9590 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in $PATH
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9600 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 break 2
9604 done
9605 done
9606 IFS=$as_save_IFS
9609 esac
9611 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9612 if test -n "$aros_target_strip_ln"; then
9613 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9614 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9615 else
9616 { echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6; }
9621 else
9622 if test "$GCC" = "yes"; then
9623 aros_gcc_strip=`$CC -print-prog-name=strip`
9624 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9625 set dummy `basename $aros_gcc_strip`; ac_word=$2
9626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9628 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 case $aros_target_strip_ln in
9632 [\\/]* | ?:[\\/]*)
9633 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in `dirname $aros_gcc_strip`
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9647 done
9648 done
9649 IFS=$as_save_IFS
9652 esac
9654 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9655 if test -n "$aros_target_strip_ln"; then
9656 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9657 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9658 else
9659 { echo "$as_me:$LINENO: result: no" >&5
9660 echo "${ECHO_T}no" >&6; }
9665 if test "$aros_target_strip_ln" = ""; then
9666 # Extract the first word of "strip", so it can be a program name with args.
9667 set dummy strip; ac_word=$2
9668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9670 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 case $aros_target_strip_ln in
9674 [\\/]* | ?:[\\/]*)
9675 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9689 done
9690 done
9691 IFS=$as_save_IFS
9694 esac
9696 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9697 if test -n "$aros_target_strip_ln"; then
9698 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9699 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9700 else
9701 { echo "$as_me:$LINENO: result: no" >&5
9702 echo "${ECHO_T}no" >&6; }
9709 if test "$aros_target_strip_ln" = ""; then
9710 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9711 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9712 { (exit 1); exit 1; }; }
9715 if test "$GCC" = "yes"; then
9716 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9719 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9720 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9721 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9722 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9723 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9724 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9725 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9727 # aros_cc_pre is a variable that is added to the front of the compiler name
9728 # in the generated aros-gcc shell script. We need this to enable the cache
9729 # to work across cleaned builds. Also, support DISTCC using the correct
9730 # environment variable.
9733 if test "x${DISTCC}" != "x" ; then
9734 if test "x${CCACHE}" != "x" ; then
9735 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9736 else
9737 aros_cc_pre="${DISTCC} "
9739 else
9740 if test "x${CCACHE}" != "x" ; then
9741 aros_cc_pre="${CCACHE} "
9745 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9747 aros_target_nostdinc_cflags=-nostdinc
9749 aros_target_nostartup_ldflags=-nostartfiles
9751 aros_target_nix_ldflags=-nix
9753 aros_target_detach_ldflags=-detach
9755 aros_target_nostdlib_ldflags=-nostdlib
9758 # Target tools
9759 aros_target_cc="${prefix}-gcc"
9760 aros_target_as="${prefix}-as"
9761 aros_target_ld="${prefix}-ld"
9762 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9763 aros_target_objcopy=${prefix}-objcopy
9764 aros_target_objdump=${prefix}-objdump
9765 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9766 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9767 aros_kernel_nm="${prefix}-nm"
9768 aros_target_strip=${prefix}-strip
9771 # Find the system include path. We can suggest that an alternative is
9772 # used if we don't get it correct. The default is to use /usr/include.
9773 # Which is set in the aros_target_incl_def variable.
9775 # Check whether --enable-includes was given.
9776 if test "${enable_includes+set}" = set; then
9777 enableval=$enable_includes; aros_target_incl=$enable_includes
9778 else
9779 aros_target_incl=$aros_target_incl_def
9783 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9784 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
9785 if test "$aros_target_cc_includes" = "" ; then
9786 #try to guess where the directory is
9787 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9788 if ! test -d $aros_target_cc_includes; then
9789 #the directory doesn't exist, we need to do some more work
9790 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9792 #these are the headers we're looling for
9793 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9794 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9795 zutil.h"
9797 dirs=
9798 for h in $headers; do
9799 #which other headers each of the above headers needs?
9800 deps=$(echo "#include <$h>" | \
9801 $aros_host_cc -E -M - 2>/dev/null | \
9802 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9804 #copy all the needed headers to a directory beneath gendir
9805 for d in $deps; do
9806 h=$(basename $d)
9807 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9808 sed -n "s,^.*/include\(/.*\),\1,p")
9809 ! test -d $dir && mkdir -p $dir
9810 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9811 done
9812 done
9815 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9816 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
9818 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9819 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
9821 # Check whether --with-resolution was given.
9822 if test "${with_resolution+set}" = set; then
9823 withval=$with_resolution; resolution=$withval
9824 else
9825 resolution=none
9828 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9829 if test "$resolution" = "yes" ; then
9830 resolution="none"
9832 if test "$resolution" = "no" ; then
9833 resolution="none"
9835 if test "$resolution" != "none" ; then
9836 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9837 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9838 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9840 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9841 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9842 aros_cv_default_wbwidth=$aros_default_wbwidth
9843 aros_cv_default_wbheight=$aros_default_wbheight
9844 aros_cv_default_wbdepth=$aros_default_wbdepth
9846 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9847 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
9848 # Check whether --enable-bochs_hack was given.
9849 if test "${enable_bochs_hack+set}" = set; then
9850 enableval=$enable_bochs_hack; bochs_hack="yes"
9851 else
9852 bochs_hack="no"
9855 if test "$bochs_hack" = "yes" ; then
9856 aros_bochs_hack="1"
9858 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
9859 echo "${ECHO_T}$bochs_hack" >&6; }
9861 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9862 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
9864 # Check whether --with-serial-debug was given.
9865 if test "${with_serial_debug+set}" = set; then
9866 withval=$with_serial_debug; serial_debug=$withval
9867 else
9868 serial_debug=none
9871 if test "$serial_debug" = "yes" ; then
9872 serial_debug="2"
9874 if test "$serial_debug" = "no" ; then
9875 serial_debug="none"
9877 if test "$serial_debug" != "none" ; then
9878 aros_serial_debug=$serial_debug
9879 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9880 echo "${ECHO_T}on port $serial_debug" >&6; }
9881 else
9882 { echo "$as_me:$LINENO: result: no" >&5
9883 echo "${ECHO_T}no" >&6; }
9886 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9887 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
9888 # Check whether --enable-palm_debug_hack was given.
9889 if test "${enable_palm_debug_hack+set}" = set; then
9890 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9891 else
9892 palm_debug_hack="no"
9895 if test "$palm_debug_hack" = "yes" ; then
9896 aros_palm_debug_hack="1"
9898 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9899 echo "${ECHO_T}$palm_debug_hack" >&6; }
9902 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9903 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
9904 # Check whether --enable-nesting_supervisor was given.
9905 if test "${enable_nesting_supervisor+set}" = set; then
9906 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9907 else
9908 nesting_supervisor="no"
9911 if test "$nesting_supervisor" = "yes" ; then
9912 aros_nesting_supervisor="1"
9914 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9915 echo "${ECHO_T}$nesting_supervisor" >&6; }
9918 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9920 { echo "$as_me:$LINENO: checking for dlopen" >&5
9921 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9922 if test "${ac_cv_func_dlopen+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9933 #define dlopen innocuous_dlopen
9935 /* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char dlopen (); below.
9937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9938 <limits.h> exists even on freestanding compilers. */
9940 #ifdef __STDC__
9941 # include <limits.h>
9942 #else
9943 # include <assert.h>
9944 #endif
9946 #undef dlopen
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9951 #ifdef __cplusplus
9952 extern "C"
9953 #endif
9954 char dlopen ();
9955 /* The GNU C library defines this for functions which it implements
9956 to always fail with ENOSYS. Some functions are actually named
9957 something starting with __ and the normal name is an alias. */
9958 #if defined __stub_dlopen || defined __stub___dlopen
9959 choke me
9960 #endif
9963 main ()
9965 return dlopen ();
9967 return 0;
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9972 case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_link") 2>conftest.er1
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 } && test -s conftest$ac_exeext &&
9987 $as_test_x conftest$ac_exeext; then
9988 ac_cv_func_dlopen=yes
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_func_dlopen=no
9996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9997 conftest$ac_exeext conftest.$ac_ext
9999 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10000 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10001 if test $ac_cv_func_dlopen = yes; then
10002 have_dl="yes"
10003 else
10004 have_dl="no"
10007 if test "x-$have_dl" = "x-no" ; then
10008 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013 ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-ldl $LIBS"
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10022 /* Override any GCC internal prototype to avoid an error.
10023 Use char because int might match the return type of a GCC
10024 builtin and then its argument prototype would still apply. */
10025 #ifdef __cplusplus
10026 extern "C"
10027 #endif
10028 char dlopen ();
10030 main ()
10032 return dlopen ();
10034 return 0;
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest$ac_exeext &&
10054 $as_test_x conftest$ac_exeext; then
10055 ac_cv_lib_dl_dlopen=yes
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 ac_cv_lib_dl_dlopen=no
10063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10069 if test $ac_cv_lib_dl_dlopen = yes; then
10070 have_dl="yes"
10071 aros_host_ldflags="$aros_host_ldflags -ldl"
10072 else
10073 have_dl="no"
10077 if test "x-$have_dl" = "x-no" ; then
10078 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10079 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10080 { (exit 1); exit 1; }; }
10084 # Check whether --enable-x11_hidd was given.
10085 if test "${enable_x11_hidd+set}" = set; then
10086 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10087 else
10088 x11_hidd="auto"
10091 case "x-$x11_hidd" in
10092 x-yes|x-no|x-auto) ;;
10093 *) x11_hidd="auto" ;;
10094 esac
10096 if test "x-$x11_hidd" != "x-no" ; then
10098 { echo "$as_me:$LINENO: checking for X" >&5
10099 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10102 # Check whether --with-x was given.
10103 if test "${with_x+set}" = set; then
10104 withval=$with_x;
10107 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10108 if test "x$with_x" = xno; then
10109 # The user explicitly disabled X.
10110 have_x=disabled
10111 else
10112 case $x_includes,$x_libraries in #(
10113 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10114 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10115 { (exit 1); exit 1; }; };; #(
10116 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 # One or both of the vars are not set, and there is no cached value.
10120 ac_x_includes=no ac_x_libraries=no
10121 rm -f -r conftest.dir
10122 if mkdir conftest.dir; then
10123 cd conftest.dir
10124 cat >Imakefile <<'_ACEOF'
10125 incroot:
10126 @echo incroot='${INCROOT}'
10127 usrlibdir:
10128 @echo usrlibdir='${USRLIBDIR}'
10129 libdir:
10130 @echo libdir='${LIBDIR}'
10131 _ACEOF
10132 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10134 for ac_var in incroot usrlibdir libdir; do
10135 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10136 done
10137 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10138 for ac_extension in a so sl; do
10139 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10140 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10141 ac_im_usrlibdir=$ac_im_libdir; break
10143 done
10144 # Screen out bogus values from the imake configuration. They are
10145 # bogus both because they are the default anyway, and because
10146 # using them would break gcc on systems where it needs fixed includes.
10147 case $ac_im_incroot in
10148 /usr/include) ac_x_includes= ;;
10149 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10150 esac
10151 case $ac_im_usrlibdir in
10152 /usr/lib | /lib) ;;
10153 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10154 esac
10156 cd ..
10157 rm -f -r conftest.dir
10160 # Standard set of common directories for X headers.
10161 # Check X11 before X11Rn because it is often a symlink to the current release.
10162 ac_x_header_dirs='
10163 /usr/X11/include
10164 /usr/X11R6/include
10165 /usr/X11R5/include
10166 /usr/X11R4/include
10168 /usr/include/X11
10169 /usr/include/X11R6
10170 /usr/include/X11R5
10171 /usr/include/X11R4
10173 /usr/local/X11/include
10174 /usr/local/X11R6/include
10175 /usr/local/X11R5/include
10176 /usr/local/X11R4/include
10178 /usr/local/include/X11
10179 /usr/local/include/X11R6
10180 /usr/local/include/X11R5
10181 /usr/local/include/X11R4
10183 /usr/X386/include
10184 /usr/x386/include
10185 /usr/XFree86/include/X11
10187 /usr/include
10188 /usr/local/include
10189 /usr/unsupported/include
10190 /usr/athena/include
10191 /usr/local/x11r5/include
10192 /usr/lpp/Xamples/include
10194 /usr/openwin/include
10195 /usr/openwin/share/include'
10197 if test "$ac_x_includes" = no; then
10198 # Guess where to find include files, by looking for Xlib.h.
10199 # First, try using that file with no special directory specified.
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <X11/Xlib.h>
10207 _ACEOF
10208 if { (ac_try="$ac_cpp conftest.$ac_ext"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null && {
10221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 }; then
10224 # We can compile using X headers with no special include directory.
10225 ac_x_includes=
10226 else
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 for ac_dir in $ac_x_header_dirs; do
10231 if test -r "$ac_dir/X11/Xlib.h"; then
10232 ac_x_includes=$ac_dir
10233 break
10235 done
10238 rm -f conftest.err conftest.$ac_ext
10239 fi # $ac_x_includes = no
10241 if test "$ac_x_libraries" = no; then
10242 # Check for the libraries.
10243 # See if we find them without any special options.
10244 # Don't add to $LIBS permanently.
10245 ac_save_LIBS=$LIBS
10246 LIBS="-lX11 $LIBS"
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h. */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 #include <X11/Xlib.h>
10255 main ()
10257 XrmInitialize ()
10259 return 0;
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_c_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest$ac_exeext &&
10279 $as_test_x conftest$ac_exeext; then
10280 LIBS=$ac_save_LIBS
10281 # We can link X programs with no special library path.
10282 ac_x_libraries=
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 LIBS=$ac_save_LIBS
10288 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10290 # Don't even attempt the hair of trying to link an X program!
10291 for ac_extension in a so sl; do
10292 if test -r "$ac_dir/libX11.$ac_extension"; then
10293 ac_x_libraries=$ac_dir
10294 break 2
10296 done
10297 done
10300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10301 conftest$ac_exeext conftest.$ac_ext
10302 fi # $ac_x_libraries = no
10304 case $ac_x_includes,$ac_x_libraries in #(
10305 no,* | *,no | *\'*)
10306 # Didn't find X, or a directory has "'" in its name.
10307 ac_cv_have_x="have_x=no";; #(
10309 # Record where we found X for the cache.
10310 ac_cv_have_x="have_x=yes\
10311 ac_x_includes='$ac_x_includes'\
10312 ac_x_libraries='$ac_x_libraries'"
10313 esac
10315 ;; #(
10316 *) have_x=yes;;
10317 esac
10318 eval "$ac_cv_have_x"
10319 fi # $with_x != no
10321 if test "$have_x" != yes; then
10322 { echo "$as_me:$LINENO: result: $have_x" >&5
10323 echo "${ECHO_T}$have_x" >&6; }
10324 no_x=yes
10325 else
10326 # If each of the values was on the command line, it overrides each guess.
10327 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10328 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10329 # Update the cache value to reflect the command line values.
10330 ac_cv_have_x="have_x=yes\
10331 ac_x_includes='$x_includes'\
10332 ac_x_libraries='$x_libraries'"
10333 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10334 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10338 if test "x-$no_x" = "x-yes" ; then
10340 if test "x-$x11_hidd" != "x-auto" ; then
10341 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10342 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10343 { (exit 1); exit 1; }; }
10346 else
10347 x11_hidd_target=kernel-x11gfx
10350 # Check whether --enable-x11_shm was given.
10351 if test "${enable_x11_shm+set}" = set; then
10352 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10353 else
10354 x11_hidd_shm="auto"
10357 case "x-$x11_hidd_shm" in
10358 x-yes|x-no|x-auto) ;;
10359 *) x11_hidd_shm="auto" ;;
10360 esac
10362 have_xshm=no
10364 if test "x-$x11_hidd_shm" != "x-no" ; then
10367 for ac_header in sys/ipc.h
10369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 ac_res=`eval echo '${'$as_ac_Header'}'`
10377 { echo "$as_me:$LINENO: result: $ac_res" >&5
10378 echo "${ECHO_T}$ac_res" >&6; }
10379 else
10380 # Is the header compilable?
10381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10383 cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h. */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389 $ac_includes_default
10390 #include <$ac_header>
10391 _ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (ac_try="$ac_compile"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_compile") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest.$ac_objext; then
10409 ac_header_compiler=yes
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_header_compiler=no
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10419 echo "${ECHO_T}$ac_header_compiler" >&6; }
10421 # Is the header present?
10422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10424 cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h. */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 #include <$ac_header>
10431 _ACEOF
10432 if { (ac_try="$ac_cpp conftest.$ac_ext"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } >/dev/null && {
10445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 }; then
10448 ac_header_preproc=yes
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_header_preproc=no
10456 rm -f conftest.err conftest.$ac_ext
10457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10458 echo "${ECHO_T}$ac_header_preproc" >&6; }
10460 # So? What about this header?
10461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10462 yes:no: )
10463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10467 ac_header_preproc=yes
10469 no:yes:* )
10470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10484 esac
10485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 eval "$as_ac_Header=\$ac_header_preproc"
10492 ac_res=`eval echo '${'$as_ac_Header'}'`
10493 { echo "$as_me:$LINENO: result: $ac_res" >&5
10494 echo "${ECHO_T}$ac_res" >&6; }
10497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10498 cat >>confdefs.h <<_ACEOF
10499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10500 _ACEOF
10504 done
10507 for ac_header in sys/shm.h
10509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 ac_res=`eval echo '${'$as_ac_Header'}'`
10517 { echo "$as_me:$LINENO: result: $ac_res" >&5
10518 echo "${ECHO_T}$ac_res" >&6; }
10519 else
10520 # Is the header compilable?
10521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 $ac_includes_default
10530 #include <$ac_header>
10531 _ACEOF
10532 rm -f conftest.$ac_objext
10533 if { (ac_try="$ac_compile"
10534 case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest.$ac_objext; then
10549 ac_header_compiler=yes
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 ac_header_compiler=no
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10559 echo "${ECHO_T}$ac_header_compiler" >&6; }
10561 # Is the header present?
10562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 #include <$ac_header>
10571 _ACEOF
10572 if { (ac_try="$ac_cpp conftest.$ac_ext"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576 esac
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10579 ac_status=$?
10580 grep -v '^ *+' conftest.er1 >conftest.err
10581 rm -f conftest.er1
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } >/dev/null && {
10585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10586 test ! -s conftest.err
10587 }; then
10588 ac_header_preproc=yes
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_header_preproc=no
10596 rm -f conftest.err conftest.$ac_ext
10597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10598 echo "${ECHO_T}$ac_header_preproc" >&6; }
10600 # So? What about this header?
10601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10602 yes:no: )
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10607 ac_header_preproc=yes
10609 no:yes:* )
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10624 esac
10625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630 eval "$as_ac_Header=\$ac_header_preproc"
10632 ac_res=`eval echo '${'$as_ac_Header'}'`
10633 { echo "$as_me:$LINENO: result: $ac_res" >&5
10634 echo "${ECHO_T}$ac_res" >&6; }
10637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10638 cat >>confdefs.h <<_ACEOF
10639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10640 _ACEOF
10644 done
10647 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10649 save_libs="$LIBS"
10650 save_cflags="$CFLAGS"
10651 LIBS="$x_libraries"
10652 CFLAGS="$x_includes"
10653 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10654 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10655 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lXext $LIBS"
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h. */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char XShmQueryExtension ();
10675 main ()
10677 return XShmQueryExtension ();
10679 return 0;
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_link") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest$ac_exeext &&
10699 $as_test_x conftest$ac_exeext; then
10700 ac_cv_lib_Xext_XShmQueryExtension=yes
10701 else
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ac_cv_lib_Xext_XShmQueryExtension=no
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10713 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10714 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10715 have_xshm=yes
10718 LIBS="$save_libs"
10719 CFLAGS="$save_cflags"
10723 if test "x-$have_xshm" = "x-yes" ; then
10724 DO_XSHM_SUPPORT="1"
10725 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10726 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
10727 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
10728 { (exit 1); exit 1; }; }
10729 else
10730 DO_XSHM_SUPPORT="0"
10734 # Check whether --enable-x11_vidmode was given.
10735 if test "${enable_x11_vidmode+set}" = set; then
10736 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10737 else
10738 x11_hidd_vidmode="auto"
10741 case "x-$x11_hidd_vidmode" in
10742 x-yes|x-no|x-auto) ;;
10743 *) x11_hidd_vidmode="auto" ;;
10744 esac
10746 have_vidmode=no
10748 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10750 save_libs="$LIBS"
10751 save_cflags="$CFLAGS"
10752 LIBS="$x_libraries"
10753 CFLAGS="$x_includes"
10754 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10755 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
10756 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 else
10759 ac_check_lib_save_LIBS=$LIBS
10760 LIBS="-lXxf86vm $LIBS"
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10768 /* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
10771 #ifdef __cplusplus
10772 extern "C"
10773 #endif
10774 char XF86VidModeQueryExtension ();
10776 main ()
10778 return XF86VidModeQueryExtension ();
10780 return 0;
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (ac_try="$ac_link"
10785 case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788 esac
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_link") 2>conftest.er1
10791 ac_status=$?
10792 grep -v '^ *+' conftest.er1 >conftest.err
10793 rm -f conftest.er1
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext &&
10800 $as_test_x conftest$ac_exeext; then
10801 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10802 else
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10813 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10814 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10815 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10816 have_vidmode=yes
10819 LIBS="$save_libs"
10820 CFLAGS="$save_cflags"
10823 if test "x-$have_vidmode" = "x-yes" ; then
10824 DO_VIDMODE_SUPPORT="1"
10825 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10826 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
10827 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
10828 { (exit 1); exit 1; }; }
10829 else
10830 DO_VIDMODE_SUPPORT="0"
10834 aros_host_x11_includes=$x_includes
10835 aros_host_x11_libdirs=$x_libraries
10839 # Check whether --enable-sdl_hidd was given.
10840 if test "${enable_sdl_hidd+set}" = set; then
10841 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10842 else
10843 sdl_hidd="auto"
10846 case "x-$sdl_hidd" in
10847 x-yes|x-no|x-auto) ;;
10848 *) sdl_hidd="auto" ;;
10849 esac
10851 if test "x-$sdl_hidd" != "x-no" ; then
10854 # Check whether --with-sdl-prefix was given.
10855 if test "${with_sdl_prefix+set}" = set; then
10856 withval=$with_sdl_prefix; sdl_prefix="$withval"
10857 else
10858 sdl_prefix=""
10862 # Check whether --with-sdl-exec-prefix was given.
10863 if test "${with_sdl_exec_prefix+set}" = set; then
10864 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10865 else
10866 sdl_exec_prefix=""
10869 # Check whether --enable-sdltest was given.
10870 if test "${enable_sdltest+set}" = set; then
10871 enableval=$enable_sdltest;
10872 else
10873 enable_sdltest=yes
10877 if test x$sdl_exec_prefix != x ; then
10878 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10879 if test x${SDL_CONFIG+set} != xset ; then
10880 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10883 if test x$sdl_prefix != x ; then
10884 sdl_args="$sdl_args --prefix=$sdl_prefix"
10885 if test x${SDL_CONFIG+set} != xset ; then
10886 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10890 if test "x$prefix" != xNONE; then
10891 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10893 # Extract the first word of "sdl-config", so it can be a program name with args.
10894 set dummy sdl-config; ac_word=$2
10895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10897 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900 case $SDL_CONFIG in
10901 [\\/]* | ?:[\\/]*)
10902 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10916 done
10917 done
10918 IFS=$as_save_IFS
10920 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10922 esac
10924 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10925 if test -n "$SDL_CONFIG"; then
10926 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
10927 echo "${ECHO_T}$SDL_CONFIG" >&6; }
10928 else
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10934 min_sdl_version=1.2.10
10935 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
10936 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
10937 no_sdl=""
10938 if test "$SDL_CONFIG" = "no" ; then
10939 no_sdl=yes
10940 else
10941 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10942 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10944 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10945 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10946 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10947 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10948 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10949 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10950 if test "x$enable_sdltest" = "xyes" ; then
10951 ac_save_CFLAGS="$CFLAGS"
10952 ac_save_CXXFLAGS="$CXXFLAGS"
10953 ac_save_LIBS="$LIBS"
10954 CFLAGS="$CFLAGS $SDL_CFLAGS"
10955 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10956 LIBS="$LIBS $SDL_LIBS"
10957 rm -f conf.sdltest
10958 if test "$cross_compiling" = yes; then
10959 echo $ac_n "cross compiling; assumed OK... $ac_c"
10960 else
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10968 #include <stdio.h>
10969 #include <stdlib.h>
10970 #include <string.h>
10971 #include "SDL.h"
10973 char*
10974 my_strdup (char *str)
10976 char *new_str;
10978 if (str)
10980 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10981 strcpy (new_str, str);
10983 else
10984 new_str = NULL;
10986 return new_str;
10989 int main (int argc, char *argv[])
10991 int major, minor, micro;
10992 char *tmp_version;
10994 /* This hangs on some systems (?)
10995 system ("touch conf.sdltest");
10997 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10999 /* HP/UX 9 (%@#!) writes to sscanf strings */
11000 tmp_version = my_strdup("$min_sdl_version");
11001 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11002 printf("%s, bad version string\n", "$min_sdl_version");
11003 exit(1);
11006 if (($sdl_major_version > major) ||
11007 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11008 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11010 return 0;
11012 else
11014 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11015 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11016 printf("*** best to upgrade to the required version.\n");
11017 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11018 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11019 printf("*** config.cache before re-running configure\n");
11020 return 1;
11025 _ACEOF
11026 rm -f conftest$ac_exeext
11027 if { (ac_try="$ac_link"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_link") 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11047 else
11048 echo "$as_me: program exited with status $ac_status" >&5
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 ( exit $ac_status )
11053 no_sdl=yes
11055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11059 CFLAGS="$ac_save_CFLAGS"
11060 CXXFLAGS="$ac_save_CXXFLAGS"
11061 LIBS="$ac_save_LIBS"
11064 if test "x$no_sdl" = x ; then
11065 { echo "$as_me:$LINENO: result: yes" >&5
11066 echo "${ECHO_T}yes" >&6; }
11067 have_sdl="yes"
11068 else
11069 { echo "$as_me:$LINENO: result: no" >&5
11070 echo "${ECHO_T}no" >&6; }
11071 if test "$SDL_CONFIG" = "no" ; then
11072 echo "*** The sdl-config script installed by SDL could not be found"
11073 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11074 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11075 echo "*** full path to sdl-config."
11076 else
11077 if test -f conf.sdltest ; then
11079 else
11080 echo "*** Could not run SDL test program, checking why..."
11081 CFLAGS="$CFLAGS $SDL_CFLAGS"
11082 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11083 LIBS="$LIBS $SDL_LIBS"
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11091 #include <stdio.h>
11092 #include "SDL.h"
11094 int main(int argc, char *argv[])
11095 { return 0; }
11096 #undef main
11097 #define main K_and_R_C_main
11100 main ()
11102 return 0;
11104 return 0;
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_link") 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && {
11121 test -z "$ac_c_werror_flag" ||
11122 test ! -s conftest.err
11123 } && test -s conftest$ac_exeext &&
11124 $as_test_x conftest$ac_exeext; then
11125 echo "*** The test program compiled, but did not run. This usually means"
11126 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11127 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11128 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11129 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11130 echo "*** is required on your system"
11131 echo "***"
11132 echo "*** If you have an old version installed, it is best to remove it, although"
11133 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 echo "*** The test program failed to compile or link. See the file config.log for the"
11139 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11140 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11141 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
11146 CFLAGS="$ac_save_CFLAGS"
11147 CXXFLAGS="$ac_save_CXXFLAGS"
11148 LIBS="$ac_save_LIBS"
11151 SDL_CFLAGS=""
11152 SDL_LIBS=""
11153 have_sdl="no"
11157 rm -f conf.sdltest
11160 if test "x-$have_sdl" != "x-yes" ; then
11162 if test "x-$sdl_hidd" != "x-auto" ; then
11163 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11164 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11165 { (exit 1); exit 1; }; }
11168 else
11169 sdl_hidd_target=kernel-hidd-sdl
11170 aros_host_sdl_cflags=SDL_CFLAGS
11171 aros_host_sdl_libs=SDL_LIBS
11178 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11179 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11180 # Check whether --enable-dbus was given.
11181 if test "${enable_dbus+set}" = set; then
11182 enableval=$enable_dbus; dbus="yes"
11183 else
11184 dbus="no"
11187 if test "$dbus" = "yes" ; then
11188 ENABLE_DBUS=1
11189 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11190 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11191 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11192 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11193 else
11194 ENABLE_DBUS=0
11196 { echo "$as_me:$LINENO: result: $dbus" >&5
11197 echo "${ECHO_T}$dbus" >&6; }
11201 # Generic
11208 # Host related
11231 # Target Related
11270 # Graphics Related
11285 # Native version related
11289 # Palm native version related
11292 # Unix/Hosted version related
11295 # DBUS related
11302 # Debug related
11308 # Collect-aros stuff: "-ius" to ignore undefined symbols
11311 # C compiler related
11314 case "$aros_flavour" in
11315 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11316 aros_flavour="emulation" ;;
11317 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11318 aros_flavour="emulation" ;;
11319 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11320 aros_flavour="standalone";;
11321 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11322 aros_flavour="native" ;;
11323 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11324 aros_flavour="native" ;;
11325 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11326 aros_flavour="linklib" ;;
11327 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11328 aros_flavour="palmnative" ;;
11329 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11330 aros_flavour="mac68knative" ;;
11331 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11332 aros_flavour="ppcnative" ;;
11333 esac
11335 if test ! -d ${aros_inc_dir} ; then
11336 ${MKDIR} ${aros_inc_dir}
11338 if test ! -d ${aros_geninc_dir} ; then
11339 ${MKDIR} ${aros_geninc_dir}
11341 if test ! -d ${aros_hostcfg_dir} ; then
11342 ${MKDIR} ${aros_hostcfg_dir}
11344 if test ! -d ${aros_targetcfg_dir} ; then
11345 ${MKDIR} ${aros_targetcfg_dir}
11347 if test ! -d ${aros_tools_dir} ; then
11348 ${MKDIR} ${aros_tools_dir}
11350 if test ! -d ${aros_scripts_dir} ; then
11351 ${MKDIR} ${aros_scripts_dir}
11354 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11357 ac_config_commands="$ac_config_commands compiler_executable"
11359 ac_config_commands="$ac_config_commands genshared_executable"
11361 ac_config_commands="$ac_config_commands genmf_executable"
11363 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
11366 ac_config_files="$ac_config_files Makefile rom/mmakefile ${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/adflib/myconf.aros tools/collect-aros/env.h"
11369 cat >confcache <<\_ACEOF
11370 # This file is a shell script that caches the results of configure
11371 # tests run on this system so they can be shared between configure
11372 # scripts and configure runs, see configure's option --config-cache.
11373 # It is not useful on other systems. If it contains results you don't
11374 # want to keep, you may remove or edit it.
11376 # config.status only pays attention to the cache file if you give it
11377 # the --recheck option to rerun configure.
11379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11381 # following values.
11383 _ACEOF
11385 # The following way of writing the cache mishandles newlines in values,
11386 # but we know of no workaround that is simple, portable, and efficient.
11387 # So, we kill variables containing newlines.
11388 # Ultrix sh set writes to stderr and can't be redirected directly,
11389 # and sets the high bit in the cache file unless we assign to the vars.
11391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11392 eval ac_val=\$$ac_var
11393 case $ac_val in #(
11394 *${as_nl}*)
11395 case $ac_var in #(
11396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11397 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11398 esac
11399 case $ac_var in #(
11400 _ | IFS | as_nl) ;; #(
11401 *) $as_unset $ac_var ;;
11402 esac ;;
11403 esac
11404 done
11406 (set) 2>&1 |
11407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11408 *${as_nl}ac_space=\ *)
11409 # `set' does not quote correctly, so add quotes (double-quote
11410 # substitution turns \\\\ into \\, and sed turns \\ into \).
11411 sed -n \
11412 "s/'/'\\\\''/g;
11413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11414 ;; #(
11416 # `set' quotes correctly as required by POSIX, so do not add quotes.
11417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11419 esac |
11420 sort
11422 sed '
11423 /^ac_cv_env_/b end
11424 t clear
11425 :clear
11426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11427 t end
11428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11429 :end' >>confcache
11430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11431 if test -w "$cache_file"; then
11432 test "x$cache_file" != "x/dev/null" &&
11433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11434 echo "$as_me: updating cache $cache_file" >&6;}
11435 cat confcache >$cache_file
11436 else
11437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11438 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11441 rm -f confcache
11443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11444 # Let make expand exec_prefix.
11445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11447 DEFS=-DHAVE_CONFIG_H
11449 ac_libobjs=
11450 ac_ltlibobjs=
11451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11452 # 1. Remove the extension, and $U if already installed.
11453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11454 ac_i=`echo "$ac_i" | sed "$ac_script"`
11455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11456 # will be set to the directory where LIBOBJS objects are built.
11457 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11458 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11459 done
11460 LIBOBJS=$ac_libobjs
11462 LTLIBOBJS=$ac_ltlibobjs
11466 : ${CONFIG_STATUS=./config.status}
11467 ac_clean_files_save=$ac_clean_files
11468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11469 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11470 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11471 cat >$CONFIG_STATUS <<_ACEOF
11472 #! $SHELL
11473 # Generated by $as_me.
11474 # Run this file to recreate the current configuration.
11475 # Compiler output produced by configure, useful for debugging
11476 # configure, is in config.log if it exists.
11478 debug=false
11479 ac_cs_recheck=false
11480 ac_cs_silent=false
11481 SHELL=\${CONFIG_SHELL-$SHELL}
11482 _ACEOF
11484 cat >>$CONFIG_STATUS <<\_ACEOF
11485 ## --------------------- ##
11486 ## M4sh Initialization. ##
11487 ## --------------------- ##
11489 # Be more Bourne compatible
11490 DUALCASE=1; export DUALCASE # for MKS sh
11491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11492 emulate sh
11493 NULLCMD=:
11494 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11495 # is contrary to our usage. Disable this feature.
11496 alias -g '${1+"$@"}'='"$@"'
11497 setopt NO_GLOB_SUBST
11498 else
11499 case `(set -o) 2>/dev/null` in
11500 *posix*) set -o posix ;;
11501 esac
11508 # PATH needs CR
11509 # Avoid depending upon Character Ranges.
11510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11513 as_cr_digits='0123456789'
11514 as_cr_alnum=$as_cr_Letters$as_cr_digits
11516 # The user is always right.
11517 if test "${PATH_SEPARATOR+set}" != set; then
11518 echo "#! /bin/sh" >conf$$.sh
11519 echo "exit 0" >>conf$$.sh
11520 chmod +x conf$$.sh
11521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11522 PATH_SEPARATOR=';'
11523 else
11524 PATH_SEPARATOR=:
11526 rm -f conf$$.sh
11529 # Support unset when possible.
11530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11531 as_unset=unset
11532 else
11533 as_unset=false
11537 # IFS
11538 # We need space, tab and new line, in precisely that order. Quoting is
11539 # there to prevent editors from complaining about space-tab.
11540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11541 # splitting by setting IFS to empty value.)
11542 as_nl='
11544 IFS=" "" $as_nl"
11546 # Find who we are. Look in the path if we contain no directory separator.
11547 case $0 in
11548 *[\\/]* ) as_myself=$0 ;;
11549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11555 done
11556 IFS=$as_save_IFS
11559 esac
11560 # We did not find ourselves, most probably we were run as `sh COMMAND'
11561 # in which case we are not to be found in the path.
11562 if test "x$as_myself" = x; then
11563 as_myself=$0
11565 if test ! -f "$as_myself"; then
11566 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11567 { (exit 1); exit 1; }
11570 # Work around bugs in pre-3.0 UWIN ksh.
11571 for as_var in ENV MAIL MAILPATH
11572 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11573 done
11574 PS1='$ '
11575 PS2='> '
11576 PS4='+ '
11578 # NLS nuisances.
11579 for as_var in \
11580 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11581 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11582 LC_TELEPHONE LC_TIME
11584 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11585 eval $as_var=C; export $as_var
11586 else
11587 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11589 done
11591 # Required to use basename.
11592 if expr a : '\(a\)' >/dev/null 2>&1 &&
11593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11594 as_expr=expr
11595 else
11596 as_expr=false
11599 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11600 as_basename=basename
11601 else
11602 as_basename=false
11606 # Name of the executable.
11607 as_me=`$as_basename -- "$0" ||
11608 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11609 X"$0" : 'X\(//\)$' \| \
11610 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11611 echo X/"$0" |
11612 sed '/^.*\/\([^/][^/]*\)\/*$/{
11613 s//\1/
11616 /^X\/\(\/\/\)$/{
11617 s//\1/
11620 /^X\/\(\/\).*/{
11621 s//\1/
11624 s/.*/./; q'`
11626 # CDPATH.
11627 $as_unset CDPATH
11631 as_lineno_1=$LINENO
11632 as_lineno_2=$LINENO
11633 test "x$as_lineno_1" != "x$as_lineno_2" &&
11634 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11637 # uniformly replaced by the line number. The first 'sed' inserts a
11638 # line-number line after each line using $LINENO; the second 'sed'
11639 # does the real work. The second script uses 'N' to pair each
11640 # line-number line with the line containing $LINENO, and appends
11641 # trailing '-' during substitution so that $LINENO is not a special
11642 # case at line end.
11643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11644 # scripts with optimization help from Paolo Bonzini. Blame Lee
11645 # E. McMahon (1931-1989) for sed's syntax. :-)
11646 sed -n '
11648 /[$]LINENO/=
11649 ' <$as_myself |
11650 sed '
11651 s/[$]LINENO.*/&-/
11652 t lineno
11654 :lineno
11656 :loop
11657 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11658 t loop
11659 s/-\n.*//
11660 ' >$as_me.lineno &&
11661 chmod +x "$as_me.lineno" ||
11662 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11663 { (exit 1); exit 1; }; }
11665 # Don't try to exec as it changes $[0], causing all sort of problems
11666 # (the dirname of $[0] is not the place where we might find the
11667 # original and so on. Autoconf is especially sensitive to this).
11668 . "./$as_me.lineno"
11669 # Exit status is that of the last command.
11670 exit
11674 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11675 as_dirname=dirname
11676 else
11677 as_dirname=false
11680 ECHO_C= ECHO_N= ECHO_T=
11681 case `echo -n x` in
11682 -n*)
11683 case `echo 'x\c'` in
11684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11685 *) ECHO_C='\c';;
11686 esac;;
11688 ECHO_N='-n';;
11689 esac
11691 if expr a : '\(a\)' >/dev/null 2>&1 &&
11692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11693 as_expr=expr
11694 else
11695 as_expr=false
11698 rm -f conf$$ conf$$.exe conf$$.file
11699 if test -d conf$$.dir; then
11700 rm -f conf$$.dir/conf$$.file
11701 else
11702 rm -f conf$$.dir
11703 mkdir conf$$.dir
11705 echo >conf$$.file
11706 if ln -s conf$$.file conf$$ 2>/dev/null; then
11707 as_ln_s='ln -s'
11708 # ... but there are two gotchas:
11709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11711 # In both cases, we have to default to `cp -p'.
11712 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11713 as_ln_s='cp -p'
11714 elif ln conf$$.file conf$$ 2>/dev/null; then
11715 as_ln_s=ln
11716 else
11717 as_ln_s='cp -p'
11719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11720 rmdir conf$$.dir 2>/dev/null
11722 if mkdir -p . 2>/dev/null; then
11723 as_mkdir_p=:
11724 else
11725 test -d ./-p && rmdir ./-p
11726 as_mkdir_p=false
11729 if test -x / >/dev/null 2>&1; then
11730 as_test_x='test -x'
11731 else
11732 if ls -dL / >/dev/null 2>&1; then
11733 as_ls_L_option=L
11734 else
11735 as_ls_L_option=
11737 as_test_x='
11738 eval sh -c '\''
11739 if test -d "$1"; then
11740 test -d "$1/.";
11741 else
11742 case $1 in
11743 -*)set "./$1";;
11744 esac;
11745 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11746 ???[sx]*):;;*)false;;esac;fi
11747 '\'' sh
11750 as_executable_p=$as_test_x
11752 # Sed expression to map a string onto a valid CPP name.
11753 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11755 # Sed expression to map a string onto a valid variable name.
11756 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11759 exec 6>&1
11761 # Save the log message, to keep $[0] and so on meaningful, and to
11762 # report actual input values of CONFIG_FILES etc. instead of their
11763 # values after options handling.
11764 ac_log="
11765 This file was extended by $as_me, which was
11766 generated by GNU Autoconf 2.61. Invocation command line was
11768 CONFIG_FILES = $CONFIG_FILES
11769 CONFIG_HEADERS = $CONFIG_HEADERS
11770 CONFIG_LINKS = $CONFIG_LINKS
11771 CONFIG_COMMANDS = $CONFIG_COMMANDS
11772 $ $0 $@
11774 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11777 _ACEOF
11779 cat >>$CONFIG_STATUS <<_ACEOF
11780 # Files that config.status was made for.
11781 config_files="$ac_config_files"
11782 config_headers="$ac_config_headers"
11783 config_commands="$ac_config_commands"
11785 _ACEOF
11787 cat >>$CONFIG_STATUS <<\_ACEOF
11788 ac_cs_usage="\
11789 \`$as_me' instantiates files from templates according to the
11790 current configuration.
11792 Usage: $0 [OPTIONS] [FILE]...
11794 -h, --help print this help, then exit
11795 -V, --version print version number and configuration settings, then exit
11796 -q, --quiet do not print progress messages
11797 -d, --debug don't remove temporary files
11798 --recheck update $as_me by reconfiguring in the same conditions
11799 --file=FILE[:TEMPLATE]
11800 instantiate the configuration file FILE
11801 --header=FILE[:TEMPLATE]
11802 instantiate the configuration header FILE
11804 Configuration files:
11805 $config_files
11807 Configuration headers:
11808 $config_headers
11810 Configuration commands:
11811 $config_commands
11813 Report bugs to <bug-autoconf@gnu.org>."
11815 _ACEOF
11816 cat >>$CONFIG_STATUS <<_ACEOF
11817 ac_cs_version="\\
11818 config.status
11819 configured by $0, generated by GNU Autoconf 2.61,
11820 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11822 Copyright (C) 2006 Free Software Foundation, Inc.
11823 This config.status script is free software; the Free Software Foundation
11824 gives unlimited permission to copy, distribute and modify it."
11826 ac_pwd='$ac_pwd'
11827 srcdir='$srcdir'
11828 _ACEOF
11830 cat >>$CONFIG_STATUS <<\_ACEOF
11831 # If no file are specified by the user, then we need to provide default
11832 # value. By we need to know if files were specified by the user.
11833 ac_need_defaults=:
11834 while test $# != 0
11836 case $1 in
11837 --*=*)
11838 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11839 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11840 ac_shift=:
11843 ac_option=$1
11844 ac_optarg=$2
11845 ac_shift=shift
11847 esac
11849 case $ac_option in
11850 # Handling of the options.
11851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11852 ac_cs_recheck=: ;;
11853 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11854 echo "$ac_cs_version"; exit ;;
11855 --debug | --debu | --deb | --de | --d | -d )
11856 debug=: ;;
11857 --file | --fil | --fi | --f )
11858 $ac_shift
11859 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11860 ac_need_defaults=false;;
11861 --header | --heade | --head | --hea )
11862 $ac_shift
11863 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11864 ac_need_defaults=false;;
11865 --he | --h)
11866 # Conflict between --help and --header
11867 { echo "$as_me: error: ambiguous option: $1
11868 Try \`$0 --help' for more information." >&2
11869 { (exit 1); exit 1; }; };;
11870 --help | --hel | -h )
11871 echo "$ac_cs_usage"; exit ;;
11872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11874 ac_cs_silent=: ;;
11876 # This is an error.
11877 -*) { echo "$as_me: error: unrecognized option: $1
11878 Try \`$0 --help' for more information." >&2
11879 { (exit 1); exit 1; }; } ;;
11881 *) ac_config_targets="$ac_config_targets $1"
11882 ac_need_defaults=false ;;
11884 esac
11885 shift
11886 done
11888 ac_configure_extra_args=
11890 if $ac_cs_silent; then
11891 exec 6>/dev/null
11892 ac_configure_extra_args="$ac_configure_extra_args --silent"
11895 _ACEOF
11896 cat >>$CONFIG_STATUS <<_ACEOF
11897 if \$ac_cs_recheck; then
11898 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11899 CONFIG_SHELL=$SHELL
11900 export CONFIG_SHELL
11901 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11904 _ACEOF
11905 cat >>$CONFIG_STATUS <<\_ACEOF
11906 exec 5>>config.log
11908 echo
11909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11910 ## Running $as_me. ##
11911 _ASBOX
11912 echo "$ac_log"
11913 } >&5
11915 _ACEOF
11916 cat >>$CONFIG_STATUS <<_ACEOF
11918 # INIT-COMMANDS
11921 aros_tools_dir=${aros_tools_dir}
11922 aros_target_cpu=${aros_target_cpu}
11923 aros_target_arch=${aros_target_arch}
11924 aros_target_suffix=${aros_target_suffix}
11925 aros_target_nm_ln=${aros_target_nm_ln}
11926 aros_target_as_ln=${aros_target_as_ln}
11927 aros_target_ar_ln=${aros_target_ar_ln}
11928 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11929 aros_target_objdump_ln=${aros_target_objdump_ln}
11930 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11931 aros_target_strip_ln=${aros_target_strip_ln}
11934 aros_scripts_dir=${aros_scripts_dir}
11936 aros_tools_dir=${aros_tools_dir}
11939 _ACEOF
11941 cat >>$CONFIG_STATUS <<\_ACEOF
11943 # Handling of arguments.
11944 for ac_config_target in $ac_config_targets
11946 case $ac_config_target in
11947 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11948 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11949 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11950 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11951 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
11952 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11953 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
11954 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11955 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11956 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11957 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11958 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11959 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11960 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11961 "${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" ;;
11962 "${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" ;;
11963 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11964 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11965 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
11966 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11970 { (exit 1); exit 1; }; };;
11971 esac
11972 done
11975 # If the user did not use the arguments to specify the items to instantiate,
11976 # then the envvar interface is used. Set only those that are not.
11977 # We use the long form for the default assignment because of an extremely
11978 # bizarre bug on SunOS 4.1.3.
11979 if $ac_need_defaults; then
11980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11985 # Have a temporary directory for convenience. Make it in the build tree
11986 # simply because there is no reason against having it here, and in addition,
11987 # creating and moving files from /tmp can sometimes cause problems.
11988 # Hook for its removal unless debugging.
11989 # Note that there is a small window in which the directory will not be cleaned:
11990 # after its creation but before its name has been assigned to `$tmp'.
11991 $debug ||
11993 tmp=
11994 trap 'exit_status=$?
11995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11997 trap '{ (exit 1); exit 1; }' 1 2 13 15
11999 # Create a (secure) tmp directory for tmp files.
12002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12003 test -n "$tmp" && test -d "$tmp"
12004 } ||
12006 tmp=./conf$$-$RANDOM
12007 (umask 077 && mkdir "$tmp")
12008 } ||
12010 echo "$me: cannot create a temporary directory in ." >&2
12011 { (exit 1); exit 1; }
12015 # Set up the sed scripts for CONFIG_FILES section.
12018 # No need to generate the scripts if there are no CONFIG_FILES.
12019 # This happens for instance when ./config.status config.h
12020 if test -n "$CONFIG_FILES"; then
12022 _ACEOF
12026 ac_delim='%!_!# '
12027 for ac_last_try in false false false false false :; do
12028 cat >conf$$subs.sed <<_ACEOF
12029 SHELL!$SHELL$ac_delim
12030 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12031 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12032 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12033 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12034 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12035 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12036 exec_prefix!$exec_prefix$ac_delim
12037 prefix!$prefix$ac_delim
12038 program_transform_name!$program_transform_name$ac_delim
12039 bindir!$bindir$ac_delim
12040 sbindir!$sbindir$ac_delim
12041 libexecdir!$libexecdir$ac_delim
12042 datarootdir!$datarootdir$ac_delim
12043 datadir!$datadir$ac_delim
12044 sysconfdir!$sysconfdir$ac_delim
12045 sharedstatedir!$sharedstatedir$ac_delim
12046 localstatedir!$localstatedir$ac_delim
12047 includedir!$includedir$ac_delim
12048 oldincludedir!$oldincludedir$ac_delim
12049 docdir!$docdir$ac_delim
12050 infodir!$infodir$ac_delim
12051 htmldir!$htmldir$ac_delim
12052 dvidir!$dvidir$ac_delim
12053 pdfdir!$pdfdir$ac_delim
12054 psdir!$psdir$ac_delim
12055 libdir!$libdir$ac_delim
12056 localedir!$localedir$ac_delim
12057 mandir!$mandir$ac_delim
12058 DEFS!$DEFS$ac_delim
12059 ECHO_C!$ECHO_C$ac_delim
12060 ECHO_N!$ECHO_N$ac_delim
12061 ECHO_T!$ECHO_T$ac_delim
12062 LIBS!$LIBS$ac_delim
12063 build_alias!$build_alias$ac_delim
12064 host_alias!$host_alias$ac_delim
12065 target_alias!$target_alias$ac_delim
12066 build!$build$ac_delim
12067 build_cpu!$build_cpu$ac_delim
12068 build_vendor!$build_vendor$ac_delim
12069 build_os!$build_os$ac_delim
12070 host!$host$ac_delim
12071 host_cpu!$host_cpu$ac_delim
12072 host_vendor!$host_vendor$ac_delim
12073 host_os!$host_os$ac_delim
12074 CC!$CC$ac_delim
12075 CFLAGS!$CFLAGS$ac_delim
12076 LDFLAGS!$LDFLAGS$ac_delim
12077 CPPFLAGS!$CPPFLAGS$ac_delim
12078 ac_ct_CC!$ac_ct_CC$ac_delim
12079 EXEEXT!$EXEEXT$ac_delim
12080 OBJEXT!$OBJEXT$ac_delim
12081 CPP!$CPP$ac_delim
12082 AWK!$AWK$ac_delim
12083 MMAKE!$MMAKE$ac_delim
12084 aros_host_ld!$aros_host_ld$ac_delim
12085 aros_host_aclocal!$aros_host_aclocal$ac_delim
12086 aros_host_autoconf!$aros_host_autoconf$ac_delim
12087 aros_host_autoheader!$aros_host_autoheader$ac_delim
12088 aros_host_automake!$aros_host_automake$ac_delim
12089 aros_host_ar!$aros_host_ar$ac_delim
12090 aros_host_ranlib!$aros_host_ranlib$ac_delim
12091 aros_host_strip!$aros_host_strip$ac_delim
12092 RM!$RM$ac_delim
12093 CP!$CP$ac_delim
12094 MV!$MV$ac_delim
12095 ECHO!$ECHO$ac_delim
12096 MKDIR!$MKDIR$ac_delim
12097 TOUCH!$TOUCH$ac_delim
12098 SORT!$SORT$ac_delim
12099 UNIQ!$UNIQ$ac_delim
12100 NOP!$NOP$ac_delim
12101 CAT!$CAT$ac_delim
12102 BISON!$BISON$ac_delim
12103 FLEX!$FLEX$ac_delim
12104 PNGTOPNM!$PNGTOPNM$ac_delim
12105 PPMTOILBM!$PPMTOILBM$ac_delim
12106 SED!$SED$ac_delim
12107 CHMOD!$CHMOD$ac_delim
12108 PYTHON!$PYTHON$ac_delim
12109 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12110 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12111 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12112 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12113 pythondir!$pythondir$ac_delim
12114 pkgpythondir!$pkgpythondir$ac_delim
12115 pyexecdir!$pyexecdir$ac_delim
12116 pkgpyexecdir!$pkgpyexecdir$ac_delim
12117 FOR!$FOR$ac_delim
12118 IF!$IF$ac_delim
12119 TEST!$TEST$ac_delim
12120 CMP!$CMP$ac_delim
12121 GREP!$GREP$ac_delim
12122 EGREP!$EGREP$ac_delim
12123 LIBOBJS!$LIBOBJS$ac_delim
12124 DISTCC!$DISTCC$ac_delim
12125 CCACHE!$CCACHE$ac_delim
12126 _ACEOF
12128 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12129 break
12130 elif $ac_last_try; then
12131 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12132 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12133 { (exit 1); exit 1; }; }
12134 else
12135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12137 done
12139 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12140 if test -n "$ac_eof"; then
12141 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12142 ac_eof=`expr $ac_eof + 1`
12145 cat >>$CONFIG_STATUS <<_ACEOF
12146 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12148 _ACEOF
12149 sed '
12150 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12151 s/^/s,@/; s/!/@,|#_!!_#|/
12154 s/'"$ac_delim"'$/,g/; t
12155 s/$/\\/; p
12156 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12157 ' >>$CONFIG_STATUS <conf$$subs.sed
12158 rm -f conf$$subs.sed
12159 cat >>$CONFIG_STATUS <<_ACEOF
12160 CEOF$ac_eof
12161 _ACEOF
12164 ac_delim='%!_!# '
12165 for ac_last_try in false false false false false :; do
12166 cat >conf$$subs.sed <<_ACEOF
12167 aros_kernel_cc!$aros_kernel_cc$ac_delim
12168 aros_target_as_ln!$aros_target_as_ln$ac_delim
12169 aros_kernel_ld!$aros_kernel_ld$ac_delim
12170 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12171 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12172 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12173 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12174 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12175 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12176 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12177 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12178 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12179 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12180 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12181 XMKMF!$XMKMF$ac_delim
12182 SDL_CONFIG!$SDL_CONFIG$ac_delim
12183 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12184 SDL_LIBS!$SDL_LIBS$ac_delim
12185 aros_arch!$aros_arch$ac_delim
12186 aros_cpu!$aros_cpu$ac_delim
12187 aros_flavour!$aros_flavour$ac_delim
12188 aros_flavour_uc!$aros_flavour_uc$ac_delim
12189 TOPDIR!$TOPDIR$ac_delim
12190 aros_cc_pre!$aros_cc_pre$ac_delim
12191 aros_host_arch!$aros_host_arch$ac_delim
12192 aros_host_cpu!$aros_host_cpu$ac_delim
12193 aros_host_cc!$aros_host_cc$ac_delim
12194 aros_host_make!$aros_host_make$ac_delim
12195 aros_host_cflags!$aros_host_cflags$ac_delim
12196 aros_host_ldflags!$aros_host_ldflags$ac_delim
12197 aros_host_debug!$aros_host_debug$ac_delim
12198 aros_host_mkdep!$aros_host_mkdep$ac_delim
12199 aros_host_mkargs!$aros_host_mkargs$ac_delim
12200 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12201 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12202 aros_tools_dir!$aros_tools_dir$ac_delim
12203 aros_target_arch!$aros_target_arch$ac_delim
12204 aros_target_cpu!$aros_target_cpu$ac_delim
12205 aros_target_variant!$aros_target_variant$ac_delim
12206 aros_target_suffix!$aros_target_suffix$ac_delim
12207 aros_target_incl!$aros_target_incl$ac_delim
12208 aros_target_ar!$aros_target_ar$ac_delim
12209 aros_target_ranlib!$aros_target_ranlib$ac_delim
12210 aros_kernel_nm!$aros_kernel_nm$ac_delim
12211 aros_target_cc!$aros_target_cc$ac_delim
12212 aros_target_as!$aros_target_as$ac_delim
12213 aros_target_ld!$aros_target_ld$ac_delim
12214 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12215 aros_target_cc_path!$aros_target_cc_path$ac_delim
12216 aros_target_objdump!$aros_target_objdump$ac_delim
12217 aros_target_objcopy!$aros_target_objcopy$ac_delim
12218 aros_target_strip!$aros_target_strip$ac_delim
12219 aros_target_nm!$aros_target_nm$ac_delim
12220 aros_shared_default!$aros_shared_default$ac_delim
12221 aros_shared_ld!$aros_shared_ld$ac_delim
12222 aros_object_format!$aros_object_format$ac_delim
12223 aros_compiler_libs!$aros_compiler_libs$ac_delim
12224 aros_config_cflags!$aros_config_cflags$ac_delim
12225 aros_config_aflags!$aros_config_aflags$ac_delim
12226 aros_config_ldflags!$aros_config_ldflags$ac_delim
12227 aros_shared_cflags!$aros_shared_cflags$ac_delim
12228 aros_shared_aflags!$aros_shared_aflags$ac_delim
12229 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12230 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12231 aros_debug_cflags!$aros_debug_cflags$ac_delim
12232 aros_debug_aflags!$aros_debug_aflags$ac_delim
12233 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12234 aros_target_genmap!$aros_target_genmap$ac_delim
12235 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12236 x11_hidd_target!$x11_hidd_target$ac_delim
12237 sdl_hidd_target!$sdl_hidd_target$ac_delim
12238 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12239 aros_default_wbheight!$aros_default_wbheight$ac_delim
12240 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12241 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12242 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12243 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
12244 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
12245 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
12246 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
12247 aros_bochs_hack!$aros_bochs_hack$ac_delim
12248 aros_serial_debug!$aros_serial_debug$ac_delim
12249 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12250 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12251 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12252 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12253 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12254 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12255 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12256 aros_debug!$aros_debug$ac_delim
12257 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12258 aros_stack_debug!$aros_stack_debug$ac_delim
12259 aros_modules_debug!$aros_modules_debug$ac_delim
12260 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12261 gcc_target_cpu!$gcc_target_cpu$ac_delim
12262 LTLIBOBJS!$LTLIBOBJS$ac_delim
12263 _ACEOF
12265 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
12266 break
12267 elif $ac_last_try; then
12268 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12269 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12270 { (exit 1); exit 1; }; }
12271 else
12272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12274 done
12276 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12277 if test -n "$ac_eof"; then
12278 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12279 ac_eof=`expr $ac_eof + 1`
12282 cat >>$CONFIG_STATUS <<_ACEOF
12283 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12285 _ACEOF
12286 sed '
12287 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12288 s/^/s,@/; s/!/@,|#_!!_#|/
12291 s/'"$ac_delim"'$/,g/; t
12292 s/$/\\/; p
12293 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12294 ' >>$CONFIG_STATUS <conf$$subs.sed
12295 rm -f conf$$subs.sed
12296 cat >>$CONFIG_STATUS <<_ACEOF
12297 CEOF$ac_eof
12298 _ACEOF
12301 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12302 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12303 # trailing colons and then remove the whole line if VPATH becomes empty
12304 # (actually we leave an empty line to preserve line numbers).
12305 if test "x$srcdir" = x.; then
12306 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12307 s/:*\$(srcdir):*/:/
12308 s/:*\${srcdir}:*/:/
12309 s/:*@srcdir@:*/:/
12310 s/^\([^=]*=[ ]*\):*/\1/
12311 s/:*$//
12312 s/^[^=]*=[ ]*$//
12316 cat >>$CONFIG_STATUS <<\_ACEOF
12317 fi # test -n "$CONFIG_FILES"
12320 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12322 case $ac_tag in
12323 :[FHLC]) ac_mode=$ac_tag; continue;;
12324 esac
12325 case $ac_mode$ac_tag in
12326 :[FHL]*:*);;
12327 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12328 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12329 { (exit 1); exit 1; }; };;
12330 :[FH]-) ac_tag=-:-;;
12331 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12332 esac
12333 ac_save_IFS=$IFS
12334 IFS=:
12335 set x $ac_tag
12336 IFS=$ac_save_IFS
12337 shift
12338 ac_file=$1
12339 shift
12341 case $ac_mode in
12342 :L) ac_source=$1;;
12343 :[FH])
12344 ac_file_inputs=
12345 for ac_f
12347 case $ac_f in
12348 -) ac_f="$tmp/stdin";;
12349 *) # Look for the file first in the build tree, then in the source tree
12350 # (if the path is not absolute). The absolute path cannot be DOS-style,
12351 # because $ac_f cannot contain `:'.
12352 test -f "$ac_f" ||
12353 case $ac_f in
12354 [\\/$]*) false;;
12355 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12356 esac ||
12357 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12358 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12359 { (exit 1); exit 1; }; };;
12360 esac
12361 ac_file_inputs="$ac_file_inputs $ac_f"
12362 done
12364 # Let's still pretend it is `configure' which instantiates (i.e., don't
12365 # use $as_me), people would be surprised to read:
12366 # /* config.h. Generated by config.status. */
12367 configure_input="Generated from "`IFS=:
12368 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12369 if test x"$ac_file" != x-; then
12370 configure_input="$ac_file. $configure_input"
12371 { echo "$as_me:$LINENO: creating $ac_file" >&5
12372 echo "$as_me: creating $ac_file" >&6;}
12375 case $ac_tag in
12376 *:-:* | *:-) cat >"$tmp/stdin";;
12377 esac
12379 esac
12381 ac_dir=`$as_dirname -- "$ac_file" ||
12382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12383 X"$ac_file" : 'X\(//\)[^/]' \| \
12384 X"$ac_file" : 'X\(//\)$' \| \
12385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12386 echo X"$ac_file" |
12387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12388 s//\1/
12391 /^X\(\/\/\)[^/].*/{
12392 s//\1/
12395 /^X\(\/\/\)$/{
12396 s//\1/
12399 /^X\(\/\).*/{
12400 s//\1/
12403 s/.*/./; q'`
12404 { as_dir="$ac_dir"
12405 case $as_dir in #(
12406 -*) as_dir=./$as_dir;;
12407 esac
12408 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12409 as_dirs=
12410 while :; do
12411 case $as_dir in #(
12412 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12413 *) as_qdir=$as_dir;;
12414 esac
12415 as_dirs="'$as_qdir' $as_dirs"
12416 as_dir=`$as_dirname -- "$as_dir" ||
12417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12418 X"$as_dir" : 'X\(//\)[^/]' \| \
12419 X"$as_dir" : 'X\(//\)$' \| \
12420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12421 echo X"$as_dir" |
12422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12423 s//\1/
12426 /^X\(\/\/\)[^/].*/{
12427 s//\1/
12430 /^X\(\/\/\)$/{
12431 s//\1/
12434 /^X\(\/\).*/{
12435 s//\1/
12438 s/.*/./; q'`
12439 test -d "$as_dir" && break
12440 done
12441 test -z "$as_dirs" || eval "mkdir $as_dirs"
12442 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12443 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12444 { (exit 1); exit 1; }; }; }
12445 ac_builddir=.
12447 case "$ac_dir" in
12448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12450 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12451 # A ".." for each directory in $ac_dir_suffix.
12452 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12453 case $ac_top_builddir_sub in
12454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12456 esac ;;
12457 esac
12458 ac_abs_top_builddir=$ac_pwd
12459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12460 # for backward compatibility:
12461 ac_top_builddir=$ac_top_build_prefix
12463 case $srcdir in
12464 .) # We are building in place.
12465 ac_srcdir=.
12466 ac_top_srcdir=$ac_top_builddir_sub
12467 ac_abs_top_srcdir=$ac_pwd ;;
12468 [\\/]* | ?:[\\/]* ) # Absolute name.
12469 ac_srcdir=$srcdir$ac_dir_suffix;
12470 ac_top_srcdir=$srcdir
12471 ac_abs_top_srcdir=$srcdir ;;
12472 *) # Relative name.
12473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12474 ac_top_srcdir=$ac_top_build_prefix$srcdir
12475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12476 esac
12477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12480 case $ac_mode in
12483 # CONFIG_FILE
12486 _ACEOF
12488 cat >>$CONFIG_STATUS <<\_ACEOF
12489 # If the template does not know about datarootdir, expand it.
12490 # FIXME: This hack should be removed a few years after 2.60.
12491 ac_datarootdir_hack=; ac_datarootdir_seen=
12493 case `sed -n '/datarootdir/ {
12497 /@datadir@/p
12498 /@docdir@/p
12499 /@infodir@/p
12500 /@localedir@/p
12501 /@mandir@/p
12502 ' $ac_file_inputs` in
12503 *datarootdir*) ac_datarootdir_seen=yes;;
12504 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12505 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12506 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12507 _ACEOF
12508 cat >>$CONFIG_STATUS <<_ACEOF
12509 ac_datarootdir_hack='
12510 s&@datadir@&$datadir&g
12511 s&@docdir@&$docdir&g
12512 s&@infodir@&$infodir&g
12513 s&@localedir@&$localedir&g
12514 s&@mandir@&$mandir&g
12515 s&\\\${datarootdir}&$datarootdir&g' ;;
12516 esac
12517 _ACEOF
12519 # Neutralize VPATH when `$srcdir' = `.'.
12520 # Shell code in configure.ac might set extrasub.
12521 # FIXME: do we really want to maintain this feature?
12522 cat >>$CONFIG_STATUS <<_ACEOF
12523 sed "$ac_vpsub
12524 $extrasub
12525 _ACEOF
12526 cat >>$CONFIG_STATUS <<\_ACEOF
12528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12529 s&@configure_input@&$configure_input&;t t
12530 s&@top_builddir@&$ac_top_builddir_sub&;t t
12531 s&@srcdir@&$ac_srcdir&;t t
12532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12533 s&@top_srcdir@&$ac_top_srcdir&;t t
12534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12535 s&@builddir@&$ac_builddir&;t t
12536 s&@abs_builddir@&$ac_abs_builddir&;t t
12537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12538 $ac_datarootdir_hack
12539 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
12541 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12542 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12543 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12544 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12545 which seems to be undefined. Please make sure it is defined." >&5
12546 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12547 which seems to be undefined. Please make sure it is defined." >&2;}
12549 rm -f "$tmp/stdin"
12550 case $ac_file in
12551 -) cat "$tmp/out"; rm -f "$tmp/out";;
12552 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12553 esac
12557 # CONFIG_HEADER
12559 _ACEOF
12561 # Transform confdefs.h into a sed script `conftest.defines', that
12562 # substitutes the proper values into config.h.in to produce config.h.
12563 rm -f conftest.defines conftest.tail
12564 # First, append a space to every undef/define line, to ease matching.
12565 echo 's/$/ /' >conftest.defines
12566 # Then, protect against being on the right side of a sed subst, or in
12567 # an unquoted here document, in config.status. If some macros were
12568 # called several times there might be several #defines for the same
12569 # symbol, which is useless. But do not sort them, since the last
12570 # AC_DEFINE must be honored.
12571 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12572 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12573 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12574 # PARAMS is the parameter list in the macro definition--in most cases, it's
12575 # just an empty string.
12576 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12577 ac_dB='\\)[ (].*,\\1define\\2'
12578 ac_dC=' '
12579 ac_dD=' ,'
12581 uniq confdefs.h |
12582 sed -n '
12583 t rset
12584 :rset
12585 s/^[ ]*#[ ]*define[ ][ ]*//
12586 t ok
12589 s/[\\&,]/\\&/g
12590 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12591 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12592 ' >>conftest.defines
12594 # Remove the space that was appended to ease matching.
12595 # Then replace #undef with comments. This is necessary, for
12596 # example, in the case of _POSIX_SOURCE, which is predefined and required
12597 # on some systems where configure will not decide to define it.
12598 # (The regexp can be short, since the line contains either #define or #undef.)
12599 echo 's/ $//
12600 s,^[ #]*u.*,/* & */,' >>conftest.defines
12602 # Break up conftest.defines:
12603 ac_max_sed_lines=50
12605 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12606 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12607 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12608 # et cetera.
12609 ac_in='$ac_file_inputs'
12610 ac_out='"$tmp/out1"'
12611 ac_nxt='"$tmp/out2"'
12613 while :
12615 # Write a here document:
12616 cat >>$CONFIG_STATUS <<_ACEOF
12617 # First, check the format of the line:
12618 cat >"\$tmp/defines.sed" <<\\CEOF
12619 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12620 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12622 :def
12623 _ACEOF
12624 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12625 echo 'CEOF
12626 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12627 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12628 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12629 grep . conftest.tail >/dev/null || break
12630 rm -f conftest.defines
12631 mv conftest.tail conftest.defines
12632 done
12633 rm -f conftest.defines conftest.tail
12635 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12636 cat >>$CONFIG_STATUS <<\_ACEOF
12637 if test x"$ac_file" != x-; then
12638 echo "/* $configure_input */" >"$tmp/config.h"
12639 cat "$ac_result" >>"$tmp/config.h"
12640 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12641 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12642 echo "$as_me: $ac_file is unchanged" >&6;}
12643 else
12644 rm -f $ac_file
12645 mv "$tmp/config.h" $ac_file
12647 else
12648 echo "/* $configure_input */"
12649 cat "$ac_result"
12651 rm -f "$tmp/out12"
12654 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12655 echo "$as_me: executing $ac_file commands" >&6;}
12657 esac
12660 case $ac_file$ac_mode in
12661 "compiler_executable":C)
12662 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12663 mkdir -p $prefix
12664 prefix="${prefix}/${aros_target_cpu}-aros"
12665 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12667 echo ${prefix}
12668 echo ${prefix2}
12669 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12671 ln -sf ${prefix2}-gcc ${prefix}-gcc
12672 ln -sf ${prefix2}-ld ${prefix}-ld
12674 ln -sf $aros_target_as_ln ${prefix}-as
12675 ln -sf $aros_target_nm_ln ${prefix}-nm
12676 ln -sf $aros_target_ar_ln ${prefix}-ar
12677 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
12678 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
12679 ln -sf $aros_target_objdump_ln ${prefix}-objdump
12680 ln -sf $aros_target_strip_ln ${prefix}-strip
12682 ln -sf $aros_target_as_ln ${prefix2}-as
12683 ln -sf $aros_target_nm_ln ${prefix2}-nm
12684 ln -sf $aros_target_ar_ln ${prefix2}-ar
12685 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
12686 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
12687 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
12688 ln -sf $aros_target_strip_ln ${prefix2}-strip
12690 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12691 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12692 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
12695 esac
12696 done # for ac_tag
12699 { (exit 0); exit 0; }
12700 _ACEOF
12701 chmod +x $CONFIG_STATUS
12702 ac_clean_files=$ac_clean_files_save
12705 # configure is writing to config.log, and then calls config.status.
12706 # config.status does its own redirection, appending to config.log.
12707 # Unfortunately, on DOS this fails, as config.log is still kept open
12708 # by configure, so config.status won't be able to write to it; its
12709 # output is simply discarded. So we exec the FD to /dev/null,
12710 # effectively closing config.log, so it can be properly (re)opened and
12711 # appended to by config.status. When coming back to configure, we
12712 # need to make the FD available again.
12713 if test "$no_create" != yes; then
12714 ac_cs_success=:
12715 ac_config_status_args=
12716 test "$silent" = yes &&
12717 ac_config_status_args="$ac_config_status_args --quiet"
12718 exec 5>/dev/null
12719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12720 exec 5>>config.log
12721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12722 # would make configure fail if this is the last instruction.
12723 $ac_cs_success || { (exit 1); exit 1; }
12728 #XXX compatability...
12729 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12731 if test -n "$aros_shared_cflags" ; then
12732 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12733 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg