require autoconf 2.61
[tangerine.git] / configure
blobd8352da3b9c7fd21425facb9f5c83dfc4c6e3640
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 aros_kernel_cc
714 aros_target_as_ln
715 aros_kernel_ld
716 aros_target_ar_ln
717 aros_target_nm_ln
718 aros_target_objcopy_ln
719 aros_target_objdump_ln
720 aros_target_ranlib_ln
721 aros_target_strip_ln
722 aros_target_nostdinc_cflags
723 aros_target_nostartup_ldflags
724 aros_target_nix_ldflags
725 aros_target_detach_ldflags
726 aros_target_nostdlib_ldflags
727 XMKMF
728 SDL_CONFIG
729 SDL_CFLAGS
730 SDL_LIBS
731 aros_arch
732 aros_cpu
733 aros_flavour
734 aros_flavour_uc
735 TOPDIR
736 aros_cc_pre
737 aros_host_arch
738 aros_host_cpu
739 aros_host_cc
740 aros_host_make
741 aros_host_cflags
742 aros_host_ldflags
743 aros_host_debug
744 aros_host_mkdep
745 aros_host_mkargs
746 aros_host_exe_suffix
747 aros_host_lib_suffix
748 aros_tools_dir
749 aros_target_arch
750 aros_target_cpu
751 aros_target_variant
752 aros_target_suffix
753 aros_target_incl
754 aros_target_ar
755 aros_target_ranlib
756 aros_kernel_nm
757 aros_target_cc
758 aros_target_as
759 aros_target_ld
760 aros_target_cc_includes
761 aros_target_cc_path
762 aros_target_objdump
763 aros_target_objcopy
764 aros_target_strip
765 aros_target_nm
766 aros_shared_default
767 aros_shared_ld
768 aros_object_format
769 aros_compiler_libs
770 aros_config_cflags
771 aros_config_aflags
772 aros_config_ldflags
773 aros_shared_cflags
774 aros_shared_aflags
775 aros_shared_ldflags
776 aros_kernel_ldflags
777 aros_debug_cflags
778 aros_debug_aflags
779 aros_debug_ldflags
780 aros_target_genmap
781 aros_target_strip_flags
782 x11_hidd_target
783 sdl_hidd_target
784 aros_default_wbwidth
785 aros_default_wbheight
786 aros_default_wbdepth
787 DO_XSHM_SUPPORT
788 DO_VIDMODE_SUPPORT
789 aros_host_x11_includes
790 aros_host_x11_libdirs
791 aros_host_sdl_cflags
792 aros_host_sdl_libs
793 aros_bochs_hack
794 aros_serial_debug
795 aros_palm_debug_hack
796 aros_nesting_supervisor
797 ENABLE_DBUS
798 DBUS_CFLAGS
799 DBUS_LIBFLAGS
800 KERNEL_DBUS_KOBJ
801 KERNEL_DBUS_INCLUDES
802 aros_debug
803 aros_mungwall_debug
804 aros_stack_debug
805 aros_modules_debug
806 ignore_undefined_symbols
807 gcc_target_cpu
808 LTLIBOBJS'
809 ac_subst_files=''
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
819 XMKMF'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
868 ac_prev=
869 ac_dashdash=
870 for ac_option
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
888 ac_dashdash=yes ;;
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
907 --config-cache | -C)
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1138 -with-* | --with-*)
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1154 eval with_$ac_package=no ;;
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 esac
1197 done
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1218 done
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1272 /^X\(\/\/\)$/{
1273 s//\1/
1276 /^X\(\/\).*/{
1277 s//\1/
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1285 else
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures this package to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1377 cat <<\_ACEOF
1379 X features:
1380 --x-includes=DIR X include files are in DIR
1381 --x-libraries=DIR X library files are in DIR
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1389 if test -n "$ac_init_help"; then
1391 cat <<\_ACEOF
1393 Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-build-type=TYPE
1397 Select the build type. Available types are:
1398 personal, nightly, snapshot, milestone, release. Do
1399 NOT use this option unless you know what you are
1400 doing! (default=personal)
1401 --enable-debug=list Enable different types of debug. Commas or
1402 whitespaces can be used to separate the items in the
1403 list. Available types of debug are: all, none,
1404 messages, stack, mungwall, modules, symbols. If no
1405 list is provided then "all" is assumed.
1406 (default=none)
1407 --enable-distcc Use distcc as a front end to the compiler
1408 (default=no).
1409 --enable-ccache Use ccache as a front end to the compiler
1410 (default=no).
1411 --enable-target-variant=NAME
1412 Enable a specific target variant(default=none)
1413 --enable-includes=dir Alternative system include directory
1414 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1415 (default=no)
1416 --enable-palm-debug-hack
1417 Enable palm debug output hack in palm native
1418 (default=no)
1419 --enable-nesting-supervisor
1420 Enable nesting supervisor support in unix
1421 (default=no)
1422 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1423 --enable-x11-shm use X11 shared memory (default=auto)
1424 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1425 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1426 --disable-sdltest Do not try to compile and run a test SDL program
1427 --enable-dbus Enable DBUS support via dbus.library (default=no)
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-optimization=FLAGS
1433 Use optimization flags FLAGS (default=-O2).
1434 --with-resolution=XRESxYRESxDEPTH
1435 Default resolution of the initial WorkbenchScreen
1436 --with-serial-debug Enable serial debug output in native (default=no)
1437 --with-x use the X Window System
1438 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1439 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 XMKMF Path to xmkmf, Makefile generator for X Window System
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 _ACEOF
1456 ac_status=$?
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" || continue
1463 ac_builddir=.
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 configure
1516 generated by GNU Autoconf 2.61
1518 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1519 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523 exit
1525 cat >config.log <<_ACEOF
1526 This file contains any messages produced by compilers while
1527 running configure, to aid debugging if configure makes a mistake.
1529 It was created by $as_me, which was
1530 generated by GNU Autoconf 2.61. Invocation command line was
1532 $ $0 $@
1534 _ACEOF
1535 exec 5>>config.log
1537 cat <<_ASUNAME
1538 ## --------- ##
1539 ## Platform. ##
1540 ## --------- ##
1542 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1543 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1544 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1545 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1546 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1549 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1551 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1552 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1553 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1554 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1555 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1556 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1557 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1559 _ASUNAME
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 echo "PATH: $as_dir"
1567 done
1568 IFS=$as_save_IFS
1570 } >&5
1572 cat >&5 <<_ACEOF
1575 ## ----------- ##
1576 ## Core tests. ##
1577 ## ----------- ##
1579 _ACEOF
1582 # Keep a trace of the command line.
1583 # Strip out --no-create and --no-recursion so they do not pile up.
1584 # Strip out --silent because we don't want to record it for future runs.
1585 # Also quote any args containing shell meta-characters.
1586 # Make two passes to allow for proper duplicate-argument suppression.
1587 ac_configure_args=
1588 ac_configure_args0=
1589 ac_configure_args1=
1590 ac_must_keep_next=false
1591 for ac_pass in 1 2
1593 for ac_arg
1595 case $ac_arg in
1596 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1598 | -silent | --silent | --silen | --sile | --sil)
1599 continue ;;
1600 *\'*)
1601 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1602 esac
1603 case $ac_pass in
1604 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1607 if test $ac_must_keep_next = true; then
1608 ac_must_keep_next=false # Got value, back to normal.
1609 else
1610 case $ac_arg in
1611 *=* | --config-cache | -C | -disable-* | --disable-* \
1612 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1613 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1614 | -with-* | --with-* | -without-* | --without-* | --x)
1615 case "$ac_configure_args0 " in
1616 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1617 esac
1619 -* ) ac_must_keep_next=true ;;
1620 esac
1622 ac_configure_args="$ac_configure_args '$ac_arg'"
1624 esac
1625 done
1626 done
1627 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1628 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630 # When interrupted or exit'd, cleanup temporary files, and complete
1631 # config.log. We remove comments because anyway the quotes in there
1632 # would cause problems or look ugly.
1633 # WARNING: Use '\'' to represent an apostrophe within the trap.
1634 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1635 trap 'exit_status=$?
1636 # Save into config.log some information that might help in debugging.
1638 echo
1640 cat <<\_ASBOX
1641 ## ---------------- ##
1642 ## Cache variables. ##
1643 ## ---------------- ##
1644 _ASBOX
1645 echo
1646 # The following way of writing the cache mishandles newlines in values,
1648 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1649 eval ac_val=\$$ac_var
1650 case $ac_val in #(
1651 *${as_nl}*)
1652 case $ac_var in #(
1653 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1654 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1655 esac
1656 case $ac_var in #(
1657 _ | IFS | as_nl) ;; #(
1658 *) $as_unset $ac_var ;;
1659 esac ;;
1660 esac
1661 done
1662 (set) 2>&1 |
1663 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1664 *${as_nl}ac_space=\ *)
1665 sed -n \
1666 "s/'\''/'\''\\\\'\'''\''/g;
1667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1668 ;; #(
1670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1672 esac |
1673 sort
1675 echo
1677 cat <<\_ASBOX
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1681 _ASBOX
1682 echo
1683 for ac_var in $ac_subst_vars
1685 eval ac_val=\$$ac_var
1686 case $ac_val in
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 esac
1689 echo "$ac_var='\''$ac_val'\''"
1690 done | sort
1691 echo
1693 if test -n "$ac_subst_files"; then
1694 cat <<\_ASBOX
1695 ## ------------------- ##
1696 ## File substitutions. ##
1697 ## ------------------- ##
1698 _ASBOX
1699 echo
1700 for ac_var in $ac_subst_files
1702 eval ac_val=\$$ac_var
1703 case $ac_val in
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705 esac
1706 echo "$ac_var='\''$ac_val'\''"
1707 done | sort
1708 echo
1711 if test -s confdefs.h; then
1712 cat <<\_ASBOX
1713 ## ----------- ##
1714 ## confdefs.h. ##
1715 ## ----------- ##
1716 _ASBOX
1717 echo
1718 cat confdefs.h
1719 echo
1721 test "$ac_signal" != 0 &&
1722 echo "$as_me: caught signal $ac_signal"
1723 echo "$as_me: exit $exit_status"
1724 } >&5
1725 rm -f core *.core core.conftest.* &&
1726 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1727 exit $exit_status
1729 for ac_signal in 1 2 13 15; do
1730 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1731 done
1732 ac_signal=0
1734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1735 rm -f -r conftest* confdefs.h
1737 # Predefined preprocessor variables.
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_NAME "$PACKAGE_NAME"
1741 _ACEOF
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1746 _ACEOF
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1751 _ACEOF
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_STRING "$PACKAGE_STRING"
1756 _ACEOF
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1761 _ACEOF
1764 # Let the site file select an alternate cache file if it wants to.
1765 # Prefer explicitly selected file to automatically selected ones.
1766 if test -n "$CONFIG_SITE"; then
1767 set x "$CONFIG_SITE"
1768 elif test "x$prefix" != xNONE; then
1769 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1770 else
1771 set x "$ac_default_prefix/share/config.site" \
1772 "$ac_default_prefix/etc/config.site"
1774 shift
1775 for ac_site_file
1777 if test -r "$ac_site_file"; then
1778 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1779 echo "$as_me: loading site script $ac_site_file" >&6;}
1780 sed 's/^/| /' "$ac_site_file" >&5
1781 . "$ac_site_file"
1783 done
1785 if test -r "$cache_file"; then
1786 # Some versions of bash will fail to source /dev/null (special
1787 # files actually), so we avoid doing that.
1788 if test -f "$cache_file"; then
1789 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1790 echo "$as_me: loading cache $cache_file" >&6;}
1791 case $cache_file in
1792 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793 *) . "./$cache_file";;
1794 esac
1796 else
1797 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1798 echo "$as_me: creating cache $cache_file" >&6;}
1799 >$cache_file
1802 # Check that the precious variables saved in the cache have kept the same
1803 # value.
1804 ac_cache_corrupted=false
1805 for ac_var in $ac_precious_vars; do
1806 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807 eval ac_new_set=\$ac_env_${ac_var}_set
1808 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809 eval ac_new_val=\$ac_env_${ac_var}_value
1810 case $ac_old_set,$ac_new_set in
1811 set,)
1812 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814 ac_cache_corrupted=: ;;
1815 ,set)
1816 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818 ac_cache_corrupted=: ;;
1819 ,);;
1821 if test "x$ac_old_val" != "x$ac_new_val"; then
1822 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1825 echo "$as_me: former value: $ac_old_val" >&2;}
1826 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1827 echo "$as_me: current value: $ac_new_val" >&2;}
1828 ac_cache_corrupted=:
1829 fi;;
1830 esac
1831 # Pass precious variables to config.status.
1832 if test "$ac_new_set" = set; then
1833 case $ac_new_val in
1834 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 *) ac_arg=$ac_var=$ac_new_val ;;
1836 esac
1837 case " $ac_configure_args " in
1838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1839 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1840 esac
1842 done
1843 if $ac_cache_corrupted; then
1844 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848 { (exit 1); exit 1; }; }
1867 ac_ext=c
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 ac_aux_dir=
1876 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1877 if test -f "$ac_dir/install-sh"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1880 break
1881 elif test -f "$ac_dir/install.sh"; then
1882 ac_aux_dir=$ac_dir
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1884 break
1885 elif test -f "$ac_dir/shtool"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1888 break
1890 done
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 # Check what host we are running on.
1908 # If a target is not suggested, we use this one.
1909 # Note that what we call a target, Autoconf calls a host.
1910 # Make sure we can run config.sub.
1911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1912 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1913 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1914 { (exit 1); exit 1; }; }
1916 { echo "$as_me:$LINENO: checking build system type" >&5
1917 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1918 if test "${ac_cv_build+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 ac_build_alias=$build_alias
1922 test "x$ac_build_alias" = x &&
1923 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1924 test "x$ac_build_alias" = x &&
1925 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1926 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1927 { (exit 1); exit 1; }; }
1928 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1929 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1930 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1931 { (exit 1); exit 1; }; }
1934 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1935 echo "${ECHO_T}$ac_cv_build" >&6; }
1936 case $ac_cv_build in
1937 *-*-*) ;;
1938 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1939 echo "$as_me: error: invalid value of canonical build" >&2;}
1940 { (exit 1); exit 1; }; };;
1941 esac
1942 build=$ac_cv_build
1943 ac_save_IFS=$IFS; IFS='-'
1944 set x $ac_cv_build
1945 shift
1946 build_cpu=$1
1947 build_vendor=$2
1948 shift; shift
1949 # Remember, the first character of IFS is used to create $*,
1950 # except with old shells:
1951 build_os=$*
1952 IFS=$ac_save_IFS
1953 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1956 { echo "$as_me:$LINENO: checking host system type" >&5
1957 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1958 if test "${ac_cv_host+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test "x$host_alias" = x; then
1962 ac_cv_host=$ac_cv_build
1963 else
1964 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1965 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1966 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1967 { (exit 1); exit 1; }; }
1971 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1972 echo "${ECHO_T}$ac_cv_host" >&6; }
1973 case $ac_cv_host in
1974 *-*-*) ;;
1975 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1976 echo "$as_me: error: invalid value of canonical host" >&2;}
1977 { (exit 1); exit 1; }; };;
1978 esac
1979 host=$ac_cv_host
1980 ac_save_IFS=$IFS; IFS='-'
1981 set x $ac_cv_host
1982 shift
1983 host_cpu=$1
1984 host_vendor=$2
1985 shift; shift
1986 # Remember, the first character of IFS is used to create $*,
1987 # except with old shells:
1988 host_os=$*
1989 IFS=$ac_save_IFS
1990 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1994 # The AROS target is slightly different to the normal GNU style
1995 # format. We don't have the middle part, and we reverse the order
1996 # of the $(CPU) and $(OS) bits.
1998 # Don't strip the version of the target yet, it might be
1999 # useful on some systems.
2001 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2002 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2004 if test "$target" = "NONE" ; then
2005 target=$host_os-$host_cpu
2006 cross_compile=no
2007 else
2008 if test "$target" = "" ; then
2009 target=$host_os-$host_cpu
2010 cross_compile=no
2011 else
2012 cross_compile=yes
2015 { echo "$as_me:$LINENO: result: $target" >&5
2016 echo "${ECHO_T}$target" >&6; }
2018 #don't know where else to put this...
2019 TOPDIR=$PWD
2021 # Parse the target field into something useful.
2023 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2024 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2027 aros_default_wbwidth=800
2028 aros_default_wbheight=600
2029 aros_default_wbdepth=4
2032 # The first step is to find the host binaries.
2033 # Check for a compiler.
2034 ac_ext=c
2035 ac_cpp='$CPP $CPPFLAGS'
2036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2063 IFS=$as_save_IFS
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069 { echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6; }
2071 else
2072 { echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6; }
2078 if test -z "$ac_cv_prog_CC"; then
2079 ac_ct_CC=$CC
2080 # Extract the first word of "gcc", so it can be a program name with args.
2081 set dummy gcc; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 if test -n "$ac_ct_CC"; then
2088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 ac_cv_prog_ac_ct_CC="gcc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2101 done
2102 done
2103 IFS=$as_save_IFS
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6; }
2111 else
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2116 if test "x$ac_ct_CC" = x; then
2117 CC=""
2118 else
2119 case $cross_compiling:$ac_tool_warned in
2120 yes:)
2121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2122 whose name does not start with the host triplet. If you think this
2123 configuration is useful to you, please write to autoconf@gnu.org." >&5
2124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2125 whose name does not start with the host triplet. If you think this
2126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2127 ac_tool_warned=yes ;;
2128 esac
2129 CC=$ac_ct_CC
2131 else
2132 CC="$ac_cv_prog_CC"
2135 if test -z "$CC"; then
2136 if test -n "$ac_tool_prefix"; then
2137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2138 set dummy ${ac_tool_prefix}cc; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2154 ac_cv_prog_CC="${ac_tool_prefix}cc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2158 done
2159 done
2160 IFS=$as_save_IFS
2164 CC=$ac_cv_prog_CC
2165 if test -n "$CC"; then
2166 { echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6; }
2168 else
2169 { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2176 if test -z "$CC"; then
2177 # Extract the first word of "cc", so it can be a program name with args.
2178 set dummy cc; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 if test -n "$CC"; then
2185 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 else
2187 ac_prog_rejected=no
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2196 ac_prog_rejected=yes
2197 continue
2199 ac_cv_prog_CC="cc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2203 done
2204 done
2205 IFS=$as_save_IFS
2207 if test $ac_prog_rejected = yes; then
2208 # We found a bogon in the path, so make sure we never use it.
2209 set dummy $ac_cv_prog_CC
2210 shift
2211 if test $# != 0; then
2212 # We chose a different compiler from the bogus one.
2213 # However, it has the same basename, so the bogon will be chosen
2214 # first if we set CC to just the basename; use the full file name.
2215 shift
2216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2221 CC=$ac_cv_prog_CC
2222 if test -n "$CC"; then
2223 { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2225 else
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2232 if test -z "$CC"; then
2233 if test -n "$ac_tool_prefix"; then
2234 for ac_prog in cl.exe
2236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2259 IFS=$as_save_IFS
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2273 test -n "$CC" && break
2274 done
2276 if test -z "$CC"; then
2277 ac_ct_CC=$CC
2278 for ac_prog in cl.exe
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$ac_ct_CC"; then
2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 ac_cv_prog_ac_ct_CC="$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2301 done
2302 done
2303 IFS=$as_save_IFS
2307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2308 if test -n "$ac_ct_CC"; then
2309 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2310 echo "${ECHO_T}$ac_ct_CC" >&6; }
2311 else
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2317 test -n "$ac_ct_CC" && break
2318 done
2320 if test "x$ac_ct_CC" = x; then
2321 CC=""
2322 else
2323 case $cross_compiling:$ac_tool_warned in
2324 yes:)
2325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2326 whose name does not start with the host triplet. If you think this
2327 configuration is useful to you, please write to autoconf@gnu.org." >&5
2328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2329 whose name does not start with the host triplet. If you think this
2330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2331 ac_tool_warned=yes ;;
2332 esac
2333 CC=$ac_ct_CC
2340 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: no acceptable C compiler found in \$PATH
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2346 # Provide some information about the compiler.
2347 echo "$as_me:$LINENO: checking for C compiler version" >&5
2348 ac_compiler=`set X $ac_compile; echo $2`
2349 { (ac_try="$ac_compiler --version >&5"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compiler --version >&5") 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2359 { (ac_try="$ac_compiler -v >&5"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compiler -v >&5") 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369 { (ac_try="$ac_compiler -V >&5"
2370 case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373 esac
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_compiler -V >&5") 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }
2380 cat >conftest.$ac_ext <<_ACEOF
2381 /* confdefs.h. */
2382 _ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2388 main ()
2392 return 0;
2394 _ACEOF
2395 ac_clean_files_save=$ac_clean_files
2396 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2397 # Try to create an executable without -o first, disregard a.out.
2398 # It will help us diagnose broken compilers, and finding out an intuition
2399 # of exeext.
2400 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2401 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2402 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2404 # List of possible output files, starting from the most likely.
2405 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2406 # only as a last resort. b.out is created by i960 compilers.
2407 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2409 # The IRIX 6 linker writes into existing files which may not be
2410 # executable, retaining their permissions. Remove them first so a
2411 # subsequent execution test works.
2412 ac_rmfiles=
2413 for ac_file in $ac_files
2415 case $ac_file in
2416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2417 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2418 esac
2419 done
2420 rm -f $ac_rmfiles
2422 if { (ac_try="$ac_link_default"
2423 case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_link_default") 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; then
2432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2435 # so that the user can short-circuit this test for compilers unknown to
2436 # Autoconf.
2437 for ac_file in $ac_files ''
2439 test -f "$ac_file" || continue
2440 case $ac_file in
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2443 [ab].out )
2444 # We found the default executable, but exeext='' is most
2445 # certainly right.
2446 break;;
2447 *.* )
2448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2449 then :; else
2450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2452 # We set ac_cv_exeext here because the later test for it is not
2453 # safe: cross compilers may not add the suffix if given an `-o'
2454 # argument, so we may need to know it at that point already.
2455 # Even if this section looks crufty: it has the advantage of
2456 # actually working.
2457 break;;
2459 break;;
2460 esac
2461 done
2462 test "$ac_cv_exeext" = no && ac_cv_exeext=
2464 else
2465 ac_file=''
2468 { echo "$as_me:$LINENO: result: $ac_file" >&5
2469 echo "${ECHO_T}$ac_file" >&6; }
2470 if test -z "$ac_file"; then
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: C compiler cannot create executables
2477 See \`config.log' for more details." >&2;}
2478 { (exit 77); exit 77; }; }
2481 ac_exeext=$ac_cv_exeext
2483 # Check that the compiler produces executables we can run. If not, either
2484 # the compiler is broken, or we cross compile.
2485 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2486 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2487 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2488 # If not cross compiling, check that we can run a simple program.
2489 if test "$cross_compiling" != yes; then
2490 if { ac_try='./$ac_file'
2491 { (case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494 esac
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_try") 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2500 cross_compiling=no
2501 else
2502 if test "$cross_compiling" = maybe; then
2503 cross_compiling=yes
2504 else
2505 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2506 If you meant to cross compile, use \`--host'.
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2515 { echo "$as_me:$LINENO: result: yes" >&5
2516 echo "${ECHO_T}yes" >&6; }
2518 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2519 ac_clean_files=$ac_clean_files_save
2520 # Check that the compiler produces executables we can run. If not, either
2521 # the compiler is broken, or we cross compile.
2522 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2523 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2524 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2525 echo "${ECHO_T}$cross_compiling" >&6; }
2527 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2528 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2529 if { (ac_try="$ac_link"
2530 case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_link") 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; then
2539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2540 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2541 # work properly (i.e., refer to `conftest.exe'), while it won't with
2542 # `rm'.
2543 for ac_file in conftest.exe conftest conftest.*; do
2544 test -f "$ac_file" || continue
2545 case $ac_file in
2546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 break;;
2549 * ) break;;
2550 esac
2551 done
2552 else
2553 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&5
2555 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2556 See \`config.log' for more details." >&2;}
2557 { (exit 1); exit 1; }; }
2560 rm -f conftest$ac_cv_exeext
2561 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2562 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2564 rm -f conftest.$ac_ext
2565 EXEEXT=$ac_cv_exeext
2566 ac_exeext=$EXEEXT
2567 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2568 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2569 if test "${ac_cv_objext+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2580 main ()
2584 return 0;
2586 _ACEOF
2587 rm -f conftest.o conftest.obj
2588 if { (ac_try="$ac_compile"
2589 case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_compile") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; then
2598 for ac_file in conftest.o conftest.obj conftest.*; do
2599 test -f "$ac_file" || continue;
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2603 break;;
2604 esac
2605 done
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2613 See \`config.log' for more details." >&2;}
2614 { (exit 1); exit 1; }; }
2617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2619 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2620 echo "${ECHO_T}$ac_cv_objext" >&6; }
2621 OBJEXT=$ac_cv_objext
2622 ac_objext=$OBJEXT
2623 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 main ()
2638 #ifndef __GNUC__
2639 choke me
2640 #endif
2643 return 0;
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (ac_try="$ac_compile"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compile") 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } && {
2660 test -z "$ac_c_werror_flag" ||
2661 test ! -s conftest.err
2662 } && test -s conftest.$ac_objext; then
2663 ac_compiler_gnu=yes
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_compiler_gnu=no
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2675 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2676 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2677 GCC=`test $ac_compiler_gnu = yes && echo yes`
2678 ac_test_CFLAGS=${CFLAGS+set}
2679 ac_save_CFLAGS=$CFLAGS
2680 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_cc_g+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 ac_save_c_werror_flag=$ac_c_werror_flag
2686 ac_c_werror_flag=yes
2687 ac_cv_prog_cc_g=no
2688 CFLAGS="-g"
2689 cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h. */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2697 main ()
2701 return 0;
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } && {
2718 test -z "$ac_c_werror_flag" ||
2719 test ! -s conftest.err
2720 } && test -s conftest.$ac_objext; then
2721 ac_cv_prog_cc_g=yes
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 CFLAGS=""
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2735 main ()
2739 return 0;
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (ac_try="$ac_compile"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compile") 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } && {
2756 test -z "$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2758 } && test -s conftest.$ac_objext; then
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 ac_c_werror_flag=$ac_save_c_werror_flag
2765 CFLAGS="-g"
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2774 main ()
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (ac_try="$ac_compile"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compile") 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } && {
2795 test -z "$ac_c_werror_flag" ||
2796 test ! -s conftest.err
2797 } && test -s conftest.$ac_objext; then
2798 ac_cv_prog_cc_g=yes
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 ac_c_werror_flag=$ac_save_c_werror_flag
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2817 if test "$ac_test_CFLAGS" = set; then
2818 CFLAGS=$ac_save_CFLAGS
2819 elif test $ac_cv_prog_cc_g = yes; then
2820 if test "$GCC" = yes; then
2821 CFLAGS="-g -O2"
2822 else
2823 CFLAGS="-g"
2825 else
2826 if test "$GCC" = yes; then
2827 CFLAGS="-O2"
2828 else
2829 CFLAGS=
2832 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2833 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_cc_c89+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837 ac_cv_prog_cc_c89=no
2838 ac_save_CC=$CC
2839 cat >conftest.$ac_ext <<_ACEOF
2840 /* confdefs.h. */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2845 #include <stdarg.h>
2846 #include <stdio.h>
2847 #include <sys/types.h>
2848 #include <sys/stat.h>
2849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2850 struct buf { int x; };
2851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2852 static char *e (p, i)
2853 char **p;
2854 int i;
2856 return p[i];
2858 static char *f (char * (*g) (char **, int), char **p, ...)
2860 char *s;
2861 va_list v;
2862 va_start (v,p);
2863 s = g (p, va_arg (v,int));
2864 va_end (v);
2865 return s;
2868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2869 function prototypes and stuff, but not '\xHH' hex character constants.
2870 These don't provoke an error unfortunately, instead are silently treated
2871 as 'x'. The following induces an error, until -std is added to get
2872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2873 array size at least. It's necessary to write '\x00'==0 to get something
2874 that's true only with -std. */
2875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2878 inside strings and character constants. */
2879 #define FOO(x) 'x'
2880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886 int argc;
2887 char **argv;
2889 main ()
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2893 return 0;
2895 _ACEOF
2896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2899 CC="$ac_save_CC $ac_arg"
2900 rm -f conftest.$ac_objext
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2917 ac_cv_prog_cc_c89=$ac_arg
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f core conftest.err conftest.$ac_objext
2926 test "x$ac_cv_prog_cc_c89" != "xno" && break
2927 done
2928 rm -f conftest.$ac_ext
2929 CC=$ac_save_CC
2932 # AC_CACHE_VAL
2933 case "x$ac_cv_prog_cc_c89" in
2935 { echo "$as_me:$LINENO: result: none needed" >&5
2936 echo "${ECHO_T}none needed" >&6; } ;;
2937 xno)
2938 { echo "$as_me:$LINENO: result: unsupported" >&5
2939 echo "${ECHO_T}unsupported" >&6; } ;;
2941 CC="$CC $ac_cv_prog_cc_c89"
2942 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2943 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2944 esac
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 case $ac_cv_prog_cc_stdc in
2954 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2955 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2956 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_c99+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 ac_cv_prog_cc_c99=no
2961 ac_save_CC=$CC
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968 #include <stdarg.h>
2969 #include <stdbool.h>
2970 #include <stdlib.h>
2971 #include <wchar.h>
2972 #include <stdio.h>
2974 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2975 #define debug(...) fprintf (stderr, __VA_ARGS__)
2976 #define showlist(...) puts (#__VA_ARGS__)
2977 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2978 static void
2979 test_varargs_macros (void)
2981 int x = 1234;
2982 int y = 5678;
2983 debug ("Flag");
2984 debug ("X = %d\n", x);
2985 showlist (The first, second, and third items.);
2986 report (x>y, "x is %d but y is %d", x, y);
2989 // Check long long types.
2990 #define BIG64 18446744073709551615ull
2991 #define BIG32 4294967295ul
2992 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2993 #if !BIG_OK
2994 your preprocessor is broken;
2995 #endif
2996 #if BIG_OK
2997 #else
2998 your preprocessor is broken;
2999 #endif
3000 static long long int bignum = -9223372036854775807LL;
3001 static unsigned long long int ubignum = BIG64;
3003 struct incomplete_array
3005 int datasize;
3006 double data[];
3009 struct named_init {
3010 int number;
3011 const wchar_t *name;
3012 double average;
3015 typedef const char *ccp;
3017 static inline int
3018 test_restrict (ccp restrict text)
3020 // See if C++-style comments work.
3021 // Iterate through items via the restricted pointer.
3022 // Also check for declarations in for loops.
3023 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3024 continue;
3025 return 0;
3028 // Check varargs and va_copy.
3029 static void
3030 test_varargs (const char *format, ...)
3032 va_list args;
3033 va_start (args, format);
3034 va_list args_copy;
3035 va_copy (args_copy, args);
3037 const char *str;
3038 int number;
3039 float fnumber;
3041 while (*format)
3043 switch (*format++)
3045 case 's': // string
3046 str = va_arg (args_copy, const char *);
3047 break;
3048 case 'd': // int
3049 number = va_arg (args_copy, int);
3050 break;
3051 case 'f': // float
3052 fnumber = va_arg (args_copy, double);
3053 break;
3054 default:
3055 break;
3058 va_end (args_copy);
3059 va_end (args);
3063 main ()
3066 // Check bool.
3067 _Bool success = false;
3069 // Check restrict.
3070 if (test_restrict ("String literal") == 0)
3071 success = true;
3072 char *restrict newvar = "Another string";
3074 // Check varargs.
3075 test_varargs ("s, d' f .", "string", 65, 34.234);
3076 test_varargs_macros ();
3078 // Check flexible array members.
3079 struct incomplete_array *ia =
3080 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3081 ia->datasize = 10;
3082 for (int i = 0; i < ia->datasize; ++i)
3083 ia->data[i] = i * 1.234;
3085 // Check named initializers.
3086 struct named_init ni = {
3087 .number = 34,
3088 .name = L"Test wide string",
3089 .average = 543.34343,
3092 ni.number = 58;
3094 int dynamic_array[ni.number];
3095 dynamic_array[ni.number - 1] = 543;
3097 // work around unused variable warnings
3098 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3099 || dynamic_array[ni.number - 1] != 543);
3102 return 0;
3104 _ACEOF
3105 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3107 CC="$ac_save_CC $ac_arg"
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } && {
3122 test -z "$ac_c_werror_flag" ||
3123 test ! -s conftest.err
3124 } && test -s conftest.$ac_objext; then
3125 ac_cv_prog_cc_c99=$ac_arg
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3133 rm -f core conftest.err conftest.$ac_objext
3134 test "x$ac_cv_prog_cc_c99" != "xno" && break
3135 done
3136 rm -f conftest.$ac_ext
3137 CC=$ac_save_CC
3140 # AC_CACHE_VAL
3141 case "x$ac_cv_prog_cc_c99" in
3143 { echo "$as_me:$LINENO: result: none needed" >&5
3144 echo "${ECHO_T}none needed" >&6; } ;;
3145 xno)
3146 { echo "$as_me:$LINENO: result: unsupported" >&5
3147 echo "${ECHO_T}unsupported" >&6; } ;;
3149 CC="$CC $ac_cv_prog_cc_c99"
3150 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3151 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3152 esac
3153 if test "x$ac_cv_prog_cc_c99" != xno; then
3154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3155 else
3156 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3157 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3158 if test "${ac_cv_prog_cc_c89+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 ac_cv_prog_cc_c89=no
3162 ac_save_CC=$CC
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <stdarg.h>
3170 #include <stdio.h>
3171 #include <sys/types.h>
3172 #include <sys/stat.h>
3173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3174 struct buf { int x; };
3175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3176 static char *e (p, i)
3177 char **p;
3178 int i;
3180 return p[i];
3182 static char *f (char * (*g) (char **, int), char **p, ...)
3184 char *s;
3185 va_list v;
3186 va_start (v,p);
3187 s = g (p, va_arg (v,int));
3188 va_end (v);
3189 return s;
3192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3193 function prototypes and stuff, but not '\xHH' hex character constants.
3194 These don't provoke an error unfortunately, instead are silently treated
3195 as 'x'. The following induces an error, until -std is added to get
3196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3197 array size at least. It's necessary to write '\x00'==0 to get something
3198 that's true only with -std. */
3199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3202 inside strings and character constants. */
3203 #define FOO(x) 'x'
3204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3206 int test (int i, double x);
3207 struct s1 {int (*f) (int a);};
3208 struct s2 {int (*f) (double a);};
3209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3210 int argc;
3211 char **argv;
3213 main ()
3215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3217 return 0;
3219 _ACEOF
3220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3223 CC="$ac_save_CC $ac_arg"
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3241 ac_cv_prog_cc_c89=$ac_arg
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f core conftest.err conftest.$ac_objext
3250 test "x$ac_cv_prog_cc_c89" != "xno" && break
3251 done
3252 rm -f conftest.$ac_ext
3253 CC=$ac_save_CC
3256 # AC_CACHE_VAL
3257 case "x$ac_cv_prog_cc_c89" in
3259 { echo "$as_me:$LINENO: result: none needed" >&5
3260 echo "${ECHO_T}none needed" >&6; } ;;
3261 xno)
3262 { echo "$as_me:$LINENO: result: unsupported" >&5
3263 echo "${ECHO_T}unsupported" >&6; } ;;
3265 CC="$CC $ac_cv_prog_cc_c89"
3266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3267 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3268 esac
3269 if test "x$ac_cv_prog_cc_c89" != xno; then
3270 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3271 else
3272 ac_cv_prog_cc_stdc=no
3279 esac
3280 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3281 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 case $ac_cv_prog_cc_stdc in
3287 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3288 echo "${ECHO_T}unsupported" >&6; } ;;
3289 '') { echo "$as_me:$LINENO: result: none needed" >&5
3290 echo "${ECHO_T}none needed" >&6; } ;;
3291 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3293 esac
3296 ac_ext=c
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3302 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3303 # On Suns, sometimes $CPP names a directory.
3304 if test -n "$CPP" && test -d "$CPP"; then
3305 CPP=
3307 if test -z "$CPP"; then
3308 if test "${ac_cv_prog_CPP+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 # Double quotes because CPP needs to be expanded
3312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 ac_preproc_ok=false
3315 for ac_c_preproc_warn_flag in '' yes
3317 # Use a header file that comes with gcc, so configuring glibc
3318 # with a fresh cross-compiler works.
3319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320 # <limits.h> exists even on freestanding compilers.
3321 # On the NeXT, cc -E runs the code through the compiler's parser,
3322 # not just through cpp. "Syntax error" is here to catch this case.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #ifdef __STDC__
3330 # include <limits.h>
3331 #else
3332 # include <assert.h>
3333 #endif
3334 Syntax error
3335 _ACEOF
3336 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } >/dev/null && {
3349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3350 test ! -s conftest.err
3351 }; then
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 # Broken: fails on valid input.
3358 continue
3361 rm -f conftest.err conftest.$ac_ext
3363 # OK, works on sane cases. Now check whether nonexistent headers
3364 # can be detected and how.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h. */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3371 #include <ac_nonexistent.h>
3372 _ACEOF
3373 if { (ac_try="$ac_cpp conftest.$ac_ext"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } >/dev/null && {
3386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3387 test ! -s conftest.err
3388 }; then
3389 # Broken: success on invalid input.
3390 continue
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Passes both tests.
3396 ac_preproc_ok=:
3397 break
3400 rm -f conftest.err conftest.$ac_ext
3402 done
3403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3404 rm -f conftest.err conftest.$ac_ext
3405 if $ac_preproc_ok; then
3406 break
3409 done
3410 ac_cv_prog_CPP=$CPP
3413 CPP=$ac_cv_prog_CPP
3414 else
3415 ac_cv_prog_CPP=$CPP
3417 { echo "$as_me:$LINENO: result: $CPP" >&5
3418 echo "${ECHO_T}$CPP" >&6; }
3419 ac_preproc_ok=false
3420 for ac_c_preproc_warn_flag in '' yes
3422 # Use a header file that comes with gcc, so configuring glibc
3423 # with a fresh cross-compiler works.
3424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3425 # <limits.h> exists even on freestanding compilers.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #ifdef __STDC__
3435 # include <limits.h>
3436 #else
3437 # include <assert.h>
3438 #endif
3439 Syntax error
3440 _ACEOF
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null && {
3454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3455 test ! -s conftest.err
3456 }; then
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Broken: fails on valid input.
3463 continue
3466 rm -f conftest.err conftest.$ac_ext
3468 # OK, works on sane cases. Now check whether nonexistent headers
3469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #include <ac_nonexistent.h>
3477 _ACEOF
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null && {
3491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 }; then
3494 # Broken: success on invalid input.
3495 continue
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3505 rm -f conftest.err conftest.$ac_ext
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3512 else
3513 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 # Check for a compatible awk
3528 for ac_prog in gawk nawk
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_AWK+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -n "$AWK"; then
3538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_AWK="$ac_prog"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3551 done
3552 done
3553 IFS=$as_save_IFS
3557 AWK=$ac_cv_prog_AWK
3558 if test -n "$AWK"; then
3559 { echo "$as_me:$LINENO: result: $AWK" >&5
3560 echo "${ECHO_T}$AWK" >&6; }
3561 else
3562 { echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6; }
3567 test -n "$AWK" && break
3568 done
3570 if test "$AWK" = ""; then
3571 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3572 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3573 { (exit 1); exit 1; }; }
3575 # Extract the first word of "mmake", so it can be a program name with args.
3576 set dummy mmake; ac_word=$2
3577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3579 if test "${ac_cv_prog_MMAKE+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 if test -n "$MMAKE"; then
3583 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_MMAKE="mmake "
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 MMAKE=$ac_cv_prog_MMAKE
3603 if test -n "$MMAKE"; then
3604 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3605 echo "${ECHO_T}$MMAKE" >&6; }
3606 else
3607 { echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6; }
3613 # Perform some default variable assignments. Note all of these will be
3614 # Regenerated from the script, so there is no need to cache them.
3616 aros_host_cc="$CC"
3617 if test "$GCC" = "yes"; then
3618 aros_gcc_ld=`$CC -print-prog-name=ld`
3619 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3620 set dummy `basename $aros_gcc_ld`; ac_word=$2
3621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 case $aros_host_ld in
3627 [\\/]* | ?:[\\/]*)
3628 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in `dirname $aros_gcc_ld`
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3642 done
3643 done
3644 IFS=$as_save_IFS
3647 esac
3649 aros_host_ld=$ac_cv_path_aros_host_ld
3650 if test -n "$aros_host_ld"; then
3651 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3652 echo "${ECHO_T}$aros_host_ld" >&6; }
3653 else
3654 { echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6; }
3660 if test "$aros_host_ld" = ""; then
3661 # Extract the first word of "ld", so it can be a program name with args.
3662 set dummy ld; ac_word=$2
3663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 case $aros_host_ld in
3669 [\\/]* | ?:[\\/]*)
3670 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3684 done
3685 done
3686 IFS=$as_save_IFS
3689 esac
3691 aros_host_ld=$ac_cv_path_aros_host_ld
3692 if test -n "$aros_host_ld"; then
3693 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3694 echo "${ECHO_T}$aros_host_ld" >&6; }
3695 else
3696 { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3702 if test "$aros_host_ld" = ""; then
3703 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3704 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3705 { (exit 1); exit 1; }; }
3707 aros_host_make="make"
3708 aros_host_cflags=$CFLAGS
3709 aros_host_ldflags=$LDFLAGS
3710 aros_host_debug="-g -O0"
3711 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3712 aros_host_mkargs="--no-print-directory"
3713 aros_host_incl="/usr/include"
3714 aros_host_exe_suffix="$EXEEXT"
3715 aros_host_lib_suffix=""
3717 for ac_prog in aclocal aclocal19
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$aros_host_aclocal"; then
3727 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_aros_host_aclocal="$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3742 IFS=$as_save_IFS
3746 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3747 if test -n "$aros_host_aclocal"; then
3748 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3749 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3750 else
3751 { echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6; }
3756 test -n "$aros_host_aclocal" && break
3757 done
3759 for ac_prog in autoconf autoconf259 autoconf253
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3765 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$aros_host_autoconf"; then
3769 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_aros_host_autoconf="$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3784 IFS=$as_save_IFS
3788 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3789 if test -n "$aros_host_autoconf"; then
3790 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3791 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3792 else
3793 { echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6; }
3798 test -n "$aros_host_autoconf" && break
3799 done
3801 for ac_prog in autoheader autoheader259 autoheader253
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3807 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 if test -n "$aros_host_autoheader"; then
3811 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_prog_aros_host_autoheader="$ac_prog"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3826 IFS=$as_save_IFS
3830 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3831 if test -n "$aros_host_autoheader"; then
3832 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3833 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3834 else
3835 { echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6; }
3840 test -n "$aros_host_autoheader" && break
3841 done
3843 for ac_prog in automake automake19
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3849 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$aros_host_automake"; then
3853 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_prog_aros_host_automake="$ac_prog"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3868 IFS=$as_save_IFS
3872 aros_host_automake=$ac_cv_prog_aros_host_automake
3873 if test -n "$aros_host_automake"; then
3874 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3875 echo "${ECHO_T}$aros_host_automake" >&6; }
3876 else
3877 { echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6; }
3882 test -n "$aros_host_automake" && break
3883 done
3886 case "$aros_host_cc" in
3887 *gcc*)
3888 aros_host_cc_pipe="-pipe"
3890 icc)
3891 aros_host_cc_pipe=""
3894 aros_host_cc_pipe=""
3896 esac
3898 aros_target_cc_includes=""
3900 # This is the main host configuration section. It is where the host
3901 # can change the values of any variables it needs to change. We do
3902 # not look at anything that compiles to the target yet, we'll get
3903 # to that later.
3905 case "$host_os" in
3906 linux*)
3907 aros_host_arch="linux"
3908 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3909 case "$host_cpu" in
3910 *i?86*)
3911 aros_host_cpu="i386"
3913 *x86_64*)
3914 aros_host_cpu="x86_64"
3916 *m68k*)
3917 aros_host_cpu="m68k"
3919 *powerpc*)
3920 aros_host_cpu="ppc"
3923 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3924 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3925 aros_host_cpu="$host_cpu"
3927 esac
3930 freebsd*)
3931 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3932 aros_host_make="gmake"
3933 aros_host_arch="freebsd"
3934 aros_host_cpu="i386"
3936 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3939 case $host_os in
3940 freebsd[234]*)
3941 aros_object_format="elf_i386"
3945 aros_object_format="elf_i386_fbsd"
3947 esac
3951 darwin*)
3952 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3953 aros_host_arch="darwin"
3954 case "$host_cpu" in
3955 *i?86*)
3956 aros_host_cpu="i386"
3958 *powerpc*)
3959 aros_host_cpu="ppc"
3962 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3963 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3964 aros_host_cpu="$host_cpu"
3966 esac
3968 aros_host_ldflags="$aros_host_ldflags -liconv"
3972 netbsd*)
3973 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3974 aros_host_make="gmake"
3975 aros_host_arch="netbsd"
3976 case "$host_cpu" in
3977 *i?86*)
3978 aros_host_cpu="i386"
3980 *m68k*)
3981 aros_host_cpu="m68k"
3984 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3985 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3986 aros_host_cpu="$host_cpu"
3988 esac
3989 aros_host_lib_suffix=".0.0"
3992 openbsd*)
3993 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3994 aros_host_make="gmake"
3995 aros_host_arch="openbsd"
3996 case "$host_cpu" in
3997 *i?86*)
3998 aros_host_cpu="i386"
4001 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4002 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4003 aros_host_cpu="$host_cpu"
4005 esac
4008 solaris*)
4009 aros_host_arch="solaris"
4010 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4011 case "$host_cpu" in
4012 *sparc*)
4013 aros_host_cpu="sparc"
4016 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4017 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4018 aros_host_cpu="$host_cpu"
4020 esac
4023 morphos*)
4024 aros_host_arch="morphos"
4025 aros_host_cpu="ppc"
4028 amiga*)
4029 aros_host_arch="amiga"
4030 SORT="/gg/bin/sort"
4031 TEST="/gg/bin/test"
4032 UNIQ="/gg/bin/uniq"
4033 FOR="for"
4034 TOUCH="/gg/bin/touch"
4035 case "$host_cpu" in
4036 *m68k*)
4037 aros_host_cpu="m68k"
4039 *powerpc*)
4040 aros_host_cpu="ppc"
4043 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4044 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4045 aros_host_cpu="$host_cpu"
4047 esac
4050 cygwin*)
4051 aros_host_arch="cygwin"
4052 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4053 case "$host_cpu" in
4054 *i?86*)
4055 aros_host_cpu="i386"
4058 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4059 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4060 aros_host_cpu="$host_cpu"
4062 esac
4065 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4066 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4067 { (exit 1); exit 1; }; }
4069 esac
4071 # Extract the first word of "ar", so it can be a program name with args.
4072 set dummy ar; ac_word=$2
4073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4075 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 if test -n "$aros_host_ar"; then
4079 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088 ac_cv_prog_aros_host_ar="ar cr"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 aros_host_ar=$ac_cv_prog_aros_host_ar
4099 if test -n "$aros_host_ar"; then
4100 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4101 echo "${ECHO_T}$aros_host_ar" >&6; }
4102 else
4103 { echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6; }
4108 if test "$aros_host_ar" = ""; then
4109 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4110 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4111 { (exit 1); exit 1; }; }
4113 # Extract the first word of "ranlib", so it can be a program name with args.
4114 set dummy ranlib; ac_word=$2
4115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4117 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$aros_host_ranlib"; then
4121 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130 ac_cv_prog_aros_host_ranlib="ranlib "
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4136 IFS=$as_save_IFS
4140 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4141 if test -n "$aros_host_ranlib"; then
4142 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4143 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4144 else
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4150 if test "$aros_host_ranlib" = ""; then
4151 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4152 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4153 { (exit 1); exit 1; }; }
4155 # Extract the first word of "strip", so it can be a program name with args.
4156 set dummy strip; ac_word=$2
4157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -n "$aros_host_strip"; then
4163 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_aros_host_strip="strip "
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4178 IFS=$as_save_IFS
4182 aros_host_strip=$ac_cv_prog_aros_host_strip
4183 if test -n "$aros_host_strip"; then
4184 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4185 echo "${ECHO_T}$aros_host_strip" >&6; }
4186 else
4187 { echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6; }
4192 if test "$aros_host_strip" = ""; then
4193 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4194 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4195 { (exit 1); exit 1; }; }
4198 # Extract the first word of "rm", so it can be a program name with args.
4199 set dummy rm; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_RM+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$RM"; then
4206 ac_cv_prog_RM="$RM" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_RM="rm -rf"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 RM=$ac_cv_prog_RM
4226 if test -n "$RM"; then
4227 { echo "$as_me:$LINENO: result: $RM" >&5
4228 echo "${ECHO_T}$RM" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4235 if test "$RM" = ""; then
4236 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4237 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4238 { (exit 1); exit 1; }; }
4240 # Extract the first word of "cp", so it can be a program name with args.
4241 set dummy cp; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_CP+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -n "$CP"; then
4248 ac_cv_prog_CP="$CP" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_CP="cp "
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4263 IFS=$as_save_IFS
4267 CP=$ac_cv_prog_CP
4268 if test -n "$CP"; then
4269 { echo "$as_me:$LINENO: result: $CP" >&5
4270 echo "${ECHO_T}$CP" >&6; }
4271 else
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4277 if test "$CP" = ""; then
4278 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4279 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4280 { (exit 1); exit 1; }; }
4282 # Extract the first word of "mv", so it can be a program name with args.
4283 set dummy mv; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_MV+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$MV"; then
4290 ac_cv_prog_MV="$MV" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_MV="mv "
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 MV=$ac_cv_prog_MV
4310 if test -n "$MV"; then
4311 { echo "$as_me:$LINENO: result: $MV" >&5
4312 echo "${ECHO_T}$MV" >&6; }
4313 else
4314 { echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6; }
4319 if test "$MV" = ""; then
4320 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4321 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4322 { (exit 1); exit 1; }; }
4324 # Extract the first word of "echo", so it can be a program name with args.
4325 set dummy echo; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_prog_ECHO+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test -n "$ECHO"; then
4332 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_ECHO="echo "
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 ECHO=$ac_cv_prog_ECHO
4352 if test -n "$ECHO"; then
4353 { echo "$as_me:$LINENO: result: $ECHO" >&5
4354 echo "${ECHO_T}$ECHO" >&6; }
4355 else
4356 { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4361 if test "$ECHO" = ""; then
4362 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4363 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4364 { (exit 1); exit 1; }; }
4366 # Extract the first word of "mkdir", so it can be a program name with args.
4367 set dummy mkdir; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_prog_MKDIR+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 if test -n "$MKDIR"; then
4374 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_MKDIR="mkdir -p"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4393 MKDIR=$ac_cv_prog_MKDIR
4394 if test -n "$MKDIR"; then
4395 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4396 echo "${ECHO_T}$MKDIR" >&6; }
4397 else
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4403 if test "$MKDIR" = ""; then
4404 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4405 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4406 { (exit 1); exit 1; }; }
4408 # Extract the first word of "touch", so it can be a program name with args.
4409 set dummy touch; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_TOUCH+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 if test -n "$TOUCH"; then
4416 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_TOUCH="touch "
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4429 done
4430 done
4431 IFS=$as_save_IFS
4435 TOUCH=$ac_cv_prog_TOUCH
4436 if test -n "$TOUCH"; then
4437 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4438 echo "${ECHO_T}$TOUCH" >&6; }
4439 else
4440 { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4445 if test "$TOUCH" = ""; then
4446 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4447 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4448 { (exit 1); exit 1; }; }
4450 # Extract the first word of "sort", so it can be a program name with args.
4451 set dummy sort; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_prog_SORT+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 if test -n "$SORT"; then
4458 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_SORT="sort "
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4471 done
4472 done
4473 IFS=$as_save_IFS
4477 SORT=$ac_cv_prog_SORT
4478 if test -n "$SORT"; then
4479 { echo "$as_me:$LINENO: result: $SORT" >&5
4480 echo "${ECHO_T}$SORT" >&6; }
4481 else
4482 { echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6; }
4487 if test "$SORT" = ""; then
4488 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4489 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4490 { (exit 1); exit 1; }; }
4492 # Extract the first word of "uniq", so it can be a program name with args.
4493 set dummy uniq; ac_word=$2
4494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4496 if test "${ac_cv_prog_UNIQ+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 if test -n "$UNIQ"; then
4500 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_UNIQ="uniq "
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 UNIQ=$ac_cv_prog_UNIQ
4520 if test -n "$UNIQ"; then
4521 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4522 echo "${ECHO_T}$UNIQ" >&6; }
4523 else
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4529 if test "$UNIQ" = ""; then
4530 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4531 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4532 { (exit 1); exit 1; }; }
4534 # Extract the first word of "true", so it can be a program name with args.
4535 set dummy true; ac_word=$2
4536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538 if test "${ac_cv_prog_NOP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 if test -n "$NOP"; then
4542 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_NOP="true "
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 NOP=$ac_cv_prog_NOP
4562 if test -n "$NOP"; then
4563 { echo "$as_me:$LINENO: result: $NOP" >&5
4564 echo "${ECHO_T}$NOP" >&6; }
4565 else
4566 { echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6; }
4571 if test "$NOP" = ""; then
4572 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4573 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4574 { (exit 1); exit 1; }; }
4576 # Extract the first word of "cat", so it can be a program name with args.
4577 set dummy cat; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_prog_CAT+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 if test -n "$CAT"; then
4584 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_CAT="cat "
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 CAT=$ac_cv_prog_CAT
4604 if test -n "$CAT"; then
4605 { echo "$as_me:$LINENO: result: $CAT" >&5
4606 echo "${ECHO_T}$CAT" >&6; }
4607 else
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4613 if test "$CAT" = ""; then
4614 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4615 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4616 { (exit 1); exit 1; }; }
4618 # Extract the first word of "bison", so it can be a program name with args.
4619 set dummy bison; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_BISON+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$BISON"; then
4626 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_BISON="bison "
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 BISON=$ac_cv_prog_BISON
4646 if test -n "$BISON"; then
4647 { echo "$as_me:$LINENO: result: $BISON" >&5
4648 echo "${ECHO_T}$BISON" >&6; }
4649 else
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 if test "$BISON" = ""; then
4656 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4657 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4658 { (exit 1); exit 1; }; }
4660 # Extract the first word of "flex", so it can be a program name with args.
4661 set dummy flex; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_FLEX+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 if test -n "$FLEX"; then
4668 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_FLEX="flex "
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 FLEX=$ac_cv_prog_FLEX
4688 if test -n "$FLEX"; then
4689 { echo "$as_me:$LINENO: result: $FLEX" >&5
4690 echo "${ECHO_T}$FLEX" >&6; }
4691 else
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 if test "$FLEX" = ""; then
4698 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4699 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4700 { (exit 1); exit 1; }; }
4702 # Extract the first word of "pngtopnm", so it can be a program name with args.
4703 set dummy pngtopnm; ac_word=$2
4704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4706 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 if test -n "$PNGTOPNM"; then
4710 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_prog_PNGTOPNM="pngtopnm "
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4723 done
4724 done
4725 IFS=$as_save_IFS
4729 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4730 if test -n "$PNGTOPNM"; then
4731 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4732 echo "${ECHO_T}$PNGTOPNM" >&6; }
4733 else
4734 { echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6; }
4739 if test "$PNGTOPNM" = ""; then
4740 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4741 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4742 { (exit 1); exit 1; }; }
4744 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4745 set dummy ppmtoilbm; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 if test -n "$PPMTOILBM"; then
4752 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4772 if test -n "$PPMTOILBM"; then
4773 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4774 echo "${ECHO_T}$PPMTOILBM" >&6; }
4775 else
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4781 if test "$PPMTOILBM" = ""; then
4782 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4783 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4784 { (exit 1); exit 1; }; }
4786 # Extract the first word of "sed", so it can be a program name with args.
4787 set dummy sed; ac_word=$2
4788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790 if test "${ac_cv_prog_SED+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 if test -n "$SED"; then
4794 ac_cv_prog_SED="$SED" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_SED="sed "
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4809 IFS=$as_save_IFS
4813 SED=$ac_cv_prog_SED
4814 if test -n "$SED"; then
4815 { echo "$as_me:$LINENO: result: $SED" >&5
4816 echo "${ECHO_T}$SED" >&6; }
4817 else
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4823 if test "$SED" = ""; then
4824 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4825 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4826 { (exit 1); exit 1; }; }
4828 # Extract the first word of "chmod", so it can be a program name with args.
4829 set dummy chmod; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_CHMOD+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 if test -n "$CHMOD"; then
4836 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_CHMOD="chmod "
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 CHMOD=$ac_cv_prog_CHMOD
4856 if test -n "$CHMOD"; then
4857 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4858 echo "${ECHO_T}$CHMOD" >&6; }
4859 else
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4865 if test "$CHMOD" = ""; then
4866 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4867 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4868 { (exit 1); exit 1; }; }
4875 if test -n "$PYTHON"; then
4876 # If the user set $PYTHON, use it and don't search something else.
4877 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4878 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4879 prog="import sys, string
4880 # split strings by '.' and convert to numeric. Append some zeros
4881 # because we need at least 4 digits for the hex conversion.
4882 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4883 minverhex = 0
4884 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4885 sys.exit(sys.hexversion < minverhex)"
4886 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4887 ($PYTHON -c "$prog") >&5 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; then
4891 { echo "$as_me:$LINENO: result: yes" >&5
4892 echo "${ECHO_T}yes" >&6; }
4893 else
4894 { { echo "$as_me:$LINENO: error: too old" >&5
4895 echo "$as_me: error: too old" >&2;}
4896 { (exit 1); exit 1; }; }
4899 am_display_PYTHON=$PYTHON
4900 else
4901 # Otherwise, try each interpreter until we find one that satisfies
4902 # VERSION.
4903 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4904 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4905 if test "${am_cv_pathless_PYTHON+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4909 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
4910 test "$am_cv_pathless_PYTHON" = none && break
4911 prog="import sys, string
4912 # split strings by '.' and convert to numeric. Append some zeros
4913 # because we need at least 4 digits for the hex conversion.
4914 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4915 minverhex = 0
4916 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4917 sys.exit(sys.hexversion < minverhex)"
4918 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4919 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; then
4923 break
4926 done
4928 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4929 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4930 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4931 if test "$am_cv_pathless_PYTHON" = none; then
4932 PYTHON=:
4933 else
4934 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4935 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4938 if test "${ac_cv_path_PYTHON+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 case $PYTHON in
4942 [\\/]* | ?:[\\/]*)
4943 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4962 esac
4964 PYTHON=$ac_cv_path_PYTHON
4965 if test -n "$PYTHON"; then
4966 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4967 echo "${ECHO_T}$PYTHON" >&6; }
4968 else
4969 { echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6; }
4975 am_display_PYTHON=$am_cv_pathless_PYTHON
4979 if test "$PYTHON" = :; then
4980 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4981 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4982 { (exit 1); exit 1; }; }
4983 else
4986 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4987 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4988 if test "${am_cv_python_version+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4993 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4994 echo "${ECHO_T}$am_cv_python_version" >&6; }
4995 PYTHON_VERSION=$am_cv_python_version
4999 PYTHON_PREFIX='${prefix}'
5001 PYTHON_EXEC_PREFIX='${exec_prefix}'
5005 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5006 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5007 if test "${am_cv_python_platform+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5012 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5013 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5014 PYTHON_PLATFORM=$am_cv_python_platform
5019 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5020 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5021 if test "${am_cv_python_pythondir+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5025 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5027 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5028 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5029 pythondir=$am_cv_python_pythondir
5033 pkgpythondir=\${pythondir}/$PACKAGE
5036 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5037 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5038 if test "${am_cv_python_pyexecdir+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5042 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5044 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5045 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5046 pyexecdir=$am_cv_python_pyexecdir
5050 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5058 FOR=for
5060 IF=if
5062 TEST=test
5064 CMP=cmp
5068 # Check for some includes for the X11 HIDD and the kernel
5071 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5072 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5073 if test "${ac_cv_path_GREP+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 # Extract the first word of "grep ggrep" to use in msg output
5077 if test -z "$GREP"; then
5078 set dummy grep ggrep; ac_prog_name=$2
5079 if test "${ac_cv_path_GREP+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082 ac_path_GREP_found=false
5083 # Loop through the user's path and test for each of PROGNAME-LIST
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_prog in grep ggrep; do
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5092 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5093 # Check for GNU ac_path_GREP and select it if it is found.
5094 # Check for GNU $ac_path_GREP
5095 case `"$ac_path_GREP" --version 2>&1` in
5096 *GNU*)
5097 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5099 ac_count=0
5100 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5101 while :
5103 cat "conftest.in" "conftest.in" >"conftest.tmp"
5104 mv "conftest.tmp" "conftest.in"
5105 cp "conftest.in" "conftest.nl"
5106 echo 'GREP' >> "conftest.nl"
5107 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109 ac_count=`expr $ac_count + 1`
5110 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5111 # Best one so far, save it but keep looking for a better one
5112 ac_cv_path_GREP="$ac_path_GREP"
5113 ac_path_GREP_max=$ac_count
5115 # 10*(2^10) chars as input seems more than enough
5116 test $ac_count -gt 10 && break
5117 done
5118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119 esac
5122 $ac_path_GREP_found && break 3
5123 done
5124 done
5126 done
5127 IFS=$as_save_IFS
5132 GREP="$ac_cv_path_GREP"
5133 if test -z "$GREP"; then
5134 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5135 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5136 { (exit 1); exit 1; }; }
5139 else
5140 ac_cv_path_GREP=$GREP
5145 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5146 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5147 GREP="$ac_cv_path_GREP"
5150 { echo "$as_me:$LINENO: checking for egrep" >&5
5151 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_EGREP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5156 then ac_cv_path_EGREP="$GREP -E"
5157 else
5158 # Extract the first word of "egrep" to use in msg output
5159 if test -z "$EGREP"; then
5160 set dummy egrep; ac_prog_name=$2
5161 if test "${ac_cv_path_EGREP+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 ac_path_EGREP_found=false
5165 # Loop through the user's path and test for each of PROGNAME-LIST
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_prog in egrep; do
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5175 # Check for GNU ac_path_EGREP and select it if it is found.
5176 # Check for GNU $ac_path_EGREP
5177 case `"$ac_path_EGREP" --version 2>&1` in
5178 *GNU*)
5179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5181 ac_count=0
5182 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5183 while :
5185 cat "conftest.in" "conftest.in" >"conftest.tmp"
5186 mv "conftest.tmp" "conftest.in"
5187 cp "conftest.in" "conftest.nl"
5188 echo 'EGREP' >> "conftest.nl"
5189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5191 ac_count=`expr $ac_count + 1`
5192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5193 # Best one so far, save it but keep looking for a better one
5194 ac_cv_path_EGREP="$ac_path_EGREP"
5195 ac_path_EGREP_max=$ac_count
5197 # 10*(2^10) chars as input seems more than enough
5198 test $ac_count -gt 10 && break
5199 done
5200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5201 esac
5204 $ac_path_EGREP_found && break 3
5205 done
5206 done
5208 done
5209 IFS=$as_save_IFS
5214 EGREP="$ac_cv_path_EGREP"
5215 if test -z "$EGREP"; then
5216 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5217 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5218 { (exit 1); exit 1; }; }
5221 else
5222 ac_cv_path_EGREP=$EGREP
5228 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5229 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5230 EGREP="$ac_cv_path_EGREP"
5233 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5234 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5235 if test "${ac_cv_header_stdc+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <stdlib.h>
5245 #include <stdarg.h>
5246 #include <string.h>
5247 #include <float.h>
5250 main ()
5254 return 0;
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (ac_try="$ac_compile"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_compile") 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_c_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest.$ac_objext; then
5274 ac_cv_header_stdc=yes
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_cv_header_stdc=no
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 if test $ac_cv_header_stdc = yes; then
5285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #include <string.h>
5294 _ACEOF
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 $EGREP "memchr" >/dev/null 2>&1; then
5298 else
5299 ac_cv_header_stdc=no
5301 rm -f conftest*
5305 if test $ac_cv_header_stdc = yes; then
5306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5307 cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <stdlib.h>
5315 _ACEOF
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "free" >/dev/null 2>&1; then
5319 else
5320 ac_cv_header_stdc=no
5322 rm -f conftest*
5326 if test $ac_cv_header_stdc = yes; then
5327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5328 if test "$cross_compiling" = yes; then
5330 else
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <ctype.h>
5338 #include <stdlib.h>
5339 #if ((' ' & 0x0FF) == 0x020)
5340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5342 #else
5343 # define ISLOWER(c) \
5344 (('a' <= (c) && (c) <= 'i') \
5345 || ('j' <= (c) && (c) <= 'r') \
5346 || ('s' <= (c) && (c) <= 'z'))
5347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5348 #endif
5350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5352 main ()
5354 int i;
5355 for (i = 0; i < 256; i++)
5356 if (XOR (islower (i), ISLOWER (i))
5357 || toupper (i) != TOUPPER (i))
5358 return 2;
5359 return 0;
5361 _ACEOF
5362 rm -f conftest$ac_exeext
5363 if { (ac_try="$ac_link"
5364 case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_link") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373 { (case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_try") 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5383 else
5384 echo "$as_me: program exited with status $ac_status" >&5
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 ( exit $ac_status )
5389 ac_cv_header_stdc=no
5391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5398 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5399 if test $ac_cv_header_stdc = yes; then
5401 cat >>confdefs.h <<\_ACEOF
5402 #define STDC_HEADERS 1
5403 _ACEOF
5407 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5418 inttypes.h stdint.h unistd.h
5420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 $ac_includes_default
5434 #include <$ac_header>
5435 _ACEOF
5436 rm -f conftest.$ac_objext
5437 if { (ac_try="$ac_compile"
5438 case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_compile") 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } && {
5450 test -z "$ac_c_werror_flag" ||
5451 test ! -s conftest.err
5452 } && test -s conftest.$ac_objext; then
5453 eval "$as_ac_Header=yes"
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 eval "$as_ac_Header=no"
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_res=`eval echo '${'$as_ac_Header'}'`
5464 { echo "$as_me:$LINENO: result: $ac_res" >&5
5465 echo "${ECHO_T}$ac_res" >&6; }
5466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5469 _ACEOF
5473 done
5485 for ac_header in sys/ipc.h sys/shm.h \
5486 sys/mmap.h sys/mman.h sysexits.h \
5487 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 ac_res=`eval echo '${'$as_ac_Header'}'`
5498 { echo "$as_me:$LINENO: result: $ac_res" >&5
5499 echo "${ECHO_T}$ac_res" >&6; }
5500 else
5501 # Is the header compilable?
5502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5511 #include <$ac_header>
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5530 ac_header_compiler=yes
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_header_compiler=no
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5540 echo "${ECHO_T}$ac_header_compiler" >&6; }
5542 # Is the header present?
5543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 #include <$ac_header>
5552 _ACEOF
5553 if { (ac_try="$ac_cpp conftest.$ac_ext"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null && {
5566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 }; then
5569 ac_header_preproc=yes
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_header_preproc=no
5577 rm -f conftest.err conftest.$ac_ext
5578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5579 echo "${ECHO_T}$ac_header_preproc" >&6; }
5581 # So? What about this header?
5582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5583 yes:no: )
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5588 ac_header_preproc=yes
5590 no:yes:* )
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5605 esac
5606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 eval "$as_ac_Header=\$ac_header_preproc"
5613 ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615 echo "${ECHO_T}$ac_res" >&6; }
5618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5619 cat >>confdefs.h <<_ACEOF
5620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5621 _ACEOF
5625 done
5629 for ac_header in sys/mount.h
5631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #include <sys/param.h>
5645 #include <$ac_header>
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654 (eval "$ac_compile") 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && {
5661 test -z "$ac_c_werror_flag" ||
5662 test ! -s conftest.err
5663 } && test -s conftest.$ac_objext; then
5664 eval "$as_ac_Header=yes"
5665 else
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5669 eval "$as_ac_Header=no"
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_res=`eval echo '${'$as_ac_Header'}'`
5675 { echo "$as_me:$LINENO: result: $ac_res" >&5
5676 echo "${ECHO_T}$ac_res" >&6; }
5677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5678 cat >>confdefs.h <<_ACEOF
5679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 _ACEOF
5684 done
5692 ac_header_dirent=no
5693 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5694 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5695 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5696 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <sys/types.h>
5707 #include <$ac_hdr>
5710 main ()
5712 if ((DIR *) 0)
5713 return 0;
5715 return 0;
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 eval "$as_ac_Header=yes"
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 eval "$as_ac_Header=no"
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 ac_res=`eval echo '${'$as_ac_Header'}'`
5746 { echo "$as_me:$LINENO: result: $ac_res" >&5
5747 echo "${ECHO_T}$ac_res" >&6; }
5748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5749 cat >>confdefs.h <<_ACEOF
5750 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5751 _ACEOF
5753 ac_header_dirent=$ac_hdr; break
5756 done
5757 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5758 if test $ac_header_dirent = dirent.h; then
5759 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5760 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5761 if test "${ac_cv_search_opendir+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 ac_func_search_save_LIBS=$LIBS
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5772 /* Override any GCC internal prototype to avoid an error.
5773 Use char because int might match the return type of a GCC
5774 builtin and then its argument prototype would still apply. */
5775 #ifdef __cplusplus
5776 extern "C"
5777 #endif
5778 char opendir ();
5780 main ()
5782 return opendir ();
5784 return 0;
5786 _ACEOF
5787 for ac_lib in '' dir; do
5788 if test -z "$ac_lib"; then
5789 ac_res="none required"
5790 else
5791 ac_res=-l$ac_lib
5792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (ac_try="$ac_link"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_link") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest$ac_exeext &&
5811 $as_test_x conftest$ac_exeext; then
5812 ac_cv_search_opendir=$ac_res
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5821 conftest$ac_exeext
5822 if test "${ac_cv_search_opendir+set}" = set; then
5823 break
5825 done
5826 if test "${ac_cv_search_opendir+set}" = set; then
5828 else
5829 ac_cv_search_opendir=no
5831 rm conftest.$ac_ext
5832 LIBS=$ac_func_search_save_LIBS
5834 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5835 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5836 ac_res=$ac_cv_search_opendir
5837 if test "$ac_res" != no; then
5838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5842 else
5843 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5844 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5845 if test "${ac_cv_search_opendir+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 ac_func_search_save_LIBS=$LIBS
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5856 /* Override any GCC internal prototype to avoid an error.
5857 Use char because int might match the return type of a GCC
5858 builtin and then its argument prototype would still apply. */
5859 #ifdef __cplusplus
5860 extern "C"
5861 #endif
5862 char opendir ();
5864 main ()
5866 return opendir ();
5868 return 0;
5870 _ACEOF
5871 for ac_lib in '' x; do
5872 if test -z "$ac_lib"; then
5873 ac_res="none required"
5874 else
5875 ac_res=-l$ac_lib
5876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (ac_try="$ac_link"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_link") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest$ac_exeext &&
5895 $as_test_x conftest$ac_exeext; then
5896 ac_cv_search_opendir=$ac_res
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5905 conftest$ac_exeext
5906 if test "${ac_cv_search_opendir+set}" = set; then
5907 break
5909 done
5910 if test "${ac_cv_search_opendir+set}" = set; then
5912 else
5913 ac_cv_search_opendir=no
5915 rm conftest.$ac_ext
5916 LIBS=$ac_func_search_save_LIBS
5918 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5919 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5920 ac_res=$ac_cv_search_opendir
5921 if test "$ac_res" != no; then
5922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5928 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5929 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5930 if test "${ac_cv_header_stat_broken+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <sys/types.h>
5940 #include <sys/stat.h>
5942 #if defined S_ISBLK && defined S_IFDIR
5943 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5944 #endif
5946 #if defined S_ISBLK && defined S_IFCHR
5947 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5948 #endif
5950 #if defined S_ISLNK && defined S_IFREG
5951 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5952 #endif
5954 #if defined S_ISSOCK && defined S_IFREG
5955 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5956 #endif
5958 _ACEOF
5959 rm -f conftest.$ac_objext
5960 if { (ac_try="$ac_compile"
5961 case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_compile") 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && {
5973 test -z "$ac_c_werror_flag" ||
5974 test ! -s conftest.err
5975 } && test -s conftest.$ac_objext; then
5976 ac_cv_header_stat_broken=no
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_cv_header_stat_broken=yes
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5987 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5988 if test $ac_cv_header_stat_broken = yes; then
5990 cat >>confdefs.h <<\_ACEOF
5991 #define STAT_MACROS_BROKEN 1
5992 _ACEOF
5996 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5997 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5998 if test "${ac_cv_header_stdc+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #include <stdlib.h>
6008 #include <stdarg.h>
6009 #include <string.h>
6010 #include <float.h>
6013 main ()
6017 return 0;
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (ac_try="$ac_compile"
6022 case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compile") 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest.$ac_objext; then
6037 ac_cv_header_stdc=yes
6038 else
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6042 ac_cv_header_stdc=no
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 if test $ac_cv_header_stdc = yes; then
6048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <string.h>
6057 _ACEOF
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "memchr" >/dev/null 2>&1; then
6061 else
6062 ac_cv_header_stdc=no
6064 rm -f conftest*
6068 if test $ac_cv_header_stdc = yes; then
6069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 #include <stdlib.h>
6078 _ACEOF
6079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6080 $EGREP "free" >/dev/null 2>&1; then
6082 else
6083 ac_cv_header_stdc=no
6085 rm -f conftest*
6089 if test $ac_cv_header_stdc = yes; then
6090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6091 if test "$cross_compiling" = yes; then
6093 else
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 #include <ctype.h>
6101 #include <stdlib.h>
6102 #if ((' ' & 0x0FF) == 0x020)
6103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6105 #else
6106 # define ISLOWER(c) \
6107 (('a' <= (c) && (c) <= 'i') \
6108 || ('j' <= (c) && (c) <= 'r') \
6109 || ('s' <= (c) && (c) <= 'z'))
6110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6111 #endif
6113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6115 main ()
6117 int i;
6118 for (i = 0; i < 256; i++)
6119 if (XOR (islower (i), ISLOWER (i))
6120 || toupper (i) != TOUPPER (i))
6121 return 2;
6122 return 0;
6124 _ACEOF
6125 rm -f conftest$ac_exeext
6126 if { (ac_try="$ac_link"
6127 case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_link") 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6136 { (case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_try") 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6146 else
6147 echo "$as_me: program exited with status $ac_status" >&5
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6151 ( exit $ac_status )
6152 ac_cv_header_stdc=no
6154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6160 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6161 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6162 if test $ac_cv_header_stdc = yes; then
6164 cat >>confdefs.h <<\_ACEOF
6165 #define STDC_HEADERS 1
6166 _ACEOF
6170 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6171 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6172 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <sys/types.h>
6182 #include <sys/wait.h>
6183 #ifndef WEXITSTATUS
6184 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6185 #endif
6186 #ifndef WIFEXITED
6187 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6188 #endif
6191 main ()
6193 int s;
6194 wait (&s);
6195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6197 return 0;
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
6217 ac_cv_header_sys_wait_h=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 ac_cv_header_sys_wait_h=no
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6228 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6229 if test $ac_cv_header_sys_wait_h = yes; then
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HAVE_SYS_WAIT_H 1
6233 _ACEOF
6237 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6238 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6239 if test "${ac_cv_header_time+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <sys/types.h>
6249 #include <sys/time.h>
6250 #include <time.h>
6253 main ()
6255 if ((struct tm *) 0)
6256 return 0;
6258 return 0;
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (ac_try="$ac_compile"
6263 case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_compile") 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest.$ac_objext; then
6278 ac_cv_header_time=yes
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6283 ac_cv_header_time=no
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6289 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6290 if test $ac_cv_header_time = yes; then
6292 cat >>confdefs.h <<\_ACEOF
6293 #define TIME_WITH_SYS_TIME 1
6294 _ACEOF
6298 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6299 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6300 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h. */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 $ac_includes_default
6311 main ()
6313 static struct stat ac_aggr;
6314 if (ac_aggr.st_blksize)
6315 return 0;
6317 return 0;
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (ac_try="$ac_compile"
6322 case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_compile") 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest.$ac_objext; then
6337 ac_cv_member_struct_stat_st_blksize=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 $ac_includes_default
6350 main ()
6352 static struct stat ac_aggr;
6353 if (sizeof ac_aggr.st_blksize)
6354 return 0;
6356 return 0;
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (ac_try="$ac_compile"
6361 case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 ac_cv_member_struct_stat_st_blksize=yes
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_cv_member_struct_stat_st_blksize=no
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6390 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6391 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6393 cat >>confdefs.h <<_ACEOF
6394 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6395 _ACEOF
6398 cat >>confdefs.h <<\_ACEOF
6399 #define HAVE_ST_BLKSIZE 1
6400 _ACEOF
6405 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6406 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6407 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410 cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 $ac_includes_default
6418 main ()
6420 static struct stat ac_aggr;
6421 if (ac_aggr.st_blocks)
6422 return 0;
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6429 case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.$ac_objext; then
6444 ac_cv_member_struct_stat_st_blocks=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 $ac_includes_default
6457 main ()
6459 static struct stat ac_aggr;
6460 if (sizeof ac_aggr.st_blocks)
6461 return 0;
6463 return 0;
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (ac_try="$ac_compile"
6468 case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_compile") 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && {
6480 test -z "$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6482 } && test -s conftest.$ac_objext; then
6483 ac_cv_member_struct_stat_st_blocks=yes
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_cv_member_struct_stat_st_blocks=no
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6497 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6498 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6500 cat >>confdefs.h <<_ACEOF
6501 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6502 _ACEOF
6505 cat >>confdefs.h <<\_ACEOF
6506 #define HAVE_ST_BLOCKS 1
6507 _ACEOF
6509 else
6510 case " $LIBOBJS " in
6511 *" fileblocks.$ac_objext "* ) ;;
6512 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6514 esac
6519 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6520 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6521 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6532 main ()
6534 static struct stat ac_aggr;
6535 if (ac_aggr.st_rdev)
6536 return 0;
6538 return 0;
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (ac_try="$ac_compile"
6543 case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compile") 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } && {
6555 test -z "$ac_c_werror_flag" ||
6556 test ! -s conftest.err
6557 } && test -s conftest.$ac_objext; then
6558 ac_cv_member_struct_stat_st_rdev=yes
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6571 main ()
6573 static struct stat ac_aggr;
6574 if (sizeof ac_aggr.st_rdev)
6575 return 0;
6577 return 0;
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6582 case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6588 ac_status=$?
6589 grep -v '^ *+' conftest.er1 >conftest.err
6590 rm -f conftest.er1
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 ac_cv_member_struct_stat_st_rdev=yes
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 ac_cv_member_struct_stat_st_rdev=no
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6611 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6612 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6614 cat >>confdefs.h <<_ACEOF
6615 #define HAVE_STRUCT_STAT_ST_RDEV 1
6616 _ACEOF
6619 cat >>confdefs.h <<\_ACEOF
6620 #define HAVE_ST_RDEV 1
6621 _ACEOF
6626 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6627 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6628 if test "${ac_cv_struct_tm+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 cat >conftest.$ac_ext <<_ACEOF
6632 /* confdefs.h. */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 #include <sys/types.h>
6638 #include <time.h>
6641 main ()
6643 struct tm tm;
6644 int *p = &tm.tm_sec;
6645 return !p;
6647 return 0;
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (ac_try="$ac_compile"
6652 case "(($ac_try" in
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6655 esac
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657 (eval "$ac_compile") 2>conftest.er1
6658 ac_status=$?
6659 grep -v '^ *+' conftest.er1 >conftest.err
6660 rm -f conftest.er1
6661 cat conftest.err >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest.$ac_objext; then
6667 ac_cv_struct_tm=time.h
6668 else
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 ac_cv_struct_tm=sys/time.h
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6678 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6679 if test $ac_cv_struct_tm = sys/time.h; then
6681 cat >>confdefs.h <<\_ACEOF
6682 #define TM_IN_SYS_TIME 1
6683 _ACEOF
6687 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6688 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6689 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <$ac_cv_struct_tm>
6703 main ()
6705 static struct tm ac_aggr;
6706 if (ac_aggr.tm_zone)
6707 return 0;
6709 return 0;
6711 _ACEOF
6712 rm -f conftest.$ac_objext
6713 if { (ac_try="$ac_compile"
6714 case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_compile") 2>conftest.er1
6720 ac_status=$?
6721 grep -v '^ *+' conftest.er1 >conftest.err
6722 rm -f conftest.er1
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest.$ac_objext; then
6729 ac_cv_member_struct_tm_tm_zone=yes
6730 else
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <$ac_cv_struct_tm>
6745 main ()
6747 static struct tm ac_aggr;
6748 if (sizeof ac_aggr.tm_zone)
6749 return 0;
6751 return 0;
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (ac_try="$ac_compile"
6756 case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_compile") 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest.$ac_objext; then
6771 ac_cv_member_struct_tm_tm_zone=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 ac_cv_member_struct_tm_tm_zone=no
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6785 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6786 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6788 cat >>confdefs.h <<_ACEOF
6789 #define HAVE_STRUCT_TM_TM_ZONE 1
6790 _ACEOF
6795 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6797 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_TM_ZONE 1
6799 _ACEOF
6801 else
6802 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6803 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6804 if test "${ac_cv_have_decl_tzname+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 #include <time.h>
6816 main ()
6818 #ifndef tzname
6819 (void) tzname;
6820 #endif
6823 return 0;
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (ac_try="$ac_compile"
6828 case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_cv_have_decl_tzname=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_cv_have_decl_tzname=no
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6854 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6855 if test $ac_cv_have_decl_tzname = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_DECL_TZNAME 1
6859 _ACEOF
6862 else
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_DECL_TZNAME 0
6865 _ACEOF
6871 { echo "$as_me:$LINENO: checking for tzname" >&5
6872 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6873 if test "${ac_cv_var_tzname+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <time.h>
6883 #if !HAVE_DECL_TZNAME
6884 extern char *tzname[];
6885 #endif
6888 main ()
6890 return tzname[0][0];
6892 return 0;
6894 _ACEOF
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (ac_try="$ac_link"
6897 case "(($ac_try" in
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_link") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest$ac_exeext &&
6912 $as_test_x conftest$ac_exeext; then
6913 ac_cv_var_tzname=yes
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 ac_cv_var_tzname=no
6921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6922 conftest$ac_exeext conftest.$ac_ext
6924 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6925 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6926 if test $ac_cv_var_tzname = yes; then
6928 cat >>confdefs.h <<\_ACEOF
6929 #define HAVE_TZNAME 1
6930 _ACEOF
6935 { echo "$as_me:$LINENO: checking for off_t" >&5
6936 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6937 if test "${ac_cv_type_off_t+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h. */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 $ac_includes_default
6947 typedef off_t ac__type_new_;
6949 main ()
6951 if ((ac__type_new_ *) 0)
6952 return 0;
6953 if (sizeof (ac__type_new_))
6954 return 0;
6956 return 0;
6958 _ACEOF
6959 rm -f conftest.$ac_objext
6960 if { (ac_try="$ac_compile"
6961 case "(($ac_try" in
6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963 *) ac_try_echo=$ac_try;;
6964 esac
6965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966 (eval "$ac_compile") 2>conftest.er1
6967 ac_status=$?
6968 grep -v '^ *+' conftest.er1 >conftest.err
6969 rm -f conftest.er1
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } && {
6973 test -z "$ac_c_werror_flag" ||
6974 test ! -s conftest.err
6975 } && test -s conftest.$ac_objext; then
6976 ac_cv_type_off_t=yes
6977 else
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6981 ac_cv_type_off_t=no
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6987 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6988 if test $ac_cv_type_off_t = yes; then
6990 else
6992 cat >>confdefs.h <<_ACEOF
6993 #define off_t long int
6994 _ACEOF
6998 { echo "$as_me:$LINENO: checking for pid_t" >&5
6999 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7000 if test "${ac_cv_type_pid_t+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7010 typedef pid_t ac__type_new_;
7012 main ()
7014 if ((ac__type_new_ *) 0)
7015 return 0;
7016 if (sizeof (ac__type_new_))
7017 return 0;
7019 return 0;
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (ac_try="$ac_compile"
7024 case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027 esac
7028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7029 (eval "$ac_compile") 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && {
7036 test -z "$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 } && test -s conftest.$ac_objext; then
7039 ac_cv_type_pid_t=yes
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_cv_type_pid_t=no
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7050 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7051 if test $ac_cv_type_pid_t = yes; then
7053 else
7055 cat >>confdefs.h <<_ACEOF
7056 #define pid_t int
7057 _ACEOF
7061 { echo "$as_me:$LINENO: checking for size_t" >&5
7062 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7063 if test "${ac_cv_type_size_t+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h. */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7072 $ac_includes_default
7073 typedef size_t ac__type_new_;
7075 main ()
7077 if ((ac__type_new_ *) 0)
7078 return 0;
7079 if (sizeof (ac__type_new_))
7080 return 0;
7082 return 0;
7084 _ACEOF
7085 rm -f conftest.$ac_objext
7086 if { (ac_try="$ac_compile"
7087 case "(($ac_try" in
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_compile") 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } && {
7099 test -z "$ac_c_werror_flag" ||
7100 test ! -s conftest.err
7101 } && test -s conftest.$ac_objext; then
7102 ac_cv_type_size_t=yes
7103 else
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 ac_cv_type_size_t=no
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7113 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7114 if test $ac_cv_type_size_t = yes; then
7116 else
7118 cat >>confdefs.h <<_ACEOF
7119 #define size_t unsigned int
7120 _ACEOF
7124 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7125 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7126 if test "${ac_cv_type_uid_t+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 #include <sys/types.h>
7137 _ACEOF
7138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7139 $EGREP "uid_t" >/dev/null 2>&1; then
7140 ac_cv_type_uid_t=yes
7141 else
7142 ac_cv_type_uid_t=no
7144 rm -f conftest*
7147 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7148 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7149 if test $ac_cv_type_uid_t = no; then
7151 cat >>confdefs.h <<\_ACEOF
7152 #define uid_t int
7153 _ACEOF
7156 cat >>confdefs.h <<\_ACEOF
7157 #define gid_t int
7158 _ACEOF
7163 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7164 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7165 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 $ac_includes_default
7176 main ()
7178 static struct tm ac_aggr;
7179 if (ac_aggr.tm_gmtoff)
7180 return 0;
7182 return 0;
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (ac_try="$ac_compile"
7187 case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_compile") 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && {
7199 test -z "$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7201 } && test -s conftest.$ac_objext; then
7202 ac_cv_member_struct_tm_tm_gmtoff=yes
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 $ac_includes_default
7215 main ()
7217 static struct tm ac_aggr;
7218 if (sizeof ac_aggr.tm_gmtoff)
7219 return 0;
7221 return 0;
7223 _ACEOF
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7226 case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229 esac
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 ac_cv_member_struct_tm_tm_gmtoff=yes
7242 else
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_cv_member_struct_tm_tm_gmtoff=no
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7255 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7256 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7258 cat >>confdefs.h <<_ACEOF
7259 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7260 _ACEOF
7266 # Look for some functions
7281 for ac_func in getpagesize kqueue statfs statvfs \
7282 clone kse_create rfork_thread thr_create sa_register \
7283 getcontext makecontext setcontext sigaltstack swapcontext
7285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7299 #define $ac_func innocuous_$ac_func
7301 /* System header to define __stub macros and hopefully few prototypes,
7302 which can conflict with char $ac_func (); below.
7303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7304 <limits.h> exists even on freestanding compilers. */
7306 #ifdef __STDC__
7307 # include <limits.h>
7308 #else
7309 # include <assert.h>
7310 #endif
7312 #undef $ac_func
7314 /* Override any GCC internal prototype to avoid an error.
7315 Use char because int might match the return type of a GCC
7316 builtin and then its argument prototype would still apply. */
7317 #ifdef __cplusplus
7318 extern "C"
7319 #endif
7320 char $ac_func ();
7321 /* The GNU C library defines this for functions which it implements
7322 to always fail with ENOSYS. Some functions are actually named
7323 something starting with __ and the normal name is an alias. */
7324 #if defined __stub_$ac_func || defined __stub___$ac_func
7325 choke me
7326 #endif
7329 main ()
7331 return $ac_func ();
7333 return 0;
7335 _ACEOF
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7338 case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_link") 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && {
7350 test -z "$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7352 } && test -s conftest$ac_exeext &&
7353 $as_test_x conftest$ac_exeext; then
7354 eval "$as_ac_var=yes"
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 eval "$as_ac_var=no"
7362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7363 conftest$ac_exeext conftest.$ac_ext
7365 ac_res=`eval echo '${'$as_ac_var'}'`
7366 { echo "$as_me:$LINENO: result: $ac_res" >&5
7367 echo "${ECHO_T}$ac_res" >&6; }
7368 if test `eval echo '${'$as_ac_var'}'` = yes; then
7369 cat >>confdefs.h <<_ACEOF
7370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7371 _ACEOF
7374 done
7379 for ac_header in stdlib.h unistd.h
7381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_res=`eval echo '${'$as_ac_Header'}'`
7389 { echo "$as_me:$LINENO: result: $ac_res" >&5
7390 echo "${ECHO_T}$ac_res" >&6; }
7391 else
7392 # Is the header compilable?
7393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7395 cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h. */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 $ac_includes_default
7402 #include <$ac_header>
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7406 case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409 esac
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 ac_header_compiler=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 ac_header_compiler=no
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7431 echo "${ECHO_T}$ac_header_compiler" >&6; }
7433 # Is the header present?
7434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 #include <$ac_header>
7443 _ACEOF
7444 if { (ac_try="$ac_cpp conftest.$ac_ext"
7445 case "(($ac_try" in
7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 *) ac_try_echo=$ac_try;;
7448 esac
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev/null && {
7457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7458 test ! -s conftest.err
7459 }; then
7460 ac_header_preproc=yes
7461 else
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 ac_header_preproc=no
7468 rm -f conftest.err conftest.$ac_ext
7469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7470 echo "${ECHO_T}$ac_header_preproc" >&6; }
7472 # So? What about this header?
7473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7474 yes:no: )
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7479 ac_header_preproc=yes
7481 no:yes:* )
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7496 esac
7497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 eval "$as_ac_Header=\$ac_header_preproc"
7504 ac_res=`eval echo '${'$as_ac_Header'}'`
7505 { echo "$as_me:$LINENO: result: $ac_res" >&5
7506 echo "${ECHO_T}$ac_res" >&6; }
7509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7510 cat >>confdefs.h <<_ACEOF
7511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512 _ACEOF
7516 done
7519 for ac_func in getpagesize
7521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7522 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7535 #define $ac_func innocuous_$ac_func
7537 /* System header to define __stub macros and hopefully few prototypes,
7538 which can conflict with char $ac_func (); below.
7539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7540 <limits.h> exists even on freestanding compilers. */
7542 #ifdef __STDC__
7543 # include <limits.h>
7544 #else
7545 # include <assert.h>
7546 #endif
7548 #undef $ac_func
7550 /* Override any GCC internal prototype to avoid an error.
7551 Use char because int might match the return type of a GCC
7552 builtin and then its argument prototype would still apply. */
7553 #ifdef __cplusplus
7554 extern "C"
7555 #endif
7556 char $ac_func ();
7557 /* The GNU C library defines this for functions which it implements
7558 to always fail with ENOSYS. Some functions are actually named
7559 something starting with __ and the normal name is an alias. */
7560 #if defined __stub_$ac_func || defined __stub___$ac_func
7561 choke me
7562 #endif
7565 main ()
7567 return $ac_func ();
7569 return 0;
7571 _ACEOF
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (ac_try="$ac_link"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_link") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest$ac_exeext &&
7589 $as_test_x conftest$ac_exeext; then
7590 eval "$as_ac_var=yes"
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 eval "$as_ac_var=no"
7598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7599 conftest$ac_exeext conftest.$ac_ext
7601 ac_res=`eval echo '${'$as_ac_var'}'`
7602 { echo "$as_me:$LINENO: result: $ac_res" >&5
7603 echo "${ECHO_T}$ac_res" >&6; }
7604 if test `eval echo '${'$as_ac_var'}'` = yes; then
7605 cat >>confdefs.h <<_ACEOF
7606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7607 _ACEOF
7610 done
7612 { echo "$as_me:$LINENO: checking for working mmap" >&5
7613 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7614 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617 if test "$cross_compiling" = yes; then
7618 ac_cv_func_mmap_fixed_mapped=no
7619 else
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 $ac_includes_default
7627 /* malloc might have been renamed as rpl_malloc. */
7628 #undef malloc
7630 /* Thanks to Mike Haertel and Jim Avera for this test.
7631 Here is a matrix of mmap possibilities:
7632 mmap private not fixed
7633 mmap private fixed at somewhere currently unmapped
7634 mmap private fixed at somewhere already mapped
7635 mmap shared not fixed
7636 mmap shared fixed at somewhere currently unmapped
7637 mmap shared fixed at somewhere already mapped
7638 For private mappings, we should verify that changes cannot be read()
7639 back from the file, nor mmap's back from the file at a different
7640 address. (There have been systems where private was not correctly
7641 implemented like the infamous i386 svr4.0, and systems where the
7642 VM page cache was not coherent with the file system buffer cache
7643 like early versions of FreeBSD and possibly contemporary NetBSD.)
7644 For shared mappings, we should conversely verify that changes get
7645 propagated back to all the places they're supposed to be.
7647 Grep wants private fixed already mapped.
7648 The main things grep needs to know about mmap are:
7649 * does it exist and is it safe to write into the mmap'd area
7650 * how to use it (BSD variants) */
7652 #include <fcntl.h>
7653 #include <sys/mman.h>
7655 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7656 char *malloc ();
7657 #endif
7659 /* This mess was copied from the GNU getpagesize.h. */
7660 #ifndef HAVE_GETPAGESIZE
7661 /* Assume that all systems that can run configure have sys/param.h. */
7662 # ifndef HAVE_SYS_PARAM_H
7663 # define HAVE_SYS_PARAM_H 1
7664 # endif
7666 # ifdef _SC_PAGESIZE
7667 # define getpagesize() sysconf(_SC_PAGESIZE)
7668 # else /* no _SC_PAGESIZE */
7669 # ifdef HAVE_SYS_PARAM_H
7670 # include <sys/param.h>
7671 # ifdef EXEC_PAGESIZE
7672 # define getpagesize() EXEC_PAGESIZE
7673 # else /* no EXEC_PAGESIZE */
7674 # ifdef NBPG
7675 # define getpagesize() NBPG * CLSIZE
7676 # ifndef CLSIZE
7677 # define CLSIZE 1
7678 # endif /* no CLSIZE */
7679 # else /* no NBPG */
7680 # ifdef NBPC
7681 # define getpagesize() NBPC
7682 # else /* no NBPC */
7683 # ifdef PAGESIZE
7684 # define getpagesize() PAGESIZE
7685 # endif /* PAGESIZE */
7686 # endif /* no NBPC */
7687 # endif /* no NBPG */
7688 # endif /* no EXEC_PAGESIZE */
7689 # else /* no HAVE_SYS_PARAM_H */
7690 # define getpagesize() 8192 /* punt totally */
7691 # endif /* no HAVE_SYS_PARAM_H */
7692 # endif /* no _SC_PAGESIZE */
7694 #endif /* no HAVE_GETPAGESIZE */
7697 main ()
7699 char *data, *data2, *data3;
7700 int i, pagesize;
7701 int fd;
7703 pagesize = getpagesize ();
7705 /* First, make a file with some known garbage in it. */
7706 data = (char *) malloc (pagesize);
7707 if (!data)
7708 return 1;
7709 for (i = 0; i < pagesize; ++i)
7710 *(data + i) = rand ();
7711 umask (0);
7712 fd = creat ("conftest.mmap", 0600);
7713 if (fd < 0)
7714 return 1;
7715 if (write (fd, data, pagesize) != pagesize)
7716 return 1;
7717 close (fd);
7719 /* Next, try to mmap the file at a fixed address which already has
7720 something else allocated at it. If we can, also make sure that
7721 we see the same garbage. */
7722 fd = open ("conftest.mmap", O_RDWR);
7723 if (fd < 0)
7724 return 1;
7725 data2 = (char *) malloc (2 * pagesize);
7726 if (!data2)
7727 return 1;
7728 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7729 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7730 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7731 return 1;
7732 for (i = 0; i < pagesize; ++i)
7733 if (*(data + i) != *(data2 + i))
7734 return 1;
7736 /* Finally, make sure that changes to the mapped area do not
7737 percolate back to the file as seen by read(). (This is a bug on
7738 some variants of i386 svr4.0.) */
7739 for (i = 0; i < pagesize; ++i)
7740 *(data2 + i) = *(data2 + i) + 1;
7741 data3 = (char *) malloc (pagesize);
7742 if (!data3)
7743 return 1;
7744 if (read (fd, data3, pagesize) != pagesize)
7745 return 1;
7746 for (i = 0; i < pagesize; ++i)
7747 if (*(data + i) != *(data3 + i))
7748 return 1;
7749 close (fd);
7750 return 0;
7752 _ACEOF
7753 rm -f conftest$ac_exeext
7754 if { (ac_try="$ac_link"
7755 case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_link") 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7764 { (case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767 esac
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_try") 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_func_mmap_fixed_mapped=yes
7774 else
7775 echo "$as_me: program exited with status $ac_status" >&5
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ( exit $ac_status )
7780 ac_cv_func_mmap_fixed_mapped=no
7782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7787 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7788 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7789 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_MMAP 1
7793 _ACEOF
7796 rm -f conftest.mmap
7801 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7802 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7803 aros_config_ldflags=""
7805 aros_shared_default=yes
7807 aros_shared_cflags="-fPIC"
7808 aros_shared_aflags=""
7809 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7810 aros_kernel_ldflags="-Wl,-rpath,./lib"
7812 aros_target_ar_flags="cr"
7813 aros_target_nm_flags="-C -ul"
7814 aros_target_strip_flags="--strip-unneeded -R.comment"
7816 aros_compiler_libs=
7818 aros_target_genmap="-Wl,-Map -Xlinker"
7820 # Native flavour stuff
7821 aros_bochs_hack="0"
7822 aros_serial_debug="0"
7824 # Palm native flavour stuff
7825 aros_palm_debug_hack="0"
7827 # Unix flavour stuff
7828 aros_nesting_supervisor="0"
7830 # Collect-aros stuff: "-ius" to ignore undefined symbols
7831 ignore_undefined_symbols=""
7833 #-----------------------------------------------------------------------------
7836 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7837 # it switched on by default, and we use the host compiler, so it compiles AROS
7838 # code with this enabled resulting in link failures as we don't have support
7839 # for it.
7841 # We use two methods to disable it. For the host compiler (used to compile
7842 # some hosted modules), we test to see if the compiler supports stack
7843 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7844 # work on all platforms.
7846 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7847 # (this is done unconditionally, as it should have no effect on compilers
7848 # without the stack protection feature). This may be specific to the way that
7849 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7850 # strong enough to disable it in a generic way though, so we'll live with it
7851 # until another vendor ships GCC with it enabled in a different way, and deal
7852 # with it then.
7855 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7856 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7857 save_cflags="$CFLAGS"
7858 CFLAGS="$CFLAGS -fno-stack-protector"
7859 cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h. */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7867 main ()
7871 return 0;
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (ac_try="$ac_compile"
7876 case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 use_no_stack_protector="yes"
7892 else
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 use_no_stack_protector="no"
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7901 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7902 if test "x-$use_no_stack_protector" = "x-yes" ; then
7903 aros_config_cflags="$aros_config_cflags -fno-stack-protector"
7905 CFLAGS="$save_cflags"
7907 #-----------------------------------------------------------------------------
7909 { echo "$as_me:$LINENO: checking for type of build" >&5
7910 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7911 # Check whether --enable-build_type was given.
7912 if test "${enable_build_type+set}" = set; then
7913 enableval=$enable_build_type; build_type=$enableval
7914 else
7915 build_type="personal"
7919 if test "$build_type" = "nightly"; then
7920 build_type_string="NIGHTLY"
7921 elif test "$build_type" = "snapshot"; then
7922 build_type_string="SNAPSHOT"
7923 elif test "$build_type" = "milestone"; then
7924 build_type_string="MILESTONE"
7925 elif test "$build_type" = "release"; then
7926 build_type_string="RELEASE"
7927 else
7928 build_type_string="PERSONAL"
7929 build_type="personal"
7932 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7934 { echo "$as_me:$LINENO: result: $build_type" >&5
7935 echo "${ECHO_T}$build_type" >&6; }
7937 #-----------------------------------------------------------------------------
7938 all_debug_types="messages stack mungwall modules symbols"
7940 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7941 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7942 # Check whether --enable-debug was given.
7943 if test "${enable_debug+set}" = set; then
7944 enableval=$enable_debug; debug="$enableval"
7945 else
7946 debug=""
7950 if test "$debug" = "" -o "$debug" = "no"; then
7951 debug="none"
7952 elif test "$debug" = "yes"; then
7953 debug="all"
7956 if test "$debug" = "all" ; then
7957 debug=$all_debug_types
7958 for d in $all_debug_types; do
7959 export aros_${d}_debug="1"
7960 done
7961 else
7962 for d in $all_debug_types; do
7963 export aros_${d}_debug="0"
7964 done
7967 if test "$debug" != "none"; then
7968 debug=`echo $debug | sed s/,/\ /g`
7969 for d in $debug; do
7970 found="0"
7971 for d2 in $all_debug_types; do
7972 if test "$d2" = "$d"; then
7973 found="1"
7974 break
7976 done
7977 if test "$found" = "0"; then
7978 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7979 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7980 { (exit 1); exit 1; }; }
7982 export aros_${d}_debug="1"
7983 done
7984 aros_debug="yes"
7986 { echo "$as_me:$LINENO: result: $debug" >&5
7987 echo "${ECHO_T}$debug" >&6; }
7989 if test "$aros_messages_debug" = "1"; then
7990 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7991 else
7992 aros_messages_debug=""
7994 if test "$aros_symbols_debug" = "1"; then
7995 aros_symbols_debug="-g"
7996 else
7997 aros_symbols_debug=""
8000 # These are the flags to pass when compiling debugged programs
8001 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8002 aros_debug_aflags=""
8003 aros_debug_ldflags="$aros_symbols_debug"
8005 #-----------------------------------------------------------------------------
8006 # Checking for distcc and ccache.
8008 # Always apply the transforms in this particular order. Basically you should
8009 # always run 'ccache distcc compiler' in that order for the best performance.
8011 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8012 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8013 # Check whether --enable-distcc was given.
8014 if test "${enable_distcc+set}" = set; then
8015 enableval=$enable_distcc; distcc="$enableval"
8016 else
8017 distcc="no"
8020 if test "$distcc" != "" -a "$distcc" != "no"; then
8021 # AC_CHECK_PROG will print out the result in this case
8022 # Extract the first word of "distcc", so it can be a program name with args.
8023 set dummy distcc; ac_word=$2
8024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8026 if test "${ac_cv_path_DISTCC+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029 case $DISTCC in
8030 [\\/]* | ?:[\\/]*)
8031 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 break 2
8045 done
8046 done
8047 IFS=$as_save_IFS
8049 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8051 esac
8053 DISTCC=$ac_cv_path_DISTCC
8054 if test -n "$DISTCC"; then
8055 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8056 echo "${ECHO_T}$DISTCC" >&6; }
8057 else
8058 { echo "$as_me:$LINENO: result: no" >&5
8059 echo "${ECHO_T}no" >&6; }
8063 else
8064 { echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6; }
8068 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8069 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8070 # Check whether --enable-ccache was given.
8071 if test "${enable_ccache+set}" = set; then
8072 enableval=$enable_ccache; ccache="$enableval"
8073 else
8074 ccache="no"
8077 if test "$ccache" != "" -a "$ccache" != "no"; then
8078 # AC_CHECK_PROG will print out the result in this case
8079 # Extract the first word of "ccache", so it can be a program name with args.
8080 set dummy ccache; ac_word=$2
8081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8083 if test "${ac_cv_prog_CCACHE+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086 if test -n "$CCACHE"; then
8087 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_CCACHE="ccache"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8102 IFS=$as_save_IFS
8106 CCACHE=$ac_cv_prog_CCACHE
8107 if test -n "$CCACHE"; then
8108 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8109 echo "${ECHO_T}$CCACHE" >&6; }
8110 else
8111 { echo "$as_me:$LINENO: result: no" >&5
8112 echo "${ECHO_T}no" >&6; }
8116 else
8117 { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8121 #-----------------------------------------------------------------------------
8122 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8123 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8125 # Check whether --with-optimization was given.
8126 if test "${with_optimization+set}" = set; then
8127 withval=$with_optimization; optimization="$withval"
8128 else
8129 optimization="unknown"
8132 if test "$optimization" = "unknown"; then
8133 if test "$debug" != "none"; then
8134 optimization="-O0"
8135 else
8136 optimization="-O2"
8139 aros_config_cflags="$aros_config_cflags $optimization"
8140 { echo "$as_me:$LINENO: result: $optimization" >&5
8141 echo "${ECHO_T}$optimization" >&6; }
8143 #-----------------------------------------------------------------------------
8144 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8145 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8146 # Check whether --enable-target_variant was given.
8147 if test "${enable_target_variant+set}" = set; then
8148 enableval=$enable_target_variant; target_variant=$enableval
8149 else
8150 target_variant="none"
8153 if test "$target_variant" = "none"; then
8154 aros_target_variant=""
8155 aros_target_suffix=""
8156 else
8157 aros_target_variant="$target_variant"
8158 aros_target_suffix="-$target_variant"
8160 { echo "$as_me:$LINENO: result: $enableval" >&5
8161 echo "${ECHO_T}$enableval" >&6; }
8163 #-----------------------------------------------------------------------------
8164 # This is the target configuration switch.
8165 case "$target_os" in
8166 linux*)
8167 aros_target_arch="linux"
8168 case "$target_cpu" in
8169 *m68k*)
8170 aros_target_cpu="m68k"
8171 aros_object_format="m68kelf"
8172 aros_flavour="emulcompat"
8173 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8174 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8175 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8176 gcc_target_cpu="mc68000"
8178 *i?86*)
8179 aros_target_cpu="i386"
8180 aros_object_format="elf_i386"
8181 aros_flavour="emulation"
8182 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8183 aros_default_wbdepth=8
8184 gcc_target_cpu="i386"
8186 *x86_64*)
8187 aros_target_cpu="x86_64"
8188 aros_object_format="elf_x86_64"
8189 aros_flavour="emulation"
8190 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8191 aros_default_wbdepth=8
8192 gcc_target_cpu="x86_64"
8194 *powerpc*)
8195 aros_target_cpu="ppc"
8196 aros_object_format="elf32ppc"
8197 aros_flavour="emulation"
8198 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8199 aros_default_wbdepth=8
8200 gcc_target_cpu="ppc"
8203 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8204 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8205 { (exit 1); exit 1; }; }
8207 esac
8211 aros_target_arch="pc"
8212 aros_shared_default="no"
8213 case "$target_cpu" in
8214 *i?86*)
8215 aros_target_cpu="i386"
8218 if test "$aros_object_format" = "" ; then
8219 aros_object_format="elf_i386"
8221 aros_flavour="standalone"
8222 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8223 aros_kernel_ldflags=""
8224 aros_default_wbwidth=640
8225 aros_default_wbheight=480
8226 gcc_target_cpu="i386"
8228 *x86_64*)
8229 aros_target_cpu="x86_64"
8230 if test "$aros_object_format" = "" ; then
8231 aros_object_format="elf_x86_64"
8233 aros_flavour="standalone"
8234 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8235 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8236 aros_kernel_ldflags=""
8237 aros_default_wbwidth=640
8238 aros_default_wbheight=480
8239 gcc_target_cpu="x86_64"
8242 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8243 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8244 { (exit 1); exit 1; }; }
8246 esac
8249 prep)
8250 aros_target_arch="prep"
8251 aros_shared_default="no"
8252 aros_target_cpu="ppc"
8253 aros_object_format="elf32ppc"
8254 aros_flavour="ppcnative"
8255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8256 aros_kernel_ldflags=""
8257 aros_default_wbwidth=640
8258 aros_default_wbheight=480
8259 gcc_target_cpu="ppc"
8260 case "$target_cpu" in
8261 *cross*)
8262 aros_target_cc="ppc-linux-gcc -pipe"
8263 aros_target_ld="ppc-linux-ld"
8264 aros_target_as="ppc-linux-as"
8265 aros_target_ar="ppc-linux-ar"
8266 aros_target_ranlib="ppc-linux-ranlib"
8267 aros_target_nm="ppc-linux-nm"
8268 aros_target_strip="ppc-linux-strip"
8269 aros_target_objcopy="ppc-linux-objcopy"
8270 aros_target_objdump="ppc-linux-objdump"
8271 aros_shared_ld="ppc-linux-ld"
8272 aros_kernel_ld="ppc-linux-ld"
8276 esac
8279 freebsd*)
8280 aros_target_arch="freebsd"
8281 aros_target_cpu="i386"
8282 aros_flavour="emulation"
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8284 gcc_target_cpu="i386"
8286 aros_target_strip_flags="-x"
8289 darwin*)
8290 aros_target_arch="darwin"
8291 aros_target_cpu="i386"
8292 aros_flavour="emulation"
8293 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8294 gcc_target_cpu="i386"
8296 aros_target_strip_flags="-x"
8299 netbsd*)
8300 aros_target_arch="netbsd"
8301 case "$target_cpu" in
8302 *m68k*)
8303 aros_target_cpu="m68k"
8304 aros_object_format="m68kelf"
8305 aros_flavour="emulcompat"
8306 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8307 gcc_target_cpu="mc68000"
8309 *i?86*)
8310 aros_target_cpu="i386"
8311 aros_object_format="elf_i386"
8312 aros_flavour="emulation"
8313 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8314 aros_default_wbdepth=8
8315 gcc_target_cpu="i386"
8318 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8319 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8320 { (exit 1); exit 1; }; }
8322 esac
8323 aros_target_genmap="-Wl,-M -Xlinker >"
8324 aros_flavour="emulation"
8325 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8328 openbsd*)
8329 aros_target_arch="openbsd"
8330 case "$target_cpu" in
8331 *i?86*)
8332 aros_target_cpu="i386"
8333 aros_object_format="elf_i386"
8334 aros_flavour="emulation"
8335 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8336 gcc_target_cpu="i386"
8339 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8340 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8341 { (exit 1); exit 1; }; }
8343 esac
8344 aros_target_genmap="-Wl,-M -Xlinker >"
8345 aros_target_nm_flags="-u"
8346 aros_flavour="emulation"
8349 solaris*)
8350 aros_target_arch="solaris"
8351 case "$target_cpu" in
8352 *sparc*)
8353 aros_target_cpu="sparc"
8354 aros_object_format="elf_sparc"
8355 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8356 gcc_target_cpu="sparc"
8359 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8360 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8361 { (exit 1); exit 1; }; }
8363 esac
8364 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8365 aros_flavour="emulation"
8368 morphos*)
8369 aros_target_arch="morphos"
8370 aros_shared_default="no"
8371 aros_target_cpu="ppc"
8372 aros_object_format="elf_ppc"
8373 aros_flavour="nativecompat"
8374 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8375 gcc_target_cpu="ppc"
8378 amiga*)
8379 aros_target_arch="amiga"
8380 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8381 aros_shared_default="no"
8383 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8385 case "$target_cpu" in
8386 *m68k*)
8387 aros_target_cpu="m68k"
8388 aros_object_format="m68kelf"
8389 aros_flavour="nativecompat"
8390 gcc_target_cpu="mc68000"
8392 *ppc*)
8393 aros_cpu="ppc"
8394 aros_flavour="native"
8395 gcc_target_cpu="ppc"
8398 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8399 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8400 { (exit 1); exit 1; }; }
8402 esac
8405 cygwin*)
8406 aros_target_arch="cygwin"
8407 aros_shared_default="no"
8408 case "$target_cpu" in
8409 *i?86*)
8410 aros_target_cpu="i386"
8411 aros_object_format="elf_i386"
8412 aros_flavour="emulation"
8413 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8414 aros_shared_cflags=""
8415 aros_default_wbdepth=8
8416 gcc_target_cpu="i386"
8419 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8420 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8421 { (exit 1); exit 1; }; }
8423 esac
8425 pp*)
8426 aros_target_arch="pp"
8427 aros_shared_default="no"
8428 case "$target_cpu" in
8429 *m68k*)
8430 aros_target_cpu="m68k"
8431 aros_object_format="m68kelf"
8432 aros_flavour="palmnative"
8433 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8434 aros_kernel_ldflags=""
8435 aros_default_wbwidth=160
8436 aros_default_wbheight=160
8437 aros_default_wbdepth=1
8438 aros_target_cc="m68k-elf-gcc -pipe"
8439 aros_target_ld="$(which m68k-elf-ld)"
8440 aros_target_as="m68k-elf-gcc -pipe"
8441 aros_shared_ld="m68k-elf-gcc"
8442 aros_kernel_ld="m68k-elf-gcc"
8443 aros_target_ar="m68k-elf-ar"
8444 aros_target_ar_flags="cru"
8445 aros_target_ranlib="m68k-elf-ranlib"
8446 aros_target_nm="m68k-elf-nm"
8447 aros_target_objcopy="m68k-elf-objcopy"
8448 aros_target_objdump="m68k-elf-objdump"
8449 aros_compiler_libs="-lgcc1"
8450 aros_shared_default=no
8451 aros_shared_cflags="-fpic"
8452 aros_shared_aflags=""
8453 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8454 aros_kernel_ldflags="-Wl,-rpath,./lib"
8455 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8456 aros_debug_aflags=""
8457 aros_debug_ldflags="$aros_symbols_debug"
8458 aros_mungwall_debug="0"
8459 aros_modules_debug="0"
8460 gcc_target_cpu="mc68000"
8461 ignore_undefined_symbols="-ius"
8464 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8465 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8466 { (exit 1); exit 1; }; }
8468 esac
8471 mac*)
8472 aros_target_arch="mac"
8473 aros_shared_default="no"
8474 case "$target_cpu" in
8475 *m68k*)
8476 aros_target_cpu="m68k"
8477 aros_object_format="m68kelf"
8478 aros_flavour="mac68knative"
8479 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8480 aros_default_wbwidth=512
8481 aros_default_wbheight=384
8482 aros_default_wbdepth=8
8483 aros_target_cc="m68k-elf-gcc -pipe"
8484 aros_target_ld="$(which m68k-elf-ld)"
8485 aros_target_as="m68k-elf-gcc -pipe"
8486 aros_shared_ld="m68k-elf-gcc"
8487 aros_kernel_ld="m68k-elf-gcc"
8488 aros_target_ar="m68k-elf-ar"
8489 aros_target_ar_flags="cru"
8490 aros_target_ranlib="m68k-elf-ranlib"
8491 aros_target_nm="m68k-elf-nm"
8492 aros_target_objcopy="m68k-elf-objcopy"
8493 aros_target_objdump="m68k-elf-objdump"
8494 aros_compiler_libs="-lgcc1"
8495 aros_shared_default=no
8496 aros_shared_cflags="-fpic"
8497 aros_shared_aflags=""
8498 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8499 aros_kernel_ldflags="-Wl,-rpath,./lib"
8500 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8501 aros_debug_aflags=""
8502 aros_debug_ldflags="$aros_symbols_debug"
8503 aros_mungwall_debug="0"
8504 aros_modules_debug="0"
8505 gcc_target_cpu="mc68000"
8506 ignore_undefined_symbols="-ius"
8509 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8510 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8511 { (exit 1); exit 1; }; }
8513 esac
8517 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8518 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8519 { (exit 1); exit 1; }; }
8521 esac
8524 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8525 # for target code)
8526 cross_compiling=no
8527 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8528 cross_compiling=yes
8530 if test "$aros_host_arch" == "darwin" ; then
8531 cross_compiling=yes
8534 # Set prefix for target compiler etc. if we're cross-compiling
8535 # (should possibly be earlier but needs to be after AC_PROG_CC)
8536 if test "$cross_compiling" = "yes" ; then
8537 target_tool_prefix=${target_cpu}-elf-
8538 CC=${target_tool_prefix}gcc
8541 # Find all the tools we need to compile. This could be cross-compiling
8542 # though! If that is the case we use the GNU form of the target and
8543 # simply add this to the front of the binary name. This is rather simple,
8544 # but it should work under most circumstances.
8546 # The default tools are to use the same as the host, but only if the
8547 # host and target CPU are the same. With GCC this is normally enough.
8550 aros_cc_pre=""
8551 aros_shared_ld="$aros_host_ld"
8553 aros_target_mkdep="$aros_host_mkdep"
8554 aros_target_incl_def="$aros_host_incl"
8556 # Extract the first word of "$CC", so it can be a program name with args.
8557 set dummy $CC; ac_word=$2
8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 case $aros_kernel_cc in
8564 [\\/]* | ?:[\\/]*)
8565 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8584 esac
8586 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8587 if test -n "$aros_kernel_cc"; then
8588 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8589 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8590 else
8591 { echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6; }
8597 # The default tools executables to be linked to.
8599 if test "$cross_compiling" = "yes" ; then
8600 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8601 set dummy ${target_tool_prefix}as; ac_word=$2
8602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8604 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 case $aros_target_as_ln in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8623 done
8624 done
8625 IFS=$as_save_IFS
8628 esac
8630 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8631 if test -n "$aros_target_as_ln"; then
8632 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8633 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8634 else
8635 { echo "$as_me:$LINENO: result: no" >&5
8636 echo "${ECHO_T}no" >&6; }
8640 else
8641 if test "$GCC" = "yes"; then
8642 aros_gcc_as=`$CC -print-prog-name=as`
8643 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8644 set dummy `basename $aros_gcc_as`; ac_word=$2
8645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8647 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 case $aros_target_as_ln in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in `dirname $aros_gcc_as`
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8671 esac
8673 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8674 if test -n "$aros_target_as_ln"; then
8675 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8676 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8677 else
8678 { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8684 if test "$aros_target_as_ln" = ""; then
8685 # Extract the first word of "as", so it can be a program name with args.
8686 set dummy as; ac_word=$2
8687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8689 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 case $aros_target_as_ln in
8693 [\\/]* | ?:[\\/]*)
8694 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8713 esac
8715 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8716 if test -n "$aros_target_as_ln"; then
8717 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8718 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8719 else
8720 { echo "$as_me:$LINENO: result: no" >&5
8721 echo "${ECHO_T}no" >&6; }
8728 if test "$aros_target_as_ln" = ""; then
8729 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8730 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8731 { (exit 1); exit 1; }; }
8734 if test "$cross_compiling" = "yes" ; then
8735 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8736 set dummy ${target_tool_prefix}ld; ac_word=$2
8737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 case $aros_kernel_ld in
8743 [\\/]* | ?:[\\/]*)
8744 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8754 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8758 done
8759 done
8760 IFS=$as_save_IFS
8763 esac
8765 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8766 if test -n "$aros_kernel_ld"; then
8767 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8768 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8769 else
8770 { echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6; }
8775 else
8776 if test "$GCC" = "yes"; then
8777 aros_gcc_ld=`$CC -print-prog-name=ld`
8778 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8779 set dummy `basename $aros_gcc_ld`; ac_word=$2
8780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8782 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 case $aros_kernel_ld in
8786 [\\/]* | ?:[\\/]*)
8787 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in `dirname $aros_gcc_ld`
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8801 done
8802 done
8803 IFS=$as_save_IFS
8806 esac
8808 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8809 if test -n "$aros_kernel_ld"; then
8810 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8811 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8812 else
8813 { echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6; }
8819 if test "$aros_kernel_ld" = ""; then
8820 # Extract the first word of "ld", so it can be a program name with args.
8821 set dummy ld; ac_word=$2
8822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8824 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 case $aros_kernel_ld in
8828 [\\/]* | ?:[\\/]*)
8829 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8843 done
8844 done
8845 IFS=$as_save_IFS
8848 esac
8850 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8851 if test -n "$aros_kernel_ld"; then
8852 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8853 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8854 else
8855 { echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6; }
8863 if test "$aros_kernel_ld" = ""; then
8864 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8865 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8866 { (exit 1); exit 1; }; }
8869 if test "$cross_compiling" = "yes" ; then
8870 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8871 set dummy ${target_tool_prefix}ar; ac_word=$2
8872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8874 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 case $aros_target_ar_ln in
8878 [\\/]* | ?:[\\/]*)
8879 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8893 done
8894 done
8895 IFS=$as_save_IFS
8898 esac
8900 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8901 if test -n "$aros_target_ar_ln"; then
8902 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8903 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8904 else
8905 { echo "$as_me:$LINENO: result: no" >&5
8906 echo "${ECHO_T}no" >&6; }
8910 else
8911 if test "$GCC" = "yes"; then
8912 aros_gcc_ar=`$CC -print-prog-name=ar`
8913 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8914 set dummy `basename $aros_gcc_ar`; ac_word=$2
8915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8917 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 case $aros_target_ar_ln in
8921 [\\/]* | ?:[\\/]*)
8922 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in `dirname $aros_gcc_ar`
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8936 done
8937 done
8938 IFS=$as_save_IFS
8941 esac
8943 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8944 if test -n "$aros_target_ar_ln"; then
8945 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8946 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8947 else
8948 { echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6; }
8954 if test "$aros_target_ar_ln" = ""; then
8955 # Extract the first word of "ar", so it can be a program name with args.
8956 set dummy ar; ac_word=$2
8957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8959 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 case $aros_target_ar_ln in
8963 [\\/]* | ?:[\\/]*)
8964 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968 for as_dir in $PATH
8970 IFS=$as_save_IFS
8971 test -z "$as_dir" && as_dir=.
8972 for ac_exec_ext in '' $ac_executable_extensions; do
8973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8974 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8976 break 2
8978 done
8979 done
8980 IFS=$as_save_IFS
8983 esac
8985 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8986 if test -n "$aros_target_ar_ln"; then
8987 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8988 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8989 else
8990 { echo "$as_me:$LINENO: result: no" >&5
8991 echo "${ECHO_T}no" >&6; }
8998 if test "$aros_target_ar_ln" = ""; then
8999 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9000 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9001 { (exit 1); exit 1; }; }
9004 if test "$cross_compiling" = "yes" ; then
9005 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9006 set dummy ${target_tool_prefix}nm; ac_word=$2
9007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9009 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 case $aros_target_nm_ln in
9013 [\\/]* | ?:[\\/]*)
9014 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9028 done
9029 done
9030 IFS=$as_save_IFS
9033 esac
9035 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9036 if test -n "$aros_target_nm_ln"; then
9037 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9038 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9039 else
9040 { echo "$as_me:$LINENO: result: no" >&5
9041 echo "${ECHO_T}no" >&6; }
9045 else
9046 if test "$GCC" = "yes"; then
9047 aros_gcc_nm=`$CC -print-prog-name=nm`
9048 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9049 set dummy `basename $aros_gcc_nm`; ac_word=$2
9050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9052 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055 case $aros_target_nm_ln in
9056 [\\/]* | ?:[\\/]*)
9057 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 for as_dir in `dirname $aros_gcc_nm`
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9067 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9071 done
9072 done
9073 IFS=$as_save_IFS
9076 esac
9078 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9079 if test -n "$aros_target_nm_ln"; then
9080 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9081 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9082 else
9083 { echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6; }
9089 if test "$aros_target_nm_ln" = ""; then
9090 # Extract the first word of "nm", so it can be a program name with args.
9091 set dummy nm; ac_word=$2
9092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9094 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 case $aros_target_nm_ln in
9098 [\\/]* | ?:[\\/]*)
9099 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9109 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9111 break 2
9113 done
9114 done
9115 IFS=$as_save_IFS
9118 esac
9120 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9121 if test -n "$aros_target_nm_ln"; then
9122 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9123 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9124 else
9125 { echo "$as_me:$LINENO: result: no" >&5
9126 echo "${ECHO_T}no" >&6; }
9133 if test "$aros_target_nm_ln" = ""; then
9134 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9135 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9136 { (exit 1); exit 1; }; }
9139 if test "$cross_compiling" = "yes" ; then
9140 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9141 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9144 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 case $aros_target_objcopy_ln in
9148 [\\/]* | ?:[\\/]*)
9149 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $PATH
9155 IFS=$as_save_IFS
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 break 2
9163 done
9164 done
9165 IFS=$as_save_IFS
9168 esac
9170 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9171 if test -n "$aros_target_objcopy_ln"; then
9172 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9173 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9174 else
9175 { echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6; }
9180 else
9181 if test "$GCC" = "yes"; then
9182 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9183 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9184 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9187 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190 case $aros_target_objcopy_ln in
9191 [\\/]* | ?:[\\/]*)
9192 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in `dirname $aros_gcc_objcopy`
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9202 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 break 2
9206 done
9207 done
9208 IFS=$as_save_IFS
9211 esac
9213 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9214 if test -n "$aros_target_objcopy_ln"; then
9215 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9216 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9217 else
9218 { echo "$as_me:$LINENO: result: no" >&5
9219 echo "${ECHO_T}no" >&6; }
9224 if test "$aros_target_objcopy_ln" = ""; then
9225 # Extract the first word of "objcopy", so it can be a program name with args.
9226 set dummy objcopy; ac_word=$2
9227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9229 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232 case $aros_target_objcopy_ln in
9233 [\\/]* | ?:[\\/]*)
9234 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 break 2
9248 done
9249 done
9250 IFS=$as_save_IFS
9253 esac
9255 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9256 if test -n "$aros_target_objcopy_ln"; then
9257 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9258 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9259 else
9260 { echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6; }
9268 if test "$aros_target_objcopy_ln" = ""; then
9269 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9270 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9271 { (exit 1); exit 1; }; }
9274 if test "$cross_compiling" = "yes" ; then
9275 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9276 set dummy ${target_tool_prefix}objdump; ac_word=$2
9277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9279 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 case $aros_target_objdump_ln in
9283 [\\/]* | ?:[\\/]*)
9284 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9294 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9298 done
9299 done
9300 IFS=$as_save_IFS
9303 esac
9305 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9306 if test -n "$aros_target_objdump_ln"; then
9307 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9308 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9309 else
9310 { echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6; }
9315 else
9316 if test "$GCC" = "yes"; then
9317 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9318 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9319 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9322 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 case $aros_target_objdump_ln in
9326 [\\/]* | ?:[\\/]*)
9327 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in `dirname $aros_gcc_objdump`
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9341 done
9342 done
9343 IFS=$as_save_IFS
9346 esac
9348 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9349 if test -n "$aros_target_objdump_ln"; then
9350 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9351 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9352 else
9353 { echo "$as_me:$LINENO: result: no" >&5
9354 echo "${ECHO_T}no" >&6; }
9359 if test "$aros_target_objdump_ln" = ""; then
9360 # Extract the first word of "objdump", so it can be a program name with args.
9361 set dummy objdump; ac_word=$2
9362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9364 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 case $aros_target_objdump_ln in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9383 done
9384 done
9385 IFS=$as_save_IFS
9388 esac
9390 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9391 if test -n "$aros_target_objdump_ln"; then
9392 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9393 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9394 else
9395 { echo "$as_me:$LINENO: result: no" >&5
9396 echo "${ECHO_T}no" >&6; }
9403 if test "$aros_target_objdump_ln" = ""; then
9404 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9405 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9406 { (exit 1); exit 1; }; }
9409 if test "$cross_compiling" = "yes" ; then
9410 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9411 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9414 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 case $aros_target_ranlib_ln in
9418 [\\/]* | ?:[\\/]*)
9419 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 for as_dir in $PATH
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9429 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 break 2
9433 done
9434 done
9435 IFS=$as_save_IFS
9438 esac
9440 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9441 if test -n "$aros_target_ranlib_ln"; then
9442 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9443 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9444 else
9445 { echo "$as_me:$LINENO: result: no" >&5
9446 echo "${ECHO_T}no" >&6; }
9450 else
9451 if test "$GCC" = "yes"; then
9452 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9453 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9454 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9457 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460 case $aros_target_ranlib_ln in
9461 [\\/]* | ?:[\\/]*)
9462 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 for as_dir in `dirname $aros_gcc_ranlib`
9468 IFS=$as_save_IFS
9469 test -z "$as_dir" && as_dir=.
9470 for ac_exec_ext in '' $ac_executable_extensions; do
9471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9474 break 2
9476 done
9477 done
9478 IFS=$as_save_IFS
9481 esac
9483 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9484 if test -n "$aros_target_ranlib_ln"; then
9485 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9486 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9487 else
9488 { echo "$as_me:$LINENO: result: no" >&5
9489 echo "${ECHO_T}no" >&6; }
9494 if test "$aros_target_ranlib_ln" = ""; then
9495 # Extract the first word of "ranlib", so it can be a program name with args.
9496 set dummy ranlib; ac_word=$2
9497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9499 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502 case $aros_target_ranlib_ln in
9503 [\\/]* | ?:[\\/]*)
9504 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in $PATH
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9514 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9518 done
9519 done
9520 IFS=$as_save_IFS
9523 esac
9525 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9526 if test -n "$aros_target_ranlib_ln"; then
9527 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9528 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9529 else
9530 { echo "$as_me:$LINENO: result: no" >&5
9531 echo "${ECHO_T}no" >&6; }
9538 if test "$aros_target_ranlib_ln" = ""; then
9539 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9540 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9541 { (exit 1); exit 1; }; }
9544 if test "$cross_compiling" = "yes" ; then
9545 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9546 set dummy ${target_tool_prefix}strip; ac_word=$2
9547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9549 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 case $aros_target_strip_ln in
9553 [\\/]* | ?:[\\/]*)
9554 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558 for as_dir in $PATH
9560 IFS=$as_save_IFS
9561 test -z "$as_dir" && as_dir=.
9562 for ac_exec_ext in '' $ac_executable_extensions; do
9563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9564 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9566 break 2
9568 done
9569 done
9570 IFS=$as_save_IFS
9573 esac
9575 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9576 if test -n "$aros_target_strip_ln"; then
9577 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9578 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9579 else
9580 { echo "$as_me:$LINENO: result: no" >&5
9581 echo "${ECHO_T}no" >&6; }
9585 else
9586 if test "$GCC" = "yes"; then
9587 aros_gcc_strip=`$CC -print-prog-name=strip`
9588 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9589 set dummy `basename $aros_gcc_strip`; ac_word=$2
9590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9592 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595 case $aros_target_strip_ln in
9596 [\\/]* | ?:[\\/]*)
9597 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601 for as_dir in `dirname $aros_gcc_strip`
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 break 2
9611 done
9612 done
9613 IFS=$as_save_IFS
9616 esac
9618 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9619 if test -n "$aros_target_strip_ln"; then
9620 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9621 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9622 else
9623 { echo "$as_me:$LINENO: result: no" >&5
9624 echo "${ECHO_T}no" >&6; }
9629 if test "$aros_target_strip_ln" = ""; then
9630 # Extract the first word of "strip", so it can be a program name with args.
9631 set dummy strip; ac_word=$2
9632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9634 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 case $aros_target_strip_ln in
9638 [\\/]* | ?:[\\/]*)
9639 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in $PATH
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
9648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9649 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 break 2
9653 done
9654 done
9655 IFS=$as_save_IFS
9658 esac
9660 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9661 if test -n "$aros_target_strip_ln"; then
9662 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9663 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9664 else
9665 { echo "$as_me:$LINENO: result: no" >&5
9666 echo "${ECHO_T}no" >&6; }
9673 if test "$aros_target_strip_ln" = ""; then
9674 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9675 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9676 { (exit 1); exit 1; }; }
9679 if test "$GCC" = "yes"; then
9680 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9683 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9684 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9685 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9686 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9687 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9688 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9689 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9691 # aros_cc_pre is a variable that is added to the front of the compiler name
9692 # in the generated aros-gcc shell script. We need this to enable the cache
9693 # to work across cleaned builds. Also, support DISTCC using the correct
9694 # environment variable.
9697 if test "x${DISTCC}" != "x" ; then
9698 if test "x${CCACHE}" != "x" ; then
9699 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9700 else
9701 aros_cc_pre="${DISTCC} "
9703 else
9704 if test "x${CCACHE}" != "x" ; then
9705 aros_cc_pre="${CCACHE} "
9709 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9711 aros_target_nostdinc_cflags=-nostdinc
9713 aros_target_nostartup_ldflags=-nostartfiles
9715 aros_target_nix_ldflags=-nix
9717 aros_target_detach_ldflags=-detach
9719 aros_target_nostdlib_ldflags=-nostdlib
9722 # Target tools
9723 aros_target_cc="${prefix}-gcc"
9724 aros_target_as="${prefix}-as"
9725 aros_target_ld="${prefix}-ld"
9726 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9727 aros_target_objcopy=${prefix}-objcopy
9728 aros_target_objdump=${prefix}-objdump
9729 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9730 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9731 aros_kernel_nm="${prefix}-nm"
9732 aros_target_strip=${prefix}-strip
9735 # Find the system include path. We can suggest that an alternative is
9736 # used if we don't get it correct. The default is to use /usr/include.
9737 # Which is set in the aros_target_incl_def variable.
9739 # Check whether --enable-includes was given.
9740 if test "${enable_includes+set}" = set; then
9741 enableval=$enable_includes; aros_target_incl=$enable_includes
9742 else
9743 aros_target_incl=$aros_target_incl_def
9747 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9748 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
9749 if test "$aros_target_cc_includes" = "" ; then
9750 #try to guess where the directory is
9751 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9752 if ! test -d $aros_target_cc_includes; then
9753 #the directory doesn't exist, we need to do some more work
9754 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9756 #these are the headers we're looling for
9757 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9758 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9759 zutil.h"
9761 dirs=
9762 for h in $headers; do
9763 #which other headers each of the above headers needs?
9764 deps=$(echo "#include <$h>" | \
9765 $aros_host_cc -E -M - 2>/dev/null | \
9766 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9768 #copy all the needed headers to a directory beneath gendir
9769 for d in $deps; do
9770 h=$(basename $d)
9771 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9772 sed -n "s,^.*/include\(/.*\),\1,p")
9773 ! test -d $dir && mkdir -p $dir
9774 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9775 done
9776 done
9779 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9780 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
9782 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9783 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
9785 # Check whether --with-resolution was given.
9786 if test "${with_resolution+set}" = set; then
9787 withval=$with_resolution; resolution=$withval
9788 else
9789 resolution=none
9792 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9793 if test "$resolution" = "yes" ; then
9794 resolution="none"
9796 if test "$resolution" = "no" ; then
9797 resolution="none"
9799 if test "$resolution" != "none" ; then
9800 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9801 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9802 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9804 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9805 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9806 aros_cv_default_wbwidth=$aros_default_wbwidth
9807 aros_cv_default_wbheight=$aros_default_wbheight
9808 aros_cv_default_wbdepth=$aros_default_wbdepth
9810 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9811 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
9812 # Check whether --enable-bochs_hack was given.
9813 if test "${enable_bochs_hack+set}" = set; then
9814 enableval=$enable_bochs_hack; bochs_hack="yes"
9815 else
9816 bochs_hack="no"
9819 if test "$bochs_hack" = "yes" ; then
9820 aros_bochs_hack="1"
9822 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
9823 echo "${ECHO_T}$bochs_hack" >&6; }
9825 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9826 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
9828 # Check whether --with-serial-debug was given.
9829 if test "${with_serial_debug+set}" = set; then
9830 withval=$with_serial_debug; serial_debug=$withval
9831 else
9832 serial_debug=none
9835 if test "$serial_debug" = "yes" ; then
9836 serial_debug="2"
9838 if test "$serial_debug" = "no" ; then
9839 serial_debug="none"
9841 if test "$serial_debug" != "none" ; then
9842 aros_serial_debug=$serial_debug
9843 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9844 echo "${ECHO_T}on port $serial_debug" >&6; }
9845 else
9846 { echo "$as_me:$LINENO: result: no" >&5
9847 echo "${ECHO_T}no" >&6; }
9850 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9851 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
9852 # Check whether --enable-palm_debug_hack was given.
9853 if test "${enable_palm_debug_hack+set}" = set; then
9854 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9855 else
9856 palm_debug_hack="no"
9859 if test "$palm_debug_hack" = "yes" ; then
9860 aros_palm_debug_hack="1"
9862 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9863 echo "${ECHO_T}$palm_debug_hack" >&6; }
9866 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9867 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
9868 # Check whether --enable-nesting_supervisor was given.
9869 if test "${enable_nesting_supervisor+set}" = set; then
9870 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9871 else
9872 nesting_supervisor="no"
9875 if test "$nesting_supervisor" = "yes" ; then
9876 aros_nesting_supervisor="1"
9878 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9879 echo "${ECHO_T}$nesting_supervisor" >&6; }
9882 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9884 { echo "$as_me:$LINENO: checking for dlopen" >&5
9885 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9886 if test "${ac_cv_func_dlopen+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h. */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define dlopen innocuous_dlopen
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char dlopen (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9904 #ifdef __STDC__
9905 # include <limits.h>
9906 #else
9907 # include <assert.h>
9908 #endif
9910 #undef dlopen
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char dlopen ();
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_dlopen || defined __stub___dlopen
9923 choke me
9924 #endif
9927 main ()
9929 return dlopen ();
9931 return 0;
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9936 case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
9952 ac_cv_func_dlopen=yes
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 ac_cv_func_dlopen=no
9960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9961 conftest$ac_exeext conftest.$ac_ext
9963 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9964 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9965 if test $ac_cv_func_dlopen = yes; then
9966 have_dl="yes"
9967 else
9968 have_dl="no"
9971 if test "x-$have_dl" = "x-no" ; then
9972 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9973 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-ldl $LIBS"
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char dlopen ();
9994 main ()
9996 return dlopen ();
9998 return 0;
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (ac_try="$ac_link"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_link") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest$ac_exeext &&
10018 $as_test_x conftest$ac_exeext; then
10019 ac_cv_lib_dl_dlopen=yes
10020 else
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ac_cv_lib_dl_dlopen=no
10027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10033 if test $ac_cv_lib_dl_dlopen = yes; then
10034 have_dl="yes"
10035 aros_host_ldflags="$aros_host_ldflags -ldl"
10036 else
10037 have_dl="no"
10041 if test "x-$have_dl" = "x-no" ; then
10042 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10043 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10044 { (exit 1); exit 1; }; }
10048 # Check whether --enable-x11_hidd was given.
10049 if test "${enable_x11_hidd+set}" = set; then
10050 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10051 else
10052 x11_hidd="auto"
10055 case "x-$x11_hidd" in
10056 x-yes|x-no|x-auto) ;;
10057 *) x11_hidd="auto" ;;
10058 esac
10060 if test "x-$x11_hidd" != "x-no" ; then
10062 { echo "$as_me:$LINENO: checking for X" >&5
10063 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10066 # Check whether --with-x was given.
10067 if test "${with_x+set}" = set; then
10068 withval=$with_x;
10071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10072 if test "x$with_x" = xno; then
10073 # The user explicitly disabled X.
10074 have_x=disabled
10075 else
10076 case $x_includes,$x_libraries in #(
10077 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10078 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10079 { (exit 1); exit 1; }; };; #(
10080 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083 # One or both of the vars are not set, and there is no cached value.
10084 ac_x_includes=no ac_x_libraries=no
10085 rm -f -r conftest.dir
10086 if mkdir conftest.dir; then
10087 cd conftest.dir
10088 cat >Imakefile <<'_ACEOF'
10089 incroot:
10090 @echo incroot='${INCROOT}'
10091 usrlibdir:
10092 @echo usrlibdir='${USRLIBDIR}'
10093 libdir:
10094 @echo libdir='${LIBDIR}'
10095 _ACEOF
10096 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10098 for ac_var in incroot usrlibdir libdir; do
10099 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10100 done
10101 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10102 for ac_extension in a so sl; do
10103 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10104 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10105 ac_im_usrlibdir=$ac_im_libdir; break
10107 done
10108 # Screen out bogus values from the imake configuration. They are
10109 # bogus both because they are the default anyway, and because
10110 # using them would break gcc on systems where it needs fixed includes.
10111 case $ac_im_incroot in
10112 /usr/include) ac_x_includes= ;;
10113 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10114 esac
10115 case $ac_im_usrlibdir in
10116 /usr/lib | /lib) ;;
10117 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10118 esac
10120 cd ..
10121 rm -f -r conftest.dir
10124 # Standard set of common directories for X headers.
10125 # Check X11 before X11Rn because it is often a symlink to the current release.
10126 ac_x_header_dirs='
10127 /usr/X11/include
10128 /usr/X11R6/include
10129 /usr/X11R5/include
10130 /usr/X11R4/include
10132 /usr/include/X11
10133 /usr/include/X11R6
10134 /usr/include/X11R5
10135 /usr/include/X11R4
10137 /usr/local/X11/include
10138 /usr/local/X11R6/include
10139 /usr/local/X11R5/include
10140 /usr/local/X11R4/include
10142 /usr/local/include/X11
10143 /usr/local/include/X11R6
10144 /usr/local/include/X11R5
10145 /usr/local/include/X11R4
10147 /usr/X386/include
10148 /usr/x386/include
10149 /usr/XFree86/include/X11
10151 /usr/include
10152 /usr/local/include
10153 /usr/unsupported/include
10154 /usr/athena/include
10155 /usr/local/x11r5/include
10156 /usr/lpp/Xamples/include
10158 /usr/openwin/include
10159 /usr/openwin/share/include'
10161 if test "$ac_x_includes" = no; then
10162 # Guess where to find include files, by looking for Xlib.h.
10163 # First, try using that file with no special directory specified.
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 #include <X11/Xlib.h>
10171 _ACEOF
10172 if { (ac_try="$ac_cpp conftest.$ac_ext"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10179 ac_status=$?
10180 grep -v '^ *+' conftest.er1 >conftest.err
10181 rm -f conftest.er1
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } >/dev/null && {
10185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 }; then
10188 # We can compile using X headers with no special include directory.
10189 ac_x_includes=
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 for ac_dir in $ac_x_header_dirs; do
10195 if test -r "$ac_dir/X11/Xlib.h"; then
10196 ac_x_includes=$ac_dir
10197 break
10199 done
10202 rm -f conftest.err conftest.$ac_ext
10203 fi # $ac_x_includes = no
10205 if test "$ac_x_libraries" = no; then
10206 # Check for the libraries.
10207 # See if we find them without any special options.
10208 # Don't add to $LIBS permanently.
10209 ac_save_LIBS=$LIBS
10210 LIBS="-lX11 $LIBS"
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 #include <X11/Xlib.h>
10219 main ()
10221 XrmInitialize ()
10223 return 0;
10225 _ACEOF
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest$ac_exeext &&
10243 $as_test_x conftest$ac_exeext; then
10244 LIBS=$ac_save_LIBS
10245 # We can link X programs with no special library path.
10246 ac_x_libraries=
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 LIBS=$ac_save_LIBS
10252 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10254 # Don't even attempt the hair of trying to link an X program!
10255 for ac_extension in a so sl; do
10256 if test -r "$ac_dir/libX11.$ac_extension"; then
10257 ac_x_libraries=$ac_dir
10258 break 2
10260 done
10261 done
10264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10265 conftest$ac_exeext conftest.$ac_ext
10266 fi # $ac_x_libraries = no
10268 case $ac_x_includes,$ac_x_libraries in #(
10269 no,* | *,no | *\'*)
10270 # Didn't find X, or a directory has "'" in its name.
10271 ac_cv_have_x="have_x=no";; #(
10273 # Record where we found X for the cache.
10274 ac_cv_have_x="have_x=yes\
10275 ac_x_includes='$ac_x_includes'\
10276 ac_x_libraries='$ac_x_libraries'"
10277 esac
10279 ;; #(
10280 *) have_x=yes;;
10281 esac
10282 eval "$ac_cv_have_x"
10283 fi # $with_x != no
10285 if test "$have_x" != yes; then
10286 { echo "$as_me:$LINENO: result: $have_x" >&5
10287 echo "${ECHO_T}$have_x" >&6; }
10288 no_x=yes
10289 else
10290 # If each of the values was on the command line, it overrides each guess.
10291 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10292 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10293 # Update the cache value to reflect the command line values.
10294 ac_cv_have_x="have_x=yes\
10295 ac_x_includes='$x_includes'\
10296 ac_x_libraries='$x_libraries'"
10297 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10298 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10302 if test "x-$no_x" = "x-yes" ; then
10304 if test "x-$x11_hidd" != "x-auto" ; then
10305 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10306 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10307 { (exit 1); exit 1; }; }
10310 else
10311 x11_hidd_target=kernel-x11gfx
10314 # Check whether --enable-x11_shm was given.
10315 if test "${enable_x11_shm+set}" = set; then
10316 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10317 else
10318 x11_hidd_shm="auto"
10321 case "x-$x11_hidd_shm" in
10322 x-yes|x-no|x-auto) ;;
10323 *) x11_hidd_shm="auto" ;;
10324 esac
10326 have_xshm=no
10328 if test "x-$x11_hidd_shm" != "x-no" ; then
10331 for ac_header in sys/ipc.h
10333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 ac_res=`eval echo '${'$as_ac_Header'}'`
10341 { echo "$as_me:$LINENO: result: $ac_res" >&5
10342 echo "${ECHO_T}$ac_res" >&6; }
10343 else
10344 # Is the header compilable?
10345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10347 cat >conftest.$ac_ext <<_ACEOF
10348 /* confdefs.h. */
10349 _ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353 $ac_includes_default
10354 #include <$ac_header>
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (ac_try="$ac_compile"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_compile") 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest.$ac_objext; then
10373 ac_header_compiler=yes
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 ac_header_compiler=no
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10383 echo "${ECHO_T}$ac_header_compiler" >&6; }
10385 # Is the header present?
10386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 #include <$ac_header>
10395 _ACEOF
10396 if { (ac_try="$ac_cpp conftest.$ac_ext"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } >/dev/null && {
10409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 }; then
10412 ac_header_preproc=yes
10413 else
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_header_preproc=no
10420 rm -f conftest.err conftest.$ac_ext
10421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10422 echo "${ECHO_T}$ac_header_preproc" >&6; }
10424 # So? What about this header?
10425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10426 yes:no: )
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10431 ac_header_preproc=yes
10433 no:yes:* )
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10448 esac
10449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 eval "$as_ac_Header=\$ac_header_preproc"
10456 ac_res=`eval echo '${'$as_ac_Header'}'`
10457 { echo "$as_me:$LINENO: result: $ac_res" >&5
10458 echo "${ECHO_T}$ac_res" >&6; }
10461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10464 _ACEOF
10468 done
10471 for ac_header in sys/shm.h
10473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 ac_res=`eval echo '${'$as_ac_Header'}'`
10481 { echo "$as_me:$LINENO: result: $ac_res" >&5
10482 echo "${ECHO_T}$ac_res" >&6; }
10483 else
10484 # Is the header compilable?
10485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10487 cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h. */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 $ac_includes_default
10494 #include <$ac_header>
10495 _ACEOF
10496 rm -f conftest.$ac_objext
10497 if { (ac_try="$ac_compile"
10498 case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_compile") 2>conftest.er1
10504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } && {
10510 test -z "$ac_c_werror_flag" ||
10511 test ! -s conftest.err
10512 } && test -s conftest.$ac_objext; then
10513 ac_header_compiler=yes
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 ac_header_compiler=no
10521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10523 echo "${ECHO_T}$ac_header_compiler" >&6; }
10525 # Is the header present?
10526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 #include <$ac_header>
10535 _ACEOF
10536 if { (ac_try="$ac_cpp conftest.$ac_ext"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } >/dev/null && {
10549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10550 test ! -s conftest.err
10551 }; then
10552 ac_header_preproc=yes
10553 else
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_header_preproc=no
10560 rm -f conftest.err conftest.$ac_ext
10561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10562 echo "${ECHO_T}$ac_header_preproc" >&6; }
10564 # So? What about this header?
10565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10566 yes:no: )
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10571 ac_header_preproc=yes
10573 no:yes:* )
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10588 esac
10589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594 eval "$as_ac_Header=\$ac_header_preproc"
10596 ac_res=`eval echo '${'$as_ac_Header'}'`
10597 { echo "$as_me:$LINENO: result: $ac_res" >&5
10598 echo "${ECHO_T}$ac_res" >&6; }
10601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10602 cat >>confdefs.h <<_ACEOF
10603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10604 _ACEOF
10608 done
10611 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10613 save_libs="$LIBS"
10614 save_cflags="$CFLAGS"
10615 LIBS="$x_libraries"
10616 CFLAGS="$x_includes"
10617 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10618 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10619 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-lXext $LIBS"
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10631 /* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char XShmQueryExtension ();
10639 main ()
10641 return XShmQueryExtension ();
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (ac_try="$ac_link"
10648 case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10651 esac
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_link") 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } && {
10660 test -z "$ac_c_werror_flag" ||
10661 test ! -s conftest.err
10662 } && test -s conftest$ac_exeext &&
10663 $as_test_x conftest$ac_exeext; then
10664 ac_cv_lib_Xext_XShmQueryExtension=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_lib_Xext_XShmQueryExtension=no
10672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10673 conftest$ac_exeext conftest.$ac_ext
10674 LIBS=$ac_check_lib_save_LIBS
10676 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10677 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10678 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10679 have_xshm=yes
10682 LIBS="$save_libs"
10683 CFLAGS="$save_cflags"
10687 if test "x-$have_xshm" = "x-yes" ; then
10688 DO_XSHM_SUPPORT="1"
10689 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10690 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
10691 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
10692 { (exit 1); exit 1; }; }
10693 else
10694 DO_XSHM_SUPPORT="0"
10698 # Check whether --enable-x11_vidmode was given.
10699 if test "${enable_x11_vidmode+set}" = set; then
10700 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10701 else
10702 x11_hidd_vidmode="auto"
10705 case "x-$x11_hidd_vidmode" in
10706 x-yes|x-no|x-auto) ;;
10707 *) x11_hidd_vidmode="auto" ;;
10708 esac
10710 have_vidmode=no
10712 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10714 save_libs="$LIBS"
10715 save_cflags="$CFLAGS"
10716 LIBS="$x_libraries"
10717 CFLAGS="$x_includes"
10718 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10719 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
10720 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723 ac_check_lib_save_LIBS=$LIBS
10724 LIBS="-lXxf86vm $LIBS"
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h. */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 char XF86VidModeQueryExtension ();
10740 main ()
10742 return XF86VidModeQueryExtension ();
10744 return 0;
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_link") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext &&
10764 $as_test_x conftest$ac_exeext; then
10765 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10766 else
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10777 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10778 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10779 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10780 have_vidmode=yes
10783 LIBS="$save_libs"
10784 CFLAGS="$save_cflags"
10787 if test "x-$have_vidmode" = "x-yes" ; then
10788 DO_VIDMODE_SUPPORT="1"
10789 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10790 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
10791 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
10792 { (exit 1); exit 1; }; }
10793 else
10794 DO_VIDMODE_SUPPORT="0"
10798 aros_host_x11_includes=$x_includes
10799 aros_host_x11_libdirs=$x_libraries
10803 # Check whether --enable-sdl_hidd was given.
10804 if test "${enable_sdl_hidd+set}" = set; then
10805 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10806 else
10807 sdl_hidd="auto"
10810 case "x-$sdl_hidd" in
10811 x-yes|x-no|x-auto) ;;
10812 *) sdl_hidd="auto" ;;
10813 esac
10815 if test "x-$sdl_hidd" != "x-no" ; then
10818 # Check whether --with-sdl-prefix was given.
10819 if test "${with_sdl_prefix+set}" = set; then
10820 withval=$with_sdl_prefix; sdl_prefix="$withval"
10821 else
10822 sdl_prefix=""
10826 # Check whether --with-sdl-exec-prefix was given.
10827 if test "${with_sdl_exec_prefix+set}" = set; then
10828 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10829 else
10830 sdl_exec_prefix=""
10833 # Check whether --enable-sdltest was given.
10834 if test "${enable_sdltest+set}" = set; then
10835 enableval=$enable_sdltest;
10836 else
10837 enable_sdltest=yes
10841 if test x$sdl_exec_prefix != x ; then
10842 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10843 if test x${SDL_CONFIG+set} != xset ; then
10844 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10847 if test x$sdl_prefix != x ; then
10848 sdl_args="$sdl_args --prefix=$sdl_prefix"
10849 if test x${SDL_CONFIG+set} != xset ; then
10850 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10854 if test "x$prefix" != xNONE; then
10855 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10857 # Extract the first word of "sdl-config", so it can be a program name with args.
10858 set dummy sdl-config; ac_word=$2
10859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10861 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864 case $SDL_CONFIG in
10865 [\\/]* | ?:[\\/]*)
10866 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10872 IFS=$as_save_IFS
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10876 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10878 break 2
10880 done
10881 done
10882 IFS=$as_save_IFS
10884 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10886 esac
10888 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10889 if test -n "$SDL_CONFIG"; then
10890 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
10891 echo "${ECHO_T}$SDL_CONFIG" >&6; }
10892 else
10893 { echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6; }
10898 min_sdl_version=1.2.10
10899 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
10900 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
10901 no_sdl=""
10902 if test "$SDL_CONFIG" = "no" ; then
10903 no_sdl=yes
10904 else
10905 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10906 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10908 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10909 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10910 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10911 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10912 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10914 if test "x$enable_sdltest" = "xyes" ; then
10915 ac_save_CFLAGS="$CFLAGS"
10916 ac_save_CXXFLAGS="$CXXFLAGS"
10917 ac_save_LIBS="$LIBS"
10918 CFLAGS="$CFLAGS $SDL_CFLAGS"
10919 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10920 LIBS="$LIBS $SDL_LIBS"
10921 rm -f conf.sdltest
10922 if test "$cross_compiling" = yes; then
10923 echo $ac_n "cross compiling; assumed OK... $ac_c"
10924 else
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10932 #include <stdio.h>
10933 #include <stdlib.h>
10934 #include <string.h>
10935 #include "SDL.h"
10937 char*
10938 my_strdup (char *str)
10940 char *new_str;
10942 if (str)
10944 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10945 strcpy (new_str, str);
10947 else
10948 new_str = NULL;
10950 return new_str;
10953 int main (int argc, char *argv[])
10955 int major, minor, micro;
10956 char *tmp_version;
10958 /* This hangs on some systems (?)
10959 system ("touch conf.sdltest");
10961 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10963 /* HP/UX 9 (%@#!) writes to sscanf strings */
10964 tmp_version = my_strdup("$min_sdl_version");
10965 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10966 printf("%s, bad version string\n", "$min_sdl_version");
10967 exit(1);
10970 if (($sdl_major_version > major) ||
10971 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10972 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10974 return 0;
10976 else
10978 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10979 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10980 printf("*** best to upgrade to the required version.\n");
10981 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10982 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10983 printf("*** config.cache before re-running configure\n");
10984 return 1;
10989 _ACEOF
10990 rm -f conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_link") 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11011 else
11012 echo "$as_me: program exited with status $ac_status" >&5
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ( exit $ac_status )
11017 no_sdl=yes
11019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11023 CFLAGS="$ac_save_CFLAGS"
11024 CXXFLAGS="$ac_save_CXXFLAGS"
11025 LIBS="$ac_save_LIBS"
11028 if test "x$no_sdl" = x ; then
11029 { echo "$as_me:$LINENO: result: yes" >&5
11030 echo "${ECHO_T}yes" >&6; }
11031 have_sdl="yes"
11032 else
11033 { echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6; }
11035 if test "$SDL_CONFIG" = "no" ; then
11036 echo "*** The sdl-config script installed by SDL could not be found"
11037 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11038 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11039 echo "*** full path to sdl-config."
11040 else
11041 if test -f conf.sdltest ; then
11043 else
11044 echo "*** Could not run SDL test program, checking why..."
11045 CFLAGS="$CFLAGS $SDL_CFLAGS"
11046 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11047 LIBS="$LIBS $SDL_LIBS"
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11055 #include <stdio.h>
11056 #include "SDL.h"
11058 int main(int argc, char *argv[])
11059 { return 0; }
11060 #undef main
11061 #define main K_and_R_C_main
11064 main ()
11066 return 0;
11068 return 0;
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest$ac_exeext &&
11088 $as_test_x conftest$ac_exeext; then
11089 echo "*** The test program compiled, but did not run. This usually means"
11090 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11091 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11092 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11093 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11094 echo "*** is required on your system"
11095 echo "***"
11096 echo "*** If you have an old version installed, it is best to remove it, although"
11097 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11098 else
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 echo "*** The test program failed to compile or link. See the file config.log for the"
11103 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11104 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11105 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11109 conftest$ac_exeext conftest.$ac_ext
11110 CFLAGS="$ac_save_CFLAGS"
11111 CXXFLAGS="$ac_save_CXXFLAGS"
11112 LIBS="$ac_save_LIBS"
11115 SDL_CFLAGS=""
11116 SDL_LIBS=""
11117 have_sdl="no"
11121 rm -f conf.sdltest
11124 if test "x-$have_sdl" != "x-yes" ; then
11126 if test "x-$sdl_hidd" != "x-auto" ; then
11127 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11128 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11129 { (exit 1); exit 1; }; }
11132 else
11133 sdl_hidd_target=kernel-hidd-sdl
11134 aros_host_sdl_cflags=SDL_CFLAGS
11135 aros_host_sdl_libs=SDL_LIBS
11142 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11143 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11144 # Check whether --enable-dbus was given.
11145 if test "${enable_dbus+set}" = set; then
11146 enableval=$enable_dbus; dbus="yes"
11147 else
11148 dbus="no"
11151 if test "$dbus" = "yes" ; then
11152 ENABLE_DBUS=1
11153 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11154 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11155 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11156 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11157 else
11158 ENABLE_DBUS=0
11160 { echo "$as_me:$LINENO: result: $dbus" >&5
11161 echo "${ECHO_T}$dbus" >&6; }
11165 # Generic
11172 # Host related
11195 # Target Related
11234 # Graphics Related
11249 # Native version related
11253 # Palm native version related
11256 # Unix/Hosted version related
11259 # DBUS related
11266 # Debug related
11272 # Collect-aros stuff: "-ius" to ignore undefined symbols
11275 # C compiler related
11278 case "$aros_flavour" in
11279 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11280 aros_flavour="emulation" ;;
11281 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11282 aros_flavour="emulation" ;;
11283 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11284 aros_flavour="standalone";;
11285 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11286 aros_flavour="native" ;;
11287 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11288 aros_flavour="native" ;;
11289 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11290 aros_flavour="linklib" ;;
11291 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11292 aros_flavour="palmnative" ;;
11293 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11294 aros_flavour="mac68knative" ;;
11295 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11296 aros_flavour="ppcnative" ;;
11297 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 x11_hidd_target!$x11_hidd_target$ac_delim
12201 sdl_hidd_target!$sdl_hidd_target$ac_delim
12202 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12203 aros_default_wbheight!$aros_default_wbheight$ac_delim
12204 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12205 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12206 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12207 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
12208 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
12209 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
12210 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
12211 aros_bochs_hack!$aros_bochs_hack$ac_delim
12212 aros_serial_debug!$aros_serial_debug$ac_delim
12213 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12214 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12215 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12216 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12217 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12218 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12219 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12220 aros_debug!$aros_debug$ac_delim
12221 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12222 aros_stack_debug!$aros_stack_debug$ac_delim
12223 aros_modules_debug!$aros_modules_debug$ac_delim
12224 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12225 gcc_target_cpu!$gcc_target_cpu$ac_delim
12226 LTLIBOBJS!$LTLIBOBJS$ac_delim
12227 _ACEOF
12229 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
12230 break
12231 elif $ac_last_try; then
12232 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12233 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12234 { (exit 1); exit 1; }; }
12235 else
12236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12238 done
12240 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12241 if test -n "$ac_eof"; then
12242 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12243 ac_eof=`expr $ac_eof + 1`
12246 cat >>$CONFIG_STATUS <<_ACEOF
12247 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12249 _ACEOF
12250 sed '
12251 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12252 s/^/s,@/; s/!/@,|#_!!_#|/
12255 s/'"$ac_delim"'$/,g/; t
12256 s/$/\\/; p
12257 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12258 ' >>$CONFIG_STATUS <conf$$subs.sed
12259 rm -f conf$$subs.sed
12260 cat >>$CONFIG_STATUS <<_ACEOF
12261 CEOF$ac_eof
12262 _ACEOF
12265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12267 # trailing colons and then remove the whole line if VPATH becomes empty
12268 # (actually we leave an empty line to preserve line numbers).
12269 if test "x$srcdir" = x.; then
12270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12271 s/:*\$(srcdir):*/:/
12272 s/:*\${srcdir}:*/:/
12273 s/:*@srcdir@:*/:/
12274 s/^\([^=]*=[ ]*\):*/\1/
12275 s/:*$//
12276 s/^[^=]*=[ ]*$//
12280 cat >>$CONFIG_STATUS <<\_ACEOF
12281 fi # test -n "$CONFIG_FILES"
12284 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12286 case $ac_tag in
12287 :[FHLC]) ac_mode=$ac_tag; continue;;
12288 esac
12289 case $ac_mode$ac_tag in
12290 :[FHL]*:*);;
12291 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12292 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12293 { (exit 1); exit 1; }; };;
12294 :[FH]-) ac_tag=-:-;;
12295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12296 esac
12297 ac_save_IFS=$IFS
12298 IFS=:
12299 set x $ac_tag
12300 IFS=$ac_save_IFS
12301 shift
12302 ac_file=$1
12303 shift
12305 case $ac_mode in
12306 :L) ac_source=$1;;
12307 :[FH])
12308 ac_file_inputs=
12309 for ac_f
12311 case $ac_f in
12312 -) ac_f="$tmp/stdin";;
12313 *) # Look for the file first in the build tree, then in the source tree
12314 # (if the path is not absolute). The absolute path cannot be DOS-style,
12315 # because $ac_f cannot contain `:'.
12316 test -f "$ac_f" ||
12317 case $ac_f in
12318 [\\/$]*) false;;
12319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12320 esac ||
12321 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12322 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12323 { (exit 1); exit 1; }; };;
12324 esac
12325 ac_file_inputs="$ac_file_inputs $ac_f"
12326 done
12328 # Let's still pretend it is `configure' which instantiates (i.e., don't
12329 # use $as_me), people would be surprised to read:
12330 # /* config.h. Generated by config.status. */
12331 configure_input="Generated from "`IFS=:
12332 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12333 if test x"$ac_file" != x-; then
12334 configure_input="$ac_file. $configure_input"
12335 { echo "$as_me:$LINENO: creating $ac_file" >&5
12336 echo "$as_me: creating $ac_file" >&6;}
12339 case $ac_tag in
12340 *:-:* | *:-) cat >"$tmp/stdin";;
12341 esac
12343 esac
12345 ac_dir=`$as_dirname -- "$ac_file" ||
12346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12347 X"$ac_file" : 'X\(//\)[^/]' \| \
12348 X"$ac_file" : 'X\(//\)$' \| \
12349 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12350 echo X"$ac_file" |
12351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12352 s//\1/
12355 /^X\(\/\/\)[^/].*/{
12356 s//\1/
12359 /^X\(\/\/\)$/{
12360 s//\1/
12363 /^X\(\/\).*/{
12364 s//\1/
12367 s/.*/./; q'`
12368 { as_dir="$ac_dir"
12369 case $as_dir in #(
12370 -*) as_dir=./$as_dir;;
12371 esac
12372 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12373 as_dirs=
12374 while :; do
12375 case $as_dir in #(
12376 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12377 *) as_qdir=$as_dir;;
12378 esac
12379 as_dirs="'$as_qdir' $as_dirs"
12380 as_dir=`$as_dirname -- "$as_dir" ||
12381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382 X"$as_dir" : 'X\(//\)[^/]' \| \
12383 X"$as_dir" : 'X\(//\)$' \| \
12384 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12385 echo X"$as_dir" |
12386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12387 s//\1/
12390 /^X\(\/\/\)[^/].*/{
12391 s//\1/
12394 /^X\(\/\/\)$/{
12395 s//\1/
12398 /^X\(\/\).*/{
12399 s//\1/
12402 s/.*/./; q'`
12403 test -d "$as_dir" && break
12404 done
12405 test -z "$as_dirs" || eval "mkdir $as_dirs"
12406 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12407 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12408 { (exit 1); exit 1; }; }; }
12409 ac_builddir=.
12411 case "$ac_dir" in
12412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12415 # A ".." for each directory in $ac_dir_suffix.
12416 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12417 case $ac_top_builddir_sub in
12418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12420 esac ;;
12421 esac
12422 ac_abs_top_builddir=$ac_pwd
12423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12424 # for backward compatibility:
12425 ac_top_builddir=$ac_top_build_prefix
12427 case $srcdir in
12428 .) # We are building in place.
12429 ac_srcdir=.
12430 ac_top_srcdir=$ac_top_builddir_sub
12431 ac_abs_top_srcdir=$ac_pwd ;;
12432 [\\/]* | ?:[\\/]* ) # Absolute name.
12433 ac_srcdir=$srcdir$ac_dir_suffix;
12434 ac_top_srcdir=$srcdir
12435 ac_abs_top_srcdir=$srcdir ;;
12436 *) # Relative name.
12437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12438 ac_top_srcdir=$ac_top_build_prefix$srcdir
12439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12440 esac
12441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12444 case $ac_mode in
12447 # CONFIG_FILE
12450 _ACEOF
12452 cat >>$CONFIG_STATUS <<\_ACEOF
12453 # If the template does not know about datarootdir, expand it.
12454 # FIXME: This hack should be removed a few years after 2.60.
12455 ac_datarootdir_hack=; ac_datarootdir_seen=
12457 case `sed -n '/datarootdir/ {
12461 /@datadir@/p
12462 /@docdir@/p
12463 /@infodir@/p
12464 /@localedir@/p
12465 /@mandir@/p
12466 ' $ac_file_inputs` in
12467 *datarootdir*) ac_datarootdir_seen=yes;;
12468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12471 _ACEOF
12472 cat >>$CONFIG_STATUS <<_ACEOF
12473 ac_datarootdir_hack='
12474 s&@datadir@&$datadir&g
12475 s&@docdir@&$docdir&g
12476 s&@infodir@&$infodir&g
12477 s&@localedir@&$localedir&g
12478 s&@mandir@&$mandir&g
12479 s&\\\${datarootdir}&$datarootdir&g' ;;
12480 esac
12481 _ACEOF
12483 # Neutralize VPATH when `$srcdir' = `.'.
12484 # Shell code in configure.ac might set extrasub.
12485 # FIXME: do we really want to maintain this feature?
12486 cat >>$CONFIG_STATUS <<_ACEOF
12487 sed "$ac_vpsub
12488 $extrasub
12489 _ACEOF
12490 cat >>$CONFIG_STATUS <<\_ACEOF
12492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12493 s&@configure_input@&$configure_input&;t t
12494 s&@top_builddir@&$ac_top_builddir_sub&;t t
12495 s&@srcdir@&$ac_srcdir&;t t
12496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12497 s&@top_srcdir@&$ac_top_srcdir&;t t
12498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12499 s&@builddir@&$ac_builddir&;t t
12500 s&@abs_builddir@&$ac_abs_builddir&;t t
12501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12502 $ac_datarootdir_hack
12503 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
12505 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12506 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12507 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12508 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12509 which seems to be undefined. Please make sure it is defined." >&5
12510 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12511 which seems to be undefined. Please make sure it is defined." >&2;}
12513 rm -f "$tmp/stdin"
12514 case $ac_file in
12515 -) cat "$tmp/out"; rm -f "$tmp/out";;
12516 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12517 esac
12521 # CONFIG_HEADER
12523 _ACEOF
12525 # Transform confdefs.h into a sed script `conftest.defines', that
12526 # substitutes the proper values into config.h.in to produce config.h.
12527 rm -f conftest.defines conftest.tail
12528 # First, append a space to every undef/define line, to ease matching.
12529 echo 's/$/ /' >conftest.defines
12530 # Then, protect against being on the right side of a sed subst, or in
12531 # an unquoted here document, in config.status. If some macros were
12532 # called several times there might be several #defines for the same
12533 # symbol, which is useless. But do not sort them, since the last
12534 # AC_DEFINE must be honored.
12535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12536 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12537 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12538 # PARAMS is the parameter list in the macro definition--in most cases, it's
12539 # just an empty string.
12540 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12541 ac_dB='\\)[ (].*,\\1define\\2'
12542 ac_dC=' '
12543 ac_dD=' ,'
12545 uniq confdefs.h |
12546 sed -n '
12547 t rset
12548 :rset
12549 s/^[ ]*#[ ]*define[ ][ ]*//
12550 t ok
12553 s/[\\&,]/\\&/g
12554 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12555 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12556 ' >>conftest.defines
12558 # Remove the space that was appended to ease matching.
12559 # Then replace #undef with comments. This is necessary, for
12560 # example, in the case of _POSIX_SOURCE, which is predefined and required
12561 # on some systems where configure will not decide to define it.
12562 # (The regexp can be short, since the line contains either #define or #undef.)
12563 echo 's/ $//
12564 s,^[ #]*u.*,/* & */,' >>conftest.defines
12566 # Break up conftest.defines:
12567 ac_max_sed_lines=50
12569 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12570 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12571 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12572 # et cetera.
12573 ac_in='$ac_file_inputs'
12574 ac_out='"$tmp/out1"'
12575 ac_nxt='"$tmp/out2"'
12577 while :
12579 # Write a here document:
12580 cat >>$CONFIG_STATUS <<_ACEOF
12581 # First, check the format of the line:
12582 cat >"\$tmp/defines.sed" <<\\CEOF
12583 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12584 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12586 :def
12587 _ACEOF
12588 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12589 echo 'CEOF
12590 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12591 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12592 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12593 grep . conftest.tail >/dev/null || break
12594 rm -f conftest.defines
12595 mv conftest.tail conftest.defines
12596 done
12597 rm -f conftest.defines conftest.tail
12599 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12600 cat >>$CONFIG_STATUS <<\_ACEOF
12601 if test x"$ac_file" != x-; then
12602 echo "/* $configure_input */" >"$tmp/config.h"
12603 cat "$ac_result" >>"$tmp/config.h"
12604 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12605 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12606 echo "$as_me: $ac_file is unchanged" >&6;}
12607 else
12608 rm -f $ac_file
12609 mv "$tmp/config.h" $ac_file
12611 else
12612 echo "/* $configure_input */"
12613 cat "$ac_result"
12615 rm -f "$tmp/out12"
12618 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12619 echo "$as_me: executing $ac_file commands" >&6;}
12621 esac
12624 case $ac_file$ac_mode in
12625 "compiler_executable":C)
12626 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12627 mkdir -p $prefix
12628 prefix="${prefix}/${aros_target_cpu}-aros"
12629 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12631 echo ${prefix}
12632 echo ${prefix2}
12633 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12635 ln -sf ${prefix2}-gcc ${prefix}-gcc
12636 ln -sf ${prefix2}-ld ${prefix}-ld
12638 ln -sf $aros_target_as_ln ${prefix}-as
12639 ln -sf $aros_target_nm_ln ${prefix}-nm
12640 ln -sf $aros_target_ar_ln ${prefix}-ar
12641 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
12642 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
12643 ln -sf $aros_target_objdump_ln ${prefix}-objdump
12644 ln -sf $aros_target_strip_ln ${prefix}-strip
12646 ln -sf $aros_target_as_ln ${prefix2}-as
12647 ln -sf $aros_target_nm_ln ${prefix2}-nm
12648 ln -sf $aros_target_ar_ln ${prefix2}-ar
12649 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
12650 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
12651 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
12652 ln -sf $aros_target_strip_ln ${prefix2}-strip
12654 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12655 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12656 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
12659 esac
12660 done # for ac_tag
12663 { (exit 0); exit 0; }
12664 _ACEOF
12665 chmod +x $CONFIG_STATUS
12666 ac_clean_files=$ac_clean_files_save
12669 # configure is writing to config.log, and then calls config.status.
12670 # config.status does its own redirection, appending to config.log.
12671 # Unfortunately, on DOS this fails, as config.log is still kept open
12672 # by configure, so config.status won't be able to write to it; its
12673 # output is simply discarded. So we exec the FD to /dev/null,
12674 # effectively closing config.log, so it can be properly (re)opened and
12675 # appended to by config.status. When coming back to configure, we
12676 # need to make the FD available again.
12677 if test "$no_create" != yes; then
12678 ac_cs_success=:
12679 ac_config_status_args=
12680 test "$silent" = yes &&
12681 ac_config_status_args="$ac_config_status_args --quiet"
12682 exec 5>/dev/null
12683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12684 exec 5>>config.log
12685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12686 # would make configure fail if this is the last instruction.
12687 $ac_cs_success || { (exit 1); exit 1; }
12692 #XXX compatability...
12693 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12695 if test -n "$aros_shared_cflags" ; then
12696 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12697 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg