mlib update: c99 fp environment headers and implementations
[cake.git] / configure
blobfe3689c0965397127799e0f104b7d81a3c29d4f0
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 aros_gui_libdir
783 aros_gui_ldflags
784 aros_gui_libflags
785 aros_gui_incdir
786 aros_gui_ccflags
787 x11_hidd_target
788 sdl_hidd_target
789 aros_default_wbwidth
790 aros_default_wbheight
791 aros_default_wbdepth
792 DO_XSHM_SUPPORT
793 DO_VIDMODE_SUPPORT
794 aros_bochs_hack
795 aros_serial_debug
796 aros_palm_debug_hack
797 aros_nesting_supervisor
798 ENABLE_DBUS
799 DBUS_CFLAGS
800 DBUS_LIBFLAGS
801 KERNEL_DBUS_KOBJ
802 KERNEL_DBUS_INCLUDES
803 aros_debug
804 aros_mungwall_debug
805 aros_stack_debug
806 aros_modules_debug
807 ignore_undefined_symbols
808 gcc_target_cpu
809 LTLIBOBJS'
810 ac_subst_files=''
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
820 XMKMF'
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1155 eval with_$ac_package=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1219 done
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures this package to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1378 cat <<\_ACEOF
1380 X features:
1381 --x-includes=DIR X include files are in DIR
1382 --x-libraries=DIR X library files are in DIR
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1390 if test -n "$ac_init_help"; then
1392 cat <<\_ACEOF
1394 Optional Features:
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-build-type=TYPE
1398 Select the build type. Available types are:
1399 personal, nightly, snapshot, milestone, release. Do
1400 NOT use this option unless you know what you are
1401 doing! (default=personal)
1402 --enable-debug=list Enable different types of debug. Commas or
1403 whitespaces can be used to separate the items in the
1404 list. Available types of debug are: all, none,
1405 messages, stack, mungwall, modules, symbols. If no
1406 list is provided then "all" is assumed.
1407 (default=none)
1408 --enable-distcc Use distcc as a front end to the compiler
1409 (default=no).
1410 --enable-ccache Use ccache as a front end to the compiler
1411 (default=no).
1412 --enable-target-variant=NAME
1413 Enable a specific target variant(default=none)
1414 --enable-includes=dir Alternative system include directory
1415 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1416 (default=no)
1417 --enable-palm-debug-hack
1418 Enable palm debug output hack in palm native
1419 (default=no)
1420 --enable-nesting-supervisor
1421 Enable nesting supervisor support in unix
1422 (default=no)
1423 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1424 --enable-x11-shm use X11 shared memory (default=auto)
1425 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1426 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1427 --disable-sdltest Do not try to compile and run a test SDL program
1428 --enable-dbus Enable DBUS support via dbus.library (default=no)
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-optimization=FLAGS
1434 Use optimization flags FLAGS (default=-O2).
1435 --with-resolution=XRESxYRESxDEPTH
1436 Default resolution of the initial WorkbenchScreen
1437 --with-serial-debug Enable serial debug output in native (default=no)
1438 --with-x use the X Window System
1439 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1440 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1451 XMKMF Path to xmkmf, Makefile generator for X Window System
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1464 ac_builddir=.
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515 cat <<\_ACEOF
1516 configure
1517 generated by GNU Autoconf 2.61
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by $as_me, which was
1531 generated by GNU Autoconf 2.61. Invocation command line was
1533 $ $0 $@
1535 _ACEOF
1536 exec 5>>config.log
1538 cat <<_ASUNAME
1539 ## --------- ##
1540 ## Platform. ##
1541 ## --------- ##
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1560 _ASUNAME
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1568 done
1569 IFS=$as_save_IFS
1571 } >&5
1573 cat >&5 <<_ACEOF
1576 ## ----------- ##
1577 ## Core tests. ##
1578 ## ----------- ##
1580 _ACEOF
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1588 ac_configure_args=
1589 ac_configure_args0=
1590 ac_configure_args1=
1591 ac_must_keep_next=false
1592 for ac_pass in 1 2
1594 for ac_arg
1596 case $ac_arg in
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1600 continue ;;
1601 *\'*)
1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603 esac
1604 case $ac_pass in
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1610 else
1611 case $ac_arg in
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618 esac
1620 -* ) ac_must_keep_next=true ;;
1621 esac
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1625 esac
1626 done
1627 done
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1639 echo
1641 cat <<\_ASBOX
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1645 _ASBOX
1646 echo
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1651 case $ac_val in #(
1652 *${as_nl}*)
1653 case $ac_var in #(
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656 esac
1657 case $ac_var in #(
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1660 esac ;;
1661 esac
1662 done
1663 (set) 2>&1 |
1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1666 sed -n \
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669 ;; #(
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1673 esac |
1674 sort
1676 echo
1678 cat <<\_ASBOX
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1682 _ASBOX
1683 echo
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1687 case $ac_val in
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 esac
1690 echo "$ac_var='\''$ac_val'\''"
1691 done | sort
1692 echo
1694 if test -n "$ac_subst_files"; then
1695 cat <<\_ASBOX
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1699 _ASBOX
1700 echo
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1704 case $ac_val in
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 esac
1707 echo "$ac_var='\''$ac_val'\''"
1708 done | sort
1709 echo
1712 if test -s confdefs.h; then
1713 cat <<\_ASBOX
1714 ## ----------- ##
1715 ## confdefs.h. ##
1716 ## ----------- ##
1717 _ASBOX
1718 echo
1719 cat confdefs.h
1720 echo
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1725 } >&5
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1728 exit $exit_status
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732 done
1733 ac_signal=0
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1742 _ACEOF
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747 _ACEOF
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1752 _ACEOF
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1757 _ACEOF
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762 _ACEOF
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771 else
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1775 shift
1776 for ac_site_file
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1782 . "$ac_site_file"
1784 done
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1792 case $cache_file in
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1795 esac
1797 else
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1800 >$cache_file
1803 # Check that the precious variables saved in the cache have kept the same
1804 # value.
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1812 set,)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,set)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,);;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1830 fi;;
1831 esac
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1834 case $ac_new_val in
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1837 esac
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841 esac
1843 done
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 ac_aux_dir=
1877 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1878 if test -f "$ac_dir/install-sh"; then
1879 ac_aux_dir=$ac_dir
1880 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 break
1882 elif test -f "$ac_dir/install.sh"; then
1883 ac_aux_dir=$ac_dir
1884 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 break
1886 elif test -f "$ac_dir/shtool"; then
1887 ac_aux_dir=$ac_dir
1888 ac_install_sh="$ac_aux_dir/shtool install -c"
1889 break
1891 done
1892 if test -z "$ac_aux_dir"; then
1893 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1894 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1895 { (exit 1); exit 1; }; }
1898 # These three variables are undocumented and unsupported,
1899 # and are intended to be withdrawn in a future Autoconf release.
1900 # They can cause serious problems if a builder's source tree is in a directory
1901 # whose full name contains unusual characters.
1902 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1903 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1904 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1908 # Check what host we are running on.
1909 # If a target is not suggested, we use this one.
1910 # Note that what we call a target, Autoconf calls a host.
1911 # Make sure we can run config.sub.
1912 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1913 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1914 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1915 { (exit 1); exit 1; }; }
1917 { echo "$as_me:$LINENO: checking build system type" >&5
1918 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1919 if test "${ac_cv_build+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 ac_build_alias=$build_alias
1923 test "x$ac_build_alias" = x &&
1924 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1925 test "x$ac_build_alias" = x &&
1926 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1927 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1928 { (exit 1); exit 1; }; }
1929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1930 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1931 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1932 { (exit 1); exit 1; }; }
1935 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1936 echo "${ECHO_T}$ac_cv_build" >&6; }
1937 case $ac_cv_build in
1938 *-*-*) ;;
1939 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1940 echo "$as_me: error: invalid value of canonical build" >&2;}
1941 { (exit 1); exit 1; }; };;
1942 esac
1943 build=$ac_cv_build
1944 ac_save_IFS=$IFS; IFS='-'
1945 set x $ac_cv_build
1946 shift
1947 build_cpu=$1
1948 build_vendor=$2
1949 shift; shift
1950 # Remember, the first character of IFS is used to create $*,
1951 # except with old shells:
1952 build_os=$*
1953 IFS=$ac_save_IFS
1954 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1957 { echo "$as_me:$LINENO: checking host system type" >&5
1958 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1959 if test "${ac_cv_host+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 if test "x$host_alias" = x; then
1963 ac_cv_host=$ac_cv_build
1964 else
1965 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1966 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1967 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1968 { (exit 1); exit 1; }; }
1972 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1973 echo "${ECHO_T}$ac_cv_host" >&6; }
1974 case $ac_cv_host in
1975 *-*-*) ;;
1976 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1977 echo "$as_me: error: invalid value of canonical host" >&2;}
1978 { (exit 1); exit 1; }; };;
1979 esac
1980 host=$ac_cv_host
1981 ac_save_IFS=$IFS; IFS='-'
1982 set x $ac_cv_host
1983 shift
1984 host_cpu=$1
1985 host_vendor=$2
1986 shift; shift
1987 # Remember, the first character of IFS is used to create $*,
1988 # except with old shells:
1989 host_os=$*
1990 IFS=$ac_save_IFS
1991 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1995 # The AROS target is slightly different to the normal GNU style
1996 # format. We don't have the middle part, and we reverse the order
1997 # of the $(CPU) and $(OS) bits.
1999 # Don't strip the version of the target yet, it might be
2000 # useful on some systems.
2002 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2003 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2005 if test "$target" = "NONE" ; then
2006 target=$host_os-$host_cpu
2007 cross_compile=no
2008 else
2009 if test "$target" = "" ; then
2010 target=$host_os-$host_cpu
2011 cross_compile=no
2012 else
2013 cross_compile=yes
2016 { echo "$as_me:$LINENO: result: $target" >&5
2017 echo "${ECHO_T}$target" >&6; }
2019 #don't know where else to put this...
2020 TOPDIR=$PWD
2022 # Parse the target field into something useful.
2024 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2025 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2028 aros_default_wbwidth=800
2029 aros_default_wbheight=600
2030 aros_default_wbdepth=4
2033 # The first step is to find the host binaries.
2034 # Check for a compiler.
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2062 done
2063 done
2064 IFS=$as_save_IFS
2068 CC=$ac_cv_prog_CC
2069 if test -n "$CC"; then
2070 { echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6; }
2072 else
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2079 if test -z "$ac_cv_prog_CC"; then
2080 ac_ct_CC=$CC
2081 # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2098 ac_cv_prog_ac_ct_CC="gcc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2102 done
2103 done
2104 IFS=$as_save_IFS
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6; }
2112 else
2113 { echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6; }
2117 if test "x$ac_ct_CC" = x; then
2118 CC=""
2119 else
2120 case $cross_compiling:$ac_tool_warned in
2121 yes:)
2122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2123 whose name does not start with the host triplet. If you think this
2124 configuration is useful to you, please write to autoconf@gnu.org." >&5
2125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2126 whose name does not start with the host triplet. If you think this
2127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2128 ac_tool_warned=yes ;;
2129 esac
2130 CC=$ac_ct_CC
2132 else
2133 CC="$ac_cv_prog_CC"
2136 if test -z "$CC"; then
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}cc; ac_word=$2
2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_prog_CC="${ac_tool_prefix}cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2159 done
2160 done
2161 IFS=$as_save_IFS
2165 CC=$ac_cv_prog_CC
2166 if test -n "$CC"; then
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6; }
2169 else
2170 { echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6; }
2177 if test -z "$CC"; then
2178 # Extract the first word of "cc", so it can be a program name with args.
2179 set dummy cc; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC="$CC" # Let the user override the test.
2187 else
2188 ac_prog_rejected=no
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2197 ac_prog_rejected=yes
2198 continue
2200 ac_cv_prog_CC="cc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2204 done
2205 done
2206 IFS=$as_save_IFS
2208 if test $ac_prog_rejected = yes; then
2209 # We found a bogon in the path, so make sure we never use it.
2210 set dummy $ac_cv_prog_CC
2211 shift
2212 if test $# != 0; then
2213 # We chose a different compiler from the bogus one.
2214 # However, it has the same basename, so the bogon will be chosen
2215 # first if we set CC to just the basename; use the full file name.
2216 shift
2217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2222 CC=$ac_cv_prog_CC
2223 if test -n "$CC"; then
2224 { echo "$as_me:$LINENO: result: $CC" >&5
2225 echo "${ECHO_T}$CC" >&6; }
2226 else
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2233 if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 for ac_prog in cl.exe
2237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2260 IFS=$as_save_IFS
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2268 else
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2274 test -n "$CC" && break
2275 done
2277 if test -z "$CC"; then
2278 ac_ct_CC=$CC
2279 for ac_prog in cl.exe
2281 # Extract the first word of "$ac_prog", so it can be a program name with args.
2282 set dummy $ac_prog; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 if test -n "$ac_ct_CC"; then
2289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_ac_ct_CC="$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2302 done
2303 done
2304 IFS=$as_save_IFS
2308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2309 if test -n "$ac_ct_CC"; then
2310 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2311 echo "${ECHO_T}$ac_ct_CC" >&6; }
2312 else
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2318 test -n "$ac_ct_CC" && break
2319 done
2321 if test "x$ac_ct_CC" = x; then
2322 CC=""
2323 else
2324 case $cross_compiling:$ac_tool_warned in
2325 yes:)
2326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet. If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&5
2329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2330 whose name does not start with the host triplet. If you think this
2331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2332 ac_tool_warned=yes ;;
2333 esac
2334 CC=$ac_ct_CC
2341 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: no acceptable C compiler found in \$PATH
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2347 # Provide some information about the compiler.
2348 echo "$as_me:$LINENO: checking for C compiler version" >&5
2349 ac_compiler=`set X $ac_compile; echo $2`
2350 { (ac_try="$ac_compiler --version >&5"
2351 case "(($ac_try" in
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2354 esac
2355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2356 (eval "$ac_compiler --version >&5") 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360 { (ac_try="$ac_compiler -v >&5"
2361 case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364 esac
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_compiler -v >&5") 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }
2370 { (ac_try="$ac_compiler -V >&5"
2371 case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374 esac
2375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2376 (eval "$ac_compiler -V >&5") 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }
2381 cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h. */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2389 main ()
2393 return 0;
2395 _ACEOF
2396 ac_clean_files_save=$ac_clean_files
2397 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2398 # Try to create an executable without -o first, disregard a.out.
2399 # It will help us diagnose broken compilers, and finding out an intuition
2400 # of exeext.
2401 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2402 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2403 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2405 # List of possible output files, starting from the most likely.
2406 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2407 # only as a last resort. b.out is created by i960 compilers.
2408 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2410 # The IRIX 6 linker writes into existing files which may not be
2411 # executable, retaining their permissions. Remove them first so a
2412 # subsequent execution test works.
2413 ac_rmfiles=
2414 for ac_file in $ac_files
2416 case $ac_file in
2417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2418 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2419 esac
2420 done
2421 rm -f $ac_rmfiles
2423 if { (ac_try="$ac_link_default"
2424 case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_link_default") 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2434 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2435 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2436 # so that the user can short-circuit this test for compilers unknown to
2437 # Autoconf.
2438 for ac_file in $ac_files ''
2440 test -f "$ac_file" || continue
2441 case $ac_file in
2442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2444 [ab].out )
2445 # We found the default executable, but exeext='' is most
2446 # certainly right.
2447 break;;
2448 *.* )
2449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2450 then :; else
2451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2453 # We set ac_cv_exeext here because the later test for it is not
2454 # safe: cross compilers may not add the suffix if given an `-o'
2455 # argument, so we may need to know it at that point already.
2456 # Even if this section looks crufty: it has the advantage of
2457 # actually working.
2458 break;;
2460 break;;
2461 esac
2462 done
2463 test "$ac_cv_exeext" = no && ac_cv_exeext=
2465 else
2466 ac_file=''
2469 { echo "$as_me:$LINENO: result: $ac_file" >&5
2470 echo "${ECHO_T}$ac_file" >&6; }
2471 if test -z "$ac_file"; then
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&2;}
2479 { (exit 77); exit 77; }; }
2482 ac_exeext=$ac_cv_exeext
2484 # Check that the compiler produces executables we can run. If not, either
2485 # the compiler is broken, or we cross compile.
2486 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2487 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2489 # If not cross compiling, check that we can run a simple program.
2490 if test "$cross_compiling" != yes; then
2491 if { ac_try='./$ac_file'
2492 { (case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_try") 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 cross_compiling=no
2502 else
2503 if test "$cross_compiling" = maybe; then
2504 cross_compiling=yes
2505 else
2506 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }
2516 { echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6; }
2519 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2520 ac_clean_files=$ac_clean_files_save
2521 # Check that the compiler produces executables we can run. If not, either
2522 # the compiler is broken, or we cross compile.
2523 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2524 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2525 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2526 echo "${ECHO_T}$cross_compiling" >&6; }
2528 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2529 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2530 if { (ac_try="$ac_link"
2531 case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_link") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; then
2540 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2541 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2542 # work properly (i.e., refer to `conftest.exe'), while it won't with
2543 # `rm'.
2544 for ac_file in conftest.exe conftest conftest.*; do
2545 test -f "$ac_file" || continue
2546 case $ac_file in
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2548 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 break;;
2550 * ) break;;
2551 esac
2552 done
2553 else
2554 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&2;}
2558 { (exit 1); exit 1; }; }
2561 rm -f conftest$ac_cv_exeext
2562 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2565 rm -f conftest.$ac_ext
2566 EXEEXT=$ac_cv_exeext
2567 ac_exeext=$EXEEXT
2568 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2570 if test "${ac_cv_objext+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2581 main ()
2585 return 0;
2587 _ACEOF
2588 rm -f conftest.o conftest.obj
2589 if { (ac_try="$ac_compile"
2590 case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compile") 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; then
2599 for ac_file in conftest.o conftest.obj conftest.*; do
2600 test -f "$ac_file" || continue;
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2604 break;;
2605 esac
2606 done
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2620 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2621 echo "${ECHO_T}$ac_cv_objext" >&6; }
2622 OBJEXT=$ac_cv_objext
2623 ac_objext=$OBJEXT
2624 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2625 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2626 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2637 main ()
2639 #ifndef __GNUC__
2640 choke me
2641 #endif
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2649 case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2664 ac_compiler_gnu=yes
2665 else
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 ac_compiler_gnu=no
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2676 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2678 GCC=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS=${CFLAGS+set}
2680 ac_save_CFLAGS=$CFLAGS
2681 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2682 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_g+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 ac_save_c_werror_flag=$ac_c_werror_flag
2687 ac_c_werror_flag=yes
2688 ac_cv_prog_cc_g=no
2689 CFLAGS="-g"
2690 cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h. */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2698 main ()
2702 return 0;
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (ac_try="$ac_compile"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } && {
2719 test -z "$ac_c_werror_flag" ||
2720 test ! -s conftest.err
2721 } && test -s conftest.$ac_objext; then
2722 ac_cv_prog_cc_g=yes
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 CFLAGS=""
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2736 main ()
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (ac_try="$ac_compile"
2745 case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compile") 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } && {
2757 test -z "$ac_c_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest.$ac_objext; then
2761 else
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 ac_c_werror_flag=$ac_save_c_werror_flag
2766 CFLAGS="-g"
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2779 return 0;
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } && {
2796 test -z "$ac_c_werror_flag" ||
2797 test ! -s conftest.err
2798 } && test -s conftest.$ac_objext; then
2799 ac_cv_prog_cc_g=yes
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 ac_c_werror_flag=$ac_save_c_werror_flag
2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2818 if test "$ac_test_CFLAGS" = set; then
2819 CFLAGS=$ac_save_CFLAGS
2820 elif test $ac_cv_prog_cc_g = yes; then
2821 if test "$GCC" = yes; then
2822 CFLAGS="-g -O2"
2823 else
2824 CFLAGS="-g"
2826 else
2827 if test "$GCC" = yes; then
2828 CFLAGS="-O2"
2829 else
2830 CFLAGS=
2833 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2834 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_cc_c89+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 ac_cv_prog_cc_c89=no
2839 ac_save_CC=$CC
2840 cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h. */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #include <stdarg.h>
2847 #include <stdio.h>
2848 #include <sys/types.h>
2849 #include <sys/stat.h>
2850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2851 struct buf { int x; };
2852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2853 static char *e (p, i)
2854 char **p;
2855 int i;
2857 return p[i];
2859 static char *f (char * (*g) (char **, int), char **p, ...)
2861 char *s;
2862 va_list v;
2863 va_start (v,p);
2864 s = g (p, va_arg (v,int));
2865 va_end (v);
2866 return s;
2869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2870 function prototypes and stuff, but not '\xHH' hex character constants.
2871 These don't provoke an error unfortunately, instead are silently treated
2872 as 'x'. The following induces an error, until -std is added to get
2873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2874 array size at least. It's necessary to write '\x00'==0 to get something
2875 that's true only with -std. */
2876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2879 inside strings and character constants. */
2880 #define FOO(x) 'x'
2881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2883 int test (int i, double x);
2884 struct s1 {int (*f) (int a);};
2885 struct s2 {int (*f) (double a);};
2886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2887 int argc;
2888 char **argv;
2890 main ()
2892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2894 return 0;
2896 _ACEOF
2897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900 CC="$ac_save_CC $ac_arg"
2901 rm -f conftest.$ac_objext
2902 if { (ac_try="$ac_compile"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>conftest.er1
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } && {
2915 test -z "$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 } && test -s conftest.$ac_objext; then
2918 ac_cv_prog_cc_c89=$ac_arg
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2926 rm -f core conftest.err conftest.$ac_objext
2927 test "x$ac_cv_prog_cc_c89" != "xno" && break
2928 done
2929 rm -f conftest.$ac_ext
2930 CC=$ac_save_CC
2933 # AC_CACHE_VAL
2934 case "x$ac_cv_prog_cc_c89" in
2936 { echo "$as_me:$LINENO: result: none needed" >&5
2937 echo "${ECHO_T}none needed" >&6; } ;;
2938 xno)
2939 { echo "$as_me:$LINENO: result: unsupported" >&5
2940 echo "${ECHO_T}unsupported" >&6; } ;;
2942 CC="$CC $ac_cv_prog_cc_c89"
2943 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2944 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2945 esac
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 case $ac_cv_prog_cc_stdc in
2955 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2956 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2957 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2958 if test "${ac_cv_prog_cc_c99+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 ac_cv_prog_cc_c99=no
2962 ac_save_CC=$CC
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <stdarg.h>
2970 #include <stdbool.h>
2971 #include <stdlib.h>
2972 #include <wchar.h>
2973 #include <stdio.h>
2975 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2976 #define debug(...) fprintf (stderr, __VA_ARGS__)
2977 #define showlist(...) puts (#__VA_ARGS__)
2978 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2979 static void
2980 test_varargs_macros (void)
2982 int x = 1234;
2983 int y = 5678;
2984 debug ("Flag");
2985 debug ("X = %d\n", x);
2986 showlist (The first, second, and third items.);
2987 report (x>y, "x is %d but y is %d", x, y);
2990 // Check long long types.
2991 #define BIG64 18446744073709551615ull
2992 #define BIG32 4294967295ul
2993 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2994 #if !BIG_OK
2995 your preprocessor is broken;
2996 #endif
2997 #if BIG_OK
2998 #else
2999 your preprocessor is broken;
3000 #endif
3001 static long long int bignum = -9223372036854775807LL;
3002 static unsigned long long int ubignum = BIG64;
3004 struct incomplete_array
3006 int datasize;
3007 double data[];
3010 struct named_init {
3011 int number;
3012 const wchar_t *name;
3013 double average;
3016 typedef const char *ccp;
3018 static inline int
3019 test_restrict (ccp restrict text)
3021 // See if C++-style comments work.
3022 // Iterate through items via the restricted pointer.
3023 // Also check for declarations in for loops.
3024 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3025 continue;
3026 return 0;
3029 // Check varargs and va_copy.
3030 static void
3031 test_varargs (const char *format, ...)
3033 va_list args;
3034 va_start (args, format);
3035 va_list args_copy;
3036 va_copy (args_copy, args);
3038 const char *str;
3039 int number;
3040 float fnumber;
3042 while (*format)
3044 switch (*format++)
3046 case 's': // string
3047 str = va_arg (args_copy, const char *);
3048 break;
3049 case 'd': // int
3050 number = va_arg (args_copy, int);
3051 break;
3052 case 'f': // float
3053 fnumber = va_arg (args_copy, double);
3054 break;
3055 default:
3056 break;
3059 va_end (args_copy);
3060 va_end (args);
3064 main ()
3067 // Check bool.
3068 _Bool success = false;
3070 // Check restrict.
3071 if (test_restrict ("String literal") == 0)
3072 success = true;
3073 char *restrict newvar = "Another string";
3075 // Check varargs.
3076 test_varargs ("s, d' f .", "string", 65, 34.234);
3077 test_varargs_macros ();
3079 // Check flexible array members.
3080 struct incomplete_array *ia =
3081 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3082 ia->datasize = 10;
3083 for (int i = 0; i < ia->datasize; ++i)
3084 ia->data[i] = i * 1.234;
3086 // Check named initializers.
3087 struct named_init ni = {
3088 .number = 34,
3089 .name = L"Test wide string",
3090 .average = 543.34343,
3093 ni.number = 58;
3095 int dynamic_array[ni.number];
3096 dynamic_array[ni.number - 1] = 543;
3098 // work around unused variable warnings
3099 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3100 || dynamic_array[ni.number - 1] != 543);
3103 return 0;
3105 _ACEOF
3106 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3108 CC="$ac_save_CC $ac_arg"
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cc_c99=$ac_arg
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3134 rm -f core conftest.err conftest.$ac_objext
3135 test "x$ac_cv_prog_cc_c99" != "xno" && break
3136 done
3137 rm -f conftest.$ac_ext
3138 CC=$ac_save_CC
3141 # AC_CACHE_VAL
3142 case "x$ac_cv_prog_cc_c99" in
3144 { echo "$as_me:$LINENO: result: none needed" >&5
3145 echo "${ECHO_T}none needed" >&6; } ;;
3146 xno)
3147 { echo "$as_me:$LINENO: result: unsupported" >&5
3148 echo "${ECHO_T}unsupported" >&6; } ;;
3150 CC="$CC $ac_cv_prog_cc_c99"
3151 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3152 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3153 esac
3154 if test "x$ac_cv_prog_cc_c99" != xno; then
3155 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3156 else
3157 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3158 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_cc_c89+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 ac_cv_prog_cc_c89=no
3163 ac_save_CC=$CC
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #include <stdarg.h>
3171 #include <stdio.h>
3172 #include <sys/types.h>
3173 #include <sys/stat.h>
3174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3175 struct buf { int x; };
3176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3177 static char *e (p, i)
3178 char **p;
3179 int i;
3181 return p[i];
3183 static char *f (char * (*g) (char **, int), char **p, ...)
3185 char *s;
3186 va_list v;
3187 va_start (v,p);
3188 s = g (p, va_arg (v,int));
3189 va_end (v);
3190 return s;
3193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3194 function prototypes and stuff, but not '\xHH' hex character constants.
3195 These don't provoke an error unfortunately, instead are silently treated
3196 as 'x'. The following induces an error, until -std is added to get
3197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3198 array size at least. It's necessary to write '\x00'==0 to get something
3199 that's true only with -std. */
3200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3203 inside strings and character constants. */
3204 #define FOO(x) 'x'
3205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3207 int test (int i, double x);
3208 struct s1 {int (*f) (int a);};
3209 struct s2 {int (*f) (double a);};
3210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3211 int argc;
3212 char **argv;
3214 main ()
3216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3218 return 0;
3220 _ACEOF
3221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3224 CC="$ac_save_CC $ac_arg"
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3242 ac_cv_prog_cc_c89=$ac_arg
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -f core conftest.err conftest.$ac_objext
3251 test "x$ac_cv_prog_cc_c89" != "xno" && break
3252 done
3253 rm -f conftest.$ac_ext
3254 CC=$ac_save_CC
3257 # AC_CACHE_VAL
3258 case "x$ac_cv_prog_cc_c89" in
3260 { echo "$as_me:$LINENO: result: none needed" >&5
3261 echo "${ECHO_T}none needed" >&6; } ;;
3262 xno)
3263 { echo "$as_me:$LINENO: result: unsupported" >&5
3264 echo "${ECHO_T}unsupported" >&6; } ;;
3266 CC="$CC $ac_cv_prog_cc_c89"
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3269 esac
3270 if test "x$ac_cv_prog_cc_c89" != xno; then
3271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3272 else
3273 ac_cv_prog_cc_stdc=no
3280 esac
3281 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3282 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 case $ac_cv_prog_cc_stdc in
3288 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3289 echo "${ECHO_T}unsupported" >&6; } ;;
3290 '') { echo "$as_me:$LINENO: result: none needed" >&5
3291 echo "${ECHO_T}none needed" >&6; } ;;
3292 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3293 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3294 esac
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3308 if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 # Double quotes because CPP needs to be expanded
3313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3315 ac_preproc_ok=false
3316 for ac_c_preproc_warn_flag in '' yes
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #ifdef __STDC__
3331 # include <limits.h>
3332 #else
3333 # include <assert.h>
3334 #endif
3335 Syntax error
3336 _ACEOF
3337 if { (ac_try="$ac_cpp conftest.$ac_ext"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null && {
3350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3352 }; then
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 # Broken: fails on valid input.
3359 continue
3362 rm -f conftest.err conftest.$ac_ext
3364 # OK, works on sane cases. Now check whether nonexistent headers
3365 # can be detected and how.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <ac_nonexistent.h>
3373 _ACEOF
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null && {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 }; then
3390 # Broken: success on invalid input.
3391 continue
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Passes both tests.
3397 ac_preproc_ok=:
3398 break
3401 rm -f conftest.err conftest.$ac_ext
3403 done
3404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3405 rm -f conftest.err conftest.$ac_ext
3406 if $ac_preproc_ok; then
3407 break
3410 done
3411 ac_cv_prog_CPP=$CPP
3414 CPP=$ac_cv_prog_CPP
3415 else
3416 ac_cv_prog_CPP=$CPP
3418 { echo "$as_me:$LINENO: result: $CPP" >&5
3419 echo "${ECHO_T}$CPP" >&6; }
3420 ac_preproc_ok=false
3421 for ac_c_preproc_warn_flag in '' yes
3423 # Use a header file that comes with gcc, so configuring glibc
3424 # with a fresh cross-compiler works.
3425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3426 # <limits.h> exists even on freestanding compilers.
3427 # On the NeXT, cc -E runs the code through the compiler's parser,
3428 # not just through cpp. "Syntax error" is here to catch this case.
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #ifdef __STDC__
3436 # include <limits.h>
3437 #else
3438 # include <assert.h>
3439 #endif
3440 Syntax error
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null && {
3455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 }; then
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 # Broken: fails on valid input.
3464 continue
3467 rm -f conftest.err conftest.$ac_ext
3469 # OK, works on sane cases. Now check whether nonexistent headers
3470 # can be detected and how.
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #include <ac_nonexistent.h>
3478 _ACEOF
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 }; then
3495 # Broken: success on invalid input.
3496 continue
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3506 rm -f conftest.err conftest.$ac_ext
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3513 else
3514 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3515 See \`config.log' for more details." >&5
3516 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 # Check for a compatible awk
3529 for ac_prog in gawk nawk
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_AWK+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$AWK"; then
3539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_AWK="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
3558 AWK=$ac_cv_prog_AWK
3559 if test -n "$AWK"; then
3560 { echo "$as_me:$LINENO: result: $AWK" >&5
3561 echo "${ECHO_T}$AWK" >&6; }
3562 else
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3568 test -n "$AWK" && break
3569 done
3571 if test "$AWK" = ""; then
3572 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3573 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3574 { (exit 1); exit 1; }; }
3576 # Extract the first word of "mmake", so it can be a program name with args.
3577 set dummy mmake; ac_word=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_MMAKE+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 if test -n "$MMAKE"; then
3584 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_MMAKE="mmake "
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3597 done
3598 done
3599 IFS=$as_save_IFS
3603 MMAKE=$ac_cv_prog_MMAKE
3604 if test -n "$MMAKE"; then
3605 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3606 echo "${ECHO_T}$MMAKE" >&6; }
3607 else
3608 { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3614 # Perform some default variable assignments. Note all of these will be
3615 # Regenerated from the script, so there is no need to cache them.
3617 aros_host_cc="$CC"
3618 if test "$GCC" = "yes"; then
3619 aros_gcc_ld=`$CC -print-prog-name=ld`
3620 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3621 set dummy `basename $aros_gcc_ld`; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 case $aros_host_ld in
3628 [\\/]* | ?:[\\/]*)
3629 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in `dirname $aros_gcc_ld`
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3643 done
3644 done
3645 IFS=$as_save_IFS
3648 esac
3650 aros_host_ld=$ac_cv_path_aros_host_ld
3651 if test -n "$aros_host_ld"; then
3652 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3653 echo "${ECHO_T}$aros_host_ld" >&6; }
3654 else
3655 { echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6; }
3661 if test "$aros_host_ld" = ""; then
3662 # Extract the first word of "ld", so it can be a program name with args.
3663 set dummy ld; ac_word=$2
3664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 case $aros_host_ld in
3670 [\\/]* | ?:[\\/]*)
3671 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3685 done
3686 done
3687 IFS=$as_save_IFS
3690 esac
3692 aros_host_ld=$ac_cv_path_aros_host_ld
3693 if test -n "$aros_host_ld"; then
3694 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3695 echo "${ECHO_T}$aros_host_ld" >&6; }
3696 else
3697 { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3703 if test "$aros_host_ld" = ""; then
3704 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3705 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3706 { (exit 1); exit 1; }; }
3708 aros_host_make="make"
3709 aros_host_cflags=$CFLAGS
3710 aros_host_ldflags=$LDFLAGS
3711 aros_host_debug="-g -O0"
3712 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3713 aros_host_mkargs="--no-print-directory"
3714 aros_host_incl="/usr/include"
3715 aros_host_exe_suffix="$EXEEXT"
3716 aros_host_lib_suffix=""
3718 for ac_prog in aclocal aclocal19
3720 # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy $ac_prog; ac_word=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 if test -n "$aros_host_aclocal"; then
3728 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_aros_host_aclocal="$ac_prog"
3738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3741 done
3742 done
3743 IFS=$as_save_IFS
3747 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3748 if test -n "$aros_host_aclocal"; then
3749 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3750 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3751 else
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3757 test -n "$aros_host_aclocal" && break
3758 done
3760 for ac_prog in autoconf autoconf259 autoconf253
3762 # Extract the first word of "$ac_prog", so it can be a program name with args.
3763 set dummy $ac_prog; ac_word=$2
3764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3766 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 if test -n "$aros_host_autoconf"; then
3770 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_aros_host_autoconf="$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3785 IFS=$as_save_IFS
3789 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3790 if test -n "$aros_host_autoconf"; then
3791 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3792 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3793 else
3794 { echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6; }
3799 test -n "$aros_host_autoconf" && break
3800 done
3802 for ac_prog in autoheader autoheader259 autoheader253
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3808 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if test -n "$aros_host_autoheader"; then
3812 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_prog_aros_host_autoheader="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3825 done
3826 done
3827 IFS=$as_save_IFS
3831 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3832 if test -n "$aros_host_autoheader"; then
3833 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3834 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3835 else
3836 { echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6; }
3841 test -n "$aros_host_autoheader" && break
3842 done
3844 for ac_prog in automake automake19
3846 # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3850 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 if test -n "$aros_host_automake"; then
3854 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_prog_aros_host_automake="$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3867 done
3868 done
3869 IFS=$as_save_IFS
3873 aros_host_automake=$ac_cv_prog_aros_host_automake
3874 if test -n "$aros_host_automake"; then
3875 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3876 echo "${ECHO_T}$aros_host_automake" >&6; }
3877 else
3878 { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3883 test -n "$aros_host_automake" && break
3884 done
3887 case "$aros_host_cc" in
3888 *gcc*)
3889 aros_host_cc_pipe="-pipe"
3891 icc)
3892 aros_host_cc_pipe=""
3895 aros_host_cc_pipe=""
3897 esac
3899 aros_target_cc_includes=""
3901 # This is the main host configuration section. It is where the host
3902 # can change the values of any variables it needs to change. We do
3903 # not look at anything that compiles to the target yet, we'll get
3904 # to that later.
3906 case "$host_os" in
3907 linux*)
3908 aros_host_arch="linux"
3909 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3910 case "$host_cpu" in
3911 *i?86*)
3912 aros_host_cpu="i386"
3914 *x86_64*)
3915 aros_host_cpu="x86_64"
3917 *m68k*)
3918 aros_host_cpu="m68k"
3920 *powerpc*)
3921 aros_host_cpu="ppc"
3924 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3925 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3926 aros_host_cpu="$host_cpu"
3928 esac
3931 freebsd*)
3932 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3933 aros_host_make="gmake"
3934 aros_host_arch="freebsd"
3935 aros_host_cpu="i386"
3937 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3940 case $host_os in
3941 freebsd[234]*)
3942 aros_object_format="elf_i386"
3946 aros_object_format="elf_i386_fbsd"
3948 esac
3952 darwin*)
3953 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3954 aros_host_arch="darwin"
3955 case "$host_cpu" in
3956 *i?86*)
3957 aros_host_cpu="i386"
3959 *powerpc*)
3960 aros_host_cpu="ppc"
3963 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3964 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3965 aros_host_cpu="$host_cpu"
3967 esac
3969 aros_host_ldflags="$aros_host_ldflags -liconv"
3973 netbsd*)
3974 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3975 aros_host_make="gmake"
3976 aros_host_arch="netbsd"
3977 case "$host_cpu" in
3978 *i?86*)
3979 aros_host_cpu="i386"
3981 *m68k*)
3982 aros_host_cpu="m68k"
3985 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3986 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3987 aros_host_cpu="$host_cpu"
3989 esac
3990 aros_host_lib_suffix=".0.0"
3993 openbsd*)
3994 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3995 aros_host_make="gmake"
3996 aros_host_arch="openbsd"
3997 case "$host_cpu" in
3998 *i?86*)
3999 aros_host_cpu="i386"
4002 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4003 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4004 aros_host_cpu="$host_cpu"
4006 esac
4009 solaris*)
4010 aros_host_arch="solaris"
4011 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4012 case "$host_cpu" in
4013 *sparc*)
4014 aros_host_cpu="sparc"
4017 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4018 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4019 aros_host_cpu="$host_cpu"
4021 esac
4024 morphos*)
4025 aros_host_arch="morphos"
4026 aros_host_cpu="ppc"
4029 amiga*)
4030 aros_host_arch="amiga"
4031 SORT="/gg/bin/sort"
4032 TEST="/gg/bin/test"
4033 UNIQ="/gg/bin/uniq"
4034 FOR="for"
4035 TOUCH="/gg/bin/touch"
4036 case "$host_cpu" in
4037 *m68k*)
4038 aros_host_cpu="m68k"
4040 *powerpc*)
4041 aros_host_cpu="ppc"
4044 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4045 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4046 aros_host_cpu="$host_cpu"
4048 esac
4051 cygwin*)
4052 aros_host_arch="cygwin"
4053 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4054 case "$host_cpu" in
4055 *i?86*)
4056 aros_host_cpu="i386"
4059 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4060 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4061 aros_host_cpu="$host_cpu"
4063 esac
4066 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4067 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4068 { (exit 1); exit 1; }; }
4070 esac
4072 # Extract the first word of "ar", so it can be a program name with args.
4073 set dummy ar; ac_word=$2
4074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4076 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 if test -n "$aros_host_ar"; then
4080 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_aros_host_ar="ar cr"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4093 done
4094 done
4095 IFS=$as_save_IFS
4099 aros_host_ar=$ac_cv_prog_aros_host_ar
4100 if test -n "$aros_host_ar"; then
4101 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4102 echo "${ECHO_T}$aros_host_ar" >&6; }
4103 else
4104 { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4109 if test "$aros_host_ar" = ""; then
4110 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4111 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4112 { (exit 1); exit 1; }; }
4114 # Extract the first word of "ranlib", so it can be a program name with args.
4115 set dummy ranlib; ac_word=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 if test -n "$aros_host_ranlib"; then
4122 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_aros_host_ranlib="ranlib "
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4141 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4142 if test -n "$aros_host_ranlib"; then
4143 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4144 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4145 else
4146 { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4151 if test "$aros_host_ranlib" = ""; then
4152 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4153 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4154 { (exit 1); exit 1; }; }
4156 # Extract the first word of "strip", so it can be a program name with args.
4157 set dummy strip; ac_word=$2
4158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4160 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$aros_host_strip"; then
4164 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_aros_host_strip="strip "
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 aros_host_strip=$ac_cv_prog_aros_host_strip
4184 if test -n "$aros_host_strip"; then
4185 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4186 echo "${ECHO_T}$aros_host_strip" >&6; }
4187 else
4188 { echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6; }
4193 if test "$aros_host_strip" = ""; then
4194 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4195 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4196 { (exit 1); exit 1; }; }
4199 # Extract the first word of "rm", so it can be a program name with args.
4200 set dummy rm; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_prog_RM+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 if test -n "$RM"; then
4207 ac_cv_prog_RM="$RM" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_RM="rm -rf"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 RM=$ac_cv_prog_RM
4227 if test -n "$RM"; then
4228 { echo "$as_me:$LINENO: result: $RM" >&5
4229 echo "${ECHO_T}$RM" >&6; }
4230 else
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4236 if test "$RM" = ""; then
4237 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4238 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4239 { (exit 1); exit 1; }; }
4241 # Extract the first word of "cp", so it can be a program name with args.
4242 set dummy cp; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_CP+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 if test -n "$CP"; then
4249 ac_cv_prog_CP="$CP" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_CP="cp "
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4262 done
4263 done
4264 IFS=$as_save_IFS
4268 CP=$ac_cv_prog_CP
4269 if test -n "$CP"; then
4270 { echo "$as_me:$LINENO: result: $CP" >&5
4271 echo "${ECHO_T}$CP" >&6; }
4272 else
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4278 if test "$CP" = ""; then
4279 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4280 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4281 { (exit 1); exit 1; }; }
4283 # Extract the first word of "mv", so it can be a program name with args.
4284 set dummy mv; ac_word=$2
4285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4287 if test "${ac_cv_prog_MV+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$MV"; then
4291 ac_cv_prog_MV="$MV" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_MV="mv "
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4306 IFS=$as_save_IFS
4310 MV=$ac_cv_prog_MV
4311 if test -n "$MV"; then
4312 { echo "$as_me:$LINENO: result: $MV" >&5
4313 echo "${ECHO_T}$MV" >&6; }
4314 else
4315 { echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6; }
4320 if test "$MV" = ""; then
4321 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4322 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4323 { (exit 1); exit 1; }; }
4325 # Extract the first word of "echo", so it can be a program name with args.
4326 set dummy echo; ac_word=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_ECHO+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$ECHO"; then
4333 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_ECHO="echo "
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4352 ECHO=$ac_cv_prog_ECHO
4353 if test -n "$ECHO"; then
4354 { echo "$as_me:$LINENO: result: $ECHO" >&5
4355 echo "${ECHO_T}$ECHO" >&6; }
4356 else
4357 { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4362 if test "$ECHO" = ""; then
4363 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4364 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4365 { (exit 1); exit 1; }; }
4367 # Extract the first word of "mkdir", so it can be a program name with args.
4368 set dummy mkdir; ac_word=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_prog_MKDIR+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 if test -n "$MKDIR"; then
4375 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_MKDIR="mkdir -p"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4388 done
4389 done
4390 IFS=$as_save_IFS
4394 MKDIR=$ac_cv_prog_MKDIR
4395 if test -n "$MKDIR"; then
4396 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4397 echo "${ECHO_T}$MKDIR" >&6; }
4398 else
4399 { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4404 if test "$MKDIR" = ""; then
4405 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4406 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4407 { (exit 1); exit 1; }; }
4409 # Extract the first word of "touch", so it can be a program name with args.
4410 set dummy touch; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_prog_TOUCH+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if test -n "$TOUCH"; then
4417 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_TOUCH="touch "
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4430 done
4431 done
4432 IFS=$as_save_IFS
4436 TOUCH=$ac_cv_prog_TOUCH
4437 if test -n "$TOUCH"; then
4438 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4439 echo "${ECHO_T}$TOUCH" >&6; }
4440 else
4441 { echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6; }
4446 if test "$TOUCH" = ""; then
4447 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4448 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4449 { (exit 1); exit 1; }; }
4451 # Extract the first word of "sort", so it can be a program name with args.
4452 set dummy sort; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_SORT+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test -n "$SORT"; then
4459 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_SORT="sort "
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 SORT=$ac_cv_prog_SORT
4479 if test -n "$SORT"; then
4480 { echo "$as_me:$LINENO: result: $SORT" >&5
4481 echo "${ECHO_T}$SORT" >&6; }
4482 else
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 if test "$SORT" = ""; then
4489 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4490 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4491 { (exit 1); exit 1; }; }
4493 # Extract the first word of "uniq", so it can be a program name with args.
4494 set dummy uniq; ac_word=$2
4495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4497 if test "${ac_cv_prog_UNIQ+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 if test -n "$UNIQ"; then
4501 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_prog_UNIQ="uniq "
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4514 done
4515 done
4516 IFS=$as_save_IFS
4520 UNIQ=$ac_cv_prog_UNIQ
4521 if test -n "$UNIQ"; then
4522 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4523 echo "${ECHO_T}$UNIQ" >&6; }
4524 else
4525 { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4530 if test "$UNIQ" = ""; then
4531 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4532 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4533 { (exit 1); exit 1; }; }
4535 # Extract the first word of "true", so it can be a program name with args.
4536 set dummy true; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_prog_NOP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 if test -n "$NOP"; then
4543 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_NOP="true "
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4556 done
4557 done
4558 IFS=$as_save_IFS
4562 NOP=$ac_cv_prog_NOP
4563 if test -n "$NOP"; then
4564 { echo "$as_me:$LINENO: result: $NOP" >&5
4565 echo "${ECHO_T}$NOP" >&6; }
4566 else
4567 { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4572 if test "$NOP" = ""; then
4573 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4574 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4575 { (exit 1); exit 1; }; }
4577 # Extract the first word of "cat", so it can be a program name with args.
4578 set dummy cat; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_CAT+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$CAT"; then
4585 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_CAT="cat "
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4598 done
4599 done
4600 IFS=$as_save_IFS
4604 CAT=$ac_cv_prog_CAT
4605 if test -n "$CAT"; then
4606 { echo "$as_me:$LINENO: result: $CAT" >&5
4607 echo "${ECHO_T}$CAT" >&6; }
4608 else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 if test "$CAT" = ""; then
4615 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4616 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4617 { (exit 1); exit 1; }; }
4619 # Extract the first word of "bison", so it can be a program name with args.
4620 set dummy bison; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_BISON+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -n "$BISON"; then
4627 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_BISON="bison "
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 BISON=$ac_cv_prog_BISON
4647 if test -n "$BISON"; then
4648 { echo "$as_me:$LINENO: result: $BISON" >&5
4649 echo "${ECHO_T}$BISON" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 if test "$BISON" = ""; then
4657 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4658 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4659 { (exit 1); exit 1; }; }
4661 # Extract the first word of "flex", so it can be a program name with args.
4662 set dummy flex; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_FLEX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 if test -n "$FLEX"; then
4669 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_FLEX="flex "
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4688 FLEX=$ac_cv_prog_FLEX
4689 if test -n "$FLEX"; then
4690 { echo "$as_me:$LINENO: result: $FLEX" >&5
4691 echo "${ECHO_T}$FLEX" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 if test "$FLEX" = ""; then
4699 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4700 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4701 { (exit 1); exit 1; }; }
4703 # Extract the first word of "pngtopnm", so it can be a program name with args.
4704 set dummy pngtopnm; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$PNGTOPNM"; then
4711 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_PNGTOPNM="pngtopnm "
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4726 IFS=$as_save_IFS
4730 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4731 if test -n "$PNGTOPNM"; then
4732 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4733 echo "${ECHO_T}$PNGTOPNM" >&6; }
4734 else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4740 if test "$PNGTOPNM" = ""; then
4741 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4742 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4743 { (exit 1); exit 1; }; }
4745 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4746 set dummy ppmtoilbm; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 if test -n "$PPMTOILBM"; then
4753 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4772 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4773 if test -n "$PPMTOILBM"; then
4774 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4775 echo "${ECHO_T}$PPMTOILBM" >&6; }
4776 else
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 if test "$PPMTOILBM" = ""; then
4783 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4784 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4785 { (exit 1); exit 1; }; }
4787 # Extract the first word of "sed", so it can be a program name with args.
4788 set dummy sed; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_prog_SED+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 if test -n "$SED"; then
4795 ac_cv_prog_SED="$SED" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_SED="sed "
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 SED=$ac_cv_prog_SED
4815 if test -n "$SED"; then
4816 { echo "$as_me:$LINENO: result: $SED" >&5
4817 echo "${ECHO_T}$SED" >&6; }
4818 else
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4824 if test "$SED" = ""; then
4825 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4826 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4827 { (exit 1); exit 1; }; }
4829 # Extract the first word of "chmod", so it can be a program name with args.
4830 set dummy chmod; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_prog_CHMOD+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 if test -n "$CHMOD"; then
4837 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_CHMOD="chmod "
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4850 done
4851 done
4852 IFS=$as_save_IFS
4856 CHMOD=$ac_cv_prog_CHMOD
4857 if test -n "$CHMOD"; then
4858 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4859 echo "${ECHO_T}$CHMOD" >&6; }
4860 else
4861 { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4866 if test "$CHMOD" = ""; then
4867 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4868 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4869 { (exit 1); exit 1; }; }
4876 if test -n "$PYTHON"; then
4877 # If the user set $PYTHON, use it and don't search something else.
4878 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4879 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4880 prog="import sys, string
4881 # split strings by '.' and convert to numeric. Append some zeros
4882 # because we need at least 4 digits for the hex conversion.
4883 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4884 minverhex = 0
4885 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4886 sys.exit(sys.hexversion < minverhex)"
4887 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4888 ($PYTHON -c "$prog") >&5 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; then
4892 { echo "$as_me:$LINENO: result: yes" >&5
4893 echo "${ECHO_T}yes" >&6; }
4894 else
4895 { { echo "$as_me:$LINENO: error: too old" >&5
4896 echo "$as_me: error: too old" >&2;}
4897 { (exit 1); exit 1; }; }
4900 am_display_PYTHON=$PYTHON
4901 else
4902 # Otherwise, try each interpreter until we find one that satisfies
4903 # VERSION.
4904 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4905 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4906 if test "${am_cv_pathless_PYTHON+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4910 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
4911 test "$am_cv_pathless_PYTHON" = none && break
4912 prog="import sys, string
4913 # split strings by '.' and convert to numeric. Append some zeros
4914 # because we need at least 4 digits for the hex conversion.
4915 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4916 minverhex = 0
4917 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4918 sys.exit(sys.hexversion < minverhex)"
4919 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4920 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; then
4924 break
4927 done
4929 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4930 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4931 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4932 if test "$am_cv_pathless_PYTHON" = none; then
4933 PYTHON=:
4934 else
4935 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4936 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_PYTHON+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 case $PYTHON in
4943 [\\/]* | ?:[\\/]*)
4944 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4963 esac
4965 PYTHON=$ac_cv_path_PYTHON
4966 if test -n "$PYTHON"; then
4967 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4968 echo "${ECHO_T}$PYTHON" >&6; }
4969 else
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4976 am_display_PYTHON=$am_cv_pathless_PYTHON
4980 if test "$PYTHON" = :; then
4981 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4982 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4983 { (exit 1); exit 1; }; }
4984 else
4987 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4988 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4989 if test "${am_cv_python_version+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4994 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4995 echo "${ECHO_T}$am_cv_python_version" >&6; }
4996 PYTHON_VERSION=$am_cv_python_version
5000 PYTHON_PREFIX='${prefix}'
5002 PYTHON_EXEC_PREFIX='${exec_prefix}'
5006 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5007 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5008 if test "${am_cv_python_platform+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5013 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5014 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5015 PYTHON_PLATFORM=$am_cv_python_platform
5020 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5021 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5022 if test "${am_cv_python_pythondir+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5026 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5028 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5029 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5030 pythondir=$am_cv_python_pythondir
5034 pkgpythondir=\${pythondir}/$PACKAGE
5037 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5038 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5039 if test "${am_cv_python_pyexecdir+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5043 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5045 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5046 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5047 pyexecdir=$am_cv_python_pyexecdir
5051 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5059 FOR=for
5061 IF=if
5063 TEST=test
5065 CMP=cmp
5069 # Check for some includes for the X11 HIDD and the kernel
5072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_GREP+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 # Extract the first word of "grep ggrep" to use in msg output
5078 if test -z "$GREP"; then
5079 set dummy grep ggrep; ac_prog_name=$2
5080 if test "${ac_cv_path_GREP+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 ac_path_GREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in grep ggrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5094 # Check for GNU ac_path_GREP and select it if it is found.
5095 # Check for GNU $ac_path_GREP
5096 case `"$ac_path_GREP" --version 2>&1` in
5097 *GNU*)
5098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5100 ac_count=0
5101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5102 while :
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 echo 'GREP' >> "conftest.nl"
5108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 ac_count=`expr $ac_count + 1`
5111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_GREP="$ac_path_GREP"
5114 ac_path_GREP_max=$ac_count
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5123 $ac_path_GREP_found && break 3
5124 done
5125 done
5127 done
5128 IFS=$as_save_IFS
5133 GREP="$ac_cv_path_GREP"
5134 if test -z "$GREP"; then
5135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5137 { (exit 1); exit 1; }; }
5140 else
5141 ac_cv_path_GREP=$GREP
5146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5148 GREP="$ac_cv_path_GREP"
5151 { echo "$as_me:$LINENO: checking for egrep" >&5
5152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5153 if test "${ac_cv_path_EGREP+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5157 then ac_cv_path_EGREP="$GREP -E"
5158 else
5159 # Extract the first word of "egrep" to use in msg output
5160 if test -z "$EGREP"; then
5161 set dummy egrep; ac_prog_name=$2
5162 if test "${ac_cv_path_EGREP+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 ac_path_EGREP_found=false
5166 # Loop through the user's path and test for each of PROGNAME-LIST
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_prog in egrep; do
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5175 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5176 # Check for GNU ac_path_EGREP and select it if it is found.
5177 # Check for GNU $ac_path_EGREP
5178 case `"$ac_path_EGREP" --version 2>&1` in
5179 *GNU*)
5180 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5182 ac_count=0
5183 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5184 while :
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 echo 'EGREP' >> "conftest.nl"
5190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192 ac_count=`expr $ac_count + 1`
5193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_EGREP="$ac_path_EGREP"
5196 ac_path_EGREP_max=$ac_count
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5200 done
5201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 esac
5205 $ac_path_EGREP_found && break 3
5206 done
5207 done
5209 done
5210 IFS=$as_save_IFS
5215 EGREP="$ac_cv_path_EGREP"
5216 if test -z "$EGREP"; then
5217 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5219 { (exit 1); exit 1; }; }
5222 else
5223 ac_cv_path_EGREP=$EGREP
5229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5231 EGREP="$ac_cv_path_EGREP"
5234 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5236 if test "${ac_cv_header_stdc+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #include <stdlib.h>
5246 #include <stdarg.h>
5247 #include <string.h>
5248 #include <float.h>
5251 main ()
5255 return 0;
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest.$ac_objext; then
5275 ac_cv_header_stdc=yes
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 ac_cv_header_stdc=no
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 if test $ac_cv_header_stdc = yes; then
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <string.h>
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "memchr" >/dev/null 2>&1; then
5299 else
5300 ac_cv_header_stdc=no
5302 rm -f conftest*
5306 if test $ac_cv_header_stdc = yes; then
5307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <stdlib.h>
5316 _ACEOF
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "free" >/dev/null 2>&1; then
5320 else
5321 ac_cv_header_stdc=no
5323 rm -f conftest*
5327 if test $ac_cv_header_stdc = yes; then
5328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5329 if test "$cross_compiling" = yes; then
5331 else
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <ctype.h>
5339 #include <stdlib.h>
5340 #if ((' ' & 0x0FF) == 0x020)
5341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5343 #else
5344 # define ISLOWER(c) \
5345 (('a' <= (c) && (c) <= 'i') \
5346 || ('j' <= (c) && (c) <= 'r') \
5347 || ('s' <= (c) && (c) <= 'z'))
5348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5349 #endif
5351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353 main ()
5355 int i;
5356 for (i = 0; i < 256; i++)
5357 if (XOR (islower (i), ISLOWER (i))
5358 || toupper (i) != TOUPPER (i))
5359 return 2;
5360 return 0;
5362 _ACEOF
5363 rm -f conftest$ac_exeext
5364 if { (ac_try="$ac_link"
5365 case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_link") 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374 { (case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_try") 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5384 else
5385 echo "$as_me: program exited with status $ac_status" >&5
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ( exit $ac_status )
5390 ac_cv_header_stdc=no
5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5398 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5399 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5400 if test $ac_cv_header_stdc = yes; then
5402 cat >>confdefs.h <<\_ACEOF
5403 #define STDC_HEADERS 1
5404 _ACEOF
5408 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5419 inttypes.h stdint.h unistd.h
5421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5435 #include <$ac_header>
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
5454 eval "$as_ac_Header=yes"
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 eval "$as_ac_Header=no"
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 ac_res=`eval echo '${'$as_ac_Header'}'`
5465 { echo "$as_me:$LINENO: result: $ac_res" >&5
5466 echo "${ECHO_T}$ac_res" >&6; }
5467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5468 cat >>confdefs.h <<_ACEOF
5469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 _ACEOF
5474 done
5486 for ac_header in sys/ipc.h sys/shm.h \
5487 sys/mmap.h sys/mman.h sysexits.h \
5488 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_res=`eval echo '${'$as_ac_Header'}'`
5499 { echo "$as_me:$LINENO: result: $ac_res" >&5
5500 echo "${ECHO_T}$ac_res" >&6; }
5501 else
5502 # Is the header compilable?
5503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5505 cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h. */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 #include <$ac_header>
5513 _ACEOF
5514 rm -f conftest.$ac_objext
5515 if { (ac_try="$ac_compile"
5516 case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest.$ac_objext; then
5531 ac_header_compiler=yes
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_header_compiler=no
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5541 echo "${ECHO_T}$ac_header_compiler" >&6; }
5543 # Is the header present?
5544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 #include <$ac_header>
5553 _ACEOF
5554 if { (ac_try="$ac_cpp conftest.$ac_ext"
5555 case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } >/dev/null && {
5567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 }; then
5570 ac_header_preproc=yes
5571 else
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 ac_header_preproc=no
5578 rm -f conftest.err conftest.$ac_ext
5579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5580 echo "${ECHO_T}$ac_header_preproc" >&6; }
5582 # So? What about this header?
5583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5584 yes:no: )
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5589 ac_header_preproc=yes
5591 no:yes:* )
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5606 esac
5607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 eval "$as_ac_Header=\$ac_header_preproc"
5614 ac_res=`eval echo '${'$as_ac_Header'}'`
5615 { echo "$as_me:$LINENO: result: $ac_res" >&5
5616 echo "${ECHO_T}$ac_res" >&6; }
5619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5620 cat >>confdefs.h <<_ACEOF
5621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622 _ACEOF
5626 done
5630 for ac_header in sys/mount.h
5632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #include <sys/param.h>
5646 #include <$ac_header>
5647 _ACEOF
5648 rm -f conftest.$ac_objext
5649 if { (ac_try="$ac_compile"
5650 case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 eval "$as_ac_Header=yes"
5666 else
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 eval "$as_ac_Header=no"
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_res=`eval echo '${'$as_ac_Header'}'`
5676 { echo "$as_me:$LINENO: result: $ac_res" >&5
5677 echo "${ECHO_T}$ac_res" >&6; }
5678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5679 cat >>confdefs.h <<_ACEOF
5680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5681 _ACEOF
5685 done
5693 ac_header_dirent=no
5694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5695 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5696 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5708 #include <$ac_hdr>
5711 main ()
5713 if ((DIR *) 0)
5714 return 0;
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 eval "$as_ac_Header=yes"
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 eval "$as_ac_Header=no"
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_res=`eval echo '${'$as_ac_Header'}'`
5747 { echo "$as_me:$LINENO: result: $ac_res" >&5
5748 echo "${ECHO_T}$ac_res" >&6; }
5749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5752 _ACEOF
5754 ac_header_dirent=$ac_hdr; break
5757 done
5758 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5759 if test $ac_header_dirent = dirent.h; then
5760 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5762 if test "${ac_cv_search_opendir+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 ac_func_search_save_LIBS=$LIBS
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5776 #ifdef __cplusplus
5777 extern "C"
5778 #endif
5779 char opendir ();
5781 main ()
5783 return opendir ();
5785 return 0;
5787 _ACEOF
5788 for ac_lib in '' dir; do
5789 if test -z "$ac_lib"; then
5790 ac_res="none required"
5791 else
5792 ac_res=-l$ac_lib
5793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5795 rm -f conftest.$ac_objext conftest$ac_exeext
5796 if { (ac_try="$ac_link"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_link") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest$ac_exeext &&
5812 $as_test_x conftest$ac_exeext; then
5813 ac_cv_search_opendir=$ac_res
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5822 conftest$ac_exeext
5823 if test "${ac_cv_search_opendir+set}" = set; then
5824 break
5826 done
5827 if test "${ac_cv_search_opendir+set}" = set; then
5829 else
5830 ac_cv_search_opendir=no
5832 rm conftest.$ac_ext
5833 LIBS=$ac_func_search_save_LIBS
5835 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5836 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5837 ac_res=$ac_cv_search_opendir
5838 if test "$ac_res" != no; then
5839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5843 else
5844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5846 if test "${ac_cv_search_opendir+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 ac_func_search_save_LIBS=$LIBS
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5860 #ifdef __cplusplus
5861 extern "C"
5862 #endif
5863 char opendir ();
5865 main ()
5867 return opendir ();
5869 return 0;
5871 _ACEOF
5872 for ac_lib in '' x; do
5873 if test -z "$ac_lib"; then
5874 ac_res="none required"
5875 else
5876 ac_res=-l$ac_lib
5877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (ac_try="$ac_link"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_link") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest$ac_exeext &&
5896 $as_test_x conftest$ac_exeext; then
5897 ac_cv_search_opendir=$ac_res
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906 conftest$ac_exeext
5907 if test "${ac_cv_search_opendir+set}" = set; then
5908 break
5910 done
5911 if test "${ac_cv_search_opendir+set}" = set; then
5913 else
5914 ac_cv_search_opendir=no
5916 rm conftest.$ac_ext
5917 LIBS=$ac_func_search_save_LIBS
5919 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5920 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5921 ac_res=$ac_cv_search_opendir
5922 if test "$ac_res" != no; then
5923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5929 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5930 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5931 if test "${ac_cv_header_stat_broken+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/types.h>
5941 #include <sys/stat.h>
5943 #if defined S_ISBLK && defined S_IFDIR
5944 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5945 #endif
5947 #if defined S_ISBLK && defined S_IFCHR
5948 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5949 #endif
5951 #if defined S_ISLNK && defined S_IFREG
5952 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5953 #endif
5955 #if defined S_ISSOCK && defined S_IFREG
5956 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5957 #endif
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 ac_cv_header_stat_broken=no
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_cv_header_stat_broken=yes
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5988 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5989 if test $ac_cv_header_stat_broken = yes; then
5991 cat >>confdefs.h <<\_ACEOF
5992 #define STAT_MACROS_BROKEN 1
5993 _ACEOF
5997 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5998 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5999 if test "${ac_cv_header_stdc+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <stdlib.h>
6009 #include <stdarg.h>
6010 #include <string.h>
6011 #include <float.h>
6014 main ()
6018 return 0;
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (ac_try="$ac_compile"
6023 case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compile") 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest.$ac_objext; then
6038 ac_cv_header_stdc=yes
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_cv_header_stdc=no
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 if test $ac_cv_header_stdc = yes; then
6049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <string.h>
6058 _ACEOF
6059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "memchr" >/dev/null 2>&1; then
6062 else
6063 ac_cv_header_stdc=no
6065 rm -f conftest*
6069 if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <stdlib.h>
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "free" >/dev/null 2>&1; then
6083 else
6084 ac_cv_header_stdc=no
6086 rm -f conftest*
6090 if test $ac_cv_header_stdc = yes; then
6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6092 if test "$cross_compiling" = yes; then
6094 else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #include <ctype.h>
6102 #include <stdlib.h>
6103 #if ((' ' & 0x0FF) == 0x020)
6104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6106 #else
6107 # define ISLOWER(c) \
6108 (('a' <= (c) && (c) <= 'i') \
6109 || ('j' <= (c) && (c) <= 'r') \
6110 || ('s' <= (c) && (c) <= 'z'))
6111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6112 #endif
6114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6116 main ()
6118 int i;
6119 for (i = 0; i < 256; i++)
6120 if (XOR (islower (i), ISLOWER (i))
6121 || toupper (i) != TOUPPER (i))
6122 return 2;
6123 return 0;
6125 _ACEOF
6126 rm -f conftest$ac_exeext
6127 if { (ac_try="$ac_link"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_link") 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6137 { (case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_try") 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6147 else
6148 echo "$as_me: program exited with status $ac_status" >&5
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ( exit $ac_status )
6153 ac_cv_header_stdc=no
6155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6162 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6163 if test $ac_cv_header_stdc = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define STDC_HEADERS 1
6167 _ACEOF
6171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #include <sys/types.h>
6183 #include <sys/wait.h>
6184 #ifndef WEXITSTATUS
6185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6186 #endif
6187 #ifndef WIFEXITED
6188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6189 #endif
6192 main ()
6194 int s;
6195 wait (&s);
6196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 ac_cv_header_sys_wait_h=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_cv_header_sys_wait_h=no
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6230 if test $ac_cv_header_sys_wait_h = yes; then
6232 cat >>confdefs.h <<\_ACEOF
6233 #define HAVE_SYS_WAIT_H 1
6234 _ACEOF
6238 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6239 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6240 if test "${ac_cv_header_time+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <sys/types.h>
6250 #include <sys/time.h>
6251 #include <time.h>
6254 main ()
6256 if ((struct tm *) 0)
6257 return 0;
6259 return 0;
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (ac_try="$ac_compile"
6264 case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
6279 ac_cv_header_time=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 ac_cv_header_time=no
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6290 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6291 if test $ac_cv_header_time = yes; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define TIME_WITH_SYS_TIME 1
6295 _ACEOF
6299 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6300 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6301 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6312 main ()
6314 static struct stat ac_aggr;
6315 if (ac_aggr.st_blksize)
6316 return 0;
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest.$ac_objext; then
6338 ac_cv_member_struct_stat_st_blksize=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 $ac_includes_default
6351 main ()
6353 static struct stat ac_aggr;
6354 if (sizeof ac_aggr.st_blksize)
6355 return 0;
6357 return 0;
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (ac_try="$ac_compile"
6362 case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_compile") 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest.$ac_objext; then
6377 ac_cv_member_struct_stat_st_blksize=yes
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 ac_cv_member_struct_stat_st_blksize=no
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6391 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6392 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6394 cat >>confdefs.h <<_ACEOF
6395 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6396 _ACEOF
6399 cat >>confdefs.h <<\_ACEOF
6400 #define HAVE_ST_BLKSIZE 1
6401 _ACEOF
6406 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6407 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6408 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6419 main ()
6421 static struct stat ac_aggr;
6422 if (ac_aggr.st_blocks)
6423 return 0;
6425 return 0;
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (ac_try="$ac_compile"
6430 case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433 esac
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_compile") 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest.$ac_objext; then
6445 ac_cv_member_struct_stat_st_blocks=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6458 main ()
6460 static struct stat ac_aggr;
6461 if (sizeof ac_aggr.st_blocks)
6462 return 0;
6464 return 0;
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6469 case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_compile") 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest.$ac_objext; then
6484 ac_cv_member_struct_stat_st_blocks=yes
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_cv_member_struct_stat_st_blocks=no
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6498 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6499 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6503 _ACEOF
6506 cat >>confdefs.h <<\_ACEOF
6507 #define HAVE_ST_BLOCKS 1
6508 _ACEOF
6510 else
6511 case " $LIBOBJS " in
6512 *" fileblocks.$ac_objext "* ) ;;
6513 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6515 esac
6520 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6521 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6522 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6533 main ()
6535 static struct stat ac_aggr;
6536 if (ac_aggr.st_rdev)
6537 return 0;
6539 return 0;
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (ac_try="$ac_compile"
6544 case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_cv_member_struct_stat_st_rdev=yes
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6572 main ()
6574 static struct stat ac_aggr;
6575 if (sizeof ac_aggr.st_rdev)
6576 return 0;
6578 return 0;
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (ac_try="$ac_compile"
6583 case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_compile") 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest.$ac_objext; then
6598 ac_cv_member_struct_stat_st_rdev=yes
6599 else
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_cv_member_struct_stat_st_rdev=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6612 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6613 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define HAVE_STRUCT_STAT_ST_RDEV 1
6617 _ACEOF
6620 cat >>confdefs.h <<\_ACEOF
6621 #define HAVE_ST_RDEV 1
6622 _ACEOF
6627 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6629 if test "${ac_cv_struct_tm+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h. */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 #include <sys/types.h>
6639 #include <time.h>
6642 main ()
6644 struct tm tm;
6645 int *p = &tm.tm_sec;
6646 return !p;
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (ac_try="$ac_compile"
6653 case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_compile") 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest.$ac_objext; then
6668 ac_cv_struct_tm=time.h
6669 else
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_cv_struct_tm=sys/time.h
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6679 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6680 if test $ac_cv_struct_tm = sys/time.h; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define TM_IN_SYS_TIME 1
6684 _ACEOF
6688 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6689 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6690 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <sys/types.h>
6700 #include <$ac_cv_struct_tm>
6704 main ()
6706 static struct tm ac_aggr;
6707 if (ac_aggr.tm_zone)
6708 return 0;
6710 return 0;
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 ac_cv_member_struct_tm_tm_zone=yes
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <$ac_cv_struct_tm>
6746 main ()
6748 static struct tm ac_aggr;
6749 if (sizeof ac_aggr.tm_zone)
6750 return 0;
6752 return 0;
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6757 case "(($ac_try" in
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 ac_cv_member_struct_tm_tm_zone=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_member_struct_tm_tm_zone=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6786 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6787 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_STRUCT_TM_TM_ZONE 1
6791 _ACEOF
6796 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_TM_ZONE 1
6800 _ACEOF
6802 else
6803 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6804 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6805 if test "${ac_cv_have_decl_tzname+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <time.h>
6817 main ()
6819 #ifndef tzname
6820 (void) tzname;
6821 #endif
6824 return 0;
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } && {
6841 test -z "$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 } && test -s conftest.$ac_objext; then
6844 ac_cv_have_decl_tzname=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_cv_have_decl_tzname=no
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6855 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6856 if test $ac_cv_have_decl_tzname = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_DECL_TZNAME 1
6860 _ACEOF
6863 else
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_DECL_TZNAME 0
6866 _ACEOF
6872 { echo "$as_me:$LINENO: checking for tzname" >&5
6873 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6874 if test "${ac_cv_var_tzname+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <time.h>
6884 #if !HAVE_DECL_TZNAME
6885 extern char *tzname[];
6886 #endif
6889 main ()
6891 return tzname[0][0];
6893 return 0;
6895 _ACEOF
6896 rm -f conftest.$ac_objext conftest$ac_exeext
6897 if { (ac_try="$ac_link"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_link") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest$ac_exeext &&
6913 $as_test_x conftest$ac_exeext; then
6914 ac_cv_var_tzname=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_var_tzname=no
6922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6923 conftest$ac_exeext conftest.$ac_ext
6925 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6926 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6927 if test $ac_cv_var_tzname = yes; then
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_TZNAME 1
6931 _ACEOF
6936 { echo "$as_me:$LINENO: checking for off_t" >&5
6937 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6938 if test "${ac_cv_type_off_t+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 typedef off_t ac__type_new_;
6950 main ()
6952 if ((ac__type_new_ *) 0)
6953 return 0;
6954 if (sizeof (ac__type_new_))
6955 return 0;
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (ac_try="$ac_compile"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
6977 ac_cv_type_off_t=yes
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ac_cv_type_off_t=no
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6988 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6989 if test $ac_cv_type_off_t = yes; then
6991 else
6993 cat >>confdefs.h <<_ACEOF
6994 #define off_t long int
6995 _ACEOF
6999 { echo "$as_me:$LINENO: checking for pid_t" >&5
7000 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7001 if test "${ac_cv_type_pid_t+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7011 typedef pid_t ac__type_new_;
7013 main ()
7015 if ((ac__type_new_ *) 0)
7016 return 0;
7017 if (sizeof (ac__type_new_))
7018 return 0;
7020 return 0;
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (ac_try="$ac_compile"
7025 case "(($ac_try" in
7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7028 esac
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030 (eval "$ac_compile") 2>conftest.er1
7031 ac_status=$?
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } && {
7037 test -z "$ac_c_werror_flag" ||
7038 test ! -s conftest.err
7039 } && test -s conftest.$ac_objext; then
7040 ac_cv_type_pid_t=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_type_pid_t=no
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7051 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7052 if test $ac_cv_type_pid_t = yes; then
7054 else
7056 cat >>confdefs.h <<_ACEOF
7057 #define pid_t int
7058 _ACEOF
7062 { echo "$as_me:$LINENO: checking for size_t" >&5
7063 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7064 if test "${ac_cv_type_size_t+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 $ac_includes_default
7074 typedef size_t ac__type_new_;
7076 main ()
7078 if ((ac__type_new_ *) 0)
7079 return 0;
7080 if (sizeof (ac__type_new_))
7081 return 0;
7083 return 0;
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7088 case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7094 ac_status=$?
7095 grep -v '^ *+' conftest.er1 >conftest.err
7096 rm -f conftest.er1
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.$ac_objext; then
7103 ac_cv_type_size_t=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_cv_type_size_t=no
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7114 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7115 if test $ac_cv_type_size_t = yes; then
7117 else
7119 cat >>confdefs.h <<_ACEOF
7120 #define size_t unsigned int
7121 _ACEOF
7125 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7126 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7127 if test "${ac_cv_type_uid_t+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <sys/types.h>
7138 _ACEOF
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "uid_t" >/dev/null 2>&1; then
7141 ac_cv_type_uid_t=yes
7142 else
7143 ac_cv_type_uid_t=no
7145 rm -f conftest*
7148 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7149 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7150 if test $ac_cv_type_uid_t = no; then
7152 cat >>confdefs.h <<\_ACEOF
7153 #define uid_t int
7154 _ACEOF
7157 cat >>confdefs.h <<\_ACEOF
7158 #define gid_t int
7159 _ACEOF
7164 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7165 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7166 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7177 main ()
7179 static struct tm ac_aggr;
7180 if (ac_aggr.tm_gmtoff)
7181 return 0;
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 ac_cv_member_struct_tm_tm_gmtoff=yes
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 $ac_includes_default
7216 main ()
7218 static struct tm ac_aggr;
7219 if (sizeof ac_aggr.tm_gmtoff)
7220 return 0;
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 ac_cv_member_struct_tm_tm_gmtoff=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_cv_member_struct_tm_tm_gmtoff=no
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7256 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7257 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7259 cat >>confdefs.h <<_ACEOF
7260 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7261 _ACEOF
7267 # Look for some functions
7282 for ac_func in getpagesize kqueue statfs statvfs \
7283 clone kse_create rfork_thread thr_create sa_register \
7284 getcontext makecontext setcontext sigaltstack swapcontext
7286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7300 #define $ac_func innocuous_$ac_func
7302 /* System header to define __stub macros and hopefully few prototypes,
7303 which can conflict with char $ac_func (); below.
7304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7305 <limits.h> exists even on freestanding compilers. */
7307 #ifdef __STDC__
7308 # include <limits.h>
7309 #else
7310 # include <assert.h>
7311 #endif
7313 #undef $ac_func
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char $ac_func ();
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined __stub_$ac_func || defined __stub___$ac_func
7326 choke me
7327 #endif
7330 main ()
7332 return $ac_func ();
7334 return 0;
7336 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (ac_try="$ac_link"
7339 case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest$ac_exeext &&
7354 $as_test_x conftest$ac_exeext; then
7355 eval "$as_ac_var=yes"
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 eval "$as_ac_var=no"
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364 conftest$ac_exeext conftest.$ac_ext
7366 ac_res=`eval echo '${'$as_ac_var'}'`
7367 { echo "$as_me:$LINENO: result: $ac_res" >&5
7368 echo "${ECHO_T}$ac_res" >&6; }
7369 if test `eval echo '${'$as_ac_var'}'` = yes; then
7370 cat >>confdefs.h <<_ACEOF
7371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7372 _ACEOF
7375 done
7380 for ac_header in stdlib.h unistd.h
7382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_res=`eval echo '${'$as_ac_Header'}'`
7390 { echo "$as_me:$LINENO: result: $ac_res" >&5
7391 echo "${ECHO_T}$ac_res" >&6; }
7392 else
7393 # Is the header compilable?
7394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 #include <$ac_header>
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7422 ac_header_compiler=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_header_compiler=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432 echo "${ECHO_T}$ac_header_compiler" >&6; }
7434 # Is the header present?
7435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #include <$ac_header>
7444 _ACEOF
7445 if { (ac_try="$ac_cpp conftest.$ac_ext"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } >/dev/null && {
7458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 }; then
7461 ac_header_preproc=yes
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 ac_header_preproc=no
7469 rm -f conftest.err conftest.$ac_ext
7470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7471 echo "${ECHO_T}$ac_header_preproc" >&6; }
7473 # So? What about this header?
7474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7475 yes:no: )
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7480 ac_header_preproc=yes
7482 no:yes:* )
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7497 esac
7498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 eval "$as_ac_Header=\$ac_header_preproc"
7505 ac_res=`eval echo '${'$as_ac_Header'}'`
7506 { echo "$as_me:$LINENO: result: $ac_res" >&5
7507 echo "${ECHO_T}$ac_res" >&6; }
7510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7513 _ACEOF
7517 done
7520 for ac_func in getpagesize
7522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7536 #define $ac_func innocuous_$ac_func
7538 /* System header to define __stub macros and hopefully few prototypes,
7539 which can conflict with char $ac_func (); below.
7540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7541 <limits.h> exists even on freestanding compilers. */
7543 #ifdef __STDC__
7544 # include <limits.h>
7545 #else
7546 # include <assert.h>
7547 #endif
7549 #undef $ac_func
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 char $ac_func ();
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined __stub_$ac_func || defined __stub___$ac_func
7562 choke me
7563 #endif
7566 main ()
7568 return $ac_func ();
7570 return 0;
7572 _ACEOF
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (ac_try="$ac_link"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_link") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest$ac_exeext &&
7590 $as_test_x conftest$ac_exeext; then
7591 eval "$as_ac_var=yes"
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 eval "$as_ac_var=no"
7599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7600 conftest$ac_exeext conftest.$ac_ext
7602 ac_res=`eval echo '${'$as_ac_var'}'`
7603 { echo "$as_me:$LINENO: result: $ac_res" >&5
7604 echo "${ECHO_T}$ac_res" >&6; }
7605 if test `eval echo '${'$as_ac_var'}'` = yes; then
7606 cat >>confdefs.h <<_ACEOF
7607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7608 _ACEOF
7611 done
7613 { echo "$as_me:$LINENO: checking for working mmap" >&5
7614 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7615 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618 if test "$cross_compiling" = yes; then
7619 ac_cv_func_mmap_fixed_mapped=no
7620 else
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 $ac_includes_default
7628 /* malloc might have been renamed as rpl_malloc. */
7629 #undef malloc
7631 /* Thanks to Mike Haertel and Jim Avera for this test.
7632 Here is a matrix of mmap possibilities:
7633 mmap private not fixed
7634 mmap private fixed at somewhere currently unmapped
7635 mmap private fixed at somewhere already mapped
7636 mmap shared not fixed
7637 mmap shared fixed at somewhere currently unmapped
7638 mmap shared fixed at somewhere already mapped
7639 For private mappings, we should verify that changes cannot be read()
7640 back from the file, nor mmap's back from the file at a different
7641 address. (There have been systems where private was not correctly
7642 implemented like the infamous i386 svr4.0, and systems where the
7643 VM page cache was not coherent with the file system buffer cache
7644 like early versions of FreeBSD and possibly contemporary NetBSD.)
7645 For shared mappings, we should conversely verify that changes get
7646 propagated back to all the places they're supposed to be.
7648 Grep wants private fixed already mapped.
7649 The main things grep needs to know about mmap are:
7650 * does it exist and is it safe to write into the mmap'd area
7651 * how to use it (BSD variants) */
7653 #include <fcntl.h>
7654 #include <sys/mman.h>
7656 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7657 char *malloc ();
7658 #endif
7660 /* This mess was copied from the GNU getpagesize.h. */
7661 #ifndef HAVE_GETPAGESIZE
7662 /* Assume that all systems that can run configure have sys/param.h. */
7663 # ifndef HAVE_SYS_PARAM_H
7664 # define HAVE_SYS_PARAM_H 1
7665 # endif
7667 # ifdef _SC_PAGESIZE
7668 # define getpagesize() sysconf(_SC_PAGESIZE)
7669 # else /* no _SC_PAGESIZE */
7670 # ifdef HAVE_SYS_PARAM_H
7671 # include <sys/param.h>
7672 # ifdef EXEC_PAGESIZE
7673 # define getpagesize() EXEC_PAGESIZE
7674 # else /* no EXEC_PAGESIZE */
7675 # ifdef NBPG
7676 # define getpagesize() NBPG * CLSIZE
7677 # ifndef CLSIZE
7678 # define CLSIZE 1
7679 # endif /* no CLSIZE */
7680 # else /* no NBPG */
7681 # ifdef NBPC
7682 # define getpagesize() NBPC
7683 # else /* no NBPC */
7684 # ifdef PAGESIZE
7685 # define getpagesize() PAGESIZE
7686 # endif /* PAGESIZE */
7687 # endif /* no NBPC */
7688 # endif /* no NBPG */
7689 # endif /* no EXEC_PAGESIZE */
7690 # else /* no HAVE_SYS_PARAM_H */
7691 # define getpagesize() 8192 /* punt totally */
7692 # endif /* no HAVE_SYS_PARAM_H */
7693 # endif /* no _SC_PAGESIZE */
7695 #endif /* no HAVE_GETPAGESIZE */
7698 main ()
7700 char *data, *data2, *data3;
7701 int i, pagesize;
7702 int fd;
7704 pagesize = getpagesize ();
7706 /* First, make a file with some known garbage in it. */
7707 data = (char *) malloc (pagesize);
7708 if (!data)
7709 return 1;
7710 for (i = 0; i < pagesize; ++i)
7711 *(data + i) = rand ();
7712 umask (0);
7713 fd = creat ("conftest.mmap", 0600);
7714 if (fd < 0)
7715 return 1;
7716 if (write (fd, data, pagesize) != pagesize)
7717 return 1;
7718 close (fd);
7720 /* Next, try to mmap the file at a fixed address which already has
7721 something else allocated at it. If we can, also make sure that
7722 we see the same garbage. */
7723 fd = open ("conftest.mmap", O_RDWR);
7724 if (fd < 0)
7725 return 1;
7726 data2 = (char *) malloc (2 * pagesize);
7727 if (!data2)
7728 return 1;
7729 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7730 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7731 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7732 return 1;
7733 for (i = 0; i < pagesize; ++i)
7734 if (*(data + i) != *(data2 + i))
7735 return 1;
7737 /* Finally, make sure that changes to the mapped area do not
7738 percolate back to the file as seen by read(). (This is a bug on
7739 some variants of i386 svr4.0.) */
7740 for (i = 0; i < pagesize; ++i)
7741 *(data2 + i) = *(data2 + i) + 1;
7742 data3 = (char *) malloc (pagesize);
7743 if (!data3)
7744 return 1;
7745 if (read (fd, data3, pagesize) != pagesize)
7746 return 1;
7747 for (i = 0; i < pagesize; ++i)
7748 if (*(data + i) != *(data3 + i))
7749 return 1;
7750 close (fd);
7751 return 0;
7753 _ACEOF
7754 rm -f conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7765 { (case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_try") 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_cv_func_mmap_fixed_mapped=yes
7775 else
7776 echo "$as_me: program exited with status $ac_status" >&5
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ( exit $ac_status )
7781 ac_cv_func_mmap_fixed_mapped=no
7783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7789 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_MMAP 1
7794 _ACEOF
7797 rm -f conftest.mmap
7802 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7803 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7804 aros_config_ldflags=""
7806 aros_shared_default=yes
7808 aros_shared_cflags="-fPIC"
7809 aros_shared_aflags=""
7810 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7811 aros_kernel_ldflags="-Wl,-rpath,./lib"
7813 aros_target_ar_flags="cr"
7814 aros_target_nm_flags="-C -ul"
7815 aros_target_strip_flags="--strip-unneeded -R.comment"
7817 aros_compiler_libs=
7819 aros_target_genmap="-Wl,-Map -Xlinker"
7821 # Native flavour stuff
7822 aros_bochs_hack="0"
7823 aros_serial_debug="0"
7825 # Palm native flavour stuff
7826 aros_palm_debug_hack="0"
7828 # Unix flavour stuff
7829 aros_nesting_supervisor="0"
7831 # Collect-aros stuff: "-ius" to ignore undefined symbols
7832 ignore_undefined_symbols=""
7834 #-----------------------------------------------------------------------------
7837 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7838 # it switched on by default, and we use the host compiler, so it compiles AROS
7839 # code with this enabled resulting in link failures as we don't have support
7840 # for it.
7842 # We use two methods to disable it. For the host compiler (used to compile
7843 # some hosted modules), we test to see if the compiler supports stack
7844 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7845 # work on all platforms.
7847 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7848 # (this is done unconditionally, as it should have no effect on compilers
7849 # without the stack protection feature). This may be specific to the way that
7850 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7851 # strong enough to disable it in a generic way though, so we'll live with it
7852 # until another vendor ships GCC with it enabled in a different way, and deal
7853 # with it then.
7856 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7857 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7858 save_cflags="$CFLAGS"
7859 CFLAGS="$CFLAGS -fno-stack-protector"
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7868 main ()
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (ac_try="$ac_compile"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest.$ac_objext; then
7892 use_no_stack_protector="yes"
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 use_no_stack_protector="no"
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7902 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7903 if test "x-$use_no_stack_protector" = "x-yes" ; then
7904 aros_config_cflags="$aros_config_cflags -fno-stack-protector"
7906 CFLAGS="$save_cflags"
7908 #-----------------------------------------------------------------------------
7910 { echo "$as_me:$LINENO: checking for type of build" >&5
7911 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7912 # Check whether --enable-build_type was given.
7913 if test "${enable_build_type+set}" = set; then
7914 enableval=$enable_build_type; build_type=$enableval
7915 else
7916 build_type="personal"
7920 if test "$build_type" = "nightly"; then
7921 build_type_string="NIGHTLY"
7922 elif test "$build_type" = "snapshot"; then
7923 build_type_string="SNAPSHOT"
7924 elif test "$build_type" = "milestone"; then
7925 build_type_string="MILESTONE"
7926 elif test "$build_type" = "release"; then
7927 build_type_string="RELEASE"
7928 else
7929 build_type_string="PERSONAL"
7930 build_type="personal"
7933 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7935 { echo "$as_me:$LINENO: result: $build_type" >&5
7936 echo "${ECHO_T}$build_type" >&6; }
7938 #-----------------------------------------------------------------------------
7939 all_debug_types="messages stack mungwall modules symbols"
7941 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7942 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7943 # Check whether --enable-debug was given.
7944 if test "${enable_debug+set}" = set; then
7945 enableval=$enable_debug; debug="$enableval"
7946 else
7947 debug=""
7951 if test "$debug" = "" -o "$debug" = "no"; then
7952 debug="none"
7953 elif test "$debug" = "yes"; then
7954 debug="all"
7957 if test "$debug" = "all" ; then
7958 debug=$all_debug_types
7959 for d in $all_debug_types; do
7960 export aros_${d}_debug="1"
7961 done
7962 else
7963 for d in $all_debug_types; do
7964 export aros_${d}_debug="0"
7965 done
7968 if test "$debug" != "none"; then
7969 debug=`echo $debug | sed s/,/\ /g`
7970 for d in $debug; do
7971 found="0"
7972 for d2 in $all_debug_types; do
7973 if test "$d2" = "$d"; then
7974 found="1"
7975 break
7977 done
7978 if test "$found" = "0"; then
7979 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7980 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7981 { (exit 1); exit 1; }; }
7983 export aros_${d}_debug="1"
7984 done
7985 aros_debug="yes"
7987 { echo "$as_me:$LINENO: result: $debug" >&5
7988 echo "${ECHO_T}$debug" >&6; }
7990 if test "$aros_messages_debug" = "1"; then
7991 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7992 else
7993 aros_messages_debug=""
7995 if test "$aros_symbols_debug" = "1"; then
7996 aros_symbols_debug="-g"
7997 else
7998 aros_symbols_debug=""
8001 # These are the flags to pass when compiling debugged programs
8002 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8003 aros_debug_aflags=""
8004 aros_debug_ldflags="$aros_symbols_debug"
8006 #-----------------------------------------------------------------------------
8007 # Checking for distcc and ccache.
8009 # Always apply the transforms in this particular order. Basically you should
8010 # always run 'ccache distcc compiler' in that order for the best performance.
8012 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8013 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8014 # Check whether --enable-distcc was given.
8015 if test "${enable_distcc+set}" = set; then
8016 enableval=$enable_distcc; distcc="$enableval"
8017 else
8018 distcc="no"
8021 if test "$distcc" != "" -a "$distcc" != "no"; then
8022 # AC_CHECK_PROG will print out the result in this case
8023 # Extract the first word of "distcc", so it can be a program name with args.
8024 set dummy distcc; ac_word=$2
8025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8027 if test "${ac_cv_path_DISTCC+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 case $DISTCC in
8031 [\\/]* | ?:[\\/]*)
8032 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8046 done
8047 done
8048 IFS=$as_save_IFS
8050 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8052 esac
8054 DISTCC=$ac_cv_path_DISTCC
8055 if test -n "$DISTCC"; then
8056 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8057 echo "${ECHO_T}$DISTCC" >&6; }
8058 else
8059 { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8064 else
8065 { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8069 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8070 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8071 # Check whether --enable-ccache was given.
8072 if test "${enable_ccache+set}" = set; then
8073 enableval=$enable_ccache; ccache="$enableval"
8074 else
8075 ccache="no"
8078 if test "$ccache" != "" -a "$ccache" != "no"; then
8079 # AC_CHECK_PROG will print out the result in this case
8080 # Extract the first word of "ccache", so it can be a program name with args.
8081 set dummy ccache; ac_word=$2
8082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084 if test "${ac_cv_prog_CCACHE+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087 if test -n "$CCACHE"; then
8088 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_prog_CCACHE="ccache"
8098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8101 done
8102 done
8103 IFS=$as_save_IFS
8107 CCACHE=$ac_cv_prog_CCACHE
8108 if test -n "$CCACHE"; then
8109 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8110 echo "${ECHO_T}$CCACHE" >&6; }
8111 else
8112 { echo "$as_me:$LINENO: result: no" >&5
8113 echo "${ECHO_T}no" >&6; }
8117 else
8118 { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8122 #-----------------------------------------------------------------------------
8123 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8124 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8126 # Check whether --with-optimization was given.
8127 if test "${with_optimization+set}" = set; then
8128 withval=$with_optimization; optimization="$withval"
8129 else
8130 optimization="unknown"
8133 if test "$optimization" = "unknown"; then
8134 if test "$debug" != "none"; then
8135 optimization="-O0"
8136 else
8137 optimization="-O2"
8140 aros_config_cflags="$aros_config_cflags $optimization"
8141 { echo "$as_me:$LINENO: result: $optimization" >&5
8142 echo "${ECHO_T}$optimization" >&6; }
8144 #-----------------------------------------------------------------------------
8145 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8146 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8147 # Check whether --enable-target_variant was given.
8148 if test "${enable_target_variant+set}" = set; then
8149 enableval=$enable_target_variant; target_variant=$enableval
8150 else
8151 target_variant="none"
8154 if test "$target_variant" = "none"; then
8155 aros_target_variant=""
8156 aros_target_suffix=""
8157 else
8158 aros_target_variant="$target_variant"
8159 aros_target_suffix="-$target_variant"
8161 { echo "$as_me:$LINENO: result: $enableval" >&5
8162 echo "${ECHO_T}$enableval" >&6; }
8164 #-----------------------------------------------------------------------------
8165 # This is the target configuration switch.
8166 case "$target_os" in
8167 linux*)
8168 aros_target_arch="linux"
8169 case "$target_cpu" in
8170 *m68k*)
8171 aros_target_cpu="m68k"
8172 aros_object_format="m68kelf"
8173 aros_flavour="emulcompat"
8174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8175 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8176 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8177 gcc_target_cpu="mc68000"
8179 *i?86*)
8180 aros_target_cpu="i386"
8181 aros_object_format="elf_i386"
8182 aros_flavour="emulation"
8183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8184 aros_default_wbdepth=8
8185 gcc_target_cpu="i386"
8187 *x86_64*)
8188 aros_target_cpu="x86_64"
8189 aros_object_format="elf_x86_64"
8190 aros_flavour="emulation"
8191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8192 aros_default_wbdepth=8
8193 gcc_target_cpu="x86_64"
8195 *powerpc*)
8196 aros_target_cpu="ppc"
8197 aros_object_format="elf32ppc"
8198 aros_flavour="emulation"
8199 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8200 aros_default_wbdepth=8
8201 gcc_target_cpu="ppc"
8204 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8205 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8206 { (exit 1); exit 1; }; }
8208 esac
8212 aros_target_arch="pc"
8213 aros_shared_default="no"
8214 case "$target_cpu" in
8215 *i?86*)
8216 aros_target_cpu="i386"
8219 if test "$aros_object_format" = "" ; then
8220 aros_object_format="elf_i386"
8222 aros_flavour="standalone"
8223 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8224 aros_kernel_ldflags=""
8225 aros_default_wbwidth=640
8226 aros_default_wbheight=480
8227 gcc_target_cpu="i386"
8229 *x86_64*)
8230 aros_target_cpu="x86_64"
8231 if test "$aros_object_format" = "" ; then
8232 aros_object_format="elf_x86_64"
8234 aros_flavour="standalone"
8235 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8236 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8237 aros_kernel_ldflags=""
8238 aros_default_wbwidth=640
8239 aros_default_wbheight=480
8240 gcc_target_cpu="x86_64"
8243 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8244 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8245 { (exit 1); exit 1; }; }
8247 esac
8250 prep)
8251 aros_target_arch="prep"
8252 aros_shared_default="no"
8253 aros_target_cpu="ppc"
8254 aros_object_format="elf32ppc"
8255 aros_flavour="ppcnative"
8256 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8257 aros_kernel_ldflags=""
8258 aros_default_wbwidth=640
8259 aros_default_wbheight=480
8260 gcc_target_cpu="ppc"
8261 case "$target_cpu" in
8262 *cross*)
8263 aros_target_cc="ppc-linux-gcc -pipe"
8264 aros_target_ld="ppc-linux-ld"
8265 aros_target_as="ppc-linux-as"
8266 aros_target_ar="ppc-linux-ar"
8267 aros_target_ranlib="ppc-linux-ranlib"
8268 aros_target_nm="ppc-linux-nm"
8269 aros_target_strip="ppc-linux-strip"
8270 aros_target_objcopy="ppc-linux-objcopy"
8271 aros_target_objdump="ppc-linux-objdump"
8272 aros_shared_ld="ppc-linux-ld"
8273 aros_kernel_ld="ppc-linux-ld"
8277 esac
8280 freebsd*)
8281 aros_target_arch="freebsd"
8282 aros_target_cpu="i386"
8283 aros_flavour="emulation"
8284 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8285 gcc_target_cpu="i386"
8287 aros_target_strip_flags="-x"
8290 darwin*)
8291 aros_target_arch="darwin"
8292 aros_target_cpu="i386"
8293 aros_flavour="emulation"
8294 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8295 gcc_target_cpu="i386"
8297 aros_target_strip_flags="-x"
8300 netbsd*)
8301 aros_target_arch="netbsd"
8302 case "$target_cpu" in
8303 *m68k*)
8304 aros_target_cpu="m68k"
8305 aros_object_format="m68kelf"
8306 aros_flavour="emulcompat"
8307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8308 gcc_target_cpu="mc68000"
8310 *i?86*)
8311 aros_target_cpu="i386"
8312 aros_object_format="elf_i386"
8313 aros_flavour="emulation"
8314 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8315 aros_default_wbdepth=8
8316 gcc_target_cpu="i386"
8319 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8320 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8321 { (exit 1); exit 1; }; }
8323 esac
8324 aros_target_genmap="-Wl,-M -Xlinker >"
8325 aros_flavour="emulation"
8326 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8329 openbsd*)
8330 aros_target_arch="openbsd"
8331 case "$target_cpu" in
8332 *i?86*)
8333 aros_target_cpu="i386"
8334 aros_object_format="elf_i386"
8335 aros_flavour="emulation"
8336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8337 gcc_target_cpu="i386"
8340 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8341 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8342 { (exit 1); exit 1; }; }
8344 esac
8345 aros_target_genmap="-Wl,-M -Xlinker >"
8346 aros_target_nm_flags="-u"
8347 aros_flavour="emulation"
8350 solaris*)
8351 aros_target_arch="solaris"
8352 case "$target_cpu" in
8353 *sparc*)
8354 aros_target_cpu="sparc"
8355 aros_object_format="elf_sparc"
8356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8357 gcc_target_cpu="sparc"
8360 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8361 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8362 { (exit 1); exit 1; }; }
8364 esac
8365 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8366 aros_flavour="emulation"
8369 morphos*)
8370 aros_target_arch="morphos"
8371 aros_shared_default="no"
8372 aros_target_cpu="ppc"
8373 aros_object_format="elf_ppc"
8374 aros_flavour="nativecompat"
8375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8376 gcc_target_cpu="ppc"
8379 amiga*)
8380 aros_target_arch="amiga"
8381 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8382 aros_shared_default="no"
8384 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8386 case "$target_cpu" in
8387 *m68k*)
8388 aros_target_cpu="m68k"
8389 aros_object_format="m68kelf"
8390 aros_flavour="nativecompat"
8391 gcc_target_cpu="mc68000"
8393 *ppc*)
8394 aros_cpu="ppc"
8395 aros_flavour="native"
8396 gcc_target_cpu="ppc"
8399 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8400 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8401 { (exit 1); exit 1; }; }
8403 esac
8406 cygwin*)
8407 aros_target_arch="cygwin"
8408 aros_shared_default="no"
8409 case "$target_cpu" in
8410 *i?86*)
8411 aros_target_cpu="i386"
8412 aros_object_format="elf_i386"
8413 aros_flavour="emulation"
8414 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8415 aros_shared_cflags=""
8416 aros_default_wbdepth=8
8417 gcc_target_cpu="i386"
8420 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8421 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8422 { (exit 1); exit 1; }; }
8424 esac
8426 pp*)
8427 aros_target_arch="pp"
8428 aros_shared_default="no"
8429 case "$target_cpu" in
8430 *m68k*)
8431 aros_target_cpu="m68k"
8432 aros_object_format="m68kelf"
8433 aros_flavour="palmnative"
8434 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8435 aros_kernel_ldflags=""
8436 aros_default_wbwidth=160
8437 aros_default_wbheight=160
8438 aros_default_wbdepth=1
8439 aros_target_cc="m68k-elf-gcc -pipe"
8440 aros_target_ld="$(which m68k-elf-ld)"
8441 aros_target_as="m68k-elf-gcc -pipe"
8442 aros_shared_ld="m68k-elf-gcc"
8443 aros_kernel_ld="m68k-elf-gcc"
8444 aros_target_ar="m68k-elf-ar"
8445 aros_target_ar_flags="cru"
8446 aros_target_ranlib="m68k-elf-ranlib"
8447 aros_target_nm="m68k-elf-nm"
8448 aros_target_objcopy="m68k-elf-objcopy"
8449 aros_target_objdump="m68k-elf-objdump"
8450 aros_compiler_libs="-lgcc1"
8451 aros_shared_default=no
8452 aros_shared_cflags="-fpic"
8453 aros_shared_aflags=""
8454 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8455 aros_kernel_ldflags="-Wl,-rpath,./lib"
8456 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8457 aros_debug_aflags=""
8458 aros_debug_ldflags="$aros_symbols_debug"
8459 aros_mungwall_debug="0"
8460 aros_modules_debug="0"
8461 gcc_target_cpu="mc68000"
8462 ignore_undefined_symbols="-ius"
8465 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8466 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8467 { (exit 1); exit 1; }; }
8469 esac
8472 mac*)
8473 aros_target_arch="mac"
8474 aros_shared_default="no"
8475 case "$target_cpu" in
8476 *m68k*)
8477 aros_target_cpu="m68k"
8478 aros_object_format="m68kelf"
8479 aros_flavour="mac68knative"
8480 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8481 aros_default_wbwidth=512
8482 aros_default_wbheight=384
8483 aros_default_wbdepth=8
8484 aros_target_cc="m68k-elf-gcc -pipe"
8485 aros_target_ld="$(which m68k-elf-ld)"
8486 aros_target_as="m68k-elf-gcc -pipe"
8487 aros_shared_ld="m68k-elf-gcc"
8488 aros_kernel_ld="m68k-elf-gcc"
8489 aros_target_ar="m68k-elf-ar"
8490 aros_target_ar_flags="cru"
8491 aros_target_ranlib="m68k-elf-ranlib"
8492 aros_target_nm="m68k-elf-nm"
8493 aros_target_objcopy="m68k-elf-objcopy"
8494 aros_target_objdump="m68k-elf-objdump"
8495 aros_compiler_libs="-lgcc1"
8496 aros_shared_default=no
8497 aros_shared_cflags="-fpic"
8498 aros_shared_aflags=""
8499 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8500 aros_kernel_ldflags="-Wl,-rpath,./lib"
8501 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8502 aros_debug_aflags=""
8503 aros_debug_ldflags="$aros_symbols_debug"
8504 aros_mungwall_debug="0"
8505 aros_modules_debug="0"
8506 gcc_target_cpu="mc68000"
8507 ignore_undefined_symbols="-ius"
8510 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8511 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8512 { (exit 1); exit 1; }; }
8514 esac
8518 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8519 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8520 { (exit 1); exit 1; }; }
8522 esac
8525 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8526 # for target code)
8527 cross_compiling=no
8528 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8529 cross_compiling=yes
8531 if test "$aros_host_arch" == "darwin" ; then
8532 cross_compiling=yes
8535 # Set prefix for target compiler etc. if we're cross-compiling
8536 # (should possibly be earlier but needs to be after AC_PROG_CC)
8537 if test "$cross_compiling" = "yes" ; then
8538 target_tool_prefix=${target_cpu}-elf-
8539 CC=${target_tool_prefix}gcc
8542 # Find all the tools we need to compile. This could be cross-compiling
8543 # though! If that is the case we use the GNU form of the target and
8544 # simply add this to the front of the binary name. This is rather simple,
8545 # but it should work under most circumstances.
8547 # The default tools are to use the same as the host, but only if the
8548 # host and target CPU are the same. With GCC this is normally enough.
8551 aros_cc_pre=""
8552 aros_shared_ld="$aros_host_ld"
8554 aros_target_mkdep="$aros_host_mkdep"
8555 aros_target_incl_def="$aros_host_incl"
8557 # Extract the first word of "$CC", so it can be a program name with args.
8558 set dummy $CC; ac_word=$2
8559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8561 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564 case $aros_kernel_cc in
8565 [\\/]* | ?:[\\/]*)
8566 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8580 done
8581 done
8582 IFS=$as_save_IFS
8585 esac
8587 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8588 if test -n "$aros_kernel_cc"; then
8589 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8590 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8591 else
8592 { echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6; }
8598 # The default tools executables to be linked to.
8600 if test "$cross_compiling" = "yes" ; then
8601 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8602 set dummy ${target_tool_prefix}as; ac_word=$2
8603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8605 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608 case $aros_target_as_ln in
8609 [\\/]* | ?:[\\/]*)
8610 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8620 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8624 done
8625 done
8626 IFS=$as_save_IFS
8629 esac
8631 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8632 if test -n "$aros_target_as_ln"; then
8633 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8634 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8635 else
8636 { echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6; }
8641 else
8642 if test "$GCC" = "yes"; then
8643 aros_gcc_as=`$CC -print-prog-name=as`
8644 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8645 set dummy `basename $aros_gcc_as`; ac_word=$2
8646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8648 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 case $aros_target_as_ln in
8652 [\\/]* | ?:[\\/]*)
8653 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in `dirname $aros_gcc_as`
8659 IFS=$as_save_IFS
8660 test -z "$as_dir" && as_dir=.
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8663 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 break 2
8667 done
8668 done
8669 IFS=$as_save_IFS
8672 esac
8674 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8675 if test -n "$aros_target_as_ln"; then
8676 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8677 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8678 else
8679 { echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6; }
8685 if test "$aros_target_as_ln" = ""; then
8686 # Extract the first word of "as", so it can be a program name with args.
8687 set dummy as; ac_word=$2
8688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8690 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693 case $aros_target_as_ln in
8694 [\\/]* | ?:[\\/]*)
8695 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8709 done
8710 done
8711 IFS=$as_save_IFS
8714 esac
8716 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8717 if test -n "$aros_target_as_ln"; then
8718 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8719 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8720 else
8721 { echo "$as_me:$LINENO: result: no" >&5
8722 echo "${ECHO_T}no" >&6; }
8729 if test "$aros_target_as_ln" = ""; then
8730 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8731 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8732 { (exit 1); exit 1; }; }
8735 if test "$cross_compiling" = "yes" ; then
8736 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8737 set dummy ${target_tool_prefix}ld; ac_word=$2
8738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8740 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 case $aros_kernel_ld in
8744 [\\/]* | ?:[\\/]*)
8745 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 break 2
8759 done
8760 done
8761 IFS=$as_save_IFS
8764 esac
8766 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8767 if test -n "$aros_kernel_ld"; then
8768 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8769 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8770 else
8771 { echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6; }
8776 else
8777 if test "$GCC" = "yes"; then
8778 aros_gcc_ld=`$CC -print-prog-name=ld`
8779 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8780 set dummy `basename $aros_gcc_ld`; ac_word=$2
8781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8783 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 case $aros_kernel_ld in
8787 [\\/]* | ?:[\\/]*)
8788 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in `dirname $aros_gcc_ld`
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8798 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 break 2
8802 done
8803 done
8804 IFS=$as_save_IFS
8807 esac
8809 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8810 if test -n "$aros_kernel_ld"; then
8811 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8812 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8813 else
8814 { echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6; }
8820 if test "$aros_kernel_ld" = ""; then
8821 # Extract the first word of "ld", so it can be a program name with args.
8822 set dummy ld; ac_word=$2
8823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8825 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828 case $aros_kernel_ld in
8829 [\\/]* | ?:[\\/]*)
8830 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8844 done
8845 done
8846 IFS=$as_save_IFS
8849 esac
8851 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8852 if test -n "$aros_kernel_ld"; then
8853 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8854 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8855 else
8856 { echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6; }
8864 if test "$aros_kernel_ld" = ""; then
8865 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8866 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8867 { (exit 1); exit 1; }; }
8870 if test "$cross_compiling" = "yes" ; then
8871 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8872 set dummy ${target_tool_prefix}ar; ac_word=$2
8873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8875 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 case $aros_target_ar_ln in
8879 [\\/]* | ?:[\\/]*)
8880 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8890 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8894 done
8895 done
8896 IFS=$as_save_IFS
8899 esac
8901 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8902 if test -n "$aros_target_ar_ln"; then
8903 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8904 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8905 else
8906 { echo "$as_me:$LINENO: result: no" >&5
8907 echo "${ECHO_T}no" >&6; }
8911 else
8912 if test "$GCC" = "yes"; then
8913 aros_gcc_ar=`$CC -print-prog-name=ar`
8914 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8915 set dummy `basename $aros_gcc_ar`; ac_word=$2
8916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8918 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 case $aros_target_ar_ln in
8922 [\\/]* | ?:[\\/]*)
8923 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in `dirname $aros_gcc_ar`
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8939 IFS=$as_save_IFS
8942 esac
8944 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8945 if test -n "$aros_target_ar_ln"; then
8946 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8947 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8948 else
8949 { echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6; }
8955 if test "$aros_target_ar_ln" = ""; then
8956 # Extract the first word of "ar", so it can be a program name with args.
8957 set dummy ar; ac_word=$2
8958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8960 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963 case $aros_target_ar_ln in
8964 [\\/]* | ?:[\\/]*)
8965 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8979 done
8980 done
8981 IFS=$as_save_IFS
8984 esac
8986 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8987 if test -n "$aros_target_ar_ln"; then
8988 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8989 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8990 else
8991 { echo "$as_me:$LINENO: result: no" >&5
8992 echo "${ECHO_T}no" >&6; }
8999 if test "$aros_target_ar_ln" = ""; then
9000 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9001 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9002 { (exit 1); exit 1; }; }
9005 if test "$cross_compiling" = "yes" ; then
9006 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9007 set dummy ${target_tool_prefix}nm; ac_word=$2
9008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9010 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 case $aros_target_nm_ln in
9014 [\\/]* | ?:[\\/]*)
9015 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9029 done
9030 done
9031 IFS=$as_save_IFS
9034 esac
9036 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9037 if test -n "$aros_target_nm_ln"; then
9038 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9039 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9040 else
9041 { echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6; }
9046 else
9047 if test "$GCC" = "yes"; then
9048 aros_gcc_nm=`$CC -print-prog-name=nm`
9049 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9050 set dummy `basename $aros_gcc_nm`; ac_word=$2
9051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9053 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 case $aros_target_nm_ln in
9057 [\\/]* | ?:[\\/]*)
9058 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 for as_dir in `dirname $aros_gcc_nm`
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9068 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9072 done
9073 done
9074 IFS=$as_save_IFS
9077 esac
9079 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9080 if test -n "$aros_target_nm_ln"; then
9081 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9082 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9083 else
9084 { echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6; }
9090 if test "$aros_target_nm_ln" = ""; then
9091 # Extract the first word of "nm", so it can be a program name with args.
9092 set dummy nm; ac_word=$2
9093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9095 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 case $aros_target_nm_ln in
9099 [\\/]* | ?:[\\/]*)
9100 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 for as_dir in $PATH
9106 IFS=$as_save_IFS
9107 test -z "$as_dir" && as_dir=.
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9110 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9112 break 2
9114 done
9115 done
9116 IFS=$as_save_IFS
9119 esac
9121 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9122 if test -n "$aros_target_nm_ln"; then
9123 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9124 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9125 else
9126 { echo "$as_me:$LINENO: result: no" >&5
9127 echo "${ECHO_T}no" >&6; }
9134 if test "$aros_target_nm_ln" = ""; then
9135 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9136 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9137 { (exit 1); exit 1; }; }
9140 if test "$cross_compiling" = "yes" ; then
9141 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9142 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9145 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148 case $aros_target_objcopy_ln in
9149 [\\/]* | ?:[\\/]*)
9150 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9164 done
9165 done
9166 IFS=$as_save_IFS
9169 esac
9171 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9172 if test -n "$aros_target_objcopy_ln"; then
9173 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9174 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9175 else
9176 { echo "$as_me:$LINENO: result: no" >&5
9177 echo "${ECHO_T}no" >&6; }
9181 else
9182 if test "$GCC" = "yes"; then
9183 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9184 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9185 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9188 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191 case $aros_target_objcopy_ln in
9192 [\\/]* | ?:[\\/]*)
9193 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in `dirname $aros_gcc_objcopy`
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9207 done
9208 done
9209 IFS=$as_save_IFS
9212 esac
9214 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9215 if test -n "$aros_target_objcopy_ln"; then
9216 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9217 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9218 else
9219 { echo "$as_me:$LINENO: result: no" >&5
9220 echo "${ECHO_T}no" >&6; }
9225 if test "$aros_target_objcopy_ln" = ""; then
9226 # Extract the first word of "objcopy", so it can be a program name with args.
9227 set dummy objcopy; ac_word=$2
9228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9230 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 case $aros_target_objcopy_ln in
9234 [\\/]* | ?:[\\/]*)
9235 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239 for as_dir in $PATH
9241 IFS=$as_save_IFS
9242 test -z "$as_dir" && as_dir=.
9243 for ac_exec_ext in '' $ac_executable_extensions; do
9244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9245 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 break 2
9249 done
9250 done
9251 IFS=$as_save_IFS
9254 esac
9256 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9257 if test -n "$aros_target_objcopy_ln"; then
9258 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9259 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9260 else
9261 { echo "$as_me:$LINENO: result: no" >&5
9262 echo "${ECHO_T}no" >&6; }
9269 if test "$aros_target_objcopy_ln" = ""; then
9270 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9271 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9272 { (exit 1); exit 1; }; }
9275 if test "$cross_compiling" = "yes" ; then
9276 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9277 set dummy ${target_tool_prefix}objdump; ac_word=$2
9278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9280 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283 case $aros_target_objdump_ln in
9284 [\\/]* | ?:[\\/]*)
9285 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9299 done
9300 done
9301 IFS=$as_save_IFS
9304 esac
9306 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9307 if test -n "$aros_target_objdump_ln"; then
9308 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9309 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9310 else
9311 { echo "$as_me:$LINENO: result: no" >&5
9312 echo "${ECHO_T}no" >&6; }
9316 else
9317 if test "$GCC" = "yes"; then
9318 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9319 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9320 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9323 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326 case $aros_target_objdump_ln in
9327 [\\/]* | ?:[\\/]*)
9328 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in `dirname $aros_gcc_objdump`
9334 IFS=$as_save_IFS
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9338 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 break 2
9342 done
9343 done
9344 IFS=$as_save_IFS
9347 esac
9349 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9350 if test -n "$aros_target_objdump_ln"; then
9351 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9352 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9353 else
9354 { echo "$as_me:$LINENO: result: no" >&5
9355 echo "${ECHO_T}no" >&6; }
9360 if test "$aros_target_objdump_ln" = ""; then
9361 # Extract the first word of "objdump", so it can be a program name with args.
9362 set dummy objdump; ac_word=$2
9363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9365 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368 case $aros_target_objdump_ln in
9369 [\\/]* | ?:[\\/]*)
9370 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9384 done
9385 done
9386 IFS=$as_save_IFS
9389 esac
9391 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9392 if test -n "$aros_target_objdump_ln"; then
9393 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9394 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9395 else
9396 { echo "$as_me:$LINENO: result: no" >&5
9397 echo "${ECHO_T}no" >&6; }
9404 if test "$aros_target_objdump_ln" = ""; then
9405 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9406 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9407 { (exit 1); exit 1; }; }
9410 if test "$cross_compiling" = "yes" ; then
9411 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9412 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9415 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418 case $aros_target_ranlib_ln in
9419 [\\/]* | ?:[\\/]*)
9420 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9434 done
9435 done
9436 IFS=$as_save_IFS
9439 esac
9441 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9442 if test -n "$aros_target_ranlib_ln"; then
9443 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9444 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9445 else
9446 { echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6; }
9451 else
9452 if test "$GCC" = "yes"; then
9453 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9454 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9455 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9458 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 case $aros_target_ranlib_ln in
9462 [\\/]* | ?:[\\/]*)
9463 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in `dirname $aros_gcc_ranlib`
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9477 done
9478 done
9479 IFS=$as_save_IFS
9482 esac
9484 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9485 if test -n "$aros_target_ranlib_ln"; then
9486 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9487 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9488 else
9489 { echo "$as_me:$LINENO: result: no" >&5
9490 echo "${ECHO_T}no" >&6; }
9495 if test "$aros_target_ranlib_ln" = ""; then
9496 # Extract the first word of "ranlib", so it can be a program name with args.
9497 set dummy ranlib; ac_word=$2
9498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9500 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 case $aros_target_ranlib_ln in
9504 [\\/]* | ?:[\\/]*)
9505 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 for as_dir in $PATH
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9515 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 break 2
9519 done
9520 done
9521 IFS=$as_save_IFS
9524 esac
9526 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9527 if test -n "$aros_target_ranlib_ln"; then
9528 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9529 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9530 else
9531 { echo "$as_me:$LINENO: result: no" >&5
9532 echo "${ECHO_T}no" >&6; }
9539 if test "$aros_target_ranlib_ln" = ""; then
9540 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9541 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9542 { (exit 1); exit 1; }; }
9545 if test "$cross_compiling" = "yes" ; then
9546 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9547 set dummy ${target_tool_prefix}strip; ac_word=$2
9548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9550 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 case $aros_target_strip_ln in
9554 [\\/]* | ?:[\\/]*)
9555 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 break 2
9569 done
9570 done
9571 IFS=$as_save_IFS
9574 esac
9576 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9577 if test -n "$aros_target_strip_ln"; then
9578 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9579 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9580 else
9581 { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9586 else
9587 if test "$GCC" = "yes"; then
9588 aros_gcc_strip=`$CC -print-prog-name=strip`
9589 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9590 set dummy `basename $aros_gcc_strip`; ac_word=$2
9591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9593 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 case $aros_target_strip_ln in
9597 [\\/]* | ?:[\\/]*)
9598 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in `dirname $aros_gcc_strip`
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9612 done
9613 done
9614 IFS=$as_save_IFS
9617 esac
9619 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9620 if test -n "$aros_target_strip_ln"; then
9621 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9622 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9623 else
9624 { echo "$as_me:$LINENO: result: no" >&5
9625 echo "${ECHO_T}no" >&6; }
9630 if test "$aros_target_strip_ln" = ""; then
9631 # Extract the first word of "strip", so it can be a program name with args.
9632 set dummy strip; ac_word=$2
9633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9635 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 case $aros_target_strip_ln in
9639 [\\/]* | ?:[\\/]*)
9640 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9656 IFS=$as_save_IFS
9659 esac
9661 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9662 if test -n "$aros_target_strip_ln"; then
9663 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9664 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9665 else
9666 { echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6; }
9674 if test "$aros_target_strip_ln" = ""; then
9675 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9676 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9677 { (exit 1); exit 1; }; }
9680 if test "$GCC" = "yes"; then
9681 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9684 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9685 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9686 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9687 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9688 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9689 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9690 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9692 # aros_cc_pre is a variable that is added to the front of the compiler name
9693 # in the generated aros-gcc shell script. We need this to enable the cache
9694 # to work across cleaned builds. Also, support DISTCC using the correct
9695 # environment variable.
9698 if test "x${DISTCC}" != "x" ; then
9699 if test "x${CCACHE}" != "x" ; then
9700 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9701 else
9702 aros_cc_pre="${DISTCC} "
9704 else
9705 if test "x${CCACHE}" != "x" ; then
9706 aros_cc_pre="${CCACHE} "
9710 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9712 aros_target_nostdinc_cflags=-nostdinc
9714 aros_target_nostartup_ldflags=-nostartfiles
9716 aros_target_nix_ldflags=-nix
9718 aros_target_detach_ldflags=-detach
9720 aros_target_nostdlib_ldflags=-nostdlib
9723 # Target tools
9724 aros_target_cc="${prefix}-gcc"
9725 aros_target_as="${prefix}-as"
9726 aros_target_ld="${prefix}-ld"
9727 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9728 aros_target_objcopy=${prefix}-objcopy
9729 aros_target_objdump=${prefix}-objdump
9730 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9731 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9732 aros_kernel_nm="${prefix}-nm"
9733 aros_target_strip=${prefix}-strip
9736 # Find the system include path. We can suggest that an alternative is
9737 # used if we don't get it correct. The default is to use /usr/include.
9738 # Which is set in the aros_target_incl_def variable.
9740 # Check whether --enable-includes was given.
9741 if test "${enable_includes+set}" = set; then
9742 enableval=$enable_includes; aros_target_incl=$enable_includes
9743 else
9744 aros_target_incl=$aros_target_incl_def
9748 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9749 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
9750 if test "$aros_target_cc_includes" = "" ; then
9751 #try to guess where the directory is
9752 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9753 if ! test -d $aros_target_cc_includes; then
9754 #the directory doesn't exist, we need to do some more work
9755 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9757 #these are the headers we're looling for
9758 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9759 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9760 zutil.h"
9762 dirs=
9763 for h in $headers; do
9764 #which other headers each of the above headers needs?
9765 deps=$(echo "#include <$h>" | \
9766 $aros_host_cc -E -M - 2>/dev/null | \
9767 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9769 #copy all the needed headers to a directory beneath gendir
9770 for d in $deps; do
9771 h=$(basename $d)
9772 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9773 sed -n "s,^.*/include\(/.*\),\1,p")
9774 ! test -d $dir && mkdir -p $dir
9775 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9776 done
9777 done
9780 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9781 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
9783 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9784 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
9786 # Check whether --with-resolution was given.
9787 if test "${with_resolution+set}" = set; then
9788 withval=$with_resolution; resolution=$withval
9789 else
9790 resolution=none
9793 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9794 if test "$resolution" = "yes" ; then
9795 resolution="none"
9797 if test "$resolution" = "no" ; then
9798 resolution="none"
9800 if test "$resolution" != "none" ; then
9801 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9802 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9803 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9805 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9806 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9807 aros_cv_default_wbwidth=$aros_default_wbwidth
9808 aros_cv_default_wbheight=$aros_default_wbheight
9809 aros_cv_default_wbdepth=$aros_default_wbdepth
9811 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9812 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
9813 # Check whether --enable-bochs_hack was given.
9814 if test "${enable_bochs_hack+set}" = set; then
9815 enableval=$enable_bochs_hack; bochs_hack="yes"
9816 else
9817 bochs_hack="no"
9820 if test "$bochs_hack" = "yes" ; then
9821 aros_bochs_hack="1"
9823 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
9824 echo "${ECHO_T}$bochs_hack" >&6; }
9826 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9827 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
9829 # Check whether --with-serial-debug was given.
9830 if test "${with_serial_debug+set}" = set; then
9831 withval=$with_serial_debug; serial_debug=$withval
9832 else
9833 serial_debug=none
9836 if test "$serial_debug" = "yes" ; then
9837 serial_debug="2"
9839 if test "$serial_debug" = "no" ; then
9840 serial_debug="none"
9842 if test "$serial_debug" != "none" ; then
9843 aros_serial_debug=$serial_debug
9844 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9845 echo "${ECHO_T}on port $serial_debug" >&6; }
9846 else
9847 { echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6; }
9851 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9852 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
9853 # Check whether --enable-palm_debug_hack was given.
9854 if test "${enable_palm_debug_hack+set}" = set; then
9855 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9856 else
9857 palm_debug_hack="no"
9860 if test "$palm_debug_hack" = "yes" ; then
9861 aros_palm_debug_hack="1"
9863 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9864 echo "${ECHO_T}$palm_debug_hack" >&6; }
9867 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9868 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
9869 # Check whether --enable-nesting_supervisor was given.
9870 if test "${enable_nesting_supervisor+set}" = set; then
9871 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9872 else
9873 nesting_supervisor="no"
9876 if test "$nesting_supervisor" = "yes" ; then
9877 aros_nesting_supervisor="1"
9879 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9880 echo "${ECHO_T}$nesting_supervisor" >&6; }
9883 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9885 { echo "$as_me:$LINENO: checking for dlopen" >&5
9886 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9887 if test "${ac_cv_func_dlopen+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9898 #define dlopen innocuous_dlopen
9900 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char dlopen (); below.
9902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903 <limits.h> exists even on freestanding compilers. */
9905 #ifdef __STDC__
9906 # include <limits.h>
9907 #else
9908 # include <assert.h>
9909 #endif
9911 #undef dlopen
9913 /* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 char dlopen ();
9920 /* The GNU C library defines this for functions which it implements
9921 to always fail with ENOSYS. Some functions are actually named
9922 something starting with __ and the normal name is an alias. */
9923 #if defined __stub_dlopen || defined __stub___dlopen
9924 choke me
9925 #endif
9928 main ()
9930 return dlopen ();
9932 return 0;
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9937 case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_link") 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest$ac_exeext &&
9952 $as_test_x conftest$ac_exeext; then
9953 ac_cv_func_dlopen=yes
9954 else
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9958 ac_cv_func_dlopen=no
9961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9962 conftest$ac_exeext conftest.$ac_ext
9964 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9965 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9966 if test $ac_cv_func_dlopen = yes; then
9967 have_dl="yes"
9968 else
9969 have_dl="no"
9972 if test "x-$have_dl" = "x-no" ; then
9973 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 ac_check_lib_save_LIBS=$LIBS
9979 LIBS="-ldl $LIBS"
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
9990 #ifdef __cplusplus
9991 extern "C"
9992 #endif
9993 char dlopen ();
9995 main ()
9997 return dlopen ();
9999 return 0;
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest$ac_exeext &&
10019 $as_test_x conftest$ac_exeext; then
10020 ac_cv_lib_dl_dlopen=yes
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_lib_dl_dlopen=no
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10033 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10034 if test $ac_cv_lib_dl_dlopen = yes; then
10035 have_dl="yes"
10036 aros_host_ldflags="$aros_host_ldflags -ldl"
10037 else
10038 have_dl="no"
10042 if test "x-$have_dl" = "x-no" ; then
10043 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10044 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10045 { (exit 1); exit 1; }; }
10049 # Check whether --enable-x11_hidd was given.
10050 if test "${enable_x11_hidd+set}" = set; then
10051 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10052 else
10053 x11_hidd="auto"
10056 case "x-$x11_hidd" in
10057 x-yes|x-no|x-auto) ;;
10058 *) x11_hidd="auto" ;;
10059 esac
10061 if test "x-$x11_hidd" != "x-no" ; then
10063 { echo "$as_me:$LINENO: checking for X" >&5
10064 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10067 # Check whether --with-x was given.
10068 if test "${with_x+set}" = set; then
10069 withval=$with_x;
10072 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10073 if test "x$with_x" = xno; then
10074 # The user explicitly disabled X.
10075 have_x=disabled
10076 else
10077 case $x_includes,$x_libraries in #(
10078 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10079 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10080 { (exit 1); exit 1; }; };; #(
10081 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084 # One or both of the vars are not set, and there is no cached value.
10085 ac_x_includes=no ac_x_libraries=no
10086 rm -f -r conftest.dir
10087 if mkdir conftest.dir; then
10088 cd conftest.dir
10089 cat >Imakefile <<'_ACEOF'
10090 incroot:
10091 @echo incroot='${INCROOT}'
10092 usrlibdir:
10093 @echo usrlibdir='${USRLIBDIR}'
10094 libdir:
10095 @echo libdir='${LIBDIR}'
10096 _ACEOF
10097 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10098 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10099 for ac_var in incroot usrlibdir libdir; do
10100 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10101 done
10102 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10103 for ac_extension in a so sl; do
10104 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10105 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10106 ac_im_usrlibdir=$ac_im_libdir; break
10108 done
10109 # Screen out bogus values from the imake configuration. They are
10110 # bogus both because they are the default anyway, and because
10111 # using them would break gcc on systems where it needs fixed includes.
10112 case $ac_im_incroot in
10113 /usr/include) ac_x_includes= ;;
10114 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10115 esac
10116 case $ac_im_usrlibdir in
10117 /usr/lib | /lib) ;;
10118 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10119 esac
10121 cd ..
10122 rm -f -r conftest.dir
10125 # Standard set of common directories for X headers.
10126 # Check X11 before X11Rn because it is often a symlink to the current release.
10127 ac_x_header_dirs='
10128 /usr/X11/include
10129 /usr/X11R6/include
10130 /usr/X11R5/include
10131 /usr/X11R4/include
10133 /usr/include/X11
10134 /usr/include/X11R6
10135 /usr/include/X11R5
10136 /usr/include/X11R4
10138 /usr/local/X11/include
10139 /usr/local/X11R6/include
10140 /usr/local/X11R5/include
10141 /usr/local/X11R4/include
10143 /usr/local/include/X11
10144 /usr/local/include/X11R6
10145 /usr/local/include/X11R5
10146 /usr/local/include/X11R4
10148 /usr/X386/include
10149 /usr/x386/include
10150 /usr/XFree86/include/X11
10152 /usr/include
10153 /usr/local/include
10154 /usr/unsupported/include
10155 /usr/athena/include
10156 /usr/local/x11r5/include
10157 /usr/lpp/Xamples/include
10159 /usr/openwin/include
10160 /usr/openwin/share/include'
10162 if test "$ac_x_includes" = no; then
10163 # Guess where to find include files, by looking for Xlib.h.
10164 # First, try using that file with no special directory specified.
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 #include <X11/Xlib.h>
10172 _ACEOF
10173 if { (ac_try="$ac_cpp conftest.$ac_ext"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } >/dev/null && {
10186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 }; then
10189 # We can compile using X headers with no special include directory.
10190 ac_x_includes=
10191 else
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 for ac_dir in $ac_x_header_dirs; do
10196 if test -r "$ac_dir/X11/Xlib.h"; then
10197 ac_x_includes=$ac_dir
10198 break
10200 done
10203 rm -f conftest.err conftest.$ac_ext
10204 fi # $ac_x_includes = no
10206 if test "$ac_x_libraries" = no; then
10207 # Check for the libraries.
10208 # See if we find them without any special options.
10209 # Don't add to $LIBS permanently.
10210 ac_save_LIBS=$LIBS
10211 LIBS="-lX11 $LIBS"
10212 cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h. */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 #include <X11/Xlib.h>
10220 main ()
10222 XrmInitialize ()
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 LIBS=$ac_save_LIBS
10246 # We can link X programs with no special library path.
10247 ac_x_libraries=
10248 else
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 LIBS=$ac_save_LIBS
10253 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10255 # Don't even attempt the hair of trying to link an X program!
10256 for ac_extension in a so sl; do
10257 if test -r "$ac_dir/libX11.$ac_extension"; then
10258 ac_x_libraries=$ac_dir
10259 break 2
10261 done
10262 done
10265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10266 conftest$ac_exeext conftest.$ac_ext
10267 fi # $ac_x_libraries = no
10269 case $ac_x_includes,$ac_x_libraries in #(
10270 no,* | *,no | *\'*)
10271 # Didn't find X, or a directory has "'" in its name.
10272 ac_cv_have_x="have_x=no";; #(
10274 # Record where we found X for the cache.
10275 ac_cv_have_x="have_x=yes\
10276 ac_x_includes='$ac_x_includes'\
10277 ac_x_libraries='$ac_x_libraries'"
10278 esac
10280 ;; #(
10281 *) have_x=yes;;
10282 esac
10283 eval "$ac_cv_have_x"
10284 fi # $with_x != no
10286 if test "$have_x" != yes; then
10287 { echo "$as_me:$LINENO: result: $have_x" >&5
10288 echo "${ECHO_T}$have_x" >&6; }
10289 no_x=yes
10290 else
10291 # If each of the values was on the command line, it overrides each guess.
10292 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10293 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10294 # Update the cache value to reflect the command line values.
10295 ac_cv_have_x="have_x=yes\
10296 ac_x_includes='$x_includes'\
10297 ac_x_libraries='$x_libraries'"
10298 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10299 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10303 if test "x-$no_x" = "x-yes" ; then
10305 if test "x-$x11_hidd" != "x-auto" ; then
10306 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10307 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10308 { (exit 1); exit 1; }; }
10311 else
10312 x11_hidd_target=kernel-x11gfx
10315 # Check whether --enable-x11_shm was given.
10316 if test "${enable_x11_shm+set}" = set; then
10317 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10318 else
10319 x11_hidd_shm="auto"
10322 case "x-$x11_hidd_shm" in
10323 x-yes|x-no|x-auto) ;;
10324 *) x11_hidd_shm="auto" ;;
10325 esac
10327 have_xshm=no
10329 if test "x-$x11_hidd_shm" != "x-no" ; then
10332 for ac_header in sys/ipc.h
10334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 ac_res=`eval echo '${'$as_ac_Header'}'`
10342 { echo "$as_me:$LINENO: result: $ac_res" >&5
10343 echo "${ECHO_T}$ac_res" >&6; }
10344 else
10345 # Is the header compilable?
10346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10355 #include <$ac_header>
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_compile") 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest.$ac_objext; then
10374 ac_header_compiler=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_header_compiler=no
10382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10384 echo "${ECHO_T}$ac_header_compiler" >&6; }
10386 # Is the header present?
10387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <$ac_header>
10396 _ACEOF
10397 if { (ac_try="$ac_cpp conftest.$ac_ext"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } >/dev/null && {
10410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 }; then
10413 ac_header_preproc=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_header_preproc=no
10421 rm -f conftest.err conftest.$ac_ext
10422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10423 echo "${ECHO_T}$ac_header_preproc" >&6; }
10425 # So? What about this header?
10426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10427 yes:no: )
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10432 ac_header_preproc=yes
10434 no:yes:* )
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10449 esac
10450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 eval "$as_ac_Header=\$ac_header_preproc"
10457 ac_res=`eval echo '${'$as_ac_Header'}'`
10458 { echo "$as_me:$LINENO: result: $ac_res" >&5
10459 echo "${ECHO_T}$ac_res" >&6; }
10462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10463 cat >>confdefs.h <<_ACEOF
10464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10465 _ACEOF
10469 done
10472 for ac_header in sys/shm.h
10474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 ac_res=`eval echo '${'$as_ac_Header'}'`
10482 { echo "$as_me:$LINENO: result: $ac_res" >&5
10483 echo "${ECHO_T}$ac_res" >&6; }
10484 else
10485 # Is the header compilable?
10486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 $ac_includes_default
10495 #include <$ac_header>
10496 _ACEOF
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_compile") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest.$ac_objext; then
10514 ac_header_compiler=yes
10515 else
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 ac_header_compiler=no
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10524 echo "${ECHO_T}$ac_header_compiler" >&6; }
10526 # Is the header present?
10527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 #include <$ac_header>
10536 _ACEOF
10537 if { (ac_try="$ac_cpp conftest.$ac_ext"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } >/dev/null && {
10550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 }; then
10553 ac_header_preproc=yes
10554 else
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_header_preproc=no
10561 rm -f conftest.err conftest.$ac_ext
10562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10563 echo "${ECHO_T}$ac_header_preproc" >&6; }
10565 # So? What about this header?
10566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10567 yes:no: )
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10572 ac_header_preproc=yes
10574 no:yes:* )
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10589 esac
10590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 eval "$as_ac_Header=\$ac_header_preproc"
10597 ac_res=`eval echo '${'$as_ac_Header'}'`
10598 { echo "$as_me:$LINENO: result: $ac_res" >&5
10599 echo "${ECHO_T}$ac_res" >&6; }
10602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10603 cat >>confdefs.h <<_ACEOF
10604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10605 _ACEOF
10609 done
10612 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10614 save_libs="$LIBS"
10615 save_cflags="$CFLAGS"
10616 LIBS="$x_libraries"
10617 CFLAGS="$x_includes"
10618 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10619 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10620 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-lXext $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char XShmQueryExtension ();
10640 main ()
10642 return XShmQueryExtension ();
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (ac_try="$ac_link"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_link") 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest$ac_exeext &&
10664 $as_test_x conftest$ac_exeext; then
10665 ac_cv_lib_Xext_XShmQueryExtension=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_cv_lib_Xext_XShmQueryExtension=no
10673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10677 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10678 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10679 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10680 have_xshm=yes
10683 LIBS="$save_libs"
10684 CFLAGS="$save_cflags"
10688 if test "x-$have_xshm" = "x-yes" ; then
10689 DO_XSHM_SUPPORT="1"
10690 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10691 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
10692 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
10693 { (exit 1); exit 1; }; }
10694 else
10695 DO_XSHM_SUPPORT="0"
10699 # Check whether --enable-x11_vidmode was given.
10700 if test "${enable_x11_vidmode+set}" = set; then
10701 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10702 else
10703 x11_hidd_vidmode="auto"
10706 case "x-$x11_hidd_vidmode" in
10707 x-yes|x-no|x-auto) ;;
10708 *) x11_hidd_vidmode="auto" ;;
10709 esac
10711 have_vidmode=no
10713 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10715 save_libs="$LIBS"
10716 save_cflags="$CFLAGS"
10717 LIBS="$x_libraries"
10718 CFLAGS="$x_includes"
10719 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10720 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
10721 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-lXxf86vm $LIBS"
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10736 #ifdef __cplusplus
10737 extern "C"
10738 #endif
10739 char XF86VidModeQueryExtension ();
10741 main ()
10743 return XF86VidModeQueryExtension ();
10745 return 0;
10747 _ACEOF
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (ac_try="$ac_link"
10750 case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10753 esac
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext &&
10765 $as_test_x conftest$ac_exeext; then
10766 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10767 else
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10775 conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10778 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10779 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10780 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10781 have_vidmode=yes
10784 LIBS="$save_libs"
10785 CFLAGS="$save_cflags"
10788 if test "x-$have_vidmode" = "x-yes" ; then
10789 DO_VIDMODE_SUPPORT="1"
10790 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10791 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
10792 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
10793 { (exit 1); exit 1; }; }
10794 else
10795 DO_VIDMODE_SUPPORT="0"
10802 # Check whether --enable-sdl_hidd was given.
10803 if test "${enable_sdl_hidd+set}" = set; then
10804 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10805 else
10806 sdl_hidd="auto"
10809 case "x-$sdl_hidd" in
10810 x-yes|x-no|x-auto) ;;
10811 *) sdl_hidd="auto" ;;
10812 esac
10814 if test "x-$sdl_hidd" != "x-no" ; then
10817 # Check whether --with-sdl-prefix was given.
10818 if test "${with_sdl_prefix+set}" = set; then
10819 withval=$with_sdl_prefix; sdl_prefix="$withval"
10820 else
10821 sdl_prefix=""
10825 # Check whether --with-sdl-exec-prefix was given.
10826 if test "${with_sdl_exec_prefix+set}" = set; then
10827 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10828 else
10829 sdl_exec_prefix=""
10832 # Check whether --enable-sdltest was given.
10833 if test "${enable_sdltest+set}" = set; then
10834 enableval=$enable_sdltest;
10835 else
10836 enable_sdltest=yes
10840 if test x$sdl_exec_prefix != x ; then
10841 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10842 if test x${SDL_CONFIG+set} != xset ; then
10843 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10846 if test x$sdl_prefix != x ; then
10847 sdl_args="$sdl_args --prefix=$sdl_prefix"
10848 if test x${SDL_CONFIG+set} != xset ; then
10849 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10853 if test "x$prefix" != xNONE; then
10854 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10856 # Extract the first word of "sdl-config", so it can be a program name with args.
10857 set dummy sdl-config; ac_word=$2
10858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10860 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 case $SDL_CONFIG in
10864 [\\/]* | ?:[\\/]*)
10865 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10879 done
10880 done
10881 IFS=$as_save_IFS
10883 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10885 esac
10887 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10888 if test -n "$SDL_CONFIG"; then
10889 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
10890 echo "${ECHO_T}$SDL_CONFIG" >&6; }
10891 else
10892 { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10897 min_sdl_version=1.2.10
10898 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
10899 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
10900 no_sdl=""
10901 if test "$SDL_CONFIG" = "no" ; then
10902 no_sdl=yes
10903 else
10904 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10905 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10907 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10909 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10911 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10913 if test "x$enable_sdltest" = "xyes" ; then
10914 ac_save_CFLAGS="$CFLAGS"
10915 ac_save_CXXFLAGS="$CXXFLAGS"
10916 ac_save_LIBS="$LIBS"
10917 CFLAGS="$CFLAGS $SDL_CFLAGS"
10918 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10919 LIBS="$LIBS $SDL_LIBS"
10920 rm -f conf.sdltest
10921 if test "$cross_compiling" = yes; then
10922 echo $ac_n "cross compiling; assumed OK... $ac_c"
10923 else
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10931 #include <stdio.h>
10932 #include <stdlib.h>
10933 #include <string.h>
10934 #include "SDL.h"
10936 char*
10937 my_strdup (char *str)
10939 char *new_str;
10941 if (str)
10943 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10944 strcpy (new_str, str);
10946 else
10947 new_str = NULL;
10949 return new_str;
10952 int main (int argc, char *argv[])
10954 int major, minor, micro;
10955 char *tmp_version;
10957 /* This hangs on some systems (?)
10958 system ("touch conf.sdltest");
10960 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10962 /* HP/UX 9 (%@#!) writes to sscanf strings */
10963 tmp_version = my_strdup("$min_sdl_version");
10964 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10965 printf("%s, bad version string\n", "$min_sdl_version");
10966 exit(1);
10969 if (($sdl_major_version > major) ||
10970 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10971 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10973 return 0;
10975 else
10977 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10978 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10979 printf("*** best to upgrade to the required version.\n");
10980 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10981 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10982 printf("*** config.cache before re-running configure\n");
10983 return 1;
10988 _ACEOF
10989 rm -f conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_link") 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11010 else
11011 echo "$as_me: program exited with status $ac_status" >&5
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ( exit $ac_status )
11016 no_sdl=yes
11018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11022 CFLAGS="$ac_save_CFLAGS"
11023 CXXFLAGS="$ac_save_CXXFLAGS"
11024 LIBS="$ac_save_LIBS"
11027 if test "x$no_sdl" = x ; then
11028 { echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6; }
11030 have_sdl="yes"
11031 else
11032 { echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6; }
11034 if test "$SDL_CONFIG" = "no" ; then
11035 echo "*** The sdl-config script installed by SDL could not be found"
11036 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11037 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11038 echo "*** full path to sdl-config."
11039 else
11040 if test -f conf.sdltest ; then
11042 else
11043 echo "*** Could not run SDL test program, checking why..."
11044 CFLAGS="$CFLAGS $SDL_CFLAGS"
11045 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11046 LIBS="$LIBS $SDL_LIBS"
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11054 #include <stdio.h>
11055 #include "SDL.h"
11057 int main(int argc, char *argv[])
11058 { return 0; }
11059 #undef main
11060 #define main K_and_R_C_main
11063 main ()
11065 return 0;
11067 return 0;
11069 _ACEOF
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_link") 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest$ac_exeext &&
11087 $as_test_x conftest$ac_exeext; then
11088 echo "*** The test program compiled, but did not run. This usually means"
11089 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11090 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11091 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11092 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11093 echo "*** is required on your system"
11094 echo "***"
11095 echo "*** If you have an old version installed, it is best to remove it, although"
11096 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11097 else
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 echo "*** The test program failed to compile or link. See the file config.log for the"
11102 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11103 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11104 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108 conftest$ac_exeext conftest.$ac_ext
11109 CFLAGS="$ac_save_CFLAGS"
11110 CXXFLAGS="$ac_save_CXXFLAGS"
11111 LIBS="$ac_save_LIBS"
11114 SDL_CFLAGS=""
11115 SDL_LIBS=""
11116 have_sdl="no"
11120 rm -f conf.sdltest
11123 if test "x-$have_sdl" != "x-yes" ; then
11125 if test "x-$sdl_hidd" != "x-auto" ; then
11126 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11127 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11128 { (exit 1); exit 1; }; }
11131 else
11132 sdl_hidd_target=kernel-hidd-sdl
11139 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11140 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11141 # Check whether --enable-dbus was given.
11142 if test "${enable_dbus+set}" = set; then
11143 enableval=$enable_dbus; dbus="yes"
11144 else
11145 dbus="no"
11148 if test "$dbus" = "yes" ; then
11149 ENABLE_DBUS=1
11150 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11151 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11152 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11153 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11154 else
11155 ENABLE_DBUS=0
11157 { echo "$as_me:$LINENO: result: $dbus" >&5
11158 echo "${ECHO_T}$dbus" >&6; }
11162 # Generic
11169 # Host related
11192 # Target Related
11231 # Graphics Related
11247 # Native version related
11251 # Palm native version related
11254 # Unix/Hosted version related
11257 # DBUS related
11264 # Debug related
11270 # Collect-aros stuff: "-ius" to ignore undefined symbols
11273 # C compiler related
11276 case "$aros_flavour" in
11277 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11278 aros_flavour="emulation" ;;
11279 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11280 aros_flavour="emulation" ;;
11281 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11282 aros_flavour="standalone";;
11283 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11284 aros_flavour="native" ;;
11285 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11286 aros_flavour="native" ;;
11287 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11288 aros_flavour="linklib" ;;
11289 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11290 aros_flavour="palmnative" ;;
11291 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11292 aros_flavour="mac68knative" ;;
11293 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11294 aros_flavour="ppcnative" ;;
11295 esac
11299 if test ! -d ${aros_inc_dir} ; then
11300 ${MKDIR} ${aros_inc_dir}
11302 if test ! -d ${aros_geninc_dir} ; then
11303 ${MKDIR} ${aros_geninc_dir}
11305 if test ! -d ${aros_hostcfg_dir} ; then
11306 ${MKDIR} ${aros_hostcfg_dir}
11308 if test ! -d ${aros_targetcfg_dir} ; then
11309 ${MKDIR} ${aros_targetcfg_dir}
11311 if test ! -d ${aros_tools_dir} ; then
11312 ${MKDIR} ${aros_tools_dir}
11314 if test ! -d ${aros_scripts_dir} ; then
11315 ${MKDIR} ${aros_scripts_dir}
11318 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11321 ac_config_commands="$ac_config_commands compiler_executable"
11323 ac_config_commands="$ac_config_commands genshared_executable"
11325 ac_config_commands="$ac_config_commands genmf_executable"
11327 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
11330 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"
11333 cat >confcache <<\_ACEOF
11334 # This file is a shell script that caches the results of configure
11335 # tests run on this system so they can be shared between configure
11336 # scripts and configure runs, see configure's option --config-cache.
11337 # It is not useful on other systems. If it contains results you don't
11338 # want to keep, you may remove or edit it.
11340 # config.status only pays attention to the cache file if you give it
11341 # the --recheck option to rerun configure.
11343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11345 # following values.
11347 _ACEOF
11349 # The following way of writing the cache mishandles newlines in values,
11350 # but we know of no workaround that is simple, portable, and efficient.
11351 # So, we kill variables containing newlines.
11352 # Ultrix sh set writes to stderr and can't be redirected directly,
11353 # and sets the high bit in the cache file unless we assign to the vars.
11355 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11356 eval ac_val=\$$ac_var
11357 case $ac_val in #(
11358 *${as_nl}*)
11359 case $ac_var in #(
11360 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11361 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11362 esac
11363 case $ac_var in #(
11364 _ | IFS | as_nl) ;; #(
11365 *) $as_unset $ac_var ;;
11366 esac ;;
11367 esac
11368 done
11370 (set) 2>&1 |
11371 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11372 *${as_nl}ac_space=\ *)
11373 # `set' does not quote correctly, so add quotes (double-quote
11374 # substitution turns \\\\ into \\, and sed turns \\ into \).
11375 sed -n \
11376 "s/'/'\\\\''/g;
11377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11378 ;; #(
11380 # `set' quotes correctly as required by POSIX, so do not add quotes.
11381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11383 esac |
11384 sort
11386 sed '
11387 /^ac_cv_env_/b end
11388 t clear
11389 :clear
11390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11391 t end
11392 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11393 :end' >>confcache
11394 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11395 if test -w "$cache_file"; then
11396 test "x$cache_file" != "x/dev/null" &&
11397 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11398 echo "$as_me: updating cache $cache_file" >&6;}
11399 cat confcache >$cache_file
11400 else
11401 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11402 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11405 rm -f confcache
11407 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11408 # Let make expand exec_prefix.
11409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11411 DEFS=-DHAVE_CONFIG_H
11413 ac_libobjs=
11414 ac_ltlibobjs=
11415 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11416 # 1. Remove the extension, and $U if already installed.
11417 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11418 ac_i=`echo "$ac_i" | sed "$ac_script"`
11419 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11420 # will be set to the directory where LIBOBJS objects are built.
11421 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11422 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11423 done
11424 LIBOBJS=$ac_libobjs
11426 LTLIBOBJS=$ac_ltlibobjs
11430 : ${CONFIG_STATUS=./config.status}
11431 ac_clean_files_save=$ac_clean_files
11432 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11433 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11434 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11435 cat >$CONFIG_STATUS <<_ACEOF
11436 #! $SHELL
11437 # Generated by $as_me.
11438 # Run this file to recreate the current configuration.
11439 # Compiler output produced by configure, useful for debugging
11440 # configure, is in config.log if it exists.
11442 debug=false
11443 ac_cs_recheck=false
11444 ac_cs_silent=false
11445 SHELL=\${CONFIG_SHELL-$SHELL}
11446 _ACEOF
11448 cat >>$CONFIG_STATUS <<\_ACEOF
11449 ## --------------------- ##
11450 ## M4sh Initialization. ##
11451 ## --------------------- ##
11453 # Be more Bourne compatible
11454 DUALCASE=1; export DUALCASE # for MKS sh
11455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11456 emulate sh
11457 NULLCMD=:
11458 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11459 # is contrary to our usage. Disable this feature.
11460 alias -g '${1+"$@"}'='"$@"'
11461 setopt NO_GLOB_SUBST
11462 else
11463 case `(set -o) 2>/dev/null` in
11464 *posix*) set -o posix ;;
11465 esac
11472 # PATH needs CR
11473 # Avoid depending upon Character Ranges.
11474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11477 as_cr_digits='0123456789'
11478 as_cr_alnum=$as_cr_Letters$as_cr_digits
11480 # The user is always right.
11481 if test "${PATH_SEPARATOR+set}" != set; then
11482 echo "#! /bin/sh" >conf$$.sh
11483 echo "exit 0" >>conf$$.sh
11484 chmod +x conf$$.sh
11485 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11486 PATH_SEPARATOR=';'
11487 else
11488 PATH_SEPARATOR=:
11490 rm -f conf$$.sh
11493 # Support unset when possible.
11494 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11495 as_unset=unset
11496 else
11497 as_unset=false
11501 # IFS
11502 # We need space, tab and new line, in precisely that order. Quoting is
11503 # there to prevent editors from complaining about space-tab.
11504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11505 # splitting by setting IFS to empty value.)
11506 as_nl='
11508 IFS=" "" $as_nl"
11510 # Find who we are. Look in the path if we contain no directory separator.
11511 case $0 in
11512 *[\\/]* ) as_myself=$0 ;;
11513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11519 done
11520 IFS=$as_save_IFS
11523 esac
11524 # We did not find ourselves, most probably we were run as `sh COMMAND'
11525 # in which case we are not to be found in the path.
11526 if test "x$as_myself" = x; then
11527 as_myself=$0
11529 if test ! -f "$as_myself"; then
11530 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11531 { (exit 1); exit 1; }
11534 # Work around bugs in pre-3.0 UWIN ksh.
11535 for as_var in ENV MAIL MAILPATH
11536 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11537 done
11538 PS1='$ '
11539 PS2='> '
11540 PS4='+ '
11542 # NLS nuisances.
11543 for as_var in \
11544 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11545 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11546 LC_TELEPHONE LC_TIME
11548 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11549 eval $as_var=C; export $as_var
11550 else
11551 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11553 done
11555 # Required to use basename.
11556 if expr a : '\(a\)' >/dev/null 2>&1 &&
11557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11558 as_expr=expr
11559 else
11560 as_expr=false
11563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11564 as_basename=basename
11565 else
11566 as_basename=false
11570 # Name of the executable.
11571 as_me=`$as_basename -- "$0" ||
11572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11573 X"$0" : 'X\(//\)$' \| \
11574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11575 echo X/"$0" |
11576 sed '/^.*\/\([^/][^/]*\)\/*$/{
11577 s//\1/
11580 /^X\/\(\/\/\)$/{
11581 s//\1/
11584 /^X\/\(\/\).*/{
11585 s//\1/
11588 s/.*/./; q'`
11590 # CDPATH.
11591 $as_unset CDPATH
11595 as_lineno_1=$LINENO
11596 as_lineno_2=$LINENO
11597 test "x$as_lineno_1" != "x$as_lineno_2" &&
11598 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11600 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11601 # uniformly replaced by the line number. The first 'sed' inserts a
11602 # line-number line after each line using $LINENO; the second 'sed'
11603 # does the real work. The second script uses 'N' to pair each
11604 # line-number line with the line containing $LINENO, and appends
11605 # trailing '-' during substitution so that $LINENO is not a special
11606 # case at line end.
11607 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11608 # scripts with optimization help from Paolo Bonzini. Blame Lee
11609 # E. McMahon (1931-1989) for sed's syntax. :-)
11610 sed -n '
11612 /[$]LINENO/=
11613 ' <$as_myself |
11614 sed '
11615 s/[$]LINENO.*/&-/
11616 t lineno
11618 :lineno
11620 :loop
11621 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11622 t loop
11623 s/-\n.*//
11624 ' >$as_me.lineno &&
11625 chmod +x "$as_me.lineno" ||
11626 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11627 { (exit 1); exit 1; }; }
11629 # Don't try to exec as it changes $[0], causing all sort of problems
11630 # (the dirname of $[0] is not the place where we might find the
11631 # original and so on. Autoconf is especially sensitive to this).
11632 . "./$as_me.lineno"
11633 # Exit status is that of the last command.
11634 exit
11638 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11639 as_dirname=dirname
11640 else
11641 as_dirname=false
11644 ECHO_C= ECHO_N= ECHO_T=
11645 case `echo -n x` in
11646 -n*)
11647 case `echo 'x\c'` in
11648 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11649 *) ECHO_C='\c';;
11650 esac;;
11652 ECHO_N='-n';;
11653 esac
11655 if expr a : '\(a\)' >/dev/null 2>&1 &&
11656 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11657 as_expr=expr
11658 else
11659 as_expr=false
11662 rm -f conf$$ conf$$.exe conf$$.file
11663 if test -d conf$$.dir; then
11664 rm -f conf$$.dir/conf$$.file
11665 else
11666 rm -f conf$$.dir
11667 mkdir conf$$.dir
11669 echo >conf$$.file
11670 if ln -s conf$$.file conf$$ 2>/dev/null; then
11671 as_ln_s='ln -s'
11672 # ... but there are two gotchas:
11673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11675 # In both cases, we have to default to `cp -p'.
11676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11677 as_ln_s='cp -p'
11678 elif ln conf$$.file conf$$ 2>/dev/null; then
11679 as_ln_s=ln
11680 else
11681 as_ln_s='cp -p'
11683 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11684 rmdir conf$$.dir 2>/dev/null
11686 if mkdir -p . 2>/dev/null; then
11687 as_mkdir_p=:
11688 else
11689 test -d ./-p && rmdir ./-p
11690 as_mkdir_p=false
11693 if test -x / >/dev/null 2>&1; then
11694 as_test_x='test -x'
11695 else
11696 if ls -dL / >/dev/null 2>&1; then
11697 as_ls_L_option=L
11698 else
11699 as_ls_L_option=
11701 as_test_x='
11702 eval sh -c '\''
11703 if test -d "$1"; then
11704 test -d "$1/.";
11705 else
11706 case $1 in
11707 -*)set "./$1";;
11708 esac;
11709 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11710 ???[sx]*):;;*)false;;esac;fi
11711 '\'' sh
11714 as_executable_p=$as_test_x
11716 # Sed expression to map a string onto a valid CPP name.
11717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11719 # Sed expression to map a string onto a valid variable name.
11720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11723 exec 6>&1
11725 # Save the log message, to keep $[0] and so on meaningful, and to
11726 # report actual input values of CONFIG_FILES etc. instead of their
11727 # values after options handling.
11728 ac_log="
11729 This file was extended by $as_me, which was
11730 generated by GNU Autoconf 2.61. Invocation command line was
11732 CONFIG_FILES = $CONFIG_FILES
11733 CONFIG_HEADERS = $CONFIG_HEADERS
11734 CONFIG_LINKS = $CONFIG_LINKS
11735 CONFIG_COMMANDS = $CONFIG_COMMANDS
11736 $ $0 $@
11738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11741 _ACEOF
11743 cat >>$CONFIG_STATUS <<_ACEOF
11744 # Files that config.status was made for.
11745 config_files="$ac_config_files"
11746 config_headers="$ac_config_headers"
11747 config_commands="$ac_config_commands"
11749 _ACEOF
11751 cat >>$CONFIG_STATUS <<\_ACEOF
11752 ac_cs_usage="\
11753 \`$as_me' instantiates files from templates according to the
11754 current configuration.
11756 Usage: $0 [OPTIONS] [FILE]...
11758 -h, --help print this help, then exit
11759 -V, --version print version number and configuration settings, then exit
11760 -q, --quiet do not print progress messages
11761 -d, --debug don't remove temporary files
11762 --recheck update $as_me by reconfiguring in the same conditions
11763 --file=FILE[:TEMPLATE]
11764 instantiate the configuration file FILE
11765 --header=FILE[:TEMPLATE]
11766 instantiate the configuration header FILE
11768 Configuration files:
11769 $config_files
11771 Configuration headers:
11772 $config_headers
11774 Configuration commands:
11775 $config_commands
11777 Report bugs to <bug-autoconf@gnu.org>."
11779 _ACEOF
11780 cat >>$CONFIG_STATUS <<_ACEOF
11781 ac_cs_version="\\
11782 config.status
11783 configured by $0, generated by GNU Autoconf 2.61,
11784 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11786 Copyright (C) 2006 Free Software Foundation, Inc.
11787 This config.status script is free software; the Free Software Foundation
11788 gives unlimited permission to copy, distribute and modify it."
11790 ac_pwd='$ac_pwd'
11791 srcdir='$srcdir'
11792 _ACEOF
11794 cat >>$CONFIG_STATUS <<\_ACEOF
11795 # If no file are specified by the user, then we need to provide default
11796 # value. By we need to know if files were specified by the user.
11797 ac_need_defaults=:
11798 while test $# != 0
11800 case $1 in
11801 --*=*)
11802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11803 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11804 ac_shift=:
11807 ac_option=$1
11808 ac_optarg=$2
11809 ac_shift=shift
11811 esac
11813 case $ac_option in
11814 # Handling of the options.
11815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11816 ac_cs_recheck=: ;;
11817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11818 echo "$ac_cs_version"; exit ;;
11819 --debug | --debu | --deb | --de | --d | -d )
11820 debug=: ;;
11821 --file | --fil | --fi | --f )
11822 $ac_shift
11823 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11824 ac_need_defaults=false;;
11825 --header | --heade | --head | --hea )
11826 $ac_shift
11827 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11828 ac_need_defaults=false;;
11829 --he | --h)
11830 # Conflict between --help and --header
11831 { echo "$as_me: error: ambiguous option: $1
11832 Try \`$0 --help' for more information." >&2
11833 { (exit 1); exit 1; }; };;
11834 --help | --hel | -h )
11835 echo "$ac_cs_usage"; exit ;;
11836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11838 ac_cs_silent=: ;;
11840 # This is an error.
11841 -*) { echo "$as_me: error: unrecognized option: $1
11842 Try \`$0 --help' for more information." >&2
11843 { (exit 1); exit 1; }; } ;;
11845 *) ac_config_targets="$ac_config_targets $1"
11846 ac_need_defaults=false ;;
11848 esac
11849 shift
11850 done
11852 ac_configure_extra_args=
11854 if $ac_cs_silent; then
11855 exec 6>/dev/null
11856 ac_configure_extra_args="$ac_configure_extra_args --silent"
11859 _ACEOF
11860 cat >>$CONFIG_STATUS <<_ACEOF
11861 if \$ac_cs_recheck; then
11862 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11863 CONFIG_SHELL=$SHELL
11864 export CONFIG_SHELL
11865 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11868 _ACEOF
11869 cat >>$CONFIG_STATUS <<\_ACEOF
11870 exec 5>>config.log
11872 echo
11873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11874 ## Running $as_me. ##
11875 _ASBOX
11876 echo "$ac_log"
11877 } >&5
11879 _ACEOF
11880 cat >>$CONFIG_STATUS <<_ACEOF
11882 # INIT-COMMANDS
11885 aros_tools_dir=${aros_tools_dir}
11886 aros_target_cpu=${aros_target_cpu}
11887 aros_target_arch=${aros_target_arch}
11888 aros_target_suffix=${aros_target_suffix}
11889 aros_target_nm_ln=${aros_target_nm_ln}
11890 aros_target_as_ln=${aros_target_as_ln}
11891 aros_target_ar_ln=${aros_target_ar_ln}
11892 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11893 aros_target_objdump_ln=${aros_target_objdump_ln}
11894 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11895 aros_target_strip_ln=${aros_target_strip_ln}
11898 aros_scripts_dir=${aros_scripts_dir}
11900 aros_tools_dir=${aros_tools_dir}
11903 _ACEOF
11905 cat >>$CONFIG_STATUS <<\_ACEOF
11907 # Handling of arguments.
11908 for ac_config_target in $ac_config_targets
11910 case $ac_config_target in
11911 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11912 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11913 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11914 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11915 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
11916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11917 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
11918 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11919 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11920 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11921 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11922 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11923 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11924 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11925 "${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" ;;
11926 "${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" ;;
11927 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11928 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11929 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
11930 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11934 { (exit 1); exit 1; }; };;
11935 esac
11936 done
11939 # If the user did not use the arguments to specify the items to instantiate,
11940 # then the envvar interface is used. Set only those that are not.
11941 # We use the long form for the default assignment because of an extremely
11942 # bizarre bug on SunOS 4.1.3.
11943 if $ac_need_defaults; then
11944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11949 # Have a temporary directory for convenience. Make it in the build tree
11950 # simply because there is no reason against having it here, and in addition,
11951 # creating and moving files from /tmp can sometimes cause problems.
11952 # Hook for its removal unless debugging.
11953 # Note that there is a small window in which the directory will not be cleaned:
11954 # after its creation but before its name has been assigned to `$tmp'.
11955 $debug ||
11957 tmp=
11958 trap 'exit_status=$?
11959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11961 trap '{ (exit 1); exit 1; }' 1 2 13 15
11963 # Create a (secure) tmp directory for tmp files.
11966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11967 test -n "$tmp" && test -d "$tmp"
11968 } ||
11970 tmp=./conf$$-$RANDOM
11971 (umask 077 && mkdir "$tmp")
11972 } ||
11974 echo "$me: cannot create a temporary directory in ." >&2
11975 { (exit 1); exit 1; }
11979 # Set up the sed scripts for CONFIG_FILES section.
11982 # No need to generate the scripts if there are no CONFIG_FILES.
11983 # This happens for instance when ./config.status config.h
11984 if test -n "$CONFIG_FILES"; then
11986 _ACEOF
11990 ac_delim='%!_!# '
11991 for ac_last_try in false false false false false :; do
11992 cat >conf$$subs.sed <<_ACEOF
11993 SHELL!$SHELL$ac_delim
11994 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11995 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11996 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11997 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11998 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11999 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12000 exec_prefix!$exec_prefix$ac_delim
12001 prefix!$prefix$ac_delim
12002 program_transform_name!$program_transform_name$ac_delim
12003 bindir!$bindir$ac_delim
12004 sbindir!$sbindir$ac_delim
12005 libexecdir!$libexecdir$ac_delim
12006 datarootdir!$datarootdir$ac_delim
12007 datadir!$datadir$ac_delim
12008 sysconfdir!$sysconfdir$ac_delim
12009 sharedstatedir!$sharedstatedir$ac_delim
12010 localstatedir!$localstatedir$ac_delim
12011 includedir!$includedir$ac_delim
12012 oldincludedir!$oldincludedir$ac_delim
12013 docdir!$docdir$ac_delim
12014 infodir!$infodir$ac_delim
12015 htmldir!$htmldir$ac_delim
12016 dvidir!$dvidir$ac_delim
12017 pdfdir!$pdfdir$ac_delim
12018 psdir!$psdir$ac_delim
12019 libdir!$libdir$ac_delim
12020 localedir!$localedir$ac_delim
12021 mandir!$mandir$ac_delim
12022 DEFS!$DEFS$ac_delim
12023 ECHO_C!$ECHO_C$ac_delim
12024 ECHO_N!$ECHO_N$ac_delim
12025 ECHO_T!$ECHO_T$ac_delim
12026 LIBS!$LIBS$ac_delim
12027 build_alias!$build_alias$ac_delim
12028 host_alias!$host_alias$ac_delim
12029 target_alias!$target_alias$ac_delim
12030 build!$build$ac_delim
12031 build_cpu!$build_cpu$ac_delim
12032 build_vendor!$build_vendor$ac_delim
12033 build_os!$build_os$ac_delim
12034 host!$host$ac_delim
12035 host_cpu!$host_cpu$ac_delim
12036 host_vendor!$host_vendor$ac_delim
12037 host_os!$host_os$ac_delim
12038 CC!$CC$ac_delim
12039 CFLAGS!$CFLAGS$ac_delim
12040 LDFLAGS!$LDFLAGS$ac_delim
12041 CPPFLAGS!$CPPFLAGS$ac_delim
12042 ac_ct_CC!$ac_ct_CC$ac_delim
12043 EXEEXT!$EXEEXT$ac_delim
12044 OBJEXT!$OBJEXT$ac_delim
12045 CPP!$CPP$ac_delim
12046 AWK!$AWK$ac_delim
12047 MMAKE!$MMAKE$ac_delim
12048 aros_host_ld!$aros_host_ld$ac_delim
12049 aros_host_aclocal!$aros_host_aclocal$ac_delim
12050 aros_host_autoconf!$aros_host_autoconf$ac_delim
12051 aros_host_autoheader!$aros_host_autoheader$ac_delim
12052 aros_host_automake!$aros_host_automake$ac_delim
12053 aros_host_ar!$aros_host_ar$ac_delim
12054 aros_host_ranlib!$aros_host_ranlib$ac_delim
12055 aros_host_strip!$aros_host_strip$ac_delim
12056 RM!$RM$ac_delim
12057 CP!$CP$ac_delim
12058 MV!$MV$ac_delim
12059 ECHO!$ECHO$ac_delim
12060 MKDIR!$MKDIR$ac_delim
12061 TOUCH!$TOUCH$ac_delim
12062 SORT!$SORT$ac_delim
12063 UNIQ!$UNIQ$ac_delim
12064 NOP!$NOP$ac_delim
12065 CAT!$CAT$ac_delim
12066 BISON!$BISON$ac_delim
12067 FLEX!$FLEX$ac_delim
12068 PNGTOPNM!$PNGTOPNM$ac_delim
12069 PPMTOILBM!$PPMTOILBM$ac_delim
12070 SED!$SED$ac_delim
12071 CHMOD!$CHMOD$ac_delim
12072 PYTHON!$PYTHON$ac_delim
12073 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12074 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12075 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12076 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12077 pythondir!$pythondir$ac_delim
12078 pkgpythondir!$pkgpythondir$ac_delim
12079 pyexecdir!$pyexecdir$ac_delim
12080 pkgpyexecdir!$pkgpyexecdir$ac_delim
12081 FOR!$FOR$ac_delim
12082 IF!$IF$ac_delim
12083 TEST!$TEST$ac_delim
12084 CMP!$CMP$ac_delim
12085 GREP!$GREP$ac_delim
12086 EGREP!$EGREP$ac_delim
12087 LIBOBJS!$LIBOBJS$ac_delim
12088 DISTCC!$DISTCC$ac_delim
12089 CCACHE!$CCACHE$ac_delim
12090 _ACEOF
12092 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12093 break
12094 elif $ac_last_try; then
12095 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12097 { (exit 1); exit 1; }; }
12098 else
12099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12101 done
12103 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12104 if test -n "$ac_eof"; then
12105 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12106 ac_eof=`expr $ac_eof + 1`
12109 cat >>$CONFIG_STATUS <<_ACEOF
12110 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12112 _ACEOF
12113 sed '
12114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12115 s/^/s,@/; s/!/@,|#_!!_#|/
12118 s/'"$ac_delim"'$/,g/; t
12119 s/$/\\/; p
12120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12121 ' >>$CONFIG_STATUS <conf$$subs.sed
12122 rm -f conf$$subs.sed
12123 cat >>$CONFIG_STATUS <<_ACEOF
12124 CEOF$ac_eof
12125 _ACEOF
12128 ac_delim='%!_!# '
12129 for ac_last_try in false false false false false :; do
12130 cat >conf$$subs.sed <<_ACEOF
12131 aros_kernel_cc!$aros_kernel_cc$ac_delim
12132 aros_target_as_ln!$aros_target_as_ln$ac_delim
12133 aros_kernel_ld!$aros_kernel_ld$ac_delim
12134 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12135 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12136 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12137 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12138 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12139 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12140 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12141 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12142 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12143 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12144 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12145 XMKMF!$XMKMF$ac_delim
12146 SDL_CONFIG!$SDL_CONFIG$ac_delim
12147 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12148 SDL_LIBS!$SDL_LIBS$ac_delim
12149 aros_arch!$aros_arch$ac_delim
12150 aros_cpu!$aros_cpu$ac_delim
12151 aros_flavour!$aros_flavour$ac_delim
12152 aros_flavour_uc!$aros_flavour_uc$ac_delim
12153 TOPDIR!$TOPDIR$ac_delim
12154 aros_cc_pre!$aros_cc_pre$ac_delim
12155 aros_host_arch!$aros_host_arch$ac_delim
12156 aros_host_cpu!$aros_host_cpu$ac_delim
12157 aros_host_cc!$aros_host_cc$ac_delim
12158 aros_host_make!$aros_host_make$ac_delim
12159 aros_host_cflags!$aros_host_cflags$ac_delim
12160 aros_host_ldflags!$aros_host_ldflags$ac_delim
12161 aros_host_debug!$aros_host_debug$ac_delim
12162 aros_host_mkdep!$aros_host_mkdep$ac_delim
12163 aros_host_mkargs!$aros_host_mkargs$ac_delim
12164 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12165 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12166 aros_tools_dir!$aros_tools_dir$ac_delim
12167 aros_target_arch!$aros_target_arch$ac_delim
12168 aros_target_cpu!$aros_target_cpu$ac_delim
12169 aros_target_variant!$aros_target_variant$ac_delim
12170 aros_target_suffix!$aros_target_suffix$ac_delim
12171 aros_target_incl!$aros_target_incl$ac_delim
12172 aros_target_ar!$aros_target_ar$ac_delim
12173 aros_target_ranlib!$aros_target_ranlib$ac_delim
12174 aros_kernel_nm!$aros_kernel_nm$ac_delim
12175 aros_target_cc!$aros_target_cc$ac_delim
12176 aros_target_as!$aros_target_as$ac_delim
12177 aros_target_ld!$aros_target_ld$ac_delim
12178 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12179 aros_target_cc_path!$aros_target_cc_path$ac_delim
12180 aros_target_objdump!$aros_target_objdump$ac_delim
12181 aros_target_objcopy!$aros_target_objcopy$ac_delim
12182 aros_target_strip!$aros_target_strip$ac_delim
12183 aros_target_nm!$aros_target_nm$ac_delim
12184 aros_shared_default!$aros_shared_default$ac_delim
12185 aros_shared_ld!$aros_shared_ld$ac_delim
12186 aros_object_format!$aros_object_format$ac_delim
12187 aros_compiler_libs!$aros_compiler_libs$ac_delim
12188 aros_config_cflags!$aros_config_cflags$ac_delim
12189 aros_config_aflags!$aros_config_aflags$ac_delim
12190 aros_config_ldflags!$aros_config_ldflags$ac_delim
12191 aros_shared_cflags!$aros_shared_cflags$ac_delim
12192 aros_shared_aflags!$aros_shared_aflags$ac_delim
12193 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12194 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12195 aros_debug_cflags!$aros_debug_cflags$ac_delim
12196 aros_debug_aflags!$aros_debug_aflags$ac_delim
12197 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12198 aros_target_genmap!$aros_target_genmap$ac_delim
12199 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12200 aros_gui_libdir!$aros_gui_libdir$ac_delim
12201 aros_gui_ldflags!$aros_gui_ldflags$ac_delim
12202 aros_gui_libflags!$aros_gui_libflags$ac_delim
12203 aros_gui_incdir!$aros_gui_incdir$ac_delim
12204 aros_gui_ccflags!$aros_gui_ccflags$ac_delim
12205 x11_hidd_target!$x11_hidd_target$ac_delim
12206 sdl_hidd_target!$sdl_hidd_target$ac_delim
12207 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12208 aros_default_wbheight!$aros_default_wbheight$ac_delim
12209 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12210 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12211 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12212 aros_bochs_hack!$aros_bochs_hack$ac_delim
12213 aros_serial_debug!$aros_serial_debug$ac_delim
12214 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12215 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12216 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12217 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12218 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12219 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12220 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12221 aros_debug!$aros_debug$ac_delim
12222 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12223 aros_stack_debug!$aros_stack_debug$ac_delim
12224 aros_modules_debug!$aros_modules_debug$ac_delim
12225 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12226 gcc_target_cpu!$gcc_target_cpu$ac_delim
12227 LTLIBOBJS!$LTLIBOBJS$ac_delim
12228 _ACEOF
12230 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12231 break
12232 elif $ac_last_try; then
12233 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12234 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12235 { (exit 1); exit 1; }; }
12236 else
12237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12239 done
12241 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12242 if test -n "$ac_eof"; then
12243 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12244 ac_eof=`expr $ac_eof + 1`
12247 cat >>$CONFIG_STATUS <<_ACEOF
12248 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12250 _ACEOF
12251 sed '
12252 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12253 s/^/s,@/; s/!/@,|#_!!_#|/
12256 s/'"$ac_delim"'$/,g/; t
12257 s/$/\\/; p
12258 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12259 ' >>$CONFIG_STATUS <conf$$subs.sed
12260 rm -f conf$$subs.sed
12261 cat >>$CONFIG_STATUS <<_ACEOF
12262 CEOF$ac_eof
12263 _ACEOF
12266 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12267 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12268 # trailing colons and then remove the whole line if VPATH becomes empty
12269 # (actually we leave an empty line to preserve line numbers).
12270 if test "x$srcdir" = x.; then
12271 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12272 s/:*\$(srcdir):*/:/
12273 s/:*\${srcdir}:*/:/
12274 s/:*@srcdir@:*/:/
12275 s/^\([^=]*=[ ]*\):*/\1/
12276 s/:*$//
12277 s/^[^=]*=[ ]*$//
12281 cat >>$CONFIG_STATUS <<\_ACEOF
12282 fi # test -n "$CONFIG_FILES"
12285 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12287 case $ac_tag in
12288 :[FHLC]) ac_mode=$ac_tag; continue;;
12289 esac
12290 case $ac_mode$ac_tag in
12291 :[FHL]*:*);;
12292 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12293 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12294 { (exit 1); exit 1; }; };;
12295 :[FH]-) ac_tag=-:-;;
12296 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12297 esac
12298 ac_save_IFS=$IFS
12299 IFS=:
12300 set x $ac_tag
12301 IFS=$ac_save_IFS
12302 shift
12303 ac_file=$1
12304 shift
12306 case $ac_mode in
12307 :L) ac_source=$1;;
12308 :[FH])
12309 ac_file_inputs=
12310 for ac_f
12312 case $ac_f in
12313 -) ac_f="$tmp/stdin";;
12314 *) # Look for the file first in the build tree, then in the source tree
12315 # (if the path is not absolute). The absolute path cannot be DOS-style,
12316 # because $ac_f cannot contain `:'.
12317 test -f "$ac_f" ||
12318 case $ac_f in
12319 [\\/$]*) false;;
12320 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12321 esac ||
12322 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12323 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12324 { (exit 1); exit 1; }; };;
12325 esac
12326 ac_file_inputs="$ac_file_inputs $ac_f"
12327 done
12329 # Let's still pretend it is `configure' which instantiates (i.e., don't
12330 # use $as_me), people would be surprised to read:
12331 # /* config.h. Generated by config.status. */
12332 configure_input="Generated from "`IFS=:
12333 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12334 if test x"$ac_file" != x-; then
12335 configure_input="$ac_file. $configure_input"
12336 { echo "$as_me:$LINENO: creating $ac_file" >&5
12337 echo "$as_me: creating $ac_file" >&6;}
12340 case $ac_tag in
12341 *:-:* | *:-) cat >"$tmp/stdin";;
12342 esac
12344 esac
12346 ac_dir=`$as_dirname -- "$ac_file" ||
12347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12348 X"$ac_file" : 'X\(//\)[^/]' \| \
12349 X"$ac_file" : 'X\(//\)$' \| \
12350 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12351 echo X"$ac_file" |
12352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12353 s//\1/
12356 /^X\(\/\/\)[^/].*/{
12357 s//\1/
12360 /^X\(\/\/\)$/{
12361 s//\1/
12364 /^X\(\/\).*/{
12365 s//\1/
12368 s/.*/./; q'`
12369 { as_dir="$ac_dir"
12370 case $as_dir in #(
12371 -*) as_dir=./$as_dir;;
12372 esac
12373 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12374 as_dirs=
12375 while :; do
12376 case $as_dir in #(
12377 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12378 *) as_qdir=$as_dir;;
12379 esac
12380 as_dirs="'$as_qdir' $as_dirs"
12381 as_dir=`$as_dirname -- "$as_dir" ||
12382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12383 X"$as_dir" : 'X\(//\)[^/]' \| \
12384 X"$as_dir" : 'X\(//\)$' \| \
12385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12386 echo X"$as_dir" |
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 test -d "$as_dir" && break
12405 done
12406 test -z "$as_dirs" || eval "mkdir $as_dirs"
12407 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12408 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12409 { (exit 1); exit 1; }; }; }
12410 ac_builddir=.
12412 case "$ac_dir" in
12413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12416 # A ".." for each directory in $ac_dir_suffix.
12417 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12418 case $ac_top_builddir_sub in
12419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12421 esac ;;
12422 esac
12423 ac_abs_top_builddir=$ac_pwd
12424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12425 # for backward compatibility:
12426 ac_top_builddir=$ac_top_build_prefix
12428 case $srcdir in
12429 .) # We are building in place.
12430 ac_srcdir=.
12431 ac_top_srcdir=$ac_top_builddir_sub
12432 ac_abs_top_srcdir=$ac_pwd ;;
12433 [\\/]* | ?:[\\/]* ) # Absolute name.
12434 ac_srcdir=$srcdir$ac_dir_suffix;
12435 ac_top_srcdir=$srcdir
12436 ac_abs_top_srcdir=$srcdir ;;
12437 *) # Relative name.
12438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12439 ac_top_srcdir=$ac_top_build_prefix$srcdir
12440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12441 esac
12442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12445 case $ac_mode in
12448 # CONFIG_FILE
12451 _ACEOF
12453 cat >>$CONFIG_STATUS <<\_ACEOF
12454 # If the template does not know about datarootdir, expand it.
12455 # FIXME: This hack should be removed a few years after 2.60.
12456 ac_datarootdir_hack=; ac_datarootdir_seen=
12458 case `sed -n '/datarootdir/ {
12462 /@datadir@/p
12463 /@docdir@/p
12464 /@infodir@/p
12465 /@localedir@/p
12466 /@mandir@/p
12467 ' $ac_file_inputs` in
12468 *datarootdir*) ac_datarootdir_seen=yes;;
12469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12470 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12471 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12472 _ACEOF
12473 cat >>$CONFIG_STATUS <<_ACEOF
12474 ac_datarootdir_hack='
12475 s&@datadir@&$datadir&g
12476 s&@docdir@&$docdir&g
12477 s&@infodir@&$infodir&g
12478 s&@localedir@&$localedir&g
12479 s&@mandir@&$mandir&g
12480 s&\\\${datarootdir}&$datarootdir&g' ;;
12481 esac
12482 _ACEOF
12484 # Neutralize VPATH when `$srcdir' = `.'.
12485 # Shell code in configure.ac might set extrasub.
12486 # FIXME: do we really want to maintain this feature?
12487 cat >>$CONFIG_STATUS <<_ACEOF
12488 sed "$ac_vpsub
12489 $extrasub
12490 _ACEOF
12491 cat >>$CONFIG_STATUS <<\_ACEOF
12493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12494 s&@configure_input@&$configure_input&;t t
12495 s&@top_builddir@&$ac_top_builddir_sub&;t t
12496 s&@srcdir@&$ac_srcdir&;t t
12497 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12498 s&@top_srcdir@&$ac_top_srcdir&;t t
12499 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12500 s&@builddir@&$ac_builddir&;t t
12501 s&@abs_builddir@&$ac_abs_builddir&;t t
12502 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12503 $ac_datarootdir_hack
12504 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
12506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12509 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12510 which seems to be undefined. Please make sure it is defined." >&5
12511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12512 which seems to be undefined. Please make sure it is defined." >&2;}
12514 rm -f "$tmp/stdin"
12515 case $ac_file in
12516 -) cat "$tmp/out"; rm -f "$tmp/out";;
12517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12518 esac
12522 # CONFIG_HEADER
12524 _ACEOF
12526 # Transform confdefs.h into a sed script `conftest.defines', that
12527 # substitutes the proper values into config.h.in to produce config.h.
12528 rm -f conftest.defines conftest.tail
12529 # First, append a space to every undef/define line, to ease matching.
12530 echo 's/$/ /' >conftest.defines
12531 # Then, protect against being on the right side of a sed subst, or in
12532 # an unquoted here document, in config.status. If some macros were
12533 # called several times there might be several #defines for the same
12534 # symbol, which is useless. But do not sort them, since the last
12535 # AC_DEFINE must be honored.
12536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12539 # PARAMS is the parameter list in the macro definition--in most cases, it's
12540 # just an empty string.
12541 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12542 ac_dB='\\)[ (].*,\\1define\\2'
12543 ac_dC=' '
12544 ac_dD=' ,'
12546 uniq confdefs.h |
12547 sed -n '
12548 t rset
12549 :rset
12550 s/^[ ]*#[ ]*define[ ][ ]*//
12551 t ok
12554 s/[\\&,]/\\&/g
12555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12557 ' >>conftest.defines
12559 # Remove the space that was appended to ease matching.
12560 # Then replace #undef with comments. This is necessary, for
12561 # example, in the case of _POSIX_SOURCE, which is predefined and required
12562 # on some systems where configure will not decide to define it.
12563 # (The regexp can be short, since the line contains either #define or #undef.)
12564 echo 's/ $//
12565 s,^[ #]*u.*,/* & */,' >>conftest.defines
12567 # Break up conftest.defines:
12568 ac_max_sed_lines=50
12570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12573 # et cetera.
12574 ac_in='$ac_file_inputs'
12575 ac_out='"$tmp/out1"'
12576 ac_nxt='"$tmp/out2"'
12578 while :
12580 # Write a here document:
12581 cat >>$CONFIG_STATUS <<_ACEOF
12582 # First, check the format of the line:
12583 cat >"\$tmp/defines.sed" <<\\CEOF
12584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12587 :def
12588 _ACEOF
12589 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12590 echo 'CEOF
12591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12592 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12593 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12594 grep . conftest.tail >/dev/null || break
12595 rm -f conftest.defines
12596 mv conftest.tail conftest.defines
12597 done
12598 rm -f conftest.defines conftest.tail
12600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12601 cat >>$CONFIG_STATUS <<\_ACEOF
12602 if test x"$ac_file" != x-; then
12603 echo "/* $configure_input */" >"$tmp/config.h"
12604 cat "$ac_result" >>"$tmp/config.h"
12605 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12607 echo "$as_me: $ac_file is unchanged" >&6;}
12608 else
12609 rm -f $ac_file
12610 mv "$tmp/config.h" $ac_file
12612 else
12613 echo "/* $configure_input */"
12614 cat "$ac_result"
12616 rm -f "$tmp/out12"
12619 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12620 echo "$as_me: executing $ac_file commands" >&6;}
12622 esac
12625 case $ac_file$ac_mode in
12626 "compiler_executable":C)
12627 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12628 mkdir -p $prefix
12629 prefix="${prefix}/${aros_target_cpu}-aros"
12630 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12632 echo ${prefix}
12633 echo ${prefix2}
12634 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12636 ln -sf ${prefix2}-gcc ${prefix}-gcc
12637 ln -sf ${prefix2}-ld ${prefix}-ld
12639 ln -sf $aros_target_as_ln ${prefix}-as
12640 ln -sf $aros_target_nm_ln ${prefix}-nm
12641 ln -sf $aros_target_ar_ln ${prefix}-ar
12642 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
12643 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
12644 ln -sf $aros_target_objdump_ln ${prefix}-objdump
12645 ln -sf $aros_target_strip_ln ${prefix}-strip
12647 ln -sf $aros_target_as_ln ${prefix2}-as
12648 ln -sf $aros_target_nm_ln ${prefix2}-nm
12649 ln -sf $aros_target_ar_ln ${prefix2}-ar
12650 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
12651 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
12652 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
12653 ln -sf $aros_target_strip_ln ${prefix2}-strip
12655 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12656 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12657 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
12660 esac
12661 done # for ac_tag
12664 { (exit 0); exit 0; }
12665 _ACEOF
12666 chmod +x $CONFIG_STATUS
12667 ac_clean_files=$ac_clean_files_save
12670 # configure is writing to config.log, and then calls config.status.
12671 # config.status does its own redirection, appending to config.log.
12672 # Unfortunately, on DOS this fails, as config.log is still kept open
12673 # by configure, so config.status won't be able to write to it; its
12674 # output is simply discarded. So we exec the FD to /dev/null,
12675 # effectively closing config.log, so it can be properly (re)opened and
12676 # appended to by config.status. When coming back to configure, we
12677 # need to make the FD available again.
12678 if test "$no_create" != yes; then
12679 ac_cs_success=:
12680 ac_config_status_args=
12681 test "$silent" = yes &&
12682 ac_config_status_args="$ac_config_status_args --quiet"
12683 exec 5>/dev/null
12684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12685 exec 5>>config.log
12686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12687 # would make configure fail if this is the last instruction.
12688 $ac_cs_success || { (exit 1); exit 1; }
12693 #XXX compatability...
12694 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12696 if test -n "$aros_shared_cflags" ; then
12697 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12698 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg