r27145@plastic: rob | 2007-08-31 21:51:17 +1000
[cake.git] / configure
blob47a86e0444a9386c3471e39414bd2c3e0999cf75
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 XMKMF
712 DISTCC
713 CCACHE
714 aros_kernel_cc
715 aros_target_as_ln
716 aros_kernel_ld
717 aros_target_ar_ln
718 aros_target_nm_ln
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
722 aros_target_strip_ln
723 aros_target_nostdinc_cflags
724 aros_target_nostartup_ldflags
725 aros_target_nix_ldflags
726 aros_target_detach_ldflags
727 aros_target_nostdlib_ldflags
728 aros_arch
729 aros_cpu
730 aros_flavour
731 aros_flavour_uc
732 TOPDIR
733 aros_cc_pre
734 aros_host_arch
735 aros_host_cpu
736 aros_host_cc
737 aros_host_make
738 aros_host_cflags
739 aros_host_ldflags
740 aros_host_debug
741 aros_host_mkdep
742 aros_host_mkargs
743 aros_host_exe_suffix
744 aros_host_lib_suffix
745 aros_tools_dir
746 aros_target_arch
747 aros_target_cpu
748 aros_target_variant
749 aros_target_suffix
750 aros_target_incl
751 aros_target_ar
752 aros_target_ranlib
753 aros_kernel_nm
754 aros_target_cc
755 aros_target_as
756 aros_target_ld
757 aros_target_cc_includes
758 aros_target_cc_path
759 aros_target_objdump
760 aros_target_objcopy
761 aros_target_strip
762 aros_target_nm
763 aros_shared_default
764 aros_shared_ld
765 aros_object_format
766 aros_compiler_libs
767 aros_config_cflags
768 aros_config_aflags
769 aros_config_ldflags
770 aros_shared_cflags
771 aros_shared_aflags
772 aros_shared_ldflags
773 aros_kernel_ldflags
774 aros_debug_cflags
775 aros_debug_aflags
776 aros_debug_ldflags
777 aros_target_genmap
778 aros_target_strip_flags
779 aros_gui_libdir
780 aros_gui_ldflags
781 aros_gui_libflags
782 aros_gui_incdir
783 aros_gui_ccflags
784 aros_default_wbwidth
785 aros_default_wbheight
786 aros_default_wbdepth
787 DO_XSHM_SUPPORT
788 DO_VIDMODE_SUPPORT
789 aros_bochs_hack
790 aros_serial_debug
791 aros_palm_debug_hack
792 aros_nesting_supervisor
793 ENABLE_DBUS
794 DBUS_CFLAGS
795 DBUS_LIBFLAGS
796 KERNEL_DBUS_KOBJ
797 KERNEL_DBUS_INCLUDES
798 aros_debug
799 aros_mungwall_debug
800 aros_stack_debug
801 aros_modules_debug
802 ignore_undefined_symbols
803 gcc_target_cpu
804 LTLIBOBJS'
805 ac_subst_files=''
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
815 XMKMF'
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
864 ac_prev=
865 ac_dashdash=
866 for ac_option
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
884 ac_dashdash=yes ;;
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
903 --config-cache | -C)
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1134 -with-* | --with-*)
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1150 eval with_$ac_package=no ;;
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 esac
1193 done
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1214 done
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1268 /^X\(\/\/\)$/{
1269 s//\1/
1272 /^X\(\/\).*/{
1273 s//\1/
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1281 else
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures this package to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1373 cat <<\_ACEOF
1375 X features:
1376 --x-includes=DIR X include files are in DIR
1377 --x-libraries=DIR X library files are in DIR
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1387 cat <<\_ACEOF
1389 Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-build-type=TYPE
1393 Select the build type. Available types are:
1394 personal, nightly, snapshot, milestone, release. Do
1395 NOT use this option unless you know what you are
1396 doing! (default=personal)
1397 --enable-debug=list Enable different types of debug. Commas or
1398 whitespaces can be used to separate the items in the
1399 list. Available types of debug are: all, none,
1400 messages, stack, mungwall, modules, symbols. If no
1401 list is provided then "all" is assumed.
1402 (default=none)
1403 --enable-distcc Use distcc as a front end to the compiler
1404 (default=no).
1405 --enable-ccache Use ccache as a front end to the compiler
1406 (default=no).
1407 --enable-target-variant=NAME
1408 Enable a specific target variant(default=none)
1409 --enable-includes=dir Alternative system include directory
1410 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1411 (default=no)
1412 --enable-palm-debug-hack
1413 Enable palm debug output hack in palm native
1414 (default=no)
1415 --enable-nesting-supervisor
1416 Enable nesting supervisor support in unix
1417 (default=no)
1418 --enable-xshm-extension Enable X11 MIT-SHM extension (default=yes)
1419 --enable-vidmode-extension
1420 Enable X11 vidmode extension (default=yes)
1421 --enable-dbus Enable DBUS support via dbus.library (default=no)
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-x use the X Window System
1427 --with-optimization=FLAGS
1428 Use optimization flags FLAGS (default=-O2).
1429 --with-resolution=XRESxYRESxDEPTH
1430 Default resolution of the initial WorkbenchScreen
1431 --with-serial-debug Enable serial debug output in native (default=no)
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 XMKMF Path to xmkmf, Makefile generator for X Window System
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1447 _ACEOF
1448 ac_status=$?
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" || continue
1455 ac_builddir=.
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 configure
1508 generated by GNU Autoconf 2.61
1510 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1511 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1517 cat >config.log <<_ACEOF
1518 This file contains any messages produced by compilers while
1519 running configure, to aid debugging if configure makes a mistake.
1521 It was created by $as_me, which was
1522 generated by GNU Autoconf 2.61. Invocation command line was
1524 $ $0 $@
1526 _ACEOF
1527 exec 5>>config.log
1529 cat <<_ASUNAME
1530 ## --------- ##
1531 ## Platform. ##
1532 ## --------- ##
1534 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1535 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1536 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1537 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1538 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1540 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1541 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1543 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1544 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1545 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1546 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1547 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1548 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1549 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1551 _ASUNAME
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 echo "PATH: $as_dir"
1559 done
1560 IFS=$as_save_IFS
1562 } >&5
1564 cat >&5 <<_ACEOF
1567 ## ----------- ##
1568 ## Core tests. ##
1569 ## ----------- ##
1571 _ACEOF
1574 # Keep a trace of the command line.
1575 # Strip out --no-create and --no-recursion so they do not pile up.
1576 # Strip out --silent because we don't want to record it for future runs.
1577 # Also quote any args containing shell meta-characters.
1578 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_configure_args=
1580 ac_configure_args0=
1581 ac_configure_args1=
1582 ac_must_keep_next=false
1583 for ac_pass in 1 2
1585 for ac_arg
1587 case $ac_arg in
1588 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1590 | -silent | --silent | --silen | --sile | --sil)
1591 continue ;;
1592 *\'*)
1593 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1594 esac
1595 case $ac_pass in
1596 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1598 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1599 if test $ac_must_keep_next = true; then
1600 ac_must_keep_next=false # Got value, back to normal.
1601 else
1602 case $ac_arg in
1603 *=* | --config-cache | -C | -disable-* | --disable-* \
1604 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1605 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1606 | -with-* | --with-* | -without-* | --without-* | --x)
1607 case "$ac_configure_args0 " in
1608 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1609 esac
1611 -* ) ac_must_keep_next=true ;;
1612 esac
1614 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 esac
1617 done
1618 done
1619 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1620 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1622 # When interrupted or exit'd, cleanup temporary files, and complete
1623 # config.log. We remove comments because anyway the quotes in there
1624 # would cause problems or look ugly.
1625 # WARNING: Use '\'' to represent an apostrophe within the trap.
1626 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1627 trap 'exit_status=$?
1628 # Save into config.log some information that might help in debugging.
1630 echo
1632 cat <<\_ASBOX
1633 ## ---------------- ##
1634 ## Cache variables. ##
1635 ## ---------------- ##
1636 _ASBOX
1637 echo
1638 # The following way of writing the cache mishandles newlines in values,
1640 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1641 eval ac_val=\$$ac_var
1642 case $ac_val in #(
1643 *${as_nl}*)
1644 case $ac_var in #(
1645 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1646 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1647 esac
1648 case $ac_var in #(
1649 _ | IFS | as_nl) ;; #(
1650 *) $as_unset $ac_var ;;
1651 esac ;;
1652 esac
1653 done
1654 (set) 2>&1 |
1655 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1656 *${as_nl}ac_space=\ *)
1657 sed -n \
1658 "s/'\''/'\''\\\\'\'''\''/g;
1659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1660 ;; #(
1662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1664 esac |
1665 sort
1667 echo
1669 cat <<\_ASBOX
1670 ## ----------------- ##
1671 ## Output variables. ##
1672 ## ----------------- ##
1673 _ASBOX
1674 echo
1675 for ac_var in $ac_subst_vars
1677 eval ac_val=\$$ac_var
1678 case $ac_val in
1679 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680 esac
1681 echo "$ac_var='\''$ac_val'\''"
1682 done | sort
1683 echo
1685 if test -n "$ac_subst_files"; then
1686 cat <<\_ASBOX
1687 ## ------------------- ##
1688 ## File substitutions. ##
1689 ## ------------------- ##
1690 _ASBOX
1691 echo
1692 for ac_var in $ac_subst_files
1694 eval ac_val=\$$ac_var
1695 case $ac_val in
1696 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1697 esac
1698 echo "$ac_var='\''$ac_val'\''"
1699 done | sort
1700 echo
1703 if test -s confdefs.h; then
1704 cat <<\_ASBOX
1705 ## ----------- ##
1706 ## confdefs.h. ##
1707 ## ----------- ##
1708 _ASBOX
1709 echo
1710 cat confdefs.h
1711 echo
1713 test "$ac_signal" != 0 &&
1714 echo "$as_me: caught signal $ac_signal"
1715 echo "$as_me: exit $exit_status"
1716 } >&5
1717 rm -f core *.core core.conftest.* &&
1718 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1719 exit $exit_status
1721 for ac_signal in 1 2 13 15; do
1722 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 done
1724 ac_signal=0
1726 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1727 rm -f -r conftest* confdefs.h
1729 # Predefined preprocessor variables.
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 _ACEOF
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 _ACEOF
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 _ACEOF
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_STRING "$PACKAGE_STRING"
1748 _ACEOF
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 _ACEOF
1756 # Let the site file select an alternate cache file if it wants to.
1757 # Prefer explicitly selected file to automatically selected ones.
1758 if test -n "$CONFIG_SITE"; then
1759 set x "$CONFIG_SITE"
1760 elif test "x$prefix" != xNONE; then
1761 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1762 else
1763 set x "$ac_default_prefix/share/config.site" \
1764 "$ac_default_prefix/etc/config.site"
1766 shift
1767 for ac_site_file
1769 if test -r "$ac_site_file"; then
1770 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1771 echo "$as_me: loading site script $ac_site_file" >&6;}
1772 sed 's/^/| /' "$ac_site_file" >&5
1773 . "$ac_site_file"
1775 done
1777 if test -r "$cache_file"; then
1778 # Some versions of bash will fail to source /dev/null (special
1779 # files actually), so we avoid doing that.
1780 if test -f "$cache_file"; then
1781 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1782 echo "$as_me: loading cache $cache_file" >&6;}
1783 case $cache_file in
1784 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1785 *) . "./$cache_file";;
1786 esac
1788 else
1789 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1790 echo "$as_me: creating cache $cache_file" >&6;}
1791 >$cache_file
1794 # Check that the precious variables saved in the cache have kept the same
1795 # value.
1796 ac_cache_corrupted=false
1797 for ac_var in $ac_precious_vars; do
1798 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1799 eval ac_new_set=\$ac_env_${ac_var}_set
1800 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1801 eval ac_new_val=\$ac_env_${ac_var}_value
1802 case $ac_old_set,$ac_new_set in
1803 set,)
1804 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1805 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1806 ac_cache_corrupted=: ;;
1807 ,set)
1808 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1809 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1810 ac_cache_corrupted=: ;;
1811 ,);;
1813 if test "x$ac_old_val" != "x$ac_new_val"; then
1814 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1815 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1816 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1817 echo "$as_me: former value: $ac_old_val" >&2;}
1818 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1819 echo "$as_me: current value: $ac_new_val" >&2;}
1820 ac_cache_corrupted=:
1821 fi;;
1822 esac
1823 # Pass precious variables to config.status.
1824 if test "$ac_new_set" = set; then
1825 case $ac_new_val in
1826 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 *) ac_arg=$ac_var=$ac_new_val ;;
1828 esac
1829 case " $ac_configure_args " in
1830 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1831 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1832 esac
1834 done
1835 if $ac_cache_corrupted; then
1836 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1837 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1838 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1839 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1840 { (exit 1); exit 1; }; }
1859 ac_ext=c
1860 ac_cpp='$CPP $CPPFLAGS'
1861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 ac_aux_dir=
1868 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1869 if test -f "$ac_dir/install-sh"; then
1870 ac_aux_dir=$ac_dir
1871 ac_install_sh="$ac_aux_dir/install-sh -c"
1872 break
1873 elif test -f "$ac_dir/install.sh"; then
1874 ac_aux_dir=$ac_dir
1875 ac_install_sh="$ac_aux_dir/install.sh -c"
1876 break
1877 elif test -f "$ac_dir/shtool"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/shtool install -c"
1880 break
1882 done
1883 if test -z "$ac_aux_dir"; then
1884 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1885 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1886 { (exit 1); exit 1; }; }
1889 # These three variables are undocumented and unsupported,
1890 # and are intended to be withdrawn in a future Autoconf release.
1891 # They can cause serious problems if a builder's source tree is in a directory
1892 # whose full name contains unusual characters.
1893 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1894 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1895 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1899 # Check what host we are running on.
1900 # If a target is not suggested, we use this one.
1901 # Note that what we call a target, Autoconf calls a host.
1902 # Make sure we can run config.sub.
1903 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1904 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1905 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1906 { (exit 1); exit 1; }; }
1908 { echo "$as_me:$LINENO: checking build system type" >&5
1909 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1910 if test "${ac_cv_build+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913 ac_build_alias=$build_alias
1914 test "x$ac_build_alias" = x &&
1915 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1916 test "x$ac_build_alias" = x &&
1917 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1918 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1919 { (exit 1); exit 1; }; }
1920 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1921 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1922 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1923 { (exit 1); exit 1; }; }
1926 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1927 echo "${ECHO_T}$ac_cv_build" >&6; }
1928 case $ac_cv_build in
1929 *-*-*) ;;
1930 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1931 echo "$as_me: error: invalid value of canonical build" >&2;}
1932 { (exit 1); exit 1; }; };;
1933 esac
1934 build=$ac_cv_build
1935 ac_save_IFS=$IFS; IFS='-'
1936 set x $ac_cv_build
1937 shift
1938 build_cpu=$1
1939 build_vendor=$2
1940 shift; shift
1941 # Remember, the first character of IFS is used to create $*,
1942 # except with old shells:
1943 build_os=$*
1944 IFS=$ac_save_IFS
1945 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1948 { echo "$as_me:$LINENO: checking host system type" >&5
1949 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1950 if test "${ac_cv_host+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test "x$host_alias" = x; then
1954 ac_cv_host=$ac_cv_build
1955 else
1956 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1957 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1958 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1959 { (exit 1); exit 1; }; }
1963 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1964 echo "${ECHO_T}$ac_cv_host" >&6; }
1965 case $ac_cv_host in
1966 *-*-*) ;;
1967 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1968 echo "$as_me: error: invalid value of canonical host" >&2;}
1969 { (exit 1); exit 1; }; };;
1970 esac
1971 host=$ac_cv_host
1972 ac_save_IFS=$IFS; IFS='-'
1973 set x $ac_cv_host
1974 shift
1975 host_cpu=$1
1976 host_vendor=$2
1977 shift; shift
1978 # Remember, the first character of IFS is used to create $*,
1979 # except with old shells:
1980 host_os=$*
1981 IFS=$ac_save_IFS
1982 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1986 # The AROS target is slightly different to the normal GNU style
1987 # format. We don't have the middle part, and we reverse the order
1988 # of the $(CPU) and $(OS) bits.
1990 # Don't strip the version of the target yet, it might be
1991 # useful on some systems.
1993 { echo "$as_me:$LINENO: checking for AROS style target" >&5
1994 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
1996 if test "$target" = "NONE" ; then
1997 target=$host_os-$host_cpu
1998 cross_compile=no
1999 else
2000 if test "$target" = "" ; then
2001 target=$host_os-$host_cpu
2002 cross_compile=no
2003 else
2004 cross_compile=yes
2007 { echo "$as_me:$LINENO: result: $target" >&5
2008 echo "${ECHO_T}$target" >&6; }
2010 #don't know where else to put this...
2011 TOPDIR=$PWD
2013 # Parse the target field into something useful.
2015 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2016 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2019 aros_default_wbwidth=800
2020 aros_default_wbheight=600
2021 aros_default_wbdepth=4
2024 # The first step is to find the host binaries.
2025 # Check for a compiler.
2026 ac_ext=c
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031 if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2053 done
2054 done
2055 IFS=$as_save_IFS
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2063 else
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2070 if test -z "$ac_cv_prog_CC"; then
2071 ac_ct_CC=$CC
2072 # Extract the first word of "gcc", so it can be a program name with args.
2073 set dummy gcc; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_ac_ct_CC="gcc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2093 done
2094 done
2095 IFS=$as_save_IFS
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6; }
2103 else
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2108 if test "x$ac_ct_CC" = x; then
2109 CC=""
2110 else
2111 case $cross_compiling:$ac_tool_warned in
2112 yes:)
2113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&5
2116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet. If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2119 ac_tool_warned=yes ;;
2120 esac
2121 CC=$ac_ct_CC
2123 else
2124 CC="$ac_cv_prog_CC"
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2150 done
2151 done
2152 IFS=$as_save_IFS
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158 { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2160 else
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2197 IFS=$as_save_IFS
2199 if test $ac_prog_rejected = yes; then
2200 # We found a bogon in the path, so make sure we never use it.
2201 set dummy $ac_cv_prog_CC
2202 shift
2203 if test $# != 0; then
2204 # We chose a different compiler from the bogus one.
2205 # However, it has the same basename, so the bogon will be chosen
2206 # first if we set CC to just the basename; use the full file name.
2207 shift
2208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215 { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2217 else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2224 if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2226 for ac_prog in cl.exe
2228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2249 done
2250 done
2251 IFS=$as_save_IFS
2255 CC=$ac_cv_prog_CC
2256 if test -n "$CC"; then
2257 { echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6; }
2259 else
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2265 test -n "$CC" && break
2266 done
2268 if test -z "$CC"; then
2269 ac_ct_CC=$CC
2270 for ac_prog in cl.exe
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2293 done
2294 done
2295 IFS=$as_save_IFS
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6; }
2303 else
2304 { echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6; }
2309 test -n "$ac_ct_CC" && break
2310 done
2312 if test "x$ac_ct_CC" = x; then
2313 CC=""
2314 else
2315 case $cross_compiling:$ac_tool_warned in
2316 yes:)
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2324 esac
2325 CC=$ac_ct_CC
2332 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: no acceptable C compiler found in \$PATH
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2338 # Provide some information about the compiler.
2339 echo "$as_me:$LINENO: checking for C compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (ac_try="$ac_compiler --version >&5"
2342 case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compiler --version >&5") 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351 { (ac_try="$ac_compiler -v >&5"
2352 case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compiler -v >&5") 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (ac_try="$ac_compiler -V >&5"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2380 main ()
2384 return 0;
2386 _ACEOF
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2391 # of exeext.
2392 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # List of possible output files, starting from the most likely.
2397 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2398 # only as a last resort. b.out is created by i960 compilers.
2399 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401 # The IRIX 6 linker writes into existing files which may not be
2402 # executable, retaining their permissions. Remove them first so a
2403 # subsequent execution test works.
2404 ac_rmfiles=
2405 for ac_file in $ac_files
2407 case $ac_file in
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2410 esac
2411 done
2412 rm -f $ac_rmfiles
2414 if { (ac_try="$ac_link_default"
2415 case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_link_default") 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2427 # so that the user can short-circuit this test for compilers unknown to
2428 # Autoconf.
2429 for ac_file in $ac_files ''
2431 test -f "$ac_file" || continue
2432 case $ac_file in
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
2440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2441 then :; else
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2448 # actually working.
2449 break;;
2451 break;;
2452 esac
2453 done
2454 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456 else
2457 ac_file=''
2460 { echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6; }
2462 if test -z "$ac_file"; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: C compiler cannot create executables
2469 See \`config.log' for more details." >&2;}
2470 { (exit 77); exit 77; }; }
2473 ac_exeext=$ac_cv_exeext
2475 # Check that the compiler produces executables we can run. If not, either
2476 # the compiler is broken, or we cross compile.
2477 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480 # If not cross compiling, check that we can run a simple program.
2481 if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 cross_compiling=no
2493 else
2494 if test "$cross_compiling" = maybe; then
2495 cross_compiling=yes
2496 else
2497 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2507 { echo "$as_me:$LINENO: result: yes" >&5
2508 echo "${ECHO_T}yes" >&6; }
2510 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511 ac_clean_files=$ac_clean_files_save
2512 # Check that the compiler produces executables we can run. If not, either
2513 # the compiler is broken, or we cross compile.
2514 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2516 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517 echo "${ECHO_T}$cross_compiling" >&6; }
2519 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2521 if { (ac_try="$ac_link"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2533 # work properly (i.e., refer to `conftest.exe'), while it won't with
2534 # `rm'.
2535 for ac_file in conftest.exe conftest conftest.*; do
2536 test -f "$ac_file" || continue
2537 case $ac_file in
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2540 break;;
2541 * ) break;;
2542 esac
2543 done
2544 else
2545 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2552 rm -f conftest$ac_cv_exeext
2553 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2556 rm -f conftest.$ac_ext
2557 EXEEXT=$ac_cv_exeext
2558 ac_exeext=$EXEEXT
2559 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2561 if test "${ac_cv_objext+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h. */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2572 main ()
2576 return 0;
2578 _ACEOF
2579 rm -f conftest.o conftest.obj
2580 if { (ac_try="$ac_compile"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 for ac_file in conftest.o conftest.obj conftest.*; do
2591 test -f "$ac_file" || continue;
2592 case $ac_file in
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595 break;;
2596 esac
2597 done
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2612 echo "${ECHO_T}$ac_cv_objext" >&6; }
2613 OBJEXT=$ac_cv_objext
2614 ac_objext=$OBJEXT
2615 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2616 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 main ()
2630 #ifndef __GNUC__
2631 choke me
2632 #endif
2635 return 0;
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (ac_try="$ac_compile"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>conftest.er1
2646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
2655 ac_compiler_gnu=yes
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 ac_compiler_gnu=no
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2667 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2669 GCC=`test $ac_compiler_gnu = yes && echo yes`
2670 ac_test_CFLAGS=${CFLAGS+set}
2671 ac_save_CFLAGS=$CFLAGS
2672 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_cc_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 ac_save_c_werror_flag=$ac_c_werror_flag
2678 ac_c_werror_flag=yes
2679 ac_cv_prog_cc_g=no
2680 CFLAGS="-g"
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h. */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2689 main ()
2693 return 0;
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2713 ac_cv_prog_cc_g=yes
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 CFLAGS=""
2719 cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h. */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2727 main ()
2731 return 0;
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2736 case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2757 CFLAGS="-g"
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2766 main ()
2770 return 0;
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2790 ac_cv_prog_cc_g=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2809 if test "$ac_test_CFLAGS" = set; then
2810 CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2813 CFLAGS="-g -O2"
2814 else
2815 CFLAGS="-g"
2817 else
2818 if test "$GCC" = yes; then
2819 CFLAGS="-O2"
2820 else
2821 CFLAGS=
2824 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2825 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_cc_c89+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 ac_cv_prog_cc_c89=no
2830 ac_save_CC=$CC
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <stdarg.h>
2838 #include <stdio.h>
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2845 char **p;
2846 int i;
2848 return p[i];
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2852 char *s;
2853 va_list v;
2854 va_start (v,p);
2855 s = g (p, va_arg (v,int));
2856 va_end (v);
2857 return s;
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2871 #define FOO(x) 'x'
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 int argc;
2879 char **argv;
2881 main ()
2883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 return 0;
2887 _ACEOF
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 CC="$ac_save_CC $ac_arg"
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2909 ac_cv_prog_cc_c89=$ac_arg
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f core conftest.err conftest.$ac_objext
2918 test "x$ac_cv_prog_cc_c89" != "xno" && break
2919 done
2920 rm -f conftest.$ac_ext
2921 CC=$ac_save_CC
2924 # AC_CACHE_VAL
2925 case "x$ac_cv_prog_cc_c89" in
2927 { echo "$as_me:$LINENO: result: none needed" >&5
2928 echo "${ECHO_T}none needed" >&6; } ;;
2929 xno)
2930 { echo "$as_me:$LINENO: result: unsupported" >&5
2931 echo "${ECHO_T}unsupported" >&6; } ;;
2933 CC="$CC $ac_cv_prog_cc_c89"
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2936 esac
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 case $ac_cv_prog_cc_stdc in
2946 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2947 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2948 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2949 if test "${ac_cv_prog_cc_c99+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 ac_cv_prog_cc_c99=no
2953 ac_save_CC=$CC
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #include <stdarg.h>
2961 #include <stdbool.h>
2962 #include <stdlib.h>
2963 #include <wchar.h>
2964 #include <stdio.h>
2966 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2967 #define debug(...) fprintf (stderr, __VA_ARGS__)
2968 #define showlist(...) puts (#__VA_ARGS__)
2969 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2970 static void
2971 test_varargs_macros (void)
2973 int x = 1234;
2974 int y = 5678;
2975 debug ("Flag");
2976 debug ("X = %d\n", x);
2977 showlist (The first, second, and third items.);
2978 report (x>y, "x is %d but y is %d", x, y);
2981 // Check long long types.
2982 #define BIG64 18446744073709551615ull
2983 #define BIG32 4294967295ul
2984 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2985 #if !BIG_OK
2986 your preprocessor is broken;
2987 #endif
2988 #if BIG_OK
2989 #else
2990 your preprocessor is broken;
2991 #endif
2992 static long long int bignum = -9223372036854775807LL;
2993 static unsigned long long int ubignum = BIG64;
2995 struct incomplete_array
2997 int datasize;
2998 double data[];
3001 struct named_init {
3002 int number;
3003 const wchar_t *name;
3004 double average;
3007 typedef const char *ccp;
3009 static inline int
3010 test_restrict (ccp restrict text)
3012 // See if C++-style comments work.
3013 // Iterate through items via the restricted pointer.
3014 // Also check for declarations in for loops.
3015 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3016 continue;
3017 return 0;
3020 // Check varargs and va_copy.
3021 static void
3022 test_varargs (const char *format, ...)
3024 va_list args;
3025 va_start (args, format);
3026 va_list args_copy;
3027 va_copy (args_copy, args);
3029 const char *str;
3030 int number;
3031 float fnumber;
3033 while (*format)
3035 switch (*format++)
3037 case 's': // string
3038 str = va_arg (args_copy, const char *);
3039 break;
3040 case 'd': // int
3041 number = va_arg (args_copy, int);
3042 break;
3043 case 'f': // float
3044 fnumber = va_arg (args_copy, double);
3045 break;
3046 default:
3047 break;
3050 va_end (args_copy);
3051 va_end (args);
3055 main ()
3058 // Check bool.
3059 _Bool success = false;
3061 // Check restrict.
3062 if (test_restrict ("String literal") == 0)
3063 success = true;
3064 char *restrict newvar = "Another string";
3066 // Check varargs.
3067 test_varargs ("s, d' f .", "string", 65, 34.234);
3068 test_varargs_macros ();
3070 // Check flexible array members.
3071 struct incomplete_array *ia =
3072 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3073 ia->datasize = 10;
3074 for (int i = 0; i < ia->datasize; ++i)
3075 ia->data[i] = i * 1.234;
3077 // Check named initializers.
3078 struct named_init ni = {
3079 .number = 34,
3080 .name = L"Test wide string",
3081 .average = 543.34343,
3084 ni.number = 58;
3086 int dynamic_array[ni.number];
3087 dynamic_array[ni.number - 1] = 543;
3089 // work around unused variable warnings
3090 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3091 || dynamic_array[ni.number - 1] != 543);
3094 return 0;
3096 _ACEOF
3097 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3099 CC="$ac_save_CC $ac_arg"
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3117 ac_cv_prog_cc_c99=$ac_arg
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f core conftest.err conftest.$ac_objext
3126 test "x$ac_cv_prog_cc_c99" != "xno" && break
3127 done
3128 rm -f conftest.$ac_ext
3129 CC=$ac_save_CC
3132 # AC_CACHE_VAL
3133 case "x$ac_cv_prog_cc_c99" in
3135 { echo "$as_me:$LINENO: result: none needed" >&5
3136 echo "${ECHO_T}none needed" >&6; } ;;
3137 xno)
3138 { echo "$as_me:$LINENO: result: unsupported" >&5
3139 echo "${ECHO_T}unsupported" >&6; } ;;
3141 CC="$CC $ac_cv_prog_cc_c99"
3142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3143 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3144 esac
3145 if test "x$ac_cv_prog_cc_c99" != xno; then
3146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3147 else
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 ac_cv_prog_cc_c89=no
3154 ac_save_CC=$CC
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #include <stdarg.h>
3162 #include <stdio.h>
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3169 char **p;
3170 int i;
3172 return p[i];
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3176 char *s;
3177 va_list v;
3178 va_start (v,p);
3179 s = g (p, va_arg (v,int));
3180 va_end (v);
3181 return s;
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
3187 as 'x'. The following induces an error, until -std is added to get
3188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
3190 that's true only with -std. */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3195 #define FOO(x) 'x'
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202 int argc;
3203 char **argv;
3205 main ()
3207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3209 return 0;
3211 _ACEOF
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3215 CC="$ac_save_CC $ac_arg"
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 ac_cv_prog_cc_c89=$ac_arg
3234 else
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext
3242 test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3251 { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3253 xno)
3254 { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3257 CC="$CC $ac_cv_prog_cc_c89"
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261 if test "x$ac_cv_prog_cc_c89" != xno; then
3262 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3263 else
3264 ac_cv_prog_cc_stdc=no
3271 esac
3272 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3273 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 case $ac_cv_prog_cc_stdc in
3279 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3280 echo "${ECHO_T}unsupported" >&6; } ;;
3281 '') { echo "$as_me:$LINENO: result: none needed" >&5
3282 echo "${ECHO_T}none needed" >&6; } ;;
3283 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3285 esac
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3294 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3295 # On Suns, sometimes $CPP names a directory.
3296 if test -n "$CPP" && test -d "$CPP"; then
3297 CPP=
3299 if test -z "$CPP"; then
3300 if test "${ac_cv_prog_CPP+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 # Double quotes because CPP needs to be expanded
3304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306 ac_preproc_ok=false
3307 for ac_c_preproc_warn_flag in '' yes
3309 # Use a header file that comes with gcc, so configuring glibc
3310 # with a fresh cross-compiler works.
3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3312 # <limits.h> exists even on freestanding compilers.
3313 # On the NeXT, cc -E runs the code through the compiler's parser,
3314 # not just through cpp. "Syntax error" is here to catch this case.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #ifdef __STDC__
3322 # include <limits.h>
3323 #else
3324 # include <assert.h>
3325 #endif
3326 Syntax error
3327 _ACEOF
3328 if { (ac_try="$ac_cpp conftest.$ac_ext"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null && {
3341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3342 test ! -s conftest.err
3343 }; then
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Broken: fails on valid input.
3350 continue
3353 rm -f conftest.err conftest.$ac_ext
3355 # OK, works on sane cases. Now check whether nonexistent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h. */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null && {
3378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3379 test ! -s conftest.err
3380 }; then
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3387 # Passes both tests.
3388 ac_preproc_ok=:
3389 break
3392 rm -f conftest.err conftest.$ac_ext
3394 done
3395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396 rm -f conftest.err conftest.$ac_ext
3397 if $ac_preproc_ok; then
3398 break
3401 done
3402 ac_cv_prog_CPP=$CPP
3405 CPP=$ac_cv_prog_CPP
3406 else
3407 ac_cv_prog_CPP=$CPP
3409 { echo "$as_me:$LINENO: result: $CPP" >&5
3410 echo "${ECHO_T}$CPP" >&6; }
3411 ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #ifdef __STDC__
3427 # include <limits.h>
3428 #else
3429 # include <assert.h>
3430 #endif
3431 Syntax error
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null && {
3446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3447 test ! -s conftest.err
3448 }; then
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Broken: fails on valid input.
3455 continue
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <ac_nonexistent.h>
3469 _ACEOF
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null && {
3483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 }; then
3486 # Broken: success on invalid input.
3487 continue
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 # Passes both tests.
3493 ac_preproc_ok=:
3494 break
3497 rm -f conftest.err conftest.$ac_ext
3499 done
3500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501 rm -f conftest.err conftest.$ac_ext
3502 if $ac_preproc_ok; then
3504 else
3505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3508 See \`config.log' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 # Check for a compatible awk
3520 for ac_prog in gawk nawk
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3526 if test "${ac_cv_prog_AWK+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if test -n "$AWK"; then
3530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_AWK="$ac_prog"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 AWK=$ac_cv_prog_AWK
3550 if test -n "$AWK"; then
3551 { echo "$as_me:$LINENO: result: $AWK" >&5
3552 echo "${ECHO_T}$AWK" >&6; }
3553 else
3554 { echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6; }
3559 test -n "$AWK" && break
3560 done
3562 if test "$AWK" = ""; then
3563 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3564 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3565 { (exit 1); exit 1; }; }
3567 # Extract the first word of "mmake", so it can be a program name with args.
3568 set dummy mmake; ac_word=$2
3569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_MMAKE+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 if test -n "$MMAKE"; then
3575 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_MMAKE="mmake "
3585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3588 done
3589 done
3590 IFS=$as_save_IFS
3594 MMAKE=$ac_cv_prog_MMAKE
3595 if test -n "$MMAKE"; then
3596 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3597 echo "${ECHO_T}$MMAKE" >&6; }
3598 else
3599 { echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6; }
3605 # Perform some default variable assignments. Note all of these will be
3606 # Regenerated from the script, so there is no need to cache them.
3608 aros_host_cc="$CC"
3609 if test "$GCC" = "yes"; then
3610 aros_gcc_ld=`$CC -print-prog-name=ld`
3611 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3612 set dummy `basename $aros_gcc_ld`; ac_word=$2
3613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3615 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 case $aros_host_ld in
3619 [\\/]* | ?:[\\/]*)
3620 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in `dirname $aros_gcc_ld`
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3639 esac
3641 aros_host_ld=$ac_cv_path_aros_host_ld
3642 if test -n "$aros_host_ld"; then
3643 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3644 echo "${ECHO_T}$aros_host_ld" >&6; }
3645 else
3646 { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; }
3652 if test "$aros_host_ld" = ""; then
3653 # Extract the first word of "ld", so it can be a program name with args.
3654 set dummy ld; ac_word=$2
3655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3657 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 case $aros_host_ld in
3661 [\\/]* | ?:[\\/]*)
3662 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3672 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3676 done
3677 done
3678 IFS=$as_save_IFS
3681 esac
3683 aros_host_ld=$ac_cv_path_aros_host_ld
3684 if test -n "$aros_host_ld"; then
3685 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3686 echo "${ECHO_T}$aros_host_ld" >&6; }
3687 else
3688 { echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6; }
3694 if test "$aros_host_ld" = ""; then
3695 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3696 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3697 { (exit 1); exit 1; }; }
3699 aros_host_make="make"
3700 aros_host_cflags=$CFLAGS
3701 aros_host_ldflags=$LDFLAGS
3702 aros_host_debug="-g -O0"
3703 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3704 aros_host_mkargs="--no-print-directory"
3705 aros_host_incl="/usr/include"
3706 aros_host_exe_suffix="$EXEEXT"
3707 aros_host_lib_suffix=""
3709 for ac_prog in aclocal aclocal19
3711 # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2
3713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3715 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 if test -n "$aros_host_aclocal"; then
3719 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_aros_host_aclocal="$ac_prog"
3729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 break 2
3732 done
3733 done
3734 IFS=$as_save_IFS
3738 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3739 if test -n "$aros_host_aclocal"; then
3740 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3741 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3742 else
3743 { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3748 test -n "$aros_host_aclocal" && break
3749 done
3751 for ac_prog in autoconf autoconf259 autoconf253
3753 # Extract the first word of "$ac_prog", so it can be a program name with args.
3754 set dummy $ac_prog; ac_word=$2
3755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3757 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 if test -n "$aros_host_autoconf"; then
3761 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_aros_host_autoconf="$ac_prog"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3774 done
3775 done
3776 IFS=$as_save_IFS
3780 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3781 if test -n "$aros_host_autoconf"; then
3782 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3783 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3784 else
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3790 test -n "$aros_host_autoconf" && break
3791 done
3793 for ac_prog in autoheader autoheader259 autoheader253
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3799 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if test -n "$aros_host_autoheader"; then
3803 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_aros_host_autoheader="$ac_prog"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3823 if test -n "$aros_host_autoheader"; then
3824 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3825 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3826 else
3827 { echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6; }
3832 test -n "$aros_host_autoheader" && break
3833 done
3835 for ac_prog in automake automake19
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3841 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 if test -n "$aros_host_automake"; then
3845 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_aros_host_automake="$ac_prog"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3858 done
3859 done
3860 IFS=$as_save_IFS
3864 aros_host_automake=$ac_cv_prog_aros_host_automake
3865 if test -n "$aros_host_automake"; then
3866 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3867 echo "${ECHO_T}$aros_host_automake" >&6; }
3868 else
3869 { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3874 test -n "$aros_host_automake" && break
3875 done
3878 case "$aros_host_cc" in
3879 *gcc*)
3880 aros_host_cc_pipe="-pipe"
3882 icc)
3883 aros_host_cc_pipe=""
3886 aros_host_cc_pipe=""
3888 esac
3890 aros_target_cc_includes=""
3892 # This is the main host configuration section. It is where the host
3893 # can change the values of any variables it needs to change. We do
3894 # not look at anything that compiles to the target yet, we'll get
3895 # to that later.
3897 case "$host_os" in
3898 linux*)
3899 aros_host_arch="linux"
3900 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3901 case "$host_cpu" in
3902 *i?86*)
3903 aros_host_cpu="i386"
3905 *x86_64*)
3906 aros_host_cpu="x86_64"
3908 *m68k*)
3909 aros_host_cpu="m68k"
3911 *powerpc*)
3912 aros_host_cpu="ppc"
3915 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3916 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3917 aros_host_cpu="$host_cpu"
3919 esac
3922 freebsd*)
3923 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3924 aros_host_make="gmake"
3925 aros_host_arch="freebsd"
3926 aros_host_cpu="i386"
3928 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3931 case $host_os in
3932 freebsd[234]*)
3933 aros_object_format="elf_i386"
3937 aros_object_format="elf_i386_fbsd"
3939 esac
3943 darwin*)
3944 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3945 aros_host_arch="darwin"
3946 case "$host_cpu" in
3947 *i?86*)
3948 aros_host_cpu="i386"
3950 *powerpc*)
3951 aros_host_cpu="ppc"
3954 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3955 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3956 aros_host_cpu="$host_cpu"
3958 esac
3960 aros_host_ldflags="$aros_host_ldflags -liconv"
3964 netbsd*)
3965 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3966 aros_host_make="gmake"
3967 aros_host_arch="netbsd"
3968 case "$host_cpu" in
3969 *i?86*)
3970 aros_host_cpu="i386"
3972 *m68k*)
3973 aros_host_cpu="m68k"
3976 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3977 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3978 aros_host_cpu="$host_cpu"
3980 esac
3981 aros_host_lib_suffix=".0.0"
3984 openbsd*)
3985 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3986 aros_host_make="gmake"
3987 aros_host_arch="openbsd"
3988 case "$host_cpu" in
3989 *i?86*)
3990 aros_host_cpu="i386"
3993 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3994 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3995 aros_host_cpu="$host_cpu"
3997 esac
4000 solaris*)
4001 aros_host_arch="solaris"
4002 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4003 case "$host_cpu" in
4004 *sparc*)
4005 aros_host_cpu="sparc"
4008 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4009 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4010 aros_host_cpu="$host_cpu"
4012 esac
4015 morphos*)
4016 aros_host_arch="morphos"
4017 aros_host_cpu="ppc"
4020 amiga*)
4021 aros_host_arch="amiga"
4022 SORT="/gg/bin/sort"
4023 TEST="/gg/bin/test"
4024 UNIQ="/gg/bin/uniq"
4025 FOR="for"
4026 TOUCH="/gg/bin/touch"
4027 case "$host_cpu" in
4028 *m68k*)
4029 aros_host_cpu="m68k"
4031 *powerpc*)
4032 aros_host_cpu="ppc"
4035 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4036 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4037 aros_host_cpu="$host_cpu"
4039 esac
4042 cygwin*)
4043 aros_host_arch="cygwin"
4044 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4045 case "$host_cpu" in
4046 *i?86*)
4047 aros_host_cpu="i386"
4050 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4051 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4052 aros_host_cpu="$host_cpu"
4054 esac
4057 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4058 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4059 { (exit 1); exit 1; }; }
4061 esac
4063 # Extract the first word of "ar", so it can be a program name with args.
4064 set dummy ar; ac_word=$2
4065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 if test -n "$aros_host_ar"; then
4071 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 ac_cv_prog_aros_host_ar="ar cr"
4081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4084 done
4085 done
4086 IFS=$as_save_IFS
4090 aros_host_ar=$ac_cv_prog_aros_host_ar
4091 if test -n "$aros_host_ar"; then
4092 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4093 echo "${ECHO_T}$aros_host_ar" >&6; }
4094 else
4095 { echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6; }
4100 if test "$aros_host_ar" = ""; then
4101 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4102 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4103 { (exit 1); exit 1; }; }
4105 # Extract the first word of "ranlib", so it can be a program name with args.
4106 set dummy ranlib; ac_word=$2
4107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4109 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$aros_host_ranlib"; then
4113 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_prog_aros_host_ranlib="ranlib "
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4128 IFS=$as_save_IFS
4132 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4133 if test -n "$aros_host_ranlib"; then
4134 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4135 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4136 else
4137 { echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6; }
4142 if test "$aros_host_ranlib" = ""; then
4143 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4144 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4145 { (exit 1); exit 1; }; }
4147 # Extract the first word of "strip", so it can be a program name with args.
4148 set dummy strip; ac_word=$2
4149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4151 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 if test -n "$aros_host_strip"; then
4155 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_aros_host_strip="strip "
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4168 done
4169 done
4170 IFS=$as_save_IFS
4174 aros_host_strip=$ac_cv_prog_aros_host_strip
4175 if test -n "$aros_host_strip"; then
4176 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4177 echo "${ECHO_T}$aros_host_strip" >&6; }
4178 else
4179 { echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6; }
4184 if test "$aros_host_strip" = ""; then
4185 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4186 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4187 { (exit 1); exit 1; }; }
4190 # Extract the first word of "rm", so it can be a program name with args.
4191 set dummy rm; ac_word=$2
4192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4194 if test "${ac_cv_prog_RM+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if test -n "$RM"; then
4198 ac_cv_prog_RM="$RM" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_RM="rm -rf"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4217 RM=$ac_cv_prog_RM
4218 if test -n "$RM"; then
4219 { echo "$as_me:$LINENO: result: $RM" >&5
4220 echo "${ECHO_T}$RM" >&6; }
4221 else
4222 { echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6; }
4227 if test "$RM" = ""; then
4228 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4229 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4230 { (exit 1); exit 1; }; }
4232 # Extract the first word of "cp", so it can be a program name with args.
4233 set dummy cp; ac_word=$2
4234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4236 if test "${ac_cv_prog_CP+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 if test -n "$CP"; then
4240 ac_cv_prog_CP="$CP" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_CP="cp "
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4253 done
4254 done
4255 IFS=$as_save_IFS
4259 CP=$ac_cv_prog_CP
4260 if test -n "$CP"; then
4261 { echo "$as_me:$LINENO: result: $CP" >&5
4262 echo "${ECHO_T}$CP" >&6; }
4263 else
4264 { echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6; }
4269 if test "$CP" = ""; then
4270 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4271 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4272 { (exit 1); exit 1; }; }
4274 # Extract the first word of "mv", so it can be a program name with args.
4275 set dummy mv; ac_word=$2
4276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4278 if test "${ac_cv_prog_MV+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 if test -n "$MV"; then
4282 ac_cv_prog_MV="$MV" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_MV="mv "
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4295 done
4296 done
4297 IFS=$as_save_IFS
4301 MV=$ac_cv_prog_MV
4302 if test -n "$MV"; then
4303 { echo "$as_me:$LINENO: result: $MV" >&5
4304 echo "${ECHO_T}$MV" >&6; }
4305 else
4306 { echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6; }
4311 if test "$MV" = ""; then
4312 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4313 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4314 { (exit 1); exit 1; }; }
4316 # Extract the first word of "echo", so it can be a program name with args.
4317 set dummy echo; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_ECHO+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$ECHO"; then
4324 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_ECHO="echo "
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4343 ECHO=$ac_cv_prog_ECHO
4344 if test -n "$ECHO"; then
4345 { echo "$as_me:$LINENO: result: $ECHO" >&5
4346 echo "${ECHO_T}$ECHO" >&6; }
4347 else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4353 if test "$ECHO" = ""; then
4354 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4355 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4356 { (exit 1); exit 1; }; }
4358 # Extract the first word of "mkdir", so it can be a program name with args.
4359 set dummy mkdir; ac_word=$2
4360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362 if test "${ac_cv_prog_MKDIR+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test -n "$MKDIR"; then
4366 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_MKDIR="mkdir -p"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4381 IFS=$as_save_IFS
4385 MKDIR=$ac_cv_prog_MKDIR
4386 if test -n "$MKDIR"; then
4387 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4388 echo "${ECHO_T}$MKDIR" >&6; }
4389 else
4390 { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4395 if test "$MKDIR" = ""; then
4396 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4397 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4398 { (exit 1); exit 1; }; }
4400 # Extract the first word of "touch", so it can be a program name with args.
4401 set dummy touch; ac_word=$2
4402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4404 if test "${ac_cv_prog_TOUCH+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 if test -n "$TOUCH"; then
4408 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_TOUCH="touch "
4418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 TOUCH=$ac_cv_prog_TOUCH
4428 if test -n "$TOUCH"; then
4429 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4430 echo "${ECHO_T}$TOUCH" >&6; }
4431 else
4432 { echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6; }
4437 if test "$TOUCH" = ""; then
4438 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4439 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4440 { (exit 1); exit 1; }; }
4442 # Extract the first word of "sort", so it can be a program name with args.
4443 set dummy sort; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_SORT+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 if test -n "$SORT"; then
4450 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_SORT="sort "
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 SORT=$ac_cv_prog_SORT
4470 if test -n "$SORT"; then
4471 { echo "$as_me:$LINENO: result: $SORT" >&5
4472 echo "${ECHO_T}$SORT" >&6; }
4473 else
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 if test "$SORT" = ""; then
4480 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4481 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4482 { (exit 1); exit 1; }; }
4484 # Extract the first word of "uniq", so it can be a program name with args.
4485 set dummy uniq; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_UNIQ+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -n "$UNIQ"; then
4492 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_UNIQ="uniq "
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 UNIQ=$ac_cv_prog_UNIQ
4512 if test -n "$UNIQ"; then
4513 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4514 echo "${ECHO_T}$UNIQ" >&6; }
4515 else
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4521 if test "$UNIQ" = ""; then
4522 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4523 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Extract the first word of "true", so it can be a program name with args.
4527 set dummy true; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_NOP+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$NOP"; then
4534 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_NOP="true "
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 NOP=$ac_cv_prog_NOP
4554 if test -n "$NOP"; then
4555 { echo "$as_me:$LINENO: result: $NOP" >&5
4556 echo "${ECHO_T}$NOP" >&6; }
4557 else
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 if test "$NOP" = ""; then
4564 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4565 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4566 { (exit 1); exit 1; }; }
4568 # Extract the first word of "cat", so it can be a program name with args.
4569 set dummy cat; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_CAT+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test -n "$CAT"; then
4576 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_CAT="cat "
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 CAT=$ac_cv_prog_CAT
4596 if test -n "$CAT"; then
4597 { echo "$as_me:$LINENO: result: $CAT" >&5
4598 echo "${ECHO_T}$CAT" >&6; }
4599 else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 if test "$CAT" = ""; then
4606 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4607 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4608 { (exit 1); exit 1; }; }
4610 # Extract the first word of "bison", so it can be a program name with args.
4611 set dummy bison; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BISON+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 if test -n "$BISON"; then
4618 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BISON="bison "
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 BISON=$ac_cv_prog_BISON
4638 if test -n "$BISON"; then
4639 { echo "$as_me:$LINENO: result: $BISON" >&5
4640 echo "${ECHO_T}$BISON" >&6; }
4641 else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test "$BISON" = ""; then
4648 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4649 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4650 { (exit 1); exit 1; }; }
4652 # Extract the first word of "flex", so it can be a program name with args.
4653 set dummy flex; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_prog_FLEX+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 if test -n "$FLEX"; then
4660 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_FLEX="flex "
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 FLEX=$ac_cv_prog_FLEX
4680 if test -n "$FLEX"; then
4681 { echo "$as_me:$LINENO: result: $FLEX" >&5
4682 echo "${ECHO_T}$FLEX" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 if test "$FLEX" = ""; then
4690 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4691 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4692 { (exit 1); exit 1; }; }
4694 # Extract the first word of "pngtopnm", so it can be a program name with args.
4695 set dummy pngtopnm; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test -n "$PNGTOPNM"; then
4702 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_PNGTOPNM="pngtopnm "
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4722 if test -n "$PNGTOPNM"; then
4723 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4724 echo "${ECHO_T}$PNGTOPNM" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test "$PNGTOPNM" = ""; then
4732 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4733 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4734 { (exit 1); exit 1; }; }
4736 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4737 set dummy ppmtoilbm; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$PPMTOILBM"; then
4744 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4764 if test -n "$PPMTOILBM"; then
4765 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4766 echo "${ECHO_T}$PPMTOILBM" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 if test "$PPMTOILBM" = ""; then
4774 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4775 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4776 { (exit 1); exit 1; }; }
4778 # Extract the first word of "sed", so it can be a program name with args.
4779 set dummy sed; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_SED+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test -n "$SED"; then
4786 ac_cv_prog_SED="$SED" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_SED="sed "
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 SED=$ac_cv_prog_SED
4806 if test -n "$SED"; then
4807 { echo "$as_me:$LINENO: result: $SED" >&5
4808 echo "${ECHO_T}$SED" >&6; }
4809 else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 if test "$SED" = ""; then
4816 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4817 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4818 { (exit 1); exit 1; }; }
4820 # Extract the first word of "chmod", so it can be a program name with args.
4821 set dummy chmod; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_CHMOD+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 if test -n "$CHMOD"; then
4828 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CHMOD="chmod "
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4843 IFS=$as_save_IFS
4847 CHMOD=$ac_cv_prog_CHMOD
4848 if test -n "$CHMOD"; then
4849 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4850 echo "${ECHO_T}$CHMOD" >&6; }
4851 else
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 if test "$CHMOD" = ""; then
4858 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4859 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4860 { (exit 1); exit 1; }; }
4867 if test -n "$PYTHON"; then
4868 # If the user set $PYTHON, use it and don't search something else.
4869 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4870 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4871 prog="import sys, string
4872 # split strings by '.' and convert to numeric. Append some zeros
4873 # because we need at least 4 digits for the hex conversion.
4874 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4875 minverhex = 0
4876 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4877 sys.exit(sys.hexversion < minverhex)"
4878 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4879 ($PYTHON -c "$prog") >&5 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; then
4883 { echo "$as_me:$LINENO: result: yes" >&5
4884 echo "${ECHO_T}yes" >&6; }
4885 else
4886 { { echo "$as_me:$LINENO: error: too old" >&5
4887 echo "$as_me: error: too old" >&2;}
4888 { (exit 1); exit 1; }; }
4891 else
4892 # Otherwise, try each interpreter until we find one that satisfies
4893 # VERSION.
4894 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4895 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4896 if test "${am_cv_pathless_PYTHON+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4900 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
4901 test "$am_cv_pathless_PYTHON" = none && break
4902 prog="import sys, string
4903 # split strings by '.' and convert to numeric. Append some zeros
4904 # because we need at least 4 digits for the hex conversion.
4905 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4906 minverhex = 0
4907 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4908 sys.exit(sys.hexversion < minverhex)"
4909 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4910 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; then
4914 break
4917 done
4919 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4920 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4921 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4922 if test "$am_cv_pathless_PYTHON" = none; then
4923 PYTHON=:
4924 else
4925 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4926 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_path_PYTHON+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 case $PYTHON in
4933 [\\/]* | ?:[\\/]*)
4934 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4953 esac
4955 PYTHON=$ac_cv_path_PYTHON
4956 if test -n "$PYTHON"; then
4957 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4958 echo "${ECHO_T}$PYTHON" >&6; }
4959 else
4960 { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4966 am_display_PYTHON=$am_cv_pathless_PYTHON
4970 if test "$PYTHON" = :; then
4971 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4972 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4973 { (exit 1); exit 1; }; }
4974 else
4977 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4978 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4979 if test "${am_cv_python_version+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4984 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4985 echo "${ECHO_T}$am_cv_python_version" >&6; }
4986 PYTHON_VERSION=$am_cv_python_version
4990 PYTHON_PREFIX='${prefix}'
4992 PYTHON_EXEC_PREFIX='${exec_prefix}'
4996 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4997 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
4998 if test "${am_cv_python_platform+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5003 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5004 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5005 PYTHON_PLATFORM=$am_cv_python_platform
5010 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5011 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5012 if test "${am_cv_python_pythondir+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5016 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5018 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5019 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5020 pythondir=$am_cv_python_pythondir
5024 pkgpythondir=\${pythondir}/$PACKAGE
5027 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5028 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5029 if test "${am_cv_python_pyexecdir+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5033 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5035 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5036 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5037 pyexecdir=$am_cv_python_pyexecdir
5041 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5049 FOR=for
5051 IF=if
5053 TEST=test
5055 CMP=cmp
5059 # Check for some includes for the X11 HIDD and the kernel
5062 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5063 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_GREP+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 # Extract the first word of "grep ggrep" to use in msg output
5068 if test -z "$GREP"; then
5069 set dummy grep ggrep; ac_prog_name=$2
5070 if test "${ac_cv_path_GREP+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 ac_path_GREP_found=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_prog in grep ggrep; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5083 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5084 # Check for GNU ac_path_GREP and select it if it is found.
5085 # Check for GNU $ac_path_GREP
5086 case `"$ac_path_GREP" --version 2>&1` in
5087 *GNU*)
5088 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5090 ac_count=0
5091 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5092 while :
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
5097 echo 'GREP' >> "conftest.nl"
5098 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100 ac_count=`expr $ac_count + 1`
5101 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_GREP="$ac_path_GREP"
5104 ac_path_GREP_max=$ac_count
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5108 done
5109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110 esac
5113 $ac_path_GREP_found && break 3
5114 done
5115 done
5117 done
5118 IFS=$as_save_IFS
5123 GREP="$ac_cv_path_GREP"
5124 if test -z "$GREP"; then
5125 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5126 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5127 { (exit 1); exit 1; }; }
5130 else
5131 ac_cv_path_GREP=$GREP
5136 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5137 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5138 GREP="$ac_cv_path_GREP"
5141 { echo "$as_me:$LINENO: checking for egrep" >&5
5142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5143 if test "${ac_cv_path_EGREP+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5147 then ac_cv_path_EGREP="$GREP -E"
5148 else
5149 # Extract the first word of "egrep" to use in msg output
5150 if test -z "$EGREP"; then
5151 set dummy egrep; ac_prog_name=$2
5152 if test "${ac_cv_path_EGREP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 ac_path_EGREP_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_prog in egrep; do
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5165 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5166 # Check for GNU ac_path_EGREP and select it if it is found.
5167 # Check for GNU $ac_path_EGREP
5168 case `"$ac_path_EGREP" --version 2>&1` in
5169 *GNU*)
5170 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5172 ac_count=0
5173 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5174 while :
5176 cat "conftest.in" "conftest.in" >"conftest.tmp"
5177 mv "conftest.tmp" "conftest.in"
5178 cp "conftest.in" "conftest.nl"
5179 echo 'EGREP' >> "conftest.nl"
5180 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5182 ac_count=`expr $ac_count + 1`
5183 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5184 # Best one so far, save it but keep looking for a better one
5185 ac_cv_path_EGREP="$ac_path_EGREP"
5186 ac_path_EGREP_max=$ac_count
5188 # 10*(2^10) chars as input seems more than enough
5189 test $ac_count -gt 10 && break
5190 done
5191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5192 esac
5195 $ac_path_EGREP_found && break 3
5196 done
5197 done
5199 done
5200 IFS=$as_save_IFS
5205 EGREP="$ac_cv_path_EGREP"
5206 if test -z "$EGREP"; then
5207 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5208 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5209 { (exit 1); exit 1; }; }
5212 else
5213 ac_cv_path_EGREP=$EGREP
5219 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5220 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5221 EGREP="$ac_cv_path_EGREP"
5224 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5226 if test "${ac_cv_header_stdc+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 #include <stdlib.h>
5236 #include <stdarg.h>
5237 #include <string.h>
5238 #include <float.h>
5241 main ()
5245 return 0;
5247 _ACEOF
5248 rm -f conftest.$ac_objext
5249 if { (ac_try="$ac_compile"
5250 case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.$ac_objext; then
5265 ac_cv_header_stdc=yes
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 ac_cv_header_stdc=no
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 if test $ac_cv_header_stdc = yes; then
5276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <string.h>
5285 _ACEOF
5286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5287 $EGREP "memchr" >/dev/null 2>&1; then
5289 else
5290 ac_cv_header_stdc=no
5292 rm -f conftest*
5296 if test $ac_cv_header_stdc = yes; then
5297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <stdlib.h>
5306 _ACEOF
5307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 $EGREP "free" >/dev/null 2>&1; then
5310 else
5311 ac_cv_header_stdc=no
5313 rm -f conftest*
5317 if test $ac_cv_header_stdc = yes; then
5318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5319 if test "$cross_compiling" = yes; then
5321 else
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <ctype.h>
5329 #include <stdlib.h>
5330 #if ((' ' & 0x0FF) == 0x020)
5331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5333 #else
5334 # define ISLOWER(c) \
5335 (('a' <= (c) && (c) <= 'i') \
5336 || ('j' <= (c) && (c) <= 'r') \
5337 || ('s' <= (c) && (c) <= 'z'))
5338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5339 #endif
5341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5343 main ()
5345 int i;
5346 for (i = 0; i < 256; i++)
5347 if (XOR (islower (i), ISLOWER (i))
5348 || toupper (i) != TOUPPER (i))
5349 return 2;
5350 return 0;
5352 _ACEOF
5353 rm -f conftest$ac_exeext
5354 if { (ac_try="$ac_link"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5374 else
5375 echo "$as_me: program exited with status $ac_status" >&5
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 ( exit $ac_status )
5380 ac_cv_header_stdc=no
5382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5388 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5389 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5390 if test $ac_cv_header_stdc = yes; then
5392 cat >>confdefs.h <<\_ACEOF
5393 #define STDC_HEADERS 1
5394 _ACEOF
5398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5409 inttypes.h stdint.h unistd.h
5411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5425 #include <$ac_header>
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5429 case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compile") 2>conftest.er1
5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && {
5441 test -z "$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest.$ac_objext; then
5444 eval "$as_ac_Header=yes"
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 eval "$as_ac_Header=no"
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_res=`eval echo '${'$as_ac_Header'}'`
5455 { echo "$as_me:$LINENO: result: $ac_res" >&5
5456 echo "${ECHO_T}$ac_res" >&6; }
5457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5460 _ACEOF
5464 done
5476 for ac_header in sys/ipc.h sys/shm.h \
5477 sys/mmap.h sys/mman.h sysexits.h \
5478 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 ac_res=`eval echo '${'$as_ac_Header'}'`
5489 { echo "$as_me:$LINENO: result: $ac_res" >&5
5490 echo "${ECHO_T}$ac_res" >&6; }
5491 else
5492 # Is the header compilable?
5493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 $ac_includes_default
5502 #include <$ac_header>
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
5521 ac_header_compiler=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_header_compiler=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5531 echo "${ECHO_T}$ac_header_compiler" >&6; }
5533 # Is the header present?
5534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #include <$ac_header>
5543 _ACEOF
5544 if { (ac_try="$ac_cpp conftest.$ac_ext"
5545 case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null && {
5557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 }; then
5560 ac_header_preproc=yes
5561 else
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 ac_header_preproc=no
5568 rm -f conftest.err conftest.$ac_ext
5569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5570 echo "${ECHO_T}$ac_header_preproc" >&6; }
5572 # So? What about this header?
5573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5574 yes:no: )
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5579 ac_header_preproc=yes
5581 no:yes:* )
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5596 esac
5597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 eval "$as_ac_Header=\$ac_header_preproc"
5604 ac_res=`eval echo '${'$as_ac_Header'}'`
5605 { echo "$as_me:$LINENO: result: $ac_res" >&5
5606 echo "${ECHO_T}$ac_res" >&6; }
5609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5610 cat >>confdefs.h <<_ACEOF
5611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5612 _ACEOF
5616 done
5620 for ac_header in sys/mount.h
5622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <sys/param.h>
5636 #include <$ac_header>
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (ac_try="$ac_compile"
5640 case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5655 eval "$as_ac_Header=yes"
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 eval "$as_ac_Header=no"
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 ac_res=`eval echo '${'$as_ac_Header'}'`
5666 { echo "$as_me:$LINENO: result: $ac_res" >&5
5667 echo "${ECHO_T}$ac_res" >&6; }
5668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5671 _ACEOF
5675 done
5683 ac_header_dirent=no
5684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5685 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5686 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5687 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <sys/types.h>
5698 #include <$ac_hdr>
5701 main ()
5703 if ((DIR *) 0)
5704 return 0;
5706 return 0;
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 eval "$as_ac_Header=yes"
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 eval "$as_ac_Header=no"
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 ac_res=`eval echo '${'$as_ac_Header'}'`
5737 { echo "$as_me:$LINENO: result: $ac_res" >&5
5738 echo "${ECHO_T}$ac_res" >&6; }
5739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5742 _ACEOF
5744 ac_header_dirent=$ac_hdr; break
5747 done
5748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5749 if test $ac_header_dirent = dirent.h; then
5750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5752 if test "${ac_cv_search_opendir+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 ac_func_search_save_LIBS=$LIBS
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 /* Override any GCC internal prototype to avoid an error.
5764 Use char because int might match the return type of a GCC
5765 builtin and then its argument prototype would still apply. */
5766 #ifdef __cplusplus
5767 extern "C"
5768 #endif
5769 char opendir ();
5771 main ()
5773 return opendir ();
5775 return 0;
5777 _ACEOF
5778 for ac_lib in '' dir; do
5779 if test -z "$ac_lib"; then
5780 ac_res="none required"
5781 else
5782 ac_res=-l$ac_lib
5783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5785 rm -f conftest.$ac_objext conftest$ac_exeext
5786 if { (ac_try="$ac_link"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_link") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest$ac_exeext &&
5802 $as_test_x conftest$ac_exeext; then
5803 ac_cv_search_opendir=$ac_res
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5812 conftest$ac_exeext
5813 if test "${ac_cv_search_opendir+set}" = set; then
5814 break
5816 done
5817 if test "${ac_cv_search_opendir+set}" = set; then
5819 else
5820 ac_cv_search_opendir=no
5822 rm conftest.$ac_ext
5823 LIBS=$ac_func_search_save_LIBS
5825 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5826 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5827 ac_res=$ac_cv_search_opendir
5828 if test "$ac_res" != no; then
5829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5833 else
5834 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5836 if test "${ac_cv_search_opendir+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 ac_func_search_save_LIBS=$LIBS
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5847 /* Override any GCC internal prototype to avoid an error.
5848 Use char because int might match the return type of a GCC
5849 builtin and then its argument prototype would still apply. */
5850 #ifdef __cplusplus
5851 extern "C"
5852 #endif
5853 char opendir ();
5855 main ()
5857 return opendir ();
5859 return 0;
5861 _ACEOF
5862 for ac_lib in '' x; do
5863 if test -z "$ac_lib"; then
5864 ac_res="none required"
5865 else
5866 ac_res=-l$ac_lib
5867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (ac_try="$ac_link"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_link") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest$ac_exeext &&
5886 $as_test_x conftest$ac_exeext; then
5887 ac_cv_search_opendir=$ac_res
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896 conftest$ac_exeext
5897 if test "${ac_cv_search_opendir+set}" = set; then
5898 break
5900 done
5901 if test "${ac_cv_search_opendir+set}" = set; then
5903 else
5904 ac_cv_search_opendir=no
5906 rm conftest.$ac_ext
5907 LIBS=$ac_func_search_save_LIBS
5909 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5910 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5911 ac_res=$ac_cv_search_opendir
5912 if test "$ac_res" != no; then
5913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5919 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5920 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5921 if test "${ac_cv_header_stat_broken+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/types.h>
5931 #include <sys/stat.h>
5933 #if defined S_ISBLK && defined S_IFDIR
5934 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5935 #endif
5937 #if defined S_ISBLK && defined S_IFCHR
5938 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5939 #endif
5941 #if defined S_ISLNK && defined S_IFREG
5942 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5943 #endif
5945 #if defined S_ISSOCK && defined S_IFREG
5946 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5947 #endif
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5967 ac_cv_header_stat_broken=no
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 ac_cv_header_stat_broken=yes
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5978 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5979 if test $ac_cv_header_stat_broken = yes; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define STAT_MACROS_BROKEN 1
5983 _ACEOF
5987 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5988 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5989 if test "${ac_cv_header_stdc+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <stdlib.h>
5999 #include <stdarg.h>
6000 #include <string.h>
6001 #include <float.h>
6004 main ()
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compile") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.$ac_objext; then
6028 ac_cv_header_stdc=yes
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 ac_cv_header_stdc=no
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 if test $ac_cv_header_stdc = yes; then
6039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <string.h>
6048 _ACEOF
6049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6050 $EGREP "memchr" >/dev/null 2>&1; then
6052 else
6053 ac_cv_header_stdc=no
6055 rm -f conftest*
6059 if test $ac_cv_header_stdc = yes; then
6060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <stdlib.h>
6069 _ACEOF
6070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6071 $EGREP "free" >/dev/null 2>&1; then
6073 else
6074 ac_cv_header_stdc=no
6076 rm -f conftest*
6080 if test $ac_cv_header_stdc = yes; then
6081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6082 if test "$cross_compiling" = yes; then
6084 else
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <ctype.h>
6092 #include <stdlib.h>
6093 #if ((' ' & 0x0FF) == 0x020)
6094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6096 #else
6097 # define ISLOWER(c) \
6098 (('a' <= (c) && (c) <= 'i') \
6099 || ('j' <= (c) && (c) <= 'r') \
6100 || ('s' <= (c) && (c) <= 'z'))
6101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6102 #endif
6104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6106 main ()
6108 int i;
6109 for (i = 0; i < 256; i++)
6110 if (XOR (islower (i), ISLOWER (i))
6111 || toupper (i) != TOUPPER (i))
6112 return 2;
6113 return 0;
6115 _ACEOF
6116 rm -f conftest$ac_exeext
6117 if { (ac_try="$ac_link"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_link") 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6137 else
6138 echo "$as_me: program exited with status $ac_status" >&5
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 ( exit $ac_status )
6143 ac_cv_header_stdc=no
6145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6152 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6153 if test $ac_cv_header_stdc = yes; then
6155 cat >>confdefs.h <<\_ACEOF
6156 #define STDC_HEADERS 1
6157 _ACEOF
6161 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6162 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6163 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <sys/types.h>
6173 #include <sys/wait.h>
6174 #ifndef WEXITSTATUS
6175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6176 #endif
6177 #ifndef WIFEXITED
6178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6179 #endif
6182 main ()
6184 int s;
6185 wait (&s);
6186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6188 return 0;
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 ac_cv_header_sys_wait_h=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_cv_header_sys_wait_h=no
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6219 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6220 if test $ac_cv_header_sys_wait_h = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_SYS_WAIT_H 1
6224 _ACEOF
6228 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6229 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6230 if test "${ac_cv_header_time+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <sys/types.h>
6240 #include <sys/time.h>
6241 #include <time.h>
6244 main ()
6246 if ((struct tm *) 0)
6247 return 0;
6249 return 0;
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.$ac_objext; then
6269 ac_cv_header_time=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_cv_header_time=no
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6280 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6281 if test $ac_cv_header_time = yes; then
6283 cat >>confdefs.h <<\_ACEOF
6284 #define TIME_WITH_SYS_TIME 1
6285 _ACEOF
6289 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6290 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6291 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6302 main ()
6304 static struct stat ac_aggr;
6305 if (ac_aggr.st_blksize)
6306 return 0;
6308 return 0;
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6328 ac_cv_member_struct_stat_st_blksize=yes
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 $ac_includes_default
6341 main ()
6343 static struct stat ac_aggr;
6344 if (sizeof ac_aggr.st_blksize)
6345 return 0;
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6352 case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest.$ac_objext; then
6367 ac_cv_member_struct_stat_st_blksize=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_cv_member_struct_stat_st_blksize=no
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6381 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6382 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6386 _ACEOF
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_ST_BLKSIZE 1
6391 _ACEOF
6396 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6397 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6398 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 $ac_includes_default
6409 main ()
6411 static struct stat ac_aggr;
6412 if (ac_aggr.st_blocks)
6413 return 0;
6415 return 0;
6417 _ACEOF
6418 rm -f conftest.$ac_objext
6419 if { (ac_try="$ac_compile"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_compile") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest.$ac_objext; then
6435 ac_cv_member_struct_stat_st_blocks=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6448 main ()
6450 static struct stat ac_aggr;
6451 if (sizeof ac_aggr.st_blocks)
6452 return 0;
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest.$ac_objext; then
6474 ac_cv_member_struct_stat_st_blocks=yes
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_cv_member_struct_stat_st_blocks=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6488 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6489 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6493 _ACEOF
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_ST_BLOCKS 1
6498 _ACEOF
6500 else
6501 case " $LIBOBJS " in
6502 *" fileblocks.$ac_objext "* ) ;;
6503 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6505 esac
6510 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6511 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6512 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6523 main ()
6525 static struct stat ac_aggr;
6526 if (ac_aggr.st_rdev)
6527 return 0;
6529 return 0;
6531 _ACEOF
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6534 case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_cv_member_struct_stat_st_rdev=yes
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6562 main ()
6564 static struct stat ac_aggr;
6565 if (sizeof ac_aggr.st_rdev)
6566 return 0;
6568 return 0;
6570 _ACEOF
6571 rm -f conftest.$ac_objext
6572 if { (ac_try="$ac_compile"
6573 case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576 esac
6577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578 (eval "$ac_compile") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && {
6585 test -z "$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 } && test -s conftest.$ac_objext; then
6588 ac_cv_member_struct_stat_st_rdev=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_cv_member_struct_stat_st_rdev=no
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6602 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6603 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606 #define HAVE_STRUCT_STAT_ST_RDEV 1
6607 _ACEOF
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_ST_RDEV 1
6612 _ACEOF
6617 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6618 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6619 if test "${ac_cv_struct_tm+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <sys/types.h>
6629 #include <time.h>
6632 main ()
6634 struct tm tm;
6635 int *p = &tm.tm_sec;
6636 return !p;
6638 return 0;
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6643 case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest.$ac_objext; then
6658 ac_cv_struct_tm=time.h
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_cv_struct_tm=sys/time.h
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6669 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6670 if test $ac_cv_struct_tm = sys/time.h; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define TM_IN_SYS_TIME 1
6674 _ACEOF
6678 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6679 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6680 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <sys/types.h>
6690 #include <$ac_cv_struct_tm>
6694 main ()
6696 static struct tm ac_aggr;
6697 if (ac_aggr.tm_zone)
6698 return 0;
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_compile") 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } && {
6717 test -z "$ac_c_werror_flag" ||
6718 test ! -s conftest.err
6719 } && test -s conftest.$ac_objext; then
6720 ac_cv_member_struct_tm_tm_zone=yes
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <sys/types.h>
6732 #include <$ac_cv_struct_tm>
6736 main ()
6738 static struct tm ac_aggr;
6739 if (sizeof ac_aggr.tm_zone)
6740 return 0;
6742 return 0;
6744 _ACEOF
6745 rm -f conftest.$ac_objext
6746 if { (ac_try="$ac_compile"
6747 case "(($ac_try" in
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6750 esac
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_compile") 2>conftest.er1
6753 ac_status=$?
6754 grep -v '^ *+' conftest.er1 >conftest.err
6755 rm -f conftest.er1
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && {
6759 test -z "$ac_c_werror_flag" ||
6760 test ! -s conftest.err
6761 } && test -s conftest.$ac_objext; then
6762 ac_cv_member_struct_tm_tm_zone=yes
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_member_struct_tm_tm_zone=no
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6776 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6777 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6779 cat >>confdefs.h <<_ACEOF
6780 #define HAVE_STRUCT_TM_TM_ZONE 1
6781 _ACEOF
6786 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_TM_ZONE 1
6790 _ACEOF
6792 else
6793 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6794 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6795 if test "${ac_cv_have_decl_tzname+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h. */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 #include <time.h>
6807 main ()
6809 #ifndef tzname
6810 (void) tzname;
6811 #endif
6814 return 0;
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6819 case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 ac_cv_have_decl_tzname=yes
6835 else
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_cv_have_decl_tzname=no
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6845 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6846 if test $ac_cv_have_decl_tzname = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849 #define HAVE_DECL_TZNAME 1
6850 _ACEOF
6853 else
6854 cat >>confdefs.h <<_ACEOF
6855 #define HAVE_DECL_TZNAME 0
6856 _ACEOF
6862 { echo "$as_me:$LINENO: checking for tzname" >&5
6863 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6864 if test "${ac_cv_var_tzname+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <time.h>
6874 #if !HAVE_DECL_TZNAME
6875 extern char *tzname[];
6876 #endif
6879 main ()
6881 return tzname[0][0];
6883 return 0;
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6888 case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_link") 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest$ac_exeext &&
6903 $as_test_x conftest$ac_exeext; then
6904 ac_cv_var_tzname=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_var_tzname=no
6912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6913 conftest$ac_exeext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6916 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6917 if test $ac_cv_var_tzname = yes; then
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_TZNAME 1
6921 _ACEOF
6926 { echo "$as_me:$LINENO: checking for off_t" >&5
6927 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6928 if test "${ac_cv_type_off_t+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6938 typedef off_t ac__type_new_;
6940 main ()
6942 if ((ac__type_new_ *) 0)
6943 return 0;
6944 if (sizeof (ac__type_new_))
6945 return 0;
6947 return 0;
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest.$ac_objext; then
6967 ac_cv_type_off_t=yes
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_cv_type_off_t=no
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6978 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6979 if test $ac_cv_type_off_t = yes; then
6981 else
6983 cat >>confdefs.h <<_ACEOF
6984 #define off_t long int
6985 _ACEOF
6989 { echo "$as_me:$LINENO: checking for pid_t" >&5
6990 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6991 if test "${ac_cv_type_pid_t+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 typedef pid_t ac__type_new_;
7003 main ()
7005 if ((ac__type_new_ *) 0)
7006 return 0;
7007 if (sizeof (ac__type_new_))
7008 return 0;
7010 return 0;
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (ac_try="$ac_compile"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_compile") 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
7030 ac_cv_type_pid_t=yes
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_type_pid_t=no
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7041 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7042 if test $ac_cv_type_pid_t = yes; then
7044 else
7046 cat >>confdefs.h <<_ACEOF
7047 #define pid_t int
7048 _ACEOF
7052 { echo "$as_me:$LINENO: checking for size_t" >&5
7053 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7054 if test "${ac_cv_type_size_t+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 typedef size_t ac__type_new_;
7066 main ()
7068 if ((ac__type_new_ *) 0)
7069 return 0;
7070 if (sizeof (ac__type_new_))
7071 return 0;
7073 return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7093 ac_cv_type_size_t=yes
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_cv_type_size_t=no
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7104 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7105 if test $ac_cv_type_size_t = yes; then
7107 else
7109 cat >>confdefs.h <<_ACEOF
7110 #define size_t unsigned int
7111 _ACEOF
7115 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7116 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7117 if test "${ac_cv_type_uid_t+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #include <sys/types.h>
7128 _ACEOF
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130 $EGREP "uid_t" >/dev/null 2>&1; then
7131 ac_cv_type_uid_t=yes
7132 else
7133 ac_cv_type_uid_t=no
7135 rm -f conftest*
7138 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7139 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7140 if test $ac_cv_type_uid_t = no; then
7142 cat >>confdefs.h <<\_ACEOF
7143 #define uid_t int
7144 _ACEOF
7147 cat >>confdefs.h <<\_ACEOF
7148 #define gid_t int
7149 _ACEOF
7154 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7155 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7156 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7167 main ()
7169 static struct tm ac_aggr;
7170 if (ac_aggr.tm_gmtoff)
7171 return 0;
7173 return 0;
7175 _ACEOF
7176 rm -f conftest.$ac_objext
7177 if { (ac_try="$ac_compile"
7178 case "(($ac_try" in
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_compile") 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && {
7190 test -z "$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7192 } && test -s conftest.$ac_objext; then
7193 ac_cv_member_struct_tm_tm_gmtoff=yes
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 main ()
7208 static struct tm ac_aggr;
7209 if (sizeof ac_aggr.tm_gmtoff)
7210 return 0;
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_member_struct_tm_tm_gmtoff=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_cv_member_struct_tm_tm_gmtoff=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7246 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7247 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7251 _ACEOF
7257 # Look for some functions
7272 for ac_func in getpagesize kqueue statfs statvfs \
7273 clone kse_create rfork_thread thr_create sa_register \
7274 getcontext makecontext setcontext sigaltstack swapcontext
7276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7290 #define $ac_func innocuous_$ac_func
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char $ac_func (); below.
7294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295 <limits.h> exists even on freestanding compilers. */
7297 #ifdef __STDC__
7298 # include <limits.h>
7299 #else
7300 # include <assert.h>
7301 #endif
7303 #undef $ac_func
7305 /* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7308 #ifdef __cplusplus
7309 extern "C"
7310 #endif
7311 char $ac_func ();
7312 /* The GNU C library defines this for functions which it implements
7313 to always fail with ENOSYS. Some functions are actually named
7314 something starting with __ and the normal name is an alias. */
7315 #if defined __stub_$ac_func || defined __stub___$ac_func
7316 choke me
7317 #endif
7320 main ()
7322 return $ac_func ();
7324 return 0;
7326 _ACEOF
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (ac_try="$ac_link"
7329 case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332 esac
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_link") 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest$ac_exeext &&
7344 $as_test_x conftest$ac_exeext; then
7345 eval "$as_ac_var=yes"
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 eval "$as_ac_var=no"
7353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7354 conftest$ac_exeext conftest.$ac_ext
7356 ac_res=`eval echo '${'$as_ac_var'}'`
7357 { echo "$as_me:$LINENO: result: $ac_res" >&5
7358 echo "${ECHO_T}$ac_res" >&6; }
7359 if test `eval echo '${'$as_ac_var'}'` = yes; then
7360 cat >>confdefs.h <<_ACEOF
7361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7362 _ACEOF
7365 done
7370 for ac_header in stdlib.h unistd.h
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 else
7383 # Is the header compilable?
7384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #include <$ac_header>
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 ac_header_compiler=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_header_compiler=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 echo "${ECHO_T}$ac_header_compiler" >&6; }
7424 # Is the header present?
7425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #include <$ac_header>
7434 _ACEOF
7435 if { (ac_try="$ac_cpp conftest.$ac_ext"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } >/dev/null && {
7448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 }; then
7451 ac_header_preproc=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456 ac_header_preproc=no
7459 rm -f conftest.err conftest.$ac_ext
7460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7461 echo "${ECHO_T}$ac_header_preproc" >&6; }
7463 # So? What about this header?
7464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7465 yes:no: )
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7470 ac_header_preproc=yes
7472 no:yes:* )
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7487 esac
7488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 eval "$as_ac_Header=\$ac_header_preproc"
7495 ac_res=`eval echo '${'$as_ac_Header'}'`
7496 { echo "$as_me:$LINENO: result: $ac_res" >&5
7497 echo "${ECHO_T}$ac_res" >&6; }
7500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7501 cat >>confdefs.h <<_ACEOF
7502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503 _ACEOF
7507 done
7510 for ac_func in getpagesize
7512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7526 #define $ac_func innocuous_$ac_func
7528 /* System header to define __stub macros and hopefully few prototypes,
7529 which can conflict with char $ac_func (); below.
7530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7531 <limits.h> exists even on freestanding compilers. */
7533 #ifdef __STDC__
7534 # include <limits.h>
7535 #else
7536 # include <assert.h>
7537 #endif
7539 #undef $ac_func
7541 /* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7544 #ifdef __cplusplus
7545 extern "C"
7546 #endif
7547 char $ac_func ();
7548 /* The GNU C library defines this for functions which it implements
7549 to always fail with ENOSYS. Some functions are actually named
7550 something starting with __ and the normal name is an alias. */
7551 #if defined __stub_$ac_func || defined __stub___$ac_func
7552 choke me
7553 #endif
7556 main ()
7558 return $ac_func ();
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (ac_try="$ac_link"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_link") 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest$ac_exeext &&
7580 $as_test_x conftest$ac_exeext; then
7581 eval "$as_ac_var=yes"
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 eval "$as_ac_var=no"
7589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7590 conftest$ac_exeext conftest.$ac_ext
7592 ac_res=`eval echo '${'$as_ac_var'}'`
7593 { echo "$as_me:$LINENO: result: $ac_res" >&5
7594 echo "${ECHO_T}$ac_res" >&6; }
7595 if test `eval echo '${'$as_ac_var'}'` = yes; then
7596 cat >>confdefs.h <<_ACEOF
7597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7598 _ACEOF
7601 done
7603 { echo "$as_me:$LINENO: checking for working mmap" >&5
7604 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7605 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 if test "$cross_compiling" = yes; then
7609 ac_cv_func_mmap_fixed_mapped=no
7610 else
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 /* malloc might have been renamed as rpl_malloc. */
7619 #undef malloc
7621 /* Thanks to Mike Haertel and Jim Avera for this test.
7622 Here is a matrix of mmap possibilities:
7623 mmap private not fixed
7624 mmap private fixed at somewhere currently unmapped
7625 mmap private fixed at somewhere already mapped
7626 mmap shared not fixed
7627 mmap shared fixed at somewhere currently unmapped
7628 mmap shared fixed at somewhere already mapped
7629 For private mappings, we should verify that changes cannot be read()
7630 back from the file, nor mmap's back from the file at a different
7631 address. (There have been systems where private was not correctly
7632 implemented like the infamous i386 svr4.0, and systems where the
7633 VM page cache was not coherent with the file system buffer cache
7634 like early versions of FreeBSD and possibly contemporary NetBSD.)
7635 For shared mappings, we should conversely verify that changes get
7636 propagated back to all the places they're supposed to be.
7638 Grep wants private fixed already mapped.
7639 The main things grep needs to know about mmap are:
7640 * does it exist and is it safe to write into the mmap'd area
7641 * how to use it (BSD variants) */
7643 #include <fcntl.h>
7644 #include <sys/mman.h>
7646 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7647 char *malloc ();
7648 #endif
7650 /* This mess was copied from the GNU getpagesize.h. */
7651 #ifndef HAVE_GETPAGESIZE
7652 /* Assume that all systems that can run configure have sys/param.h. */
7653 # ifndef HAVE_SYS_PARAM_H
7654 # define HAVE_SYS_PARAM_H 1
7655 # endif
7657 # ifdef _SC_PAGESIZE
7658 # define getpagesize() sysconf(_SC_PAGESIZE)
7659 # else /* no _SC_PAGESIZE */
7660 # ifdef HAVE_SYS_PARAM_H
7661 # include <sys/param.h>
7662 # ifdef EXEC_PAGESIZE
7663 # define getpagesize() EXEC_PAGESIZE
7664 # else /* no EXEC_PAGESIZE */
7665 # ifdef NBPG
7666 # define getpagesize() NBPG * CLSIZE
7667 # ifndef CLSIZE
7668 # define CLSIZE 1
7669 # endif /* no CLSIZE */
7670 # else /* no NBPG */
7671 # ifdef NBPC
7672 # define getpagesize() NBPC
7673 # else /* no NBPC */
7674 # ifdef PAGESIZE
7675 # define getpagesize() PAGESIZE
7676 # endif /* PAGESIZE */
7677 # endif /* no NBPC */
7678 # endif /* no NBPG */
7679 # endif /* no EXEC_PAGESIZE */
7680 # else /* no HAVE_SYS_PARAM_H */
7681 # define getpagesize() 8192 /* punt totally */
7682 # endif /* no HAVE_SYS_PARAM_H */
7683 # endif /* no _SC_PAGESIZE */
7685 #endif /* no HAVE_GETPAGESIZE */
7688 main ()
7690 char *data, *data2, *data3;
7691 int i, pagesize;
7692 int fd;
7694 pagesize = getpagesize ();
7696 /* First, make a file with some known garbage in it. */
7697 data = (char *) malloc (pagesize);
7698 if (!data)
7699 return 1;
7700 for (i = 0; i < pagesize; ++i)
7701 *(data + i) = rand ();
7702 umask (0);
7703 fd = creat ("conftest.mmap", 0600);
7704 if (fd < 0)
7705 return 1;
7706 if (write (fd, data, pagesize) != pagesize)
7707 return 1;
7708 close (fd);
7710 /* Next, try to mmap the file at a fixed address which already has
7711 something else allocated at it. If we can, also make sure that
7712 we see the same garbage. */
7713 fd = open ("conftest.mmap", O_RDWR);
7714 if (fd < 0)
7715 return 1;
7716 data2 = (char *) malloc (2 * pagesize);
7717 if (!data2)
7718 return 1;
7719 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7720 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7721 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7722 return 1;
7723 for (i = 0; i < pagesize; ++i)
7724 if (*(data + i) != *(data2 + i))
7725 return 1;
7727 /* Finally, make sure that changes to the mapped area do not
7728 percolate back to the file as seen by read(). (This is a bug on
7729 some variants of i386 svr4.0.) */
7730 for (i = 0; i < pagesize; ++i)
7731 *(data2 + i) = *(data2 + i) + 1;
7732 data3 = (char *) malloc (pagesize);
7733 if (!data3)
7734 return 1;
7735 if (read (fd, data3, pagesize) != pagesize)
7736 return 1;
7737 for (i = 0; i < pagesize; ++i)
7738 if (*(data + i) != *(data3 + i))
7739 return 1;
7740 close (fd);
7741 return 0;
7743 _ACEOF
7744 rm -f conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 ac_cv_func_mmap_fixed_mapped=yes
7765 else
7766 echo "$as_me: program exited with status $ac_status" >&5
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 ( exit $ac_status )
7771 ac_cv_func_mmap_fixed_mapped=no
7773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7779 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7780 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_MMAP 1
7784 _ACEOF
7787 rm -f conftest.mmap
7790 # Find X
7791 { echo "$as_me:$LINENO: checking for X" >&5
7792 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7795 # Check whether --with-x was given.
7796 if test "${with_x+set}" = set; then
7797 withval=$with_x;
7800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7801 if test "x$with_x" = xno; then
7802 # The user explicitly disabled X.
7803 have_x=disabled
7804 else
7805 case $x_includes,$x_libraries in #(
7806 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
7807 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
7808 { (exit 1); exit 1; }; };; #(
7809 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 # One or both of the vars are not set, and there is no cached value.
7813 ac_x_includes=no ac_x_libraries=no
7814 rm -f -r conftest.dir
7815 if mkdir conftest.dir; then
7816 cd conftest.dir
7817 cat >Imakefile <<'_ACEOF'
7818 incroot:
7819 @echo incroot='${INCROOT}'
7820 usrlibdir:
7821 @echo usrlibdir='${USRLIBDIR}'
7822 libdir:
7823 @echo libdir='${LIBDIR}'
7824 _ACEOF
7825 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7827 for ac_var in incroot usrlibdir libdir; do
7828 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7829 done
7830 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7831 for ac_extension in a so sl; do
7832 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7833 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7834 ac_im_usrlibdir=$ac_im_libdir; break
7836 done
7837 # Screen out bogus values from the imake configuration. They are
7838 # bogus both because they are the default anyway, and because
7839 # using them would break gcc on systems where it needs fixed includes.
7840 case $ac_im_incroot in
7841 /usr/include) ac_x_includes= ;;
7842 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7843 esac
7844 case $ac_im_usrlibdir in
7845 /usr/lib | /lib) ;;
7846 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7847 esac
7849 cd ..
7850 rm -f -r conftest.dir
7853 # Standard set of common directories for X headers.
7854 # Check X11 before X11Rn because it is often a symlink to the current release.
7855 ac_x_header_dirs='
7856 /usr/X11/include
7857 /usr/X11R6/include
7858 /usr/X11R5/include
7859 /usr/X11R4/include
7861 /usr/include/X11
7862 /usr/include/X11R6
7863 /usr/include/X11R5
7864 /usr/include/X11R4
7866 /usr/local/X11/include
7867 /usr/local/X11R6/include
7868 /usr/local/X11R5/include
7869 /usr/local/X11R4/include
7871 /usr/local/include/X11
7872 /usr/local/include/X11R6
7873 /usr/local/include/X11R5
7874 /usr/local/include/X11R4
7876 /usr/X386/include
7877 /usr/x386/include
7878 /usr/XFree86/include/X11
7880 /usr/include
7881 /usr/local/include
7882 /usr/unsupported/include
7883 /usr/athena/include
7884 /usr/local/x11r5/include
7885 /usr/lpp/Xamples/include
7887 /usr/openwin/include
7888 /usr/openwin/share/include'
7890 if test "$ac_x_includes" = no; then
7891 # Guess where to find include files, by looking for Xlib.h.
7892 # First, try using that file with no special directory specified.
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 #include <X11/Xlib.h>
7900 _ACEOF
7901 if { (ac_try="$ac_cpp conftest.$ac_ext"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } >/dev/null && {
7914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 }; then
7917 # We can compile using X headers with no special include directory.
7918 ac_x_includes=
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 for ac_dir in $ac_x_header_dirs; do
7924 if test -r "$ac_dir/X11/Xlib.h"; then
7925 ac_x_includes=$ac_dir
7926 break
7928 done
7931 rm -f conftest.err conftest.$ac_ext
7932 fi # $ac_x_includes = no
7934 if test "$ac_x_libraries" = no; then
7935 # Check for the libraries.
7936 # See if we find them without any special options.
7937 # Don't add to $LIBS permanently.
7938 ac_save_LIBS=$LIBS
7939 LIBS="-lX11 $LIBS"
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <X11/Xlib.h>
7948 main ()
7950 XrmInitialize ()
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest$ac_exeext &&
7972 $as_test_x conftest$ac_exeext; then
7973 LIBS=$ac_save_LIBS
7974 # We can link X programs with no special library path.
7975 ac_x_libraries=
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 LIBS=$ac_save_LIBS
7981 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7983 # Don't even attempt the hair of trying to link an X program!
7984 for ac_extension in a so sl; do
7985 if test -r "$ac_dir/libX11.$ac_extension"; then
7986 ac_x_libraries=$ac_dir
7987 break 2
7989 done
7990 done
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 fi # $ac_x_libraries = no
7997 case $ac_x_includes,$ac_x_libraries in #(
7998 no,* | *,no | *\'*)
7999 # Didn't find X, or a directory has "'" in its name.
8000 ac_cv_have_x="have_x=no";; #(
8002 # Record where we found X for the cache.
8003 ac_cv_have_x="have_x=yes\
8004 ac_x_includes='$ac_x_includes'\
8005 ac_x_libraries='$ac_x_libraries'"
8006 esac
8008 ;; #(
8009 *) have_x=yes;;
8010 esac
8011 eval "$ac_cv_have_x"
8012 fi # $with_x != no
8014 if test "$have_x" != yes; then
8015 { echo "$as_me:$LINENO: result: $have_x" >&5
8016 echo "${ECHO_T}$have_x" >&6; }
8017 no_x=yes
8018 else
8019 # If each of the values was on the command line, it overrides each guess.
8020 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8021 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8022 # Update the cache value to reflect the command line values.
8023 ac_cv_have_x="have_x=yes\
8024 ac_x_includes='$x_includes'\
8025 ac_x_libraries='$x_libraries'"
8026 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8027 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
8033 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8034 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8035 aros_config_ldflags=""
8037 aros_shared_default=yes
8039 aros_shared_cflags="-fPIC"
8040 aros_shared_aflags=""
8041 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8042 aros_kernel_ldflags="-Wl,-rpath,./lib"
8044 aros_target_ar_flags="cr"
8045 aros_target_nm_flags="-C -ul"
8046 aros_target_strip_flags="--strip-unneeded -R.comment"
8048 aros_compiler_libs=
8050 aros_target_genmap="-Wl,-Map -Xlinker"
8052 # Native flavour stuff
8053 aros_bochs_hack="0"
8054 aros_serial_debug="0"
8056 # Palm native flavour stuff
8057 aros_palm_debug_hack="0"
8059 # Unix flavour stuff
8060 aros_nesting_supervisor="0"
8062 # Collect-aros stuff: "-ius" to ignore undefined symbols
8063 ignore_undefined_symbols=""
8065 # X11 Xshm
8066 DO_XSHM_SUPPORT="1"
8067 DO_VIDMODE_SUPPORT="1"
8069 #-----------------------------------------------------------------------------
8071 { echo "$as_me:$LINENO: checking for type of build" >&5
8072 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8073 # Check whether --enable-build_type was given.
8074 if test "${enable_build_type+set}" = set; then
8075 enableval=$enable_build_type; build_type=$enableval
8076 else
8077 build_type="personal"
8081 if test "$build_type" = "nightly"; then
8082 build_type_string="NIGHTLY"
8083 elif test "$build_type" = "snapshot"; then
8084 build_type_string="SNAPSHOT"
8085 elif test "$build_type" = "milestone"; then
8086 build_type_string="MILESTONE"
8087 elif test "$build_type" = "release"; then
8088 build_type_string="RELEASE"
8089 else
8090 build_type_string="PERSONAL"
8091 build_type="personal"
8094 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8096 { echo "$as_me:$LINENO: result: $build_type" >&5
8097 echo "${ECHO_T}$build_type" >&6; }
8099 #-----------------------------------------------------------------------------
8100 all_debug_types="messages stack mungwall modules symbols"
8102 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8103 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8104 # Check whether --enable-debug was given.
8105 if test "${enable_debug+set}" = set; then
8106 enableval=$enable_debug; debug="$enableval"
8107 else
8108 debug=""
8112 if test "$debug" = "" -o "$debug" = "no"; then
8113 debug="none"
8114 elif test "$debug" = "yes"; then
8115 debug="all"
8118 if test "$debug" = "all" ; then
8119 debug=$all_debug_types
8120 for d in $all_debug_types; do
8121 export aros_${d}_debug="1"
8122 done
8123 else
8124 for d in $all_debug_types; do
8125 export aros_${d}_debug="0"
8126 done
8129 if test "$debug" != "none"; then
8130 debug=`echo $debug | sed s/,/\ /g`
8131 for d in $debug; do
8132 found="0"
8133 for d2 in $all_debug_types; do
8134 if test "$d2" = "$d"; then
8135 found="1"
8136 break
8138 done
8139 if test "$found" = "0"; then
8140 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8141 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8142 { (exit 1); exit 1; }; }
8144 export aros_${d}_debug="1"
8145 done
8146 aros_debug="yes"
8148 { echo "$as_me:$LINENO: result: $debug" >&5
8149 echo "${ECHO_T}$debug" >&6; }
8151 if test "$aros_messages_debug" = "1"; then
8152 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8153 else
8154 aros_messages_debug=""
8156 if test "$aros_symbols_debug" = "1"; then
8157 aros_symbols_debug="-g"
8158 else
8159 aros_symbols_debug=""
8162 # These are the flags to pass when compiling debugged programs
8163 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8164 aros_debug_aflags=""
8165 aros_debug_ldflags="$aros_symbols_debug"
8167 #-----------------------------------------------------------------------------
8168 # Checking for distcc and ccache.
8170 # Always apply the transforms in this particular order. Basically you should
8171 # always run 'ccache distcc compiler' in that order for the best performance.
8173 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8174 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8175 # Check whether --enable-distcc was given.
8176 if test "${enable_distcc+set}" = set; then
8177 enableval=$enable_distcc; distcc="$enableval"
8178 else
8179 distcc="no"
8182 if test "$distcc" != "" -a "$distcc" != "no"; then
8183 # AC_CHECK_PROG will print out the result in this case
8184 # Extract the first word of "distcc", so it can be a program name with args.
8185 set dummy distcc; ac_word=$2
8186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8188 if test "${ac_cv_path_DISTCC+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 case $DISTCC in
8192 [\\/]* | ?:[\\/]*)
8193 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8207 done
8208 done
8209 IFS=$as_save_IFS
8211 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8213 esac
8215 DISTCC=$ac_cv_path_DISTCC
8216 if test -n "$DISTCC"; then
8217 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8218 echo "${ECHO_T}$DISTCC" >&6; }
8219 else
8220 { echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6; }
8225 else
8226 { echo "$as_me:$LINENO: result: no" >&5
8227 echo "${ECHO_T}no" >&6; }
8230 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8231 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8232 # Check whether --enable-ccache was given.
8233 if test "${enable_ccache+set}" = set; then
8234 enableval=$enable_ccache; ccache="$enableval"
8235 else
8236 ccache="no"
8239 if test "$ccache" != "" -a "$ccache" != "no"; then
8240 # AC_CHECK_PROG will print out the result in this case
8241 # Extract the first word of "ccache", so it can be a program name with args.
8242 set dummy ccache; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_prog_CCACHE+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248 if test -n "$CCACHE"; then
8249 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_prog_CCACHE="ccache"
8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8262 done
8263 done
8264 IFS=$as_save_IFS
8268 CCACHE=$ac_cv_prog_CCACHE
8269 if test -n "$CCACHE"; then
8270 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8271 echo "${ECHO_T}$CCACHE" >&6; }
8272 else
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8278 else
8279 { echo "$as_me:$LINENO: result: no" >&5
8280 echo "${ECHO_T}no" >&6; }
8283 #-----------------------------------------------------------------------------
8284 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8285 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8287 # Check whether --with-optimization was given.
8288 if test "${with_optimization+set}" = set; then
8289 withval=$with_optimization; optimization="$withval"
8290 else
8291 optimization="unknown"
8294 if test "$optimization" = "unknown"; then
8295 if test "$debug" != "none"; then
8296 optimization="-O0"
8297 else
8298 optimization="-O2"
8301 aros_config_cflags="$aros_config_cflags $optimization"
8302 { echo "$as_me:$LINENO: result: $optimization" >&5
8303 echo "${ECHO_T}$optimization" >&6; }
8305 #-----------------------------------------------------------------------------
8306 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8307 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8308 # Check whether --enable-target_variant was given.
8309 if test "${enable_target_variant+set}" = set; then
8310 enableval=$enable_target_variant; target_variant=$enableval
8311 else
8312 target_variant="none"
8315 if test "$target_variant" = "none"; then
8316 aros_target_variant=""
8317 aros_target_suffix=""
8318 else
8319 aros_target_variant="$target_variant"
8320 aros_target_suffix="-$target_variant"
8322 { echo "$as_me:$LINENO: result: $enableval" >&5
8323 echo "${ECHO_T}$enableval" >&6; }
8325 #-----------------------------------------------------------------------------
8326 # This is the target configuration switch.
8327 case "$target_os" in
8328 linux*)
8329 aros_target_arch="linux"
8330 case "$target_cpu" in
8331 *m68k*)
8332 aros_target_cpu="m68k"
8333 aros_object_format="m68kelf"
8334 aros_flavour="emulcompat"
8335 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8336 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8337 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8338 gcc_target_cpu="mc68000"
8340 *i?86*)
8341 aros_target_cpu="i386"
8342 aros_object_format="elf_i386"
8343 aros_flavour="emulation"
8344 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8345 aros_default_wbdepth=8
8346 gcc_target_cpu="i386"
8348 *x86_64*)
8349 aros_target_cpu="x86_64"
8350 aros_object_format="elf_x86_64"
8351 aros_flavour="emulation"
8352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8353 aros_default_wbdepth=8
8354 gcc_target_cpu="x86_64"
8356 *powerpc*)
8357 aros_target_cpu="ppc"
8358 aros_object_format="elf32ppc"
8359 aros_flavour="emulation"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8361 aros_default_wbdepth=8
8362 gcc_target_cpu="ppc"
8365 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8366 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8367 { (exit 1); exit 1; }; }
8369 esac
8373 aros_target_arch="pc"
8374 aros_shared_default="no"
8375 case "$target_cpu" in
8376 *i?86*)
8377 aros_target_cpu="i386"
8380 if test "$aros_object_format" = "" ; then
8381 aros_object_format="elf_i386"
8383 aros_flavour="standalone"
8384 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8385 aros_kernel_ldflags=""
8386 aros_default_wbwidth=640
8387 aros_default_wbheight=480
8388 gcc_target_cpu="i386"
8390 *x86_64*)
8391 aros_target_cpu="x86_64"
8392 if test "$aros_object_format" = "" ; then
8393 aros_object_format="elf_x86_64"
8395 aros_flavour="standalone"
8396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8397 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8398 aros_kernel_ldflags=""
8399 aros_default_wbwidth=640
8400 aros_default_wbheight=480
8401 gcc_target_cpu="x86_64"
8404 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8405 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8406 { (exit 1); exit 1; }; }
8408 esac
8411 prep)
8412 aros_target_arch="prep"
8413 aros_shared_default="no"
8414 aros_target_cpu="ppc"
8415 aros_object_format="elf32ppc"
8416 aros_flavour="ppcnative"
8417 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8418 aros_kernel_ldflags=""
8419 aros_default_wbwidth=640
8420 aros_default_wbheight=480
8421 gcc_target_cpu="ppc"
8422 case "$target_cpu" in
8423 *cross*)
8424 aros_target_cc="ppc-linux-gcc -pipe"
8425 aros_target_ld="ppc-linux-ld"
8426 aros_target_as="ppc-linux-as"
8427 aros_target_ar="ppc-linux-ar"
8428 aros_target_ranlib="ppc-linux-ranlib"
8429 aros_target_nm="ppc-linux-nm"
8430 aros_target_strip="ppc-linux-strip"
8431 aros_target_objcopy="ppc-linux-objcopy"
8432 aros_target_objdump="ppc-linux-objdump"
8433 aros_shared_ld="ppc-linux-ld"
8434 aros_kernel_ld="ppc-linux-ld"
8438 esac
8441 freebsd*)
8442 aros_target_arch="freebsd"
8443 aros_target_cpu="i386"
8444 aros_flavour="emulation"
8445 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8446 gcc_target_cpu="i386"
8448 aros_target_strip_flags="-x"
8451 darwin*)
8452 aros_target_arch="darwin"
8453 aros_target_cpu="i386"
8454 aros_flavour="emulation"
8455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8456 gcc_target_cpu="i386"
8458 aros_target_strip_flags="-x"
8461 netbsd*)
8462 aros_target_arch="netbsd"
8463 case "$target_cpu" in
8464 *m68k*)
8465 aros_target_cpu="m68k"
8466 aros_object_format="m68kelf"
8467 aros_flavour="emulcompat"
8468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8469 gcc_target_cpu="mc68000"
8471 *i?86*)
8472 aros_target_cpu="i386"
8473 aros_object_format="elf_i386"
8474 aros_flavour="emulation"
8475 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8476 aros_default_wbdepth=8
8477 gcc_target_cpu="i386"
8480 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8481 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8482 { (exit 1); exit 1; }; }
8484 esac
8485 aros_target_genmap="-Wl,-M -Xlinker >"
8486 aros_flavour="emulation"
8487 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8490 openbsd*)
8491 aros_target_arch="openbsd"
8492 case "$target_cpu" in
8493 *i?86*)
8494 aros_target_cpu="i386"
8495 aros_object_format="elf_i386"
8496 aros_flavour="emulation"
8497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8498 gcc_target_cpu="i386"
8501 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8502 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8503 { (exit 1); exit 1; }; }
8505 esac
8506 aros_target_genmap="-Wl,-M -Xlinker >"
8507 aros_target_nm_flags="-u"
8508 aros_flavour="emulation"
8511 solaris*)
8512 aros_target_arch="solaris"
8513 case "$target_cpu" in
8514 *sparc*)
8515 aros_target_cpu="sparc"
8516 aros_object_format="elf_sparc"
8517 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8518 gcc_target_cpu="sparc"
8521 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8522 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8523 { (exit 1); exit 1; }; }
8525 esac
8526 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8527 aros_flavour="emulation"
8530 morphos*)
8531 aros_target_arch="morphos"
8532 aros_shared_default="no"
8533 aros_target_cpu="ppc"
8534 aros_object_format="elf_ppc"
8535 aros_flavour="nativecompat"
8536 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8537 gcc_target_cpu="ppc"
8540 amiga*)
8541 aros_target_arch="amiga"
8542 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8543 aros_shared_default="no"
8545 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8547 case "$target_cpu" in
8548 *m68k*)
8549 aros_target_cpu="m68k"
8550 aros_object_format="m68kelf"
8551 aros_flavour="nativecompat"
8552 gcc_target_cpu="mc68000"
8554 *ppc*)
8555 aros_cpu="ppc"
8556 aros_flavour="native"
8557 gcc_target_cpu="ppc"
8560 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8561 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8562 { (exit 1); exit 1; }; }
8564 esac
8567 cygwin*)
8568 aros_target_arch="cygwin"
8569 aros_shared_default="no"
8570 case "$target_cpu" in
8571 *i?86*)
8572 aros_target_cpu="i386"
8573 aros_object_format="elf_i386"
8574 aros_flavour="emulation"
8575 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8576 aros_shared_cflags=""
8577 aros_default_wbdepth=8
8578 gcc_target_cpu="i386"
8581 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8582 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8583 { (exit 1); exit 1; }; }
8585 esac
8587 pp*)
8588 aros_target_arch="pp"
8589 aros_shared_default="no"
8590 case "$target_cpu" in
8591 *m68k*)
8592 aros_target_cpu="m68k"
8593 aros_object_format="m68kelf"
8594 aros_flavour="palmnative"
8595 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8596 aros_kernel_ldflags=""
8597 aros_default_wbwidth=160
8598 aros_default_wbheight=160
8599 aros_default_wbdepth=1
8600 aros_target_cc="m68k-elf-gcc -pipe"
8601 aros_target_ld="$(which m68k-elf-ld)"
8602 aros_target_as="m68k-elf-gcc -pipe"
8603 aros_shared_ld="m68k-elf-gcc"
8604 aros_kernel_ld="m68k-elf-gcc"
8605 aros_target_ar="m68k-elf-ar"
8606 aros_target_ar_flags="cru"
8607 aros_target_ranlib="m68k-elf-ranlib"
8608 aros_target_nm="m68k-elf-nm"
8609 aros_target_objcopy="m68k-elf-objcopy"
8610 aros_target_objdump="m68k-elf-objdump"
8611 aros_compiler_libs="-lgcc1"
8612 aros_shared_default=no
8613 aros_shared_cflags="-fpic"
8614 aros_shared_aflags=""
8615 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8616 aros_kernel_ldflags="-Wl,-rpath,./lib"
8617 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8618 aros_debug_aflags=""
8619 aros_debug_ldflags="$aros_symbols_debug"
8620 aros_mungwall_debug="0"
8621 aros_modules_debug="0"
8622 gcc_target_cpu="mc68000"
8623 ignore_undefined_symbols="-ius"
8626 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8627 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8628 { (exit 1); exit 1; }; }
8630 esac
8633 mac*)
8634 aros_target_arch="mac"
8635 aros_shared_default="no"
8636 case "$target_cpu" in
8637 *m68k*)
8638 aros_target_cpu="m68k"
8639 aros_object_format="m68kelf"
8640 aros_flavour="mac68knative"
8641 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8642 aros_default_wbwidth=512
8643 aros_default_wbheight=384
8644 aros_default_wbdepth=8
8645 aros_target_cc="m68k-elf-gcc -pipe"
8646 aros_target_ld="$(which m68k-elf-ld)"
8647 aros_target_as="m68k-elf-gcc -pipe"
8648 aros_shared_ld="m68k-elf-gcc"
8649 aros_kernel_ld="m68k-elf-gcc"
8650 aros_target_ar="m68k-elf-ar"
8651 aros_target_ar_flags="cru"
8652 aros_target_ranlib="m68k-elf-ranlib"
8653 aros_target_nm="m68k-elf-nm"
8654 aros_target_objcopy="m68k-elf-objcopy"
8655 aros_target_objdump="m68k-elf-objdump"
8656 aros_compiler_libs="-lgcc1"
8657 aros_shared_default=no
8658 aros_shared_cflags="-fpic"
8659 aros_shared_aflags=""
8660 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8661 aros_kernel_ldflags="-Wl,-rpath,./lib"
8662 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8663 aros_debug_aflags=""
8664 aros_debug_ldflags="$aros_symbols_debug"
8665 aros_mungwall_debug="0"
8666 aros_modules_debug="0"
8667 gcc_target_cpu="mc68000"
8668 ignore_undefined_symbols="-ius"
8671 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8672 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8673 { (exit 1); exit 1; }; }
8675 esac
8679 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8680 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8681 { (exit 1); exit 1; }; }
8683 esac
8686 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8687 # for target code)
8688 cross_compiling=no
8689 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8690 cross_compiling=yes
8692 if test "$aros_host_arch" == "darwin" ; then
8693 cross_compiling=yes
8696 # Set prefix for target compiler etc. if we're cross-compiling
8697 # (should possibly be earlier but needs to be after AC_PROG_CC)
8698 if test "$cross_compiling" = "yes" ; then
8699 target_tool_prefix=${target_cpu}-elf-
8700 CC=${target_tool_prefix}gcc
8703 # Find all the tools we need to compile. This could be cross-compiling
8704 # though! If that is the case we use the GNU form of the target and
8705 # simply add this to the front of the binary name. This is rather simple,
8706 # but it should work under most circumstances.
8708 # The default tools are to use the same as the host, but only if the
8709 # host and target CPU are the same. With GCC this is normally enough.
8712 aros_cc_pre=""
8713 aros_shared_ld="$aros_host_ld"
8715 aros_target_mkdep="$aros_host_mkdep"
8716 aros_target_incl_def="$aros_host_incl"
8718 # Extract the first word of "$CC", so it can be a program name with args.
8719 set dummy $CC; ac_word=$2
8720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8722 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725 case $aros_kernel_cc in
8726 [\\/]* | ?:[\\/]*)
8727 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8737 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 break 2
8741 done
8742 done
8743 IFS=$as_save_IFS
8746 esac
8748 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8749 if test -n "$aros_kernel_cc"; then
8750 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8751 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8752 else
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8759 # The default tools executables to be linked to.
8761 if test "$cross_compiling" = "yes" ; then
8762 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8763 set dummy ${target_tool_prefix}as; ac_word=$2
8764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8766 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 case $aros_target_as_ln in
8770 [\\/]* | ?:[\\/]*)
8771 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8781 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8785 done
8786 done
8787 IFS=$as_save_IFS
8790 esac
8792 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8793 if test -n "$aros_target_as_ln"; then
8794 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8795 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8796 else
8797 { echo "$as_me:$LINENO: result: no" >&5
8798 echo "${ECHO_T}no" >&6; }
8802 else
8803 if test "$GCC" = "yes"; then
8804 aros_gcc_as=`$CC -print-prog-name=as`
8805 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8806 set dummy `basename $aros_gcc_as`; ac_word=$2
8807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8809 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812 case $aros_target_as_ln in
8813 [\\/]* | ?:[\\/]*)
8814 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in `dirname $aros_gcc_as`
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
8822 for ac_exec_ext in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 break 2
8828 done
8829 done
8830 IFS=$as_save_IFS
8833 esac
8835 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8836 if test -n "$aros_target_as_ln"; then
8837 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8838 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8839 else
8840 { echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6; }
8846 if test "$aros_target_as_ln" = ""; then
8847 # Extract the first word of "as", so it can be a program name with args.
8848 set dummy as; ac_word=$2
8849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8851 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 case $aros_target_as_ln in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8870 done
8871 done
8872 IFS=$as_save_IFS
8875 esac
8877 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8878 if test -n "$aros_target_as_ln"; then
8879 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8880 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8881 else
8882 { echo "$as_me:$LINENO: result: no" >&5
8883 echo "${ECHO_T}no" >&6; }
8890 if test "$aros_target_as_ln" = ""; then
8891 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8892 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8893 { (exit 1); exit 1; }; }
8896 if test "$cross_compiling" = "yes" ; then
8897 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8898 set dummy ${target_tool_prefix}ld; ac_word=$2
8899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8901 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904 case $aros_kernel_ld in
8905 [\\/]* | ?:[\\/]*)
8906 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8920 done
8921 done
8922 IFS=$as_save_IFS
8925 esac
8927 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8928 if test -n "$aros_kernel_ld"; then
8929 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8930 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8931 else
8932 { echo "$as_me:$LINENO: result: no" >&5
8933 echo "${ECHO_T}no" >&6; }
8937 else
8938 if test "$GCC" = "yes"; then
8939 aros_gcc_ld=`$CC -print-prog-name=ld`
8940 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8941 set dummy `basename $aros_gcc_ld`; ac_word=$2
8942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8944 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947 case $aros_kernel_ld in
8948 [\\/]* | ?:[\\/]*)
8949 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in `dirname $aros_gcc_ld`
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8959 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 break 2
8963 done
8964 done
8965 IFS=$as_save_IFS
8968 esac
8970 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8971 if test -n "$aros_kernel_ld"; then
8972 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8973 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8974 else
8975 { echo "$as_me:$LINENO: result: no" >&5
8976 echo "${ECHO_T}no" >&6; }
8981 if test "$aros_kernel_ld" = ""; then
8982 # Extract the first word of "ld", so it can be a program name with args.
8983 set dummy ld; ac_word=$2
8984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8986 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989 case $aros_kernel_ld in
8990 [\\/]* | ?:[\\/]*)
8991 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 for as_dir in $PATH
8997 IFS=$as_save_IFS
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9001 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 break 2
9005 done
9006 done
9007 IFS=$as_save_IFS
9010 esac
9012 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9013 if test -n "$aros_kernel_ld"; then
9014 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9015 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9016 else
9017 { echo "$as_me:$LINENO: result: no" >&5
9018 echo "${ECHO_T}no" >&6; }
9025 if test "$aros_kernel_ld" = ""; then
9026 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9027 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9028 { (exit 1); exit 1; }; }
9031 if test "$cross_compiling" = "yes" ; then
9032 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9033 set dummy ${target_tool_prefix}ar; ac_word=$2
9034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9036 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 case $aros_target_ar_ln in
9040 [\\/]* | ?:[\\/]*)
9041 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9051 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9055 done
9056 done
9057 IFS=$as_save_IFS
9060 esac
9062 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9063 if test -n "$aros_target_ar_ln"; then
9064 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9065 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9066 else
9067 { echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6; }
9072 else
9073 if test "$GCC" = "yes"; then
9074 aros_gcc_ar=`$CC -print-prog-name=ar`
9075 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9076 set dummy `basename $aros_gcc_ar`; ac_word=$2
9077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9079 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082 case $aros_target_ar_ln in
9083 [\\/]* | ?:[\\/]*)
9084 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in `dirname $aros_gcc_ar`
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 break 2
9098 done
9099 done
9100 IFS=$as_save_IFS
9103 esac
9105 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9106 if test -n "$aros_target_ar_ln"; then
9107 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9108 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9109 else
9110 { echo "$as_me:$LINENO: result: no" >&5
9111 echo "${ECHO_T}no" >&6; }
9116 if test "$aros_target_ar_ln" = ""; then
9117 # Extract the first word of "ar", so it can be a program name with args.
9118 set dummy ar; ac_word=$2
9119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9121 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 case $aros_target_ar_ln in
9125 [\\/]* | ?:[\\/]*)
9126 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9140 done
9141 done
9142 IFS=$as_save_IFS
9145 esac
9147 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9148 if test -n "$aros_target_ar_ln"; then
9149 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9150 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9151 else
9152 { echo "$as_me:$LINENO: result: no" >&5
9153 echo "${ECHO_T}no" >&6; }
9160 if test "$aros_target_ar_ln" = ""; then
9161 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9162 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9163 { (exit 1); exit 1; }; }
9166 if test "$cross_compiling" = "yes" ; then
9167 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9168 set dummy ${target_tool_prefix}nm; ac_word=$2
9169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9171 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174 case $aros_target_nm_ln in
9175 [\\/]* | ?:[\\/]*)
9176 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9188 break 2
9190 done
9191 done
9192 IFS=$as_save_IFS
9195 esac
9197 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9198 if test -n "$aros_target_nm_ln"; then
9199 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9200 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9201 else
9202 { echo "$as_me:$LINENO: result: no" >&5
9203 echo "${ECHO_T}no" >&6; }
9207 else
9208 if test "$GCC" = "yes"; then
9209 aros_gcc_nm=`$CC -print-prog-name=nm`
9210 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9211 set dummy `basename $aros_gcc_nm`; ac_word=$2
9212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9214 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217 case $aros_target_nm_ln in
9218 [\\/]* | ?:[\\/]*)
9219 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in `dirname $aros_gcc_nm`
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9231 break 2
9233 done
9234 done
9235 IFS=$as_save_IFS
9238 esac
9240 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9241 if test -n "$aros_target_nm_ln"; then
9242 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9243 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9244 else
9245 { echo "$as_me:$LINENO: result: no" >&5
9246 echo "${ECHO_T}no" >&6; }
9251 if test "$aros_target_nm_ln" = ""; then
9252 # Extract the first word of "nm", so it can be a program name with args.
9253 set dummy nm; ac_word=$2
9254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9256 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 case $aros_target_nm_ln in
9260 [\\/]* | ?:[\\/]*)
9261 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 for as_dir in $PATH
9267 IFS=$as_save_IFS
9268 test -z "$as_dir" && as_dir=.
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9271 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 break 2
9275 done
9276 done
9277 IFS=$as_save_IFS
9280 esac
9282 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9283 if test -n "$aros_target_nm_ln"; then
9284 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9285 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9286 else
9287 { echo "$as_me:$LINENO: result: no" >&5
9288 echo "${ECHO_T}no" >&6; }
9295 if test "$aros_target_nm_ln" = ""; then
9296 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9297 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9298 { (exit 1); exit 1; }; }
9301 if test "$cross_compiling" = "yes" ; then
9302 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9303 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9306 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309 case $aros_target_objcopy_ln in
9310 [\\/]* | ?:[\\/]*)
9311 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in $PATH
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9321 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 break 2
9325 done
9326 done
9327 IFS=$as_save_IFS
9330 esac
9332 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9333 if test -n "$aros_target_objcopy_ln"; then
9334 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9335 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9336 else
9337 { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9342 else
9343 if test "$GCC" = "yes"; then
9344 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9345 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9346 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9349 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 case $aros_target_objcopy_ln in
9353 [\\/]* | ?:[\\/]*)
9354 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in `dirname $aros_gcc_objcopy`
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9364 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9368 done
9369 done
9370 IFS=$as_save_IFS
9373 esac
9375 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9376 if test -n "$aros_target_objcopy_ln"; then
9377 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9378 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9379 else
9380 { echo "$as_me:$LINENO: result: no" >&5
9381 echo "${ECHO_T}no" >&6; }
9386 if test "$aros_target_objcopy_ln" = ""; then
9387 # Extract the first word of "objcopy", so it can be a program name with args.
9388 set dummy objcopy; ac_word=$2
9389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9391 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394 case $aros_target_objcopy_ln in
9395 [\\/]* | ?:[\\/]*)
9396 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9410 done
9411 done
9412 IFS=$as_save_IFS
9415 esac
9417 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9418 if test -n "$aros_target_objcopy_ln"; then
9419 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9420 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9421 else
9422 { echo "$as_me:$LINENO: result: no" >&5
9423 echo "${ECHO_T}no" >&6; }
9430 if test "$aros_target_objcopy_ln" = ""; then
9431 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9432 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9433 { (exit 1); exit 1; }; }
9436 if test "$cross_compiling" = "yes" ; then
9437 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9438 set dummy ${target_tool_prefix}objdump; ac_word=$2
9439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9441 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 case $aros_target_objdump_ln in
9445 [\\/]* | ?:[\\/]*)
9446 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9460 done
9461 done
9462 IFS=$as_save_IFS
9465 esac
9467 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9468 if test -n "$aros_target_objdump_ln"; then
9469 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9470 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9471 else
9472 { echo "$as_me:$LINENO: result: no" >&5
9473 echo "${ECHO_T}no" >&6; }
9477 else
9478 if test "$GCC" = "yes"; then
9479 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9480 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9481 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9484 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 case $aros_target_objdump_ln in
9488 [\\/]* | ?:[\\/]*)
9489 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in `dirname $aros_gcc_objdump`
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9503 done
9504 done
9505 IFS=$as_save_IFS
9508 esac
9510 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9511 if test -n "$aros_target_objdump_ln"; then
9512 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9513 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9514 else
9515 { echo "$as_me:$LINENO: result: no" >&5
9516 echo "${ECHO_T}no" >&6; }
9521 if test "$aros_target_objdump_ln" = ""; then
9522 # Extract the first word of "objdump", so it can be a program name with args.
9523 set dummy objdump; ac_word=$2
9524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9526 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 case $aros_target_objdump_ln in
9530 [\\/]* | ?:[\\/]*)
9531 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in $PATH
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9541 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9545 done
9546 done
9547 IFS=$as_save_IFS
9550 esac
9552 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9553 if test -n "$aros_target_objdump_ln"; then
9554 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9555 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9556 else
9557 { echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6; }
9565 if test "$aros_target_objdump_ln" = ""; then
9566 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9567 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9568 { (exit 1); exit 1; }; }
9571 if test "$cross_compiling" = "yes" ; then
9572 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9573 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9576 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579 case $aros_target_ranlib_ln in
9580 [\\/]* | ?:[\\/]*)
9581 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9591 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 break 2
9595 done
9596 done
9597 IFS=$as_save_IFS
9600 esac
9602 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9603 if test -n "$aros_target_ranlib_ln"; then
9604 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9605 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9606 else
9607 { echo "$as_me:$LINENO: result: no" >&5
9608 echo "${ECHO_T}no" >&6; }
9612 else
9613 if test "$GCC" = "yes"; then
9614 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9615 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9616 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9619 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 case $aros_target_ranlib_ln in
9623 [\\/]* | ?:[\\/]*)
9624 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 for as_dir in `dirname $aros_gcc_ranlib`
9630 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9634 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 break 2
9638 done
9639 done
9640 IFS=$as_save_IFS
9643 esac
9645 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9646 if test -n "$aros_target_ranlib_ln"; then
9647 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9648 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9649 else
9650 { echo "$as_me:$LINENO: result: no" >&5
9651 echo "${ECHO_T}no" >&6; }
9656 if test "$aros_target_ranlib_ln" = ""; then
9657 # Extract the first word of "ranlib", so it can be a program name with args.
9658 set dummy ranlib; ac_word=$2
9659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9661 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664 case $aros_target_ranlib_ln in
9665 [\\/]* | ?:[\\/]*)
9666 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9676 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 break 2
9680 done
9681 done
9682 IFS=$as_save_IFS
9685 esac
9687 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9688 if test -n "$aros_target_ranlib_ln"; then
9689 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9690 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9691 else
9692 { echo "$as_me:$LINENO: result: no" >&5
9693 echo "${ECHO_T}no" >&6; }
9700 if test "$aros_target_ranlib_ln" = ""; then
9701 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9702 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9703 { (exit 1); exit 1; }; }
9706 if test "$cross_compiling" = "yes" ; then
9707 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9708 set dummy ${target_tool_prefix}strip; ac_word=$2
9709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9711 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 case $aros_target_strip_ln in
9715 [\\/]* | ?:[\\/]*)
9716 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 break 2
9730 done
9731 done
9732 IFS=$as_save_IFS
9735 esac
9737 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9738 if test -n "$aros_target_strip_ln"; then
9739 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9740 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9741 else
9742 { echo "$as_me:$LINENO: result: no" >&5
9743 echo "${ECHO_T}no" >&6; }
9747 else
9748 if test "$GCC" = "yes"; then
9749 aros_gcc_strip=`$CC -print-prog-name=strip`
9750 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9751 set dummy `basename $aros_gcc_strip`; ac_word=$2
9752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9754 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 case $aros_target_strip_ln in
9758 [\\/]* | ?:[\\/]*)
9759 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in `dirname $aros_gcc_strip`
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9778 esac
9780 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9781 if test -n "$aros_target_strip_ln"; then
9782 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9783 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9784 else
9785 { echo "$as_me:$LINENO: result: no" >&5
9786 echo "${ECHO_T}no" >&6; }
9791 if test "$aros_target_strip_ln" = ""; then
9792 # Extract the first word of "strip", so it can be a program name with args.
9793 set dummy strip; ac_word=$2
9794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9796 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799 case $aros_target_strip_ln in
9800 [\\/]* | ?:[\\/]*)
9801 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9820 esac
9822 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9823 if test -n "$aros_target_strip_ln"; then
9824 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9825 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9826 else
9827 { echo "$as_me:$LINENO: result: no" >&5
9828 echo "${ECHO_T}no" >&6; }
9835 if test "$aros_target_strip_ln" = ""; then
9836 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9837 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9838 { (exit 1); exit 1; }; }
9841 if test "$GCC" = "yes"; then
9842 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9845 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9846 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9847 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9848 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9849 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9850 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9851 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9853 # aros_cc_pre is a variable that is added to the front of the compiler name
9854 # in the generated aros-gcc shell script. We need this to enable the cache
9855 # to work across cleaned builds. Also, support DISTCC using the correct
9856 # environment variable.
9859 if test "x${DISTCC}" != "x" ; then
9860 if test "x${CCACHE}" != "x" ; then
9861 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9862 else
9863 aros_cc_pre="${DISTCC} "
9865 else
9866 if test "x${CCACHE}" != "x" ; then
9867 aros_cc_pre="${CCACHE} "
9871 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9873 aros_target_nostdinc_cflags=-nostdinc
9875 aros_target_nostartup_ldflags=-nostartfiles
9877 aros_target_nix_ldflags=-nix
9879 aros_target_detach_ldflags=-detach
9881 aros_target_nostdlib_ldflags=-nostdlib
9884 # Target tools
9885 aros_target_cc="${prefix}-gcc"
9886 aros_target_as="${prefix}-as"
9887 aros_target_ld="${prefix}-ld"
9888 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9889 aros_target_objcopy=${prefix}-objcopy
9890 aros_target_objdump=${prefix}-objdump
9891 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9892 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9893 aros_kernel_nm="${prefix}-nm"
9894 aros_target_strip=${prefix}-strip
9896 #-----------------------------------------------------------------------------
9897 # See if we can compile SHM support
9898 HAVE_XSHM_SUPPORT=0
9899 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
9900 { echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
9901 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6; }
9902 if test -z "$x_includes" ; then
9903 CFLAGS=""
9904 else
9905 CFLAGS="-I $x_includes"
9907 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 #include <sys/types.h>
9916 #include <X11/Xlib.h>
9917 #include <X11/Xutil.h>
9918 #include <X11/keysym.h>
9919 #include <X11/cursorfont.h>
9920 #include <sys/ipc.h>
9921 #include <sys/shm.h>
9922 #include <X11/extensions/XShm.h>
9924 main ()
9927 static XShmSegmentInfo shminfo;
9928 static Display *display;
9929 XShmAttach(display, &shminfo);
9930 XSync(display,0);
9931 shmctl(shminfo.shmid, IPC_RMID, 0);
9934 return 0;
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9939 case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_link") 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest$ac_exeext &&
9954 $as_test_x conftest$ac_exeext; then
9955 HAVE_XSHM_SUPPORT=1
9956 { echo "$as_me:$LINENO: result: yes" >&5
9957 echo "${ECHO_T}yes" >&6; }
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 HAVE_XSHM_SUPPORT=0
9963 { echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6; }
9967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9968 conftest$ac_exeext conftest.$ac_ext
9971 #-----------------------------------------------------------------------------
9972 # See if we can compile VIDMODE support
9973 HAVE_VIDMODE_SUPPORT=0
9974 if [ "x$no_x" != "xyes" ]; then
9975 LIBS=""
9976 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9977 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9978 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-lXxf86vm -L/usr/X11R6/lib -lXext -lX11 $LIBS"
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char XF86VidModeQueryExtension ();
9998 main ()
10000 return XF86VidModeQueryExtension ();
10002 return 0;
10004 _ACEOF
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (ac_try="$ac_link"
10007 case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_link") 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && {
10019 test -z "$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 } && test -s conftest$ac_exeext &&
10022 $as_test_x conftest$ac_exeext; then
10023 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10024 else
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10035 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10036 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10037 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10038 HAVE_VIDMODE_SUPPORT=1
10039 else
10040 HAVE_VIDMODE_SUPPORT=0
10046 # Find the system include path. We can suggest that an alternative is
10047 # used if we don't get it correct. The default is to use /usr/include.
10048 # Which is set in the aros_target_incl_def variable.
10050 # Check whether --enable-includes was given.
10051 if test "${enable_includes+set}" = set; then
10052 enableval=$enable_includes; aros_target_incl=$enable_includes
10053 else
10054 aros_target_incl=$aros_target_incl_def
10058 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10059 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10060 if test "$aros_target_cc_includes" = "" ; then
10061 #try to guess where the directory is
10062 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10063 if ! test -d $aros_target_cc_includes; then
10064 #the directory doesn't exist, we need to do some more work
10065 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10067 #these are the headers we're looling for
10068 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10069 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10070 zutil.h"
10072 dirs=
10073 for h in $headers; do
10074 #which other headers each of the above headers needs?
10075 deps=$(echo "#include <$h>" | \
10076 $aros_host_cc -E -M - 2>/dev/null | \
10077 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10079 #copy all the needed headers to a directory beneath gendir
10080 for d in $deps; do
10081 h=$(basename $d)
10082 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10083 sed -n "s,^.*/include\(/.*\),\1,p")
10084 ! test -d $dir && mkdir -p $dir
10085 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10086 done
10087 done
10090 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10091 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10093 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10094 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
10096 # Check whether --with-resolution was given.
10097 if test "${with_resolution+set}" = set; then
10098 withval=$with_resolution; resolution=$withval
10099 else
10100 resolution=none
10103 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10104 if test "$resolution" = "yes" ; then
10105 resolution="none"
10107 if test "$resolution" = "no" ; then
10108 resolution="none"
10110 if test "$resolution" != "none" ; then
10111 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10112 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10113 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10115 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10116 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10117 aros_cv_default_wbwidth=$aros_default_wbwidth
10118 aros_cv_default_wbheight=$aros_default_wbheight
10119 aros_cv_default_wbdepth=$aros_default_wbdepth
10121 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
10122 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
10123 # Check whether --enable-bochs_hack was given.
10124 if test "${enable_bochs_hack+set}" = set; then
10125 enableval=$enable_bochs_hack; bochs_hack="yes"
10126 else
10127 bochs_hack="no"
10130 if test "$bochs_hack" = "yes" ; then
10131 aros_bochs_hack="1"
10133 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
10134 echo "${ECHO_T}$bochs_hack" >&6; }
10136 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
10137 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
10139 # Check whether --with-serial-debug was given.
10140 if test "${with_serial_debug+set}" = set; then
10141 withval=$with_serial_debug; serial_debug=$withval
10142 else
10143 serial_debug=none
10146 if test "$serial_debug" = "yes" ; then
10147 serial_debug="2"
10149 if test "$serial_debug" = "no" ; then
10150 serial_debug="none"
10152 if test "$serial_debug" != "none" ; then
10153 aros_serial_debug=$serial_debug
10154 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
10155 echo "${ECHO_T}on port $serial_debug" >&6; }
10156 else
10157 { echo "$as_me:$LINENO: result: no" >&5
10158 echo "${ECHO_T}no" >&6; }
10161 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
10162 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
10163 # Check whether --enable-palm_debug_hack was given.
10164 if test "${enable_palm_debug_hack+set}" = set; then
10165 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10166 else
10167 palm_debug_hack="no"
10170 if test "$palm_debug_hack" = "yes" ; then
10171 aros_palm_debug_hack="1"
10173 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
10174 echo "${ECHO_T}$palm_debug_hack" >&6; }
10177 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
10178 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
10179 # Check whether --enable-nesting_supervisor was given.
10180 if test "${enable_nesting_supervisor+set}" = set; then
10181 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10182 else
10183 nesting_supervisor="no"
10186 if test "$nesting_supervisor" = "yes" ; then
10187 aros_nesting_supervisor="1"
10189 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
10190 echo "${ECHO_T}$nesting_supervisor" >&6; }
10194 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
10195 { echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
10196 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6; }
10197 # Check whether --enable-xshm_extension was given.
10198 if test "${enable_xshm_extension+set}" = set; then
10199 enableval=$enable_xshm_extension; xshm_extension="$enableval"
10200 else
10201 xshm_extension="yes"
10204 if test "$xshm_extension" = "no" ; then
10205 DO_XSHM_SUPPORT="0"
10207 { echo "$as_me:$LINENO: result: $xshm_extension" >&5
10208 echo "${ECHO_T}$xshm_extension" >&6; }
10209 else
10210 DO_XSHM_SUPPORT="0"
10213 if test "$HAVE_VIDMODE_SUPPORT" = "1" ; then
10214 { echo "$as_me:$LINENO: checking if vidmode extension is enabled" >&5
10215 echo $ECHO_N "checking if vidmode extension is enabled... $ECHO_C" >&6; }
10216 # Check whether --enable-vidmodeextension was given.
10217 if test "${enable_vidmodeextension+set}" = set; then
10218 enableval=$enable_vidmodeextension; vidmode_extension="$enableval"
10219 else
10220 vidmode_extension="yes"
10223 if test "$vidmode_extension" = "no" ; then
10224 DO_VIDMODE_SUPPORT="0"
10226 { echo "$as_me:$LINENO: result: $vidmode_extension" >&5
10227 echo "${ECHO_T}$vidmode_extension" >&6; }
10228 else
10229 DO_VIDMODE_SUPPORT="0"
10233 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
10234 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
10235 # Check whether --enable-dbus was given.
10236 if test "${enable_dbus+set}" = set; then
10237 enableval=$enable_dbus; dbus="yes"
10238 else
10239 dbus="no"
10242 if test "$dbus" = "yes" ; then
10243 ENABLE_DBUS=1
10244 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10245 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10246 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10247 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10248 else
10249 ENABLE_DBUS=0
10251 { echo "$as_me:$LINENO: result: $dbus" >&5
10252 echo "${ECHO_T}$dbus" >&6; }
10256 # Generic
10263 # Host related
10286 # Target Related
10325 # Graphics Related
10338 # Native version related
10342 # Palm native version related
10345 # Unix/Hosted version related
10348 # DBUS related
10355 # Debug related
10361 # Collect-aros stuff: "-ius" to ignore undefined symbols
10364 # C compiler related
10367 case "$aros_flavour" in
10368 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10369 aros_flavour="emulation" ;;
10370 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10371 aros_flavour="emulation" ;;
10372 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10373 aros_flavour="standalone";;
10374 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10375 aros_flavour="native" ;;
10376 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10377 aros_flavour="native" ;;
10378 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10379 aros_flavour="linklib" ;;
10380 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10381 aros_flavour="palmnative" ;;
10382 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10383 aros_flavour="mac68knative" ;;
10384 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10385 aros_flavour="ppcnative" ;;
10386 esac
10388 if test -z "$aros_gui_basedir" ; then
10389 aros_gui_libdir="$x_libraries"
10390 if test -z "$x_libraries" ; then
10391 aros_gui_ldflags=""
10392 else
10393 aros_gui_ldflags="-L $x_libraries"
10395 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
10396 aros_gui_libflags="-lX11 -lXext"
10397 else
10398 aros_gui_libflags="-lX11"
10400 if test "$HAVE_VIDMODE_SUPPORT" = "1"; then
10401 aros_gui_libflags="$aros_gui_libflags -lXxf86vm"
10404 aros_gui_incdir="$x_includes"
10405 if test -z "$x_includes" ; then
10406 aros_gui_ccflags=""
10407 else
10408 aros_gui_ccflags="-I $x_includes"
10410 else
10411 if test -n "$aros_gui_basedir" ; then
10412 aros_gui_libdir="${aros_gui_basedir}/lib"
10413 aros_gui_incdir="${aros_gui_basedir}/include"
10416 if test -n "$aros_gui_libdir" ; then
10417 aros_gui_ldflags="-L ${aros_gui_libdir}"
10420 if test -n "$aros_gui_incdir" ; then
10421 aros_gui_ccflags="-I ${aros_gui_incdir}"
10422 else
10423 aros_gui_incdir="${aros_sysincludes}"
10424 aros_gui_ccflags=""
10428 if test ! -d ${aros_inc_dir} ; then
10429 ${MKDIR} ${aros_inc_dir}
10431 if test ! -d ${aros_geninc_dir} ; then
10432 ${MKDIR} ${aros_geninc_dir}
10434 if test ! -d ${aros_hostcfg_dir} ; then
10435 ${MKDIR} ${aros_hostcfg_dir}
10437 if test ! -d ${aros_targetcfg_dir} ; then
10438 ${MKDIR} ${aros_targetcfg_dir}
10440 if test ! -d ${aros_tools_dir} ; then
10441 ${MKDIR} ${aros_tools_dir}
10443 if test ! -d ${aros_scripts_dir} ; then
10444 ${MKDIR} ${aros_scripts_dir}
10447 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10450 ac_config_commands="$ac_config_commands compiler_executable"
10452 ac_config_commands="$ac_config_commands genshared_executable"
10454 ac_config_commands="$ac_config_commands genmf_executable"
10456 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
10459 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"
10462 cat >confcache <<\_ACEOF
10463 # This file is a shell script that caches the results of configure
10464 # tests run on this system so they can be shared between configure
10465 # scripts and configure runs, see configure's option --config-cache.
10466 # It is not useful on other systems. If it contains results you don't
10467 # want to keep, you may remove or edit it.
10469 # config.status only pays attention to the cache file if you give it
10470 # the --recheck option to rerun configure.
10472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10474 # following values.
10476 _ACEOF
10478 # The following way of writing the cache mishandles newlines in values,
10479 # but we know of no workaround that is simple, portable, and efficient.
10480 # So, we kill variables containing newlines.
10481 # Ultrix sh set writes to stderr and can't be redirected directly,
10482 # and sets the high bit in the cache file unless we assign to the vars.
10484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10485 eval ac_val=\$$ac_var
10486 case $ac_val in #(
10487 *${as_nl}*)
10488 case $ac_var in #(
10489 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10490 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10491 esac
10492 case $ac_var in #(
10493 _ | IFS | as_nl) ;; #(
10494 *) $as_unset $ac_var ;;
10495 esac ;;
10496 esac
10497 done
10499 (set) 2>&1 |
10500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10501 *${as_nl}ac_space=\ *)
10502 # `set' does not quote correctly, so add quotes (double-quote
10503 # substitution turns \\\\ into \\, and sed turns \\ into \).
10504 sed -n \
10505 "s/'/'\\\\''/g;
10506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10507 ;; #(
10509 # `set' quotes correctly as required by POSIX, so do not add quotes.
10510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10512 esac |
10513 sort
10515 sed '
10516 /^ac_cv_env_/b end
10517 t clear
10518 :clear
10519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10520 t end
10521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10522 :end' >>confcache
10523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10524 if test -w "$cache_file"; then
10525 test "x$cache_file" != "x/dev/null" &&
10526 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10527 echo "$as_me: updating cache $cache_file" >&6;}
10528 cat confcache >$cache_file
10529 else
10530 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10531 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10534 rm -f confcache
10536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10537 # Let make expand exec_prefix.
10538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10540 DEFS=-DHAVE_CONFIG_H
10542 ac_libobjs=
10543 ac_ltlibobjs=
10544 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10545 # 1. Remove the extension, and $U if already installed.
10546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10547 ac_i=`echo "$ac_i" | sed "$ac_script"`
10548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10549 # will be set to the directory where LIBOBJS objects are built.
10550 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10551 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10552 done
10553 LIBOBJS=$ac_libobjs
10555 LTLIBOBJS=$ac_ltlibobjs
10559 : ${CONFIG_STATUS=./config.status}
10560 ac_clean_files_save=$ac_clean_files
10561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10562 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10563 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10564 cat >$CONFIG_STATUS <<_ACEOF
10565 #! $SHELL
10566 # Generated by $as_me.
10567 # Run this file to recreate the current configuration.
10568 # Compiler output produced by configure, useful for debugging
10569 # configure, is in config.log if it exists.
10571 debug=false
10572 ac_cs_recheck=false
10573 ac_cs_silent=false
10574 SHELL=\${CONFIG_SHELL-$SHELL}
10575 _ACEOF
10577 cat >>$CONFIG_STATUS <<\_ACEOF
10578 ## --------------------- ##
10579 ## M4sh Initialization. ##
10580 ## --------------------- ##
10582 # Be more Bourne compatible
10583 DUALCASE=1; export DUALCASE # for MKS sh
10584 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10585 emulate sh
10586 NULLCMD=:
10587 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10588 # is contrary to our usage. Disable this feature.
10589 alias -g '${1+"$@"}'='"$@"'
10590 setopt NO_GLOB_SUBST
10591 else
10592 case `(set -o) 2>/dev/null` in
10593 *posix*) set -o posix ;;
10594 esac
10601 # PATH needs CR
10602 # Avoid depending upon Character Ranges.
10603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10606 as_cr_digits='0123456789'
10607 as_cr_alnum=$as_cr_Letters$as_cr_digits
10609 # The user is always right.
10610 if test "${PATH_SEPARATOR+set}" != set; then
10611 echo "#! /bin/sh" >conf$$.sh
10612 echo "exit 0" >>conf$$.sh
10613 chmod +x conf$$.sh
10614 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10615 PATH_SEPARATOR=';'
10616 else
10617 PATH_SEPARATOR=:
10619 rm -f conf$$.sh
10622 # Support unset when possible.
10623 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10624 as_unset=unset
10625 else
10626 as_unset=false
10630 # IFS
10631 # We need space, tab and new line, in precisely that order. Quoting is
10632 # there to prevent editors from complaining about space-tab.
10633 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10634 # splitting by setting IFS to empty value.)
10635 as_nl='
10637 IFS=" "" $as_nl"
10639 # Find who we are. Look in the path if we contain no directory separator.
10640 case $0 in
10641 *[\\/]* ) as_myself=$0 ;;
10642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10648 done
10649 IFS=$as_save_IFS
10652 esac
10653 # We did not find ourselves, most probably we were run as `sh COMMAND'
10654 # in which case we are not to be found in the path.
10655 if test "x$as_myself" = x; then
10656 as_myself=$0
10658 if test ! -f "$as_myself"; then
10659 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10660 { (exit 1); exit 1; }
10663 # Work around bugs in pre-3.0 UWIN ksh.
10664 for as_var in ENV MAIL MAILPATH
10665 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10666 done
10667 PS1='$ '
10668 PS2='> '
10669 PS4='+ '
10671 # NLS nuisances.
10672 for as_var in \
10673 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10674 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10675 LC_TELEPHONE LC_TIME
10677 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10678 eval $as_var=C; export $as_var
10679 else
10680 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10682 done
10684 # Required to use basename.
10685 if expr a : '\(a\)' >/dev/null 2>&1 &&
10686 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10687 as_expr=expr
10688 else
10689 as_expr=false
10692 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10693 as_basename=basename
10694 else
10695 as_basename=false
10699 # Name of the executable.
10700 as_me=`$as_basename -- "$0" ||
10701 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10702 X"$0" : 'X\(//\)$' \| \
10703 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10704 echo X/"$0" |
10705 sed '/^.*\/\([^/][^/]*\)\/*$/{
10706 s//\1/
10709 /^X\/\(\/\/\)$/{
10710 s//\1/
10713 /^X\/\(\/\).*/{
10714 s//\1/
10717 s/.*/./; q'`
10719 # CDPATH.
10720 $as_unset CDPATH
10724 as_lineno_1=$LINENO
10725 as_lineno_2=$LINENO
10726 test "x$as_lineno_1" != "x$as_lineno_2" &&
10727 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10729 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10730 # uniformly replaced by the line number. The first 'sed' inserts a
10731 # line-number line after each line using $LINENO; the second 'sed'
10732 # does the real work. The second script uses 'N' to pair each
10733 # line-number line with the line containing $LINENO, and appends
10734 # trailing '-' during substitution so that $LINENO is not a special
10735 # case at line end.
10736 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10737 # scripts with optimization help from Paolo Bonzini. Blame Lee
10738 # E. McMahon (1931-1989) for sed's syntax. :-)
10739 sed -n '
10741 /[$]LINENO/=
10742 ' <$as_myself |
10743 sed '
10744 s/[$]LINENO.*/&-/
10745 t lineno
10747 :lineno
10749 :loop
10750 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10751 t loop
10752 s/-\n.*//
10753 ' >$as_me.lineno &&
10754 chmod +x "$as_me.lineno" ||
10755 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10756 { (exit 1); exit 1; }; }
10758 # Don't try to exec as it changes $[0], causing all sort of problems
10759 # (the dirname of $[0] is not the place where we might find the
10760 # original and so on. Autoconf is especially sensitive to this).
10761 . "./$as_me.lineno"
10762 # Exit status is that of the last command.
10763 exit
10767 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10768 as_dirname=dirname
10769 else
10770 as_dirname=false
10773 ECHO_C= ECHO_N= ECHO_T=
10774 case `echo -n x` in
10775 -n*)
10776 case `echo 'x\c'` in
10777 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10778 *) ECHO_C='\c';;
10779 esac;;
10781 ECHO_N='-n';;
10782 esac
10784 if expr a : '\(a\)' >/dev/null 2>&1 &&
10785 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10786 as_expr=expr
10787 else
10788 as_expr=false
10791 rm -f conf$$ conf$$.exe conf$$.file
10792 if test -d conf$$.dir; then
10793 rm -f conf$$.dir/conf$$.file
10794 else
10795 rm -f conf$$.dir
10796 mkdir conf$$.dir
10798 echo >conf$$.file
10799 if ln -s conf$$.file conf$$ 2>/dev/null; then
10800 as_ln_s='ln -s'
10801 # ... but there are two gotchas:
10802 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10803 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10804 # In both cases, we have to default to `cp -p'.
10805 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10806 as_ln_s='cp -p'
10807 elif ln conf$$.file conf$$ 2>/dev/null; then
10808 as_ln_s=ln
10809 else
10810 as_ln_s='cp -p'
10812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10813 rmdir conf$$.dir 2>/dev/null
10815 if mkdir -p . 2>/dev/null; then
10816 as_mkdir_p=:
10817 else
10818 test -d ./-p && rmdir ./-p
10819 as_mkdir_p=false
10822 if test -x / >/dev/null 2>&1; then
10823 as_test_x='test -x'
10824 else
10825 if ls -dL / >/dev/null 2>&1; then
10826 as_ls_L_option=L
10827 else
10828 as_ls_L_option=
10830 as_test_x='
10831 eval sh -c '\''
10832 if test -d "$1"; then
10833 test -d "$1/.";
10834 else
10835 case $1 in
10836 -*)set "./$1";;
10837 esac;
10838 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10839 ???[sx]*):;;*)false;;esac;fi
10840 '\'' sh
10843 as_executable_p=$as_test_x
10845 # Sed expression to map a string onto a valid CPP name.
10846 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10848 # Sed expression to map a string onto a valid variable name.
10849 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10852 exec 6>&1
10854 # Save the log message, to keep $[0] and so on meaningful, and to
10855 # report actual input values of CONFIG_FILES etc. instead of their
10856 # values after options handling.
10857 ac_log="
10858 This file was extended by $as_me, which was
10859 generated by GNU Autoconf 2.61. Invocation command line was
10861 CONFIG_FILES = $CONFIG_FILES
10862 CONFIG_HEADERS = $CONFIG_HEADERS
10863 CONFIG_LINKS = $CONFIG_LINKS
10864 CONFIG_COMMANDS = $CONFIG_COMMANDS
10865 $ $0 $@
10867 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10870 _ACEOF
10872 cat >>$CONFIG_STATUS <<_ACEOF
10873 # Files that config.status was made for.
10874 config_files="$ac_config_files"
10875 config_headers="$ac_config_headers"
10876 config_commands="$ac_config_commands"
10878 _ACEOF
10880 cat >>$CONFIG_STATUS <<\_ACEOF
10881 ac_cs_usage="\
10882 \`$as_me' instantiates files from templates according to the
10883 current configuration.
10885 Usage: $0 [OPTIONS] [FILE]...
10887 -h, --help print this help, then exit
10888 -V, --version print version number and configuration settings, then exit
10889 -q, --quiet do not print progress messages
10890 -d, --debug don't remove temporary files
10891 --recheck update $as_me by reconfiguring in the same conditions
10892 --file=FILE[:TEMPLATE]
10893 instantiate the configuration file FILE
10894 --header=FILE[:TEMPLATE]
10895 instantiate the configuration header FILE
10897 Configuration files:
10898 $config_files
10900 Configuration headers:
10901 $config_headers
10903 Configuration commands:
10904 $config_commands
10906 Report bugs to <bug-autoconf@gnu.org>."
10908 _ACEOF
10909 cat >>$CONFIG_STATUS <<_ACEOF
10910 ac_cs_version="\\
10911 config.status
10912 configured by $0, generated by GNU Autoconf 2.61,
10913 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10915 Copyright (C) 2006 Free Software Foundation, Inc.
10916 This config.status script is free software; the Free Software Foundation
10917 gives unlimited permission to copy, distribute and modify it."
10919 ac_pwd='$ac_pwd'
10920 srcdir='$srcdir'
10921 _ACEOF
10923 cat >>$CONFIG_STATUS <<\_ACEOF
10924 # If no file are specified by the user, then we need to provide default
10925 # value. By we need to know if files were specified by the user.
10926 ac_need_defaults=:
10927 while test $# != 0
10929 case $1 in
10930 --*=*)
10931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10933 ac_shift=:
10936 ac_option=$1
10937 ac_optarg=$2
10938 ac_shift=shift
10940 esac
10942 case $ac_option in
10943 # Handling of the options.
10944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10945 ac_cs_recheck=: ;;
10946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10947 echo "$ac_cs_version"; exit ;;
10948 --debug | --debu | --deb | --de | --d | -d )
10949 debug=: ;;
10950 --file | --fil | --fi | --f )
10951 $ac_shift
10952 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10953 ac_need_defaults=false;;
10954 --header | --heade | --head | --hea )
10955 $ac_shift
10956 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10957 ac_need_defaults=false;;
10958 --he | --h)
10959 # Conflict between --help and --header
10960 { echo "$as_me: error: ambiguous option: $1
10961 Try \`$0 --help' for more information." >&2
10962 { (exit 1); exit 1; }; };;
10963 --help | --hel | -h )
10964 echo "$ac_cs_usage"; exit ;;
10965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10966 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10967 ac_cs_silent=: ;;
10969 # This is an error.
10970 -*) { echo "$as_me: error: unrecognized option: $1
10971 Try \`$0 --help' for more information." >&2
10972 { (exit 1); exit 1; }; } ;;
10974 *) ac_config_targets="$ac_config_targets $1"
10975 ac_need_defaults=false ;;
10977 esac
10978 shift
10979 done
10981 ac_configure_extra_args=
10983 if $ac_cs_silent; then
10984 exec 6>/dev/null
10985 ac_configure_extra_args="$ac_configure_extra_args --silent"
10988 _ACEOF
10989 cat >>$CONFIG_STATUS <<_ACEOF
10990 if \$ac_cs_recheck; then
10991 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10992 CONFIG_SHELL=$SHELL
10993 export CONFIG_SHELL
10994 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10997 _ACEOF
10998 cat >>$CONFIG_STATUS <<\_ACEOF
10999 exec 5>>config.log
11001 echo
11002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11003 ## Running $as_me. ##
11004 _ASBOX
11005 echo "$ac_log"
11006 } >&5
11008 _ACEOF
11009 cat >>$CONFIG_STATUS <<_ACEOF
11011 # INIT-COMMANDS
11014 aros_tools_dir=${aros_tools_dir}
11015 aros_target_cpu=${aros_target_cpu}
11016 aros_target_arch=${aros_target_arch}
11017 aros_target_suffix=${aros_target_suffix}
11018 aros_target_nm_ln=${aros_target_nm_ln}
11019 aros_target_as_ln=${aros_target_as_ln}
11020 aros_target_ar_ln=${aros_target_ar_ln}
11021 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11022 aros_target_objdump_ln=${aros_target_objdump_ln}
11023 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11024 aros_target_strip_ln=${aros_target_strip_ln}
11027 aros_scripts_dir=${aros_scripts_dir}
11029 aros_tools_dir=${aros_tools_dir}
11032 _ACEOF
11034 cat >>$CONFIG_STATUS <<\_ACEOF
11036 # Handling of arguments.
11037 for ac_config_target in $ac_config_targets
11039 case $ac_config_target in
11040 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11041 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11042 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11043 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11044 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
11045 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11046 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
11047 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11048 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11049 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11050 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11051 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11052 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11053 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11054 "${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" ;;
11055 "${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" ;;
11056 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11057 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11058 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
11059 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11061 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11062 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11063 { (exit 1); exit 1; }; };;
11064 esac
11065 done
11068 # If the user did not use the arguments to specify the items to instantiate,
11069 # then the envvar interface is used. Set only those that are not.
11070 # We use the long form for the default assignment because of an extremely
11071 # bizarre bug on SunOS 4.1.3.
11072 if $ac_need_defaults; then
11073 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11074 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11075 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11078 # Have a temporary directory for convenience. Make it in the build tree
11079 # simply because there is no reason against having it here, and in addition,
11080 # creating and moving files from /tmp can sometimes cause problems.
11081 # Hook for its removal unless debugging.
11082 # Note that there is a small window in which the directory will not be cleaned:
11083 # after its creation but before its name has been assigned to `$tmp'.
11084 $debug ||
11086 tmp=
11087 trap 'exit_status=$?
11088 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11090 trap '{ (exit 1); exit 1; }' 1 2 13 15
11092 # Create a (secure) tmp directory for tmp files.
11095 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11096 test -n "$tmp" && test -d "$tmp"
11097 } ||
11099 tmp=./conf$$-$RANDOM
11100 (umask 077 && mkdir "$tmp")
11101 } ||
11103 echo "$me: cannot create a temporary directory in ." >&2
11104 { (exit 1); exit 1; }
11108 # Set up the sed scripts for CONFIG_FILES section.
11111 # No need to generate the scripts if there are no CONFIG_FILES.
11112 # This happens for instance when ./config.status config.h
11113 if test -n "$CONFIG_FILES"; then
11115 _ACEOF
11119 ac_delim='%!_!# '
11120 for ac_last_try in false false false false false :; do
11121 cat >conf$$subs.sed <<_ACEOF
11122 SHELL!$SHELL$ac_delim
11123 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11124 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11125 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11126 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11127 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11128 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11129 exec_prefix!$exec_prefix$ac_delim
11130 prefix!$prefix$ac_delim
11131 program_transform_name!$program_transform_name$ac_delim
11132 bindir!$bindir$ac_delim
11133 sbindir!$sbindir$ac_delim
11134 libexecdir!$libexecdir$ac_delim
11135 datarootdir!$datarootdir$ac_delim
11136 datadir!$datadir$ac_delim
11137 sysconfdir!$sysconfdir$ac_delim
11138 sharedstatedir!$sharedstatedir$ac_delim
11139 localstatedir!$localstatedir$ac_delim
11140 includedir!$includedir$ac_delim
11141 oldincludedir!$oldincludedir$ac_delim
11142 docdir!$docdir$ac_delim
11143 infodir!$infodir$ac_delim
11144 htmldir!$htmldir$ac_delim
11145 dvidir!$dvidir$ac_delim
11146 pdfdir!$pdfdir$ac_delim
11147 psdir!$psdir$ac_delim
11148 libdir!$libdir$ac_delim
11149 localedir!$localedir$ac_delim
11150 mandir!$mandir$ac_delim
11151 DEFS!$DEFS$ac_delim
11152 ECHO_C!$ECHO_C$ac_delim
11153 ECHO_N!$ECHO_N$ac_delim
11154 ECHO_T!$ECHO_T$ac_delim
11155 LIBS!$LIBS$ac_delim
11156 build_alias!$build_alias$ac_delim
11157 host_alias!$host_alias$ac_delim
11158 target_alias!$target_alias$ac_delim
11159 build!$build$ac_delim
11160 build_cpu!$build_cpu$ac_delim
11161 build_vendor!$build_vendor$ac_delim
11162 build_os!$build_os$ac_delim
11163 host!$host$ac_delim
11164 host_cpu!$host_cpu$ac_delim
11165 host_vendor!$host_vendor$ac_delim
11166 host_os!$host_os$ac_delim
11167 CC!$CC$ac_delim
11168 CFLAGS!$CFLAGS$ac_delim
11169 LDFLAGS!$LDFLAGS$ac_delim
11170 CPPFLAGS!$CPPFLAGS$ac_delim
11171 ac_ct_CC!$ac_ct_CC$ac_delim
11172 EXEEXT!$EXEEXT$ac_delim
11173 OBJEXT!$OBJEXT$ac_delim
11174 CPP!$CPP$ac_delim
11175 AWK!$AWK$ac_delim
11176 MMAKE!$MMAKE$ac_delim
11177 aros_host_ld!$aros_host_ld$ac_delim
11178 aros_host_aclocal!$aros_host_aclocal$ac_delim
11179 aros_host_autoconf!$aros_host_autoconf$ac_delim
11180 aros_host_autoheader!$aros_host_autoheader$ac_delim
11181 aros_host_automake!$aros_host_automake$ac_delim
11182 aros_host_ar!$aros_host_ar$ac_delim
11183 aros_host_ranlib!$aros_host_ranlib$ac_delim
11184 aros_host_strip!$aros_host_strip$ac_delim
11185 RM!$RM$ac_delim
11186 CP!$CP$ac_delim
11187 MV!$MV$ac_delim
11188 ECHO!$ECHO$ac_delim
11189 MKDIR!$MKDIR$ac_delim
11190 TOUCH!$TOUCH$ac_delim
11191 SORT!$SORT$ac_delim
11192 UNIQ!$UNIQ$ac_delim
11193 NOP!$NOP$ac_delim
11194 CAT!$CAT$ac_delim
11195 BISON!$BISON$ac_delim
11196 FLEX!$FLEX$ac_delim
11197 PNGTOPNM!$PNGTOPNM$ac_delim
11198 PPMTOILBM!$PPMTOILBM$ac_delim
11199 SED!$SED$ac_delim
11200 CHMOD!$CHMOD$ac_delim
11201 PYTHON!$PYTHON$ac_delim
11202 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
11203 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
11204 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
11205 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
11206 pythondir!$pythondir$ac_delim
11207 pkgpythondir!$pkgpythondir$ac_delim
11208 pyexecdir!$pyexecdir$ac_delim
11209 pkgpyexecdir!$pkgpyexecdir$ac_delim
11210 FOR!$FOR$ac_delim
11211 IF!$IF$ac_delim
11212 TEST!$TEST$ac_delim
11213 CMP!$CMP$ac_delim
11214 GREP!$GREP$ac_delim
11215 EGREP!$EGREP$ac_delim
11216 LIBOBJS!$LIBOBJS$ac_delim
11217 XMKMF!$XMKMF$ac_delim
11218 DISTCC!$DISTCC$ac_delim
11219 _ACEOF
11221 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11222 break
11223 elif $ac_last_try; then
11224 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11225 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11226 { (exit 1); exit 1; }; }
11227 else
11228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11230 done
11232 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11233 if test -n "$ac_eof"; then
11234 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11235 ac_eof=`expr $ac_eof + 1`
11238 cat >>$CONFIG_STATUS <<_ACEOF
11239 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11241 _ACEOF
11242 sed '
11243 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11244 s/^/s,@/; s/!/@,|#_!!_#|/
11247 s/'"$ac_delim"'$/,g/; t
11248 s/$/\\/; p
11249 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11250 ' >>$CONFIG_STATUS <conf$$subs.sed
11251 rm -f conf$$subs.sed
11252 cat >>$CONFIG_STATUS <<_ACEOF
11253 CEOF$ac_eof
11254 _ACEOF
11257 ac_delim='%!_!# '
11258 for ac_last_try in false false false false false :; do
11259 cat >conf$$subs.sed <<_ACEOF
11260 CCACHE!$CCACHE$ac_delim
11261 aros_kernel_cc!$aros_kernel_cc$ac_delim
11262 aros_target_as_ln!$aros_target_as_ln$ac_delim
11263 aros_kernel_ld!$aros_kernel_ld$ac_delim
11264 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
11265 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
11266 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
11267 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
11268 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
11269 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
11270 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
11271 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
11272 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
11273 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
11274 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
11275 aros_arch!$aros_arch$ac_delim
11276 aros_cpu!$aros_cpu$ac_delim
11277 aros_flavour!$aros_flavour$ac_delim
11278 aros_flavour_uc!$aros_flavour_uc$ac_delim
11279 TOPDIR!$TOPDIR$ac_delim
11280 aros_cc_pre!$aros_cc_pre$ac_delim
11281 aros_host_arch!$aros_host_arch$ac_delim
11282 aros_host_cpu!$aros_host_cpu$ac_delim
11283 aros_host_cc!$aros_host_cc$ac_delim
11284 aros_host_make!$aros_host_make$ac_delim
11285 aros_host_cflags!$aros_host_cflags$ac_delim
11286 aros_host_ldflags!$aros_host_ldflags$ac_delim
11287 aros_host_debug!$aros_host_debug$ac_delim
11288 aros_host_mkdep!$aros_host_mkdep$ac_delim
11289 aros_host_mkargs!$aros_host_mkargs$ac_delim
11290 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
11291 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
11292 aros_tools_dir!$aros_tools_dir$ac_delim
11293 aros_target_arch!$aros_target_arch$ac_delim
11294 aros_target_cpu!$aros_target_cpu$ac_delim
11295 aros_target_variant!$aros_target_variant$ac_delim
11296 aros_target_suffix!$aros_target_suffix$ac_delim
11297 aros_target_incl!$aros_target_incl$ac_delim
11298 aros_target_ar!$aros_target_ar$ac_delim
11299 aros_target_ranlib!$aros_target_ranlib$ac_delim
11300 aros_kernel_nm!$aros_kernel_nm$ac_delim
11301 aros_target_cc!$aros_target_cc$ac_delim
11302 aros_target_as!$aros_target_as$ac_delim
11303 aros_target_ld!$aros_target_ld$ac_delim
11304 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
11305 aros_target_cc_path!$aros_target_cc_path$ac_delim
11306 aros_target_objdump!$aros_target_objdump$ac_delim
11307 aros_target_objcopy!$aros_target_objcopy$ac_delim
11308 aros_target_strip!$aros_target_strip$ac_delim
11309 aros_target_nm!$aros_target_nm$ac_delim
11310 aros_shared_default!$aros_shared_default$ac_delim
11311 aros_shared_ld!$aros_shared_ld$ac_delim
11312 aros_object_format!$aros_object_format$ac_delim
11313 aros_compiler_libs!$aros_compiler_libs$ac_delim
11314 aros_config_cflags!$aros_config_cflags$ac_delim
11315 aros_config_aflags!$aros_config_aflags$ac_delim
11316 aros_config_ldflags!$aros_config_ldflags$ac_delim
11317 aros_shared_cflags!$aros_shared_cflags$ac_delim
11318 aros_shared_aflags!$aros_shared_aflags$ac_delim
11319 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
11320 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
11321 aros_debug_cflags!$aros_debug_cflags$ac_delim
11322 aros_debug_aflags!$aros_debug_aflags$ac_delim
11323 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
11324 aros_target_genmap!$aros_target_genmap$ac_delim
11325 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
11326 aros_gui_libdir!$aros_gui_libdir$ac_delim
11327 aros_gui_ldflags!$aros_gui_ldflags$ac_delim
11328 aros_gui_libflags!$aros_gui_libflags$ac_delim
11329 aros_gui_incdir!$aros_gui_incdir$ac_delim
11330 aros_gui_ccflags!$aros_gui_ccflags$ac_delim
11331 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
11332 aros_default_wbheight!$aros_default_wbheight$ac_delim
11333 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
11334 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
11335 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
11336 aros_bochs_hack!$aros_bochs_hack$ac_delim
11337 aros_serial_debug!$aros_serial_debug$ac_delim
11338 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
11339 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
11340 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
11341 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
11342 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
11343 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
11344 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
11345 aros_debug!$aros_debug$ac_delim
11346 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
11347 aros_stack_debug!$aros_stack_debug$ac_delim
11348 aros_modules_debug!$aros_modules_debug$ac_delim
11349 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
11350 gcc_target_cpu!$gcc_target_cpu$ac_delim
11351 LTLIBOBJS!$LTLIBOBJS$ac_delim
11352 _ACEOF
11354 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
11355 break
11356 elif $ac_last_try; then
11357 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11358 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11359 { (exit 1); exit 1; }; }
11360 else
11361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11363 done
11365 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11366 if test -n "$ac_eof"; then
11367 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11368 ac_eof=`expr $ac_eof + 1`
11371 cat >>$CONFIG_STATUS <<_ACEOF
11372 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11374 _ACEOF
11375 sed '
11376 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11377 s/^/s,@/; s/!/@,|#_!!_#|/
11380 s/'"$ac_delim"'$/,g/; t
11381 s/$/\\/; p
11382 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11383 ' >>$CONFIG_STATUS <conf$$subs.sed
11384 rm -f conf$$subs.sed
11385 cat >>$CONFIG_STATUS <<_ACEOF
11386 :end
11387 s/|#_!!_#|//g
11388 CEOF$ac_eof
11389 _ACEOF
11392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11394 # trailing colons and then remove the whole line if VPATH becomes empty
11395 # (actually we leave an empty line to preserve line numbers).
11396 if test "x$srcdir" = x.; then
11397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11398 s/:*\$(srcdir):*/:/
11399 s/:*\${srcdir}:*/:/
11400 s/:*@srcdir@:*/:/
11401 s/^\([^=]*=[ ]*\):*/\1/
11402 s/:*$//
11403 s/^[^=]*=[ ]*$//
11407 cat >>$CONFIG_STATUS <<\_ACEOF
11408 fi # test -n "$CONFIG_FILES"
11411 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11413 case $ac_tag in
11414 :[FHLC]) ac_mode=$ac_tag; continue;;
11415 esac
11416 case $ac_mode$ac_tag in
11417 :[FHL]*:*);;
11418 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11419 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11420 { (exit 1); exit 1; }; };;
11421 :[FH]-) ac_tag=-:-;;
11422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11423 esac
11424 ac_save_IFS=$IFS
11425 IFS=:
11426 set x $ac_tag
11427 IFS=$ac_save_IFS
11428 shift
11429 ac_file=$1
11430 shift
11432 case $ac_mode in
11433 :L) ac_source=$1;;
11434 :[FH])
11435 ac_file_inputs=
11436 for ac_f
11438 case $ac_f in
11439 -) ac_f="$tmp/stdin";;
11440 *) # Look for the file first in the build tree, then in the source tree
11441 # (if the path is not absolute). The absolute path cannot be DOS-style,
11442 # because $ac_f cannot contain `:'.
11443 test -f "$ac_f" ||
11444 case $ac_f in
11445 [\\/$]*) false;;
11446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11447 esac ||
11448 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11449 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11450 { (exit 1); exit 1; }; };;
11451 esac
11452 ac_file_inputs="$ac_file_inputs $ac_f"
11453 done
11455 # Let's still pretend it is `configure' which instantiates (i.e., don't
11456 # use $as_me), people would be surprised to read:
11457 # /* config.h. Generated by config.status. */
11458 configure_input="Generated from "`IFS=:
11459 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11460 if test x"$ac_file" != x-; then
11461 configure_input="$ac_file. $configure_input"
11462 { echo "$as_me:$LINENO: creating $ac_file" >&5
11463 echo "$as_me: creating $ac_file" >&6;}
11466 case $ac_tag in
11467 *:-:* | *:-) cat >"$tmp/stdin";;
11468 esac
11470 esac
11472 ac_dir=`$as_dirname -- "$ac_file" ||
11473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11474 X"$ac_file" : 'X\(//\)[^/]' \| \
11475 X"$ac_file" : 'X\(//\)$' \| \
11476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11477 echo X"$ac_file" |
11478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11479 s//\1/
11482 /^X\(\/\/\)[^/].*/{
11483 s//\1/
11486 /^X\(\/\/\)$/{
11487 s//\1/
11490 /^X\(\/\).*/{
11491 s//\1/
11494 s/.*/./; q'`
11495 { as_dir="$ac_dir"
11496 case $as_dir in #(
11497 -*) as_dir=./$as_dir;;
11498 esac
11499 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11500 as_dirs=
11501 while :; do
11502 case $as_dir in #(
11503 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11504 *) as_qdir=$as_dir;;
11505 esac
11506 as_dirs="'$as_qdir' $as_dirs"
11507 as_dir=`$as_dirname -- "$as_dir" ||
11508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11509 X"$as_dir" : 'X\(//\)[^/]' \| \
11510 X"$as_dir" : 'X\(//\)$' \| \
11511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11512 echo X"$as_dir" |
11513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11514 s//\1/
11517 /^X\(\/\/\)[^/].*/{
11518 s//\1/
11521 /^X\(\/\/\)$/{
11522 s//\1/
11525 /^X\(\/\).*/{
11526 s//\1/
11529 s/.*/./; q'`
11530 test -d "$as_dir" && break
11531 done
11532 test -z "$as_dirs" || eval "mkdir $as_dirs"
11533 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11534 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11535 { (exit 1); exit 1; }; }; }
11536 ac_builddir=.
11538 case "$ac_dir" in
11539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11542 # A ".." for each directory in $ac_dir_suffix.
11543 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11544 case $ac_top_builddir_sub in
11545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11547 esac ;;
11548 esac
11549 ac_abs_top_builddir=$ac_pwd
11550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11551 # for backward compatibility:
11552 ac_top_builddir=$ac_top_build_prefix
11554 case $srcdir in
11555 .) # We are building in place.
11556 ac_srcdir=.
11557 ac_top_srcdir=$ac_top_builddir_sub
11558 ac_abs_top_srcdir=$ac_pwd ;;
11559 [\\/]* | ?:[\\/]* ) # Absolute name.
11560 ac_srcdir=$srcdir$ac_dir_suffix;
11561 ac_top_srcdir=$srcdir
11562 ac_abs_top_srcdir=$srcdir ;;
11563 *) # Relative name.
11564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11565 ac_top_srcdir=$ac_top_build_prefix$srcdir
11566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11567 esac
11568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11571 case $ac_mode in
11574 # CONFIG_FILE
11577 _ACEOF
11579 cat >>$CONFIG_STATUS <<\_ACEOF
11580 # If the template does not know about datarootdir, expand it.
11581 # FIXME: This hack should be removed a few years after 2.60.
11582 ac_datarootdir_hack=; ac_datarootdir_seen=
11584 case `sed -n '/datarootdir/ {
11588 /@datadir@/p
11589 /@docdir@/p
11590 /@infodir@/p
11591 /@localedir@/p
11592 /@mandir@/p
11593 ' $ac_file_inputs` in
11594 *datarootdir*) ac_datarootdir_seen=yes;;
11595 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11596 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11597 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11598 _ACEOF
11599 cat >>$CONFIG_STATUS <<_ACEOF
11600 ac_datarootdir_hack='
11601 s&@datadir@&$datadir&g
11602 s&@docdir@&$docdir&g
11603 s&@infodir@&$infodir&g
11604 s&@localedir@&$localedir&g
11605 s&@mandir@&$mandir&g
11606 s&\\\${datarootdir}&$datarootdir&g' ;;
11607 esac
11608 _ACEOF
11610 # Neutralize VPATH when `$srcdir' = `.'.
11611 # Shell code in configure.ac might set extrasub.
11612 # FIXME: do we really want to maintain this feature?
11613 cat >>$CONFIG_STATUS <<_ACEOF
11614 sed "$ac_vpsub
11615 $extrasub
11616 _ACEOF
11617 cat >>$CONFIG_STATUS <<\_ACEOF
11619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11620 s&@configure_input@&$configure_input&;t t
11621 s&@top_builddir@&$ac_top_builddir_sub&;t t
11622 s&@srcdir@&$ac_srcdir&;t t
11623 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11624 s&@top_srcdir@&$ac_top_srcdir&;t t
11625 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11626 s&@builddir@&$ac_builddir&;t t
11627 s&@abs_builddir@&$ac_abs_builddir&;t t
11628 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11629 $ac_datarootdir_hack
11630 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11632 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11633 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11635 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11636 which seems to be undefined. Please make sure it is defined." >&5
11637 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11638 which seems to be undefined. Please make sure it is defined." >&2;}
11640 rm -f "$tmp/stdin"
11641 case $ac_file in
11642 -) cat "$tmp/out"; rm -f "$tmp/out";;
11643 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11644 esac
11648 # CONFIG_HEADER
11650 _ACEOF
11652 # Transform confdefs.h into a sed script `conftest.defines', that
11653 # substitutes the proper values into config.h.in to produce config.h.
11654 rm -f conftest.defines conftest.tail
11655 # First, append a space to every undef/define line, to ease matching.
11656 echo 's/$/ /' >conftest.defines
11657 # Then, protect against being on the right side of a sed subst, or in
11658 # an unquoted here document, in config.status. If some macros were
11659 # called several times there might be several #defines for the same
11660 # symbol, which is useless. But do not sort them, since the last
11661 # AC_DEFINE must be honored.
11662 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11663 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11664 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11665 # PARAMS is the parameter list in the macro definition--in most cases, it's
11666 # just an empty string.
11667 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11668 ac_dB='\\)[ (].*,\\1define\\2'
11669 ac_dC=' '
11670 ac_dD=' ,'
11672 uniq confdefs.h |
11673 sed -n '
11674 t rset
11675 :rset
11676 s/^[ ]*#[ ]*define[ ][ ]*//
11677 t ok
11680 s/[\\&,]/\\&/g
11681 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11682 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11683 ' >>conftest.defines
11685 # Remove the space that was appended to ease matching.
11686 # Then replace #undef with comments. This is necessary, for
11687 # example, in the case of _POSIX_SOURCE, which is predefined and required
11688 # on some systems where configure will not decide to define it.
11689 # (The regexp can be short, since the line contains either #define or #undef.)
11690 echo 's/ $//
11691 s,^[ #]*u.*,/* & */,' >>conftest.defines
11693 # Break up conftest.defines:
11694 ac_max_sed_lines=50
11696 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11697 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11698 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11699 # et cetera.
11700 ac_in='$ac_file_inputs'
11701 ac_out='"$tmp/out1"'
11702 ac_nxt='"$tmp/out2"'
11704 while :
11706 # Write a here document:
11707 cat >>$CONFIG_STATUS <<_ACEOF
11708 # First, check the format of the line:
11709 cat >"\$tmp/defines.sed" <<\\CEOF
11710 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11711 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11713 :def
11714 _ACEOF
11715 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11716 echo 'CEOF
11717 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11718 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11719 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11720 grep . conftest.tail >/dev/null || break
11721 rm -f conftest.defines
11722 mv conftest.tail conftest.defines
11723 done
11724 rm -f conftest.defines conftest.tail
11726 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11727 cat >>$CONFIG_STATUS <<\_ACEOF
11728 if test x"$ac_file" != x-; then
11729 echo "/* $configure_input */" >"$tmp/config.h"
11730 cat "$ac_result" >>"$tmp/config.h"
11731 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11732 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11733 echo "$as_me: $ac_file is unchanged" >&6;}
11734 else
11735 rm -f $ac_file
11736 mv "$tmp/config.h" $ac_file
11738 else
11739 echo "/* $configure_input */"
11740 cat "$ac_result"
11742 rm -f "$tmp/out12"
11745 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11746 echo "$as_me: executing $ac_file commands" >&6;}
11748 esac
11751 case $ac_file$ac_mode in
11752 "compiler_executable":C)
11753 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
11754 mkdir -p $prefix
11755 prefix="${prefix}/${aros_target_cpu}-aros"
11756 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
11758 echo ${prefix}
11759 echo ${prefix2}
11760 chmod a+x ${prefix2}-gcc ${prefix2}-ld
11762 ln -sf ${prefix2}-gcc ${prefix}-gcc
11763 ln -sf ${prefix2}-ld ${prefix}-ld
11765 ln -sf $aros_target_as_ln ${prefix}-as
11766 ln -sf $aros_target_nm_ln ${prefix}-nm
11767 ln -sf $aros_target_ar_ln ${prefix}-ar
11768 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
11769 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
11770 ln -sf $aros_target_objdump_ln ${prefix}-objdump
11771 ln -sf $aros_target_strip_ln ${prefix}-strip
11773 ln -sf $aros_target_as_ln ${prefix2}-as
11774 ln -sf $aros_target_nm_ln ${prefix2}-nm
11775 ln -sf $aros_target_ar_ln ${prefix2}-ar
11776 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
11777 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
11778 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
11779 ln -sf $aros_target_strip_ln ${prefix2}-strip
11781 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
11782 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
11783 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
11786 esac
11787 done # for ac_tag
11790 { (exit 0); exit 0; }
11791 _ACEOF
11792 chmod +x $CONFIG_STATUS
11793 ac_clean_files=$ac_clean_files_save
11796 # configure is writing to config.log, and then calls config.status.
11797 # config.status does its own redirection, appending to config.log.
11798 # Unfortunately, on DOS this fails, as config.log is still kept open
11799 # by configure, so config.status won't be able to write to it; its
11800 # output is simply discarded. So we exec the FD to /dev/null,
11801 # effectively closing config.log, so it can be properly (re)opened and
11802 # appended to by config.status. When coming back to configure, we
11803 # need to make the FD available again.
11804 if test "$no_create" != yes; then
11805 ac_cs_success=:
11806 ac_config_status_args=
11807 test "$silent" = yes &&
11808 ac_config_status_args="$ac_config_status_args --quiet"
11809 exec 5>/dev/null
11810 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11811 exec 5>>config.log
11812 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11813 # would make configure fail if this is the last instruction.
11814 $ac_cs_success || { (exit 1); exit 1; }
11819 #XXX compatability...
11820 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
11822 if test -n "$aros_shared_cflags" ; then
11823 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
11824 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg