Fixed forgotten lock on device's root
[AROS.git] / configure
blobd725c844e5d53040d1d5ab8653b6a493651cb798
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 LIBLZO
714 aros_kernel_cc
715 aros_target_cc
716 aros_target_ld
717 aros_target_as_ln
718 aros_kernel_ld
719 aros_target_ar_ln
720 aros_target_nm_ln
721 aros_target_objcopy_ln
722 aros_target_objdump_ln
723 aros_target_ranlib_ln
724 aros_target_strip_ln
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
730 aros_cflags_iquote
731 aros_cflags_iquote_end
732 XMKMF
733 SDL_CONFIG
734 SDL_CFLAGS
735 SDL_LIBS
736 aros_arch
737 aros_cpu
738 aros_flavour
739 aros_flavour_uc
740 AROS_BUILDDIR
741 AROS_SRCDIR
742 AROS_PORTSSRCDIR
743 aros_cc_pre
744 aros_host_arch
745 aros_host_cpu
746 aros_host_cc
747 aros_host_make
748 aros_host_cflags
749 aros_host_ldflags
750 aros_host_debug
751 aros_host_mkdep
752 aros_host_mkargs
753 aros_host_exe_suffix
754 aros_host_lib_suffix
755 aros_tools_dir
756 aros_target_guitheme
757 aros_target_bootloader
758 aros_target_arch
759 aros_target_cpu
760 aros_target_variant
761 aros_target_suffix
762 aros_target_incl
763 aros_target_ar
764 aros_target_ranlib
765 aros_kernel_nm
766 orig_target_cc
767 aros_target_as
768 orig_target_ld
769 aros_target_cc_includes
770 aros_target_cc_path
771 aros_target_objdump
772 aros_target_objcopy
773 aros_target_strip
774 aros_target_nm
775 aros_shared_default
776 aros_shared_ld
777 aros_object_format
778 aros_compiler_libs
779 aros_config_cflags
780 aros_config_aflags
781 aros_config_ldflags
782 aros_shared_cflags
783 aros_shared_aflags
784 aros_shared_ldflags
785 aros_kernel_cflags
786 aros_kernel_ldflags
787 aros_debug_cflags
788 aros_debug_aflags
789 aros_debug_ldflags
790 aros_target_genmap
791 aros_target_strip_flags
792 x11_hidd_target
793 sdl_hidd_target
794 aros_default_wbwidth
795 aros_default_wbheight
796 aros_default_wbdepth
797 DO_XSHM_SUPPORT
798 DO_VIDMODE_SUPPORT
799 aros_host_x11_includes
800 aros_host_x11_libdirs
801 aros_host_sdl_cflags
802 aros_host_sdl_libs
803 aros_bochs_hack
804 aros_serial_debug
805 aros_palm_debug_hack
806 aros_nesting_supervisor
807 ENABLE_DBUS
808 DBUS_CFLAGS
809 DBUS_LIBFLAGS
810 KERNEL_DBUS_KOBJ
811 KERNEL_DBUS_INCLUDES
812 aros_debug
813 aros_mungwall_debug
814 aros_stack_debug
815 aros_modules_debug
816 ignore_undefined_symbols
817 gcc_target_cpu
818 LTLIBOBJS'
819 ac_subst_files=''
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
829 XMKMF'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1164 eval with_$ac_package=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures this package to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 X features:
1390 --x-includes=DIR X include files are in DIR
1391 --x-libraries=DIR X library files are in DIR
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-build-type=TYPE
1407 Select the build type. Available types are:
1408 personal, nightly, snapshot, milestone, release. Do
1409 NOT use this option unless you know what you are
1410 doing! (default=personal)
1411 --enable-debug=list Enable different types of debug. Commas or
1412 whitespaces can be used to separate the items in the
1413 list. Available types of debug are: all, none,
1414 messages, stack, mungwall, modules, symbols. If no
1415 list is provided then "all" is assumed.
1416 (default=none)
1417 --enable-distcc Use distcc as a front end to the compiler
1418 (default=no).
1419 --enable-ccache Use ccache as a front end to the compiler
1420 (default=no).
1421 --enable-target-variant=NAME
1422 Enable a specific target variant(default=none)
1423 --enable-includes=dir Alternative system include directory
1424 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1425 (default=no)
1426 --enable-palm-debug-hack
1427 Enable palm debug output hack in palm native
1428 (default=no)
1429 --enable-nesting-supervisor
1430 Enable nesting supervisor support in unix
1431 (default=no)
1432 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1433 --enable-x11-shm use X11 shared memory (default=auto)
1434 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1435 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1436 --disable-sdltest Do not try to compile and run a test SDL program
1437 --enable-dbus Enable DBUS support via dbus.library (default=no)
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-optimization=FLAGS
1443 Use optimization flags FLAGS (default=-O2).
1444 --with-portssources=DIR Where to download sourcecode for external ports
1445 --with-bootloader=NAME Use a specific bootloader
1446 --with-theme=NAME Use a specific GUI Theme
1447 --with-resolution=XRESxYRESxDEPTH
1448 Default resolution of the initial WorkbenchScreen
1449 --with-serial-debug Enable serial debug output in native (default=no)
1450 --with-x use the X Window System
1451 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1452 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 XMKMF Path to xmkmf, Makefile generator for X Window System
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1468 _ACEOF
1469 ac_status=$?
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" || continue
1476 ac_builddir=.
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 configure
1529 generated by GNU Autoconf 2.61
1531 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1532 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1538 cat >config.log <<_ACEOF
1539 This file contains any messages produced by compilers while
1540 running configure, to aid debugging if configure makes a mistake.
1542 It was created by $as_me, which was
1543 generated by GNU Autoconf 2.61. Invocation command line was
1545 $ $0 $@
1547 _ACEOF
1548 exec 5>>config.log
1550 cat <<_ASUNAME
1551 ## --------- ##
1552 ## Platform. ##
1553 ## --------- ##
1555 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1556 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1557 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1558 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1559 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1561 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1562 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1564 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1565 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1566 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1567 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1568 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1569 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1570 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1572 _ASUNAME
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 echo "PATH: $as_dir"
1580 done
1581 IFS=$as_save_IFS
1583 } >&5
1585 cat >&5 <<_ACEOF
1588 ## ----------- ##
1589 ## Core tests. ##
1590 ## ----------- ##
1592 _ACEOF
1595 # Keep a trace of the command line.
1596 # Strip out --no-create and --no-recursion so they do not pile up.
1597 # Strip out --silent because we don't want to record it for future runs.
1598 # Also quote any args containing shell meta-characters.
1599 # Make two passes to allow for proper duplicate-argument suppression.
1600 ac_configure_args=
1601 ac_configure_args0=
1602 ac_configure_args1=
1603 ac_must_keep_next=false
1604 for ac_pass in 1 2
1606 for ac_arg
1608 case $ac_arg in
1609 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1611 | -silent | --silent | --silen | --sile | --sil)
1612 continue ;;
1613 *\'*)
1614 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1615 esac
1616 case $ac_pass in
1617 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1619 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1620 if test $ac_must_keep_next = true; then
1621 ac_must_keep_next=false # Got value, back to normal.
1622 else
1623 case $ac_arg in
1624 *=* | --config-cache | -C | -disable-* | --disable-* \
1625 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1626 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1627 | -with-* | --with-* | -without-* | --without-* | --x)
1628 case "$ac_configure_args0 " in
1629 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1630 esac
1632 -* ) ac_must_keep_next=true ;;
1633 esac
1635 ac_configure_args="$ac_configure_args '$ac_arg'"
1637 esac
1638 done
1639 done
1640 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1641 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1643 # When interrupted or exit'd, cleanup temporary files, and complete
1644 # config.log. We remove comments because anyway the quotes in there
1645 # would cause problems or look ugly.
1646 # WARNING: Use '\'' to represent an apostrophe within the trap.
1647 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1648 trap 'exit_status=$?
1649 # Save into config.log some information that might help in debugging.
1651 echo
1653 cat <<\_ASBOX
1654 ## ---------------- ##
1655 ## Cache variables. ##
1656 ## ---------------- ##
1657 _ASBOX
1658 echo
1659 # The following way of writing the cache mishandles newlines in values,
1661 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1662 eval ac_val=\$$ac_var
1663 case $ac_val in #(
1664 *${as_nl}*)
1665 case $ac_var in #(
1666 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1667 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1668 esac
1669 case $ac_var in #(
1670 _ | IFS | as_nl) ;; #(
1671 *) $as_unset $ac_var ;;
1672 esac ;;
1673 esac
1674 done
1675 (set) 2>&1 |
1676 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1677 *${as_nl}ac_space=\ *)
1678 sed -n \
1679 "s/'\''/'\''\\\\'\'''\''/g;
1680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1681 ;; #(
1683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1685 esac |
1686 sort
1688 echo
1690 cat <<\_ASBOX
1691 ## ----------------- ##
1692 ## Output variables. ##
1693 ## ----------------- ##
1694 _ASBOX
1695 echo
1696 for ac_var in $ac_subst_vars
1698 eval ac_val=\$$ac_var
1699 case $ac_val in
1700 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1701 esac
1702 echo "$ac_var='\''$ac_val'\''"
1703 done | sort
1704 echo
1706 if test -n "$ac_subst_files"; then
1707 cat <<\_ASBOX
1708 ## ------------------- ##
1709 ## File substitutions. ##
1710 ## ------------------- ##
1711 _ASBOX
1712 echo
1713 for ac_var in $ac_subst_files
1715 eval ac_val=\$$ac_var
1716 case $ac_val in
1717 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1718 esac
1719 echo "$ac_var='\''$ac_val'\''"
1720 done | sort
1721 echo
1724 if test -s confdefs.h; then
1725 cat <<\_ASBOX
1726 ## ----------- ##
1727 ## confdefs.h. ##
1728 ## ----------- ##
1729 _ASBOX
1730 echo
1731 cat confdefs.h
1732 echo
1734 test "$ac_signal" != 0 &&
1735 echo "$as_me: caught signal $ac_signal"
1736 echo "$as_me: exit $exit_status"
1737 } >&5
1738 rm -f core *.core core.conftest.* &&
1739 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1740 exit $exit_status
1742 for ac_signal in 1 2 13 15; do
1743 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1744 done
1745 ac_signal=0
1747 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1748 rm -f -r conftest* confdefs.h
1750 # Predefined preprocessor variables.
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_NAME "$PACKAGE_NAME"
1754 _ACEOF
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1759 _ACEOF
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1764 _ACEOF
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_STRING "$PACKAGE_STRING"
1769 _ACEOF
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1774 _ACEOF
1777 # Let the site file select an alternate cache file if it wants to.
1778 # Prefer explicitly selected file to automatically selected ones.
1779 if test -n "$CONFIG_SITE"; then
1780 set x "$CONFIG_SITE"
1781 elif test "x$prefix" != xNONE; then
1782 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1783 else
1784 set x "$ac_default_prefix/share/config.site" \
1785 "$ac_default_prefix/etc/config.site"
1787 shift
1788 for ac_site_file
1790 if test -r "$ac_site_file"; then
1791 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1792 echo "$as_me: loading site script $ac_site_file" >&6;}
1793 sed 's/^/| /' "$ac_site_file" >&5
1794 . "$ac_site_file"
1796 done
1798 if test -r "$cache_file"; then
1799 # Some versions of bash will fail to source /dev/null (special
1800 # files actually), so we avoid doing that.
1801 if test -f "$cache_file"; then
1802 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1803 echo "$as_me: loading cache $cache_file" >&6;}
1804 case $cache_file in
1805 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1806 *) . "./$cache_file";;
1807 esac
1809 else
1810 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1811 echo "$as_me: creating cache $cache_file" >&6;}
1812 >$cache_file
1815 # Check that the precious variables saved in the cache have kept the same
1816 # value.
1817 ac_cache_corrupted=false
1818 for ac_var in $ac_precious_vars; do
1819 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1820 eval ac_new_set=\$ac_env_${ac_var}_set
1821 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1822 eval ac_new_val=\$ac_env_${ac_var}_value
1823 case $ac_old_set,$ac_new_set in
1824 set,)
1825 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1826 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1827 ac_cache_corrupted=: ;;
1828 ,set)
1829 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1831 ac_cache_corrupted=: ;;
1832 ,);;
1834 if test "x$ac_old_val" != "x$ac_new_val"; then
1835 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1836 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1837 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1838 echo "$as_me: former value: $ac_old_val" >&2;}
1839 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1840 echo "$as_me: current value: $ac_new_val" >&2;}
1841 ac_cache_corrupted=:
1842 fi;;
1843 esac
1844 # Pass precious variables to config.status.
1845 if test "$ac_new_set" = set; then
1846 case $ac_new_val in
1847 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1848 *) ac_arg=$ac_var=$ac_new_val ;;
1849 esac
1850 case " $ac_configure_args " in
1851 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1852 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1853 esac
1855 done
1856 if $ac_cache_corrupted; then
1857 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1858 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1859 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1860 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1861 { (exit 1); exit 1; }; }
1880 ac_ext=c
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 ac_aux_dir=
1889 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1890 if test -f "$ac_dir/install-sh"; then
1891 ac_aux_dir=$ac_dir
1892 ac_install_sh="$ac_aux_dir/install-sh -c"
1893 break
1894 elif test -f "$ac_dir/install.sh"; then
1895 ac_aux_dir=$ac_dir
1896 ac_install_sh="$ac_aux_dir/install.sh -c"
1897 break
1898 elif test -f "$ac_dir/shtool"; then
1899 ac_aux_dir=$ac_dir
1900 ac_install_sh="$ac_aux_dir/shtool install -c"
1901 break
1903 done
1904 if test -z "$ac_aux_dir"; then
1905 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1906 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1907 { (exit 1); exit 1; }; }
1910 # These three variables are undocumented and unsupported,
1911 # and are intended to be withdrawn in a future Autoconf release.
1912 # They can cause serious problems if a builder's source tree is in a directory
1913 # whose full name contains unusual characters.
1914 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1915 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1916 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1920 # Check what host we are running on.
1921 # If a target is not suggested, we use this one.
1922 # Note that what we call a target, Autoconf calls a host.
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1976 else
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007 # The AROS target is slightly different to the normal GNU style
2008 # format. We don't have the middle part, and we reverse the order
2009 # of the $(CPU) and $(OS) bits.
2011 # Don't strip the version of the target yet, it might be
2012 # useful on some systems.
2014 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2015 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2017 if test "$target" = "NONE" ; then
2018 target=$host_os-$host_cpu
2019 cross_compile=no
2020 else
2021 if test "$target" = "" ; then
2022 target=$host_os-$host_cpu
2023 cross_compile=no
2024 else
2025 cross_compile=yes
2028 { echo "$as_me:$LINENO: result: $target" >&5
2029 echo "${ECHO_T}$target" >&6; }
2031 #don't know where else to put this...
2032 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2033 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2034 AROS_BUILDDIR=$PWD
2035 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2036 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2038 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2039 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2040 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2041 AROS_SRCDIR=${srcpwd}
2042 { echo "$as_me:$LINENO: result: $AROS_SRCDIR" >&5
2043 echo "${ECHO_T}$AROS_SRCDIR" >&6; }
2045 # Parse the target field into something useful.
2047 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2048 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2051 aros_default_wbwidth=800
2052 aros_default_wbheight=600
2053 aros_default_wbdepth=4
2056 # The first step is to find the host binaries.
2057 # Check for a compiler.
2058 ac_ext=c
2059 ac_cpp='$CPP $CPPFLAGS'
2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 if test -n "$ac_tool_prefix"; then
2064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2085 done
2086 done
2087 IFS=$as_save_IFS
2091 CC=$ac_cv_prog_CC
2092 if test -n "$CC"; then
2093 { echo "$as_me:$LINENO: result: $CC" >&5
2094 echo "${ECHO_T}$CC" >&6; }
2095 else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2102 if test -z "$ac_cv_prog_CC"; then
2103 ac_ct_CC=$CC
2104 # Extract the first word of "gcc", so it can be a program name with args.
2105 set dummy gcc; ac_word=$2
2106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$ac_ct_CC"; then
2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 ac_cv_prog_ac_ct_CC="gcc"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2125 done
2126 done
2127 IFS=$as_save_IFS
2131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2132 if test -n "$ac_ct_CC"; then
2133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2134 echo "${ECHO_T}$ac_ct_CC" >&6; }
2135 else
2136 { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2140 if test "x$ac_ct_CC" = x; then
2141 CC=""
2142 else
2143 case $cross_compiling:$ac_tool_warned in
2144 yes:)
2145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2146 whose name does not start with the host triplet. If you think this
2147 configuration is useful to you, please write to autoconf@gnu.org." >&5
2148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2149 whose name does not start with the host triplet. If you think this
2150 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2151 ac_tool_warned=yes ;;
2152 esac
2153 CC=$ac_ct_CC
2155 else
2156 CC="$ac_cv_prog_CC"
2159 if test -z "$CC"; then
2160 if test -n "$ac_tool_prefix"; then
2161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}cc; ac_word=$2
2163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2165 if test "${ac_cv_prog_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178 ac_cv_prog_CC="${ac_tool_prefix}cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2182 done
2183 done
2184 IFS=$as_save_IFS
2188 CC=$ac_cv_prog_CC
2189 if test -n "$CC"; then
2190 { echo "$as_me:$LINENO: result: $CC" >&5
2191 echo "${ECHO_T}$CC" >&6; }
2192 else
2193 { echo "$as_me:$LINENO: result: no" >&5
2194 echo "${ECHO_T}no" >&6; }
2200 if test -z "$CC"; then
2201 # Extract the first word of "cc", so it can be a program name with args.
2202 set dummy cc; ac_word=$2
2203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 ac_prog_rejected=no
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2220 ac_prog_rejected=yes
2221 continue
2223 ac_cv_prog_CC="cc"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2227 done
2228 done
2229 IFS=$as_save_IFS
2231 if test $ac_prog_rejected = yes; then
2232 # We found a bogon in the path, so make sure we never use it.
2233 set dummy $ac_cv_prog_CC
2234 shift
2235 if test $# != 0; then
2236 # We chose a different compiler from the bogus one.
2237 # However, it has the same basename, so the bogon will be chosen
2238 # first if we set CC to just the basename; use the full file name.
2239 shift
2240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247 { echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6; }
2249 else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2256 if test -z "$CC"; then
2257 if test -n "$ac_tool_prefix"; then
2258 for ac_prog in cl.exe
2260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2281 done
2282 done
2283 IFS=$as_save_IFS
2287 CC=$ac_cv_prog_CC
2288 if test -n "$CC"; then
2289 { echo "$as_me:$LINENO: result: $CC" >&5
2290 echo "${ECHO_T}$CC" >&6; }
2291 else
2292 { echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6; }
2297 test -n "$CC" && break
2298 done
2300 if test -z "$CC"; then
2301 ac_ct_CC=$CC
2302 for ac_prog in cl.exe
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 if test -n "$ac_ct_CC"; then
2312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_ac_ct_CC="$ac_prog"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2325 done
2326 done
2327 IFS=$as_save_IFS
2331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332 if test -n "$ac_ct_CC"; then
2333 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334 echo "${ECHO_T}$ac_ct_CC" >&6; }
2335 else
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2341 test -n "$ac_ct_CC" && break
2342 done
2344 if test "x$ac_ct_CC" = x; then
2345 CC=""
2346 else
2347 case $cross_compiling:$ac_tool_warned in
2348 yes:)
2349 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2350 whose name does not start with the host triplet. If you think this
2351 configuration is useful to you, please write to autoconf@gnu.org." >&5
2352 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2353 whose name does not start with the host triplet. If you think this
2354 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2355 ac_tool_warned=yes ;;
2356 esac
2357 CC=$ac_ct_CC
2364 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: no acceptable C compiler found in \$PATH
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2370 # Provide some information about the compiler.
2371 echo "$as_me:$LINENO: checking for C compiler version" >&5
2372 ac_compiler=`set X $ac_compile; echo $2`
2373 { (ac_try="$ac_compiler --version >&5"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compiler --version >&5") 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2383 { (ac_try="$ac_compiler -v >&5"
2384 case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compiler -v >&5") 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
2393 { (ac_try="$ac_compiler -V >&5"
2394 case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compiler -V >&5") 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2416 return 0;
2418 _ACEOF
2419 ac_clean_files_save=$ac_clean_files
2420 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2421 # Try to create an executable without -o first, disregard a.out.
2422 # It will help us diagnose broken compilers, and finding out an intuition
2423 # of exeext.
2424 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2425 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2426 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2428 # List of possible output files, starting from the most likely.
2429 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2430 # only as a last resort. b.out is created by i960 compilers.
2431 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2433 # The IRIX 6 linker writes into existing files which may not be
2434 # executable, retaining their permissions. Remove them first so a
2435 # subsequent execution test works.
2436 ac_rmfiles=
2437 for ac_file in $ac_files
2439 case $ac_file in
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2442 esac
2443 done
2444 rm -f $ac_rmfiles
2446 if { (ac_try="$ac_link_default"
2447 case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_link_default") 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2457 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2458 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2459 # so that the user can short-circuit this test for compilers unknown to
2460 # Autoconf.
2461 for ac_file in $ac_files ''
2463 test -f "$ac_file" || continue
2464 case $ac_file in
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2467 [ab].out )
2468 # We found the default executable, but exeext='' is most
2469 # certainly right.
2470 break;;
2471 *.* )
2472 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2473 then :; else
2474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 # We set ac_cv_exeext here because the later test for it is not
2477 # safe: cross compilers may not add the suffix if given an `-o'
2478 # argument, so we may need to know it at that point already.
2479 # Even if this section looks crufty: it has the advantage of
2480 # actually working.
2481 break;;
2483 break;;
2484 esac
2485 done
2486 test "$ac_cv_exeext" = no && ac_cv_exeext=
2488 else
2489 ac_file=''
2492 { echo "$as_me:$LINENO: result: $ac_file" >&5
2493 echo "${ECHO_T}$ac_file" >&6; }
2494 if test -z "$ac_file"; then
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: C compiler cannot create executables
2501 See \`config.log' for more details." >&2;}
2502 { (exit 77); exit 77; }; }
2505 ac_exeext=$ac_cv_exeext
2507 # Check that the compiler produces executables we can run. If not, either
2508 # the compiler is broken, or we cross compile.
2509 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2510 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2511 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2512 # If not cross compiling, check that we can run a simple program.
2513 if test "$cross_compiling" != yes; then
2514 if { ac_try='./$ac_file'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 cross_compiling=no
2525 else
2526 if test "$cross_compiling" = maybe; then
2527 cross_compiling=yes
2528 else
2529 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2530 If you meant to cross compile, use \`--host'.
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot run C compiled programs.
2533 If you meant to cross compile, use \`--host'.
2534 See \`config.log' for more details." >&2;}
2535 { (exit 1); exit 1; }; }
2539 { echo "$as_me:$LINENO: result: yes" >&5
2540 echo "${ECHO_T}yes" >&6; }
2542 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2543 ac_clean_files=$ac_clean_files_save
2544 # Check that the compiler produces executables we can run. If not, either
2545 # the compiler is broken, or we cross compile.
2546 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2547 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2548 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2549 echo "${ECHO_T}$cross_compiling" >&6; }
2551 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2552 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2553 if { (ac_try="$ac_link"
2554 case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_link") 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; then
2563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2566 # `rm'.
2567 for ac_file in conftest.exe conftest conftest.*; do
2568 test -f "$ac_file" || continue
2569 case $ac_file in
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572 break;;
2573 * ) break;;
2574 esac
2575 done
2576 else
2577 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2580 See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }
2584 rm -f conftest$ac_cv_exeext
2585 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2586 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2588 rm -f conftest.$ac_ext
2589 EXEEXT=$ac_cv_exeext
2590 ac_exeext=$EXEEXT
2591 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2592 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2593 if test "${ac_cv_objext+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2604 main ()
2608 return 0;
2610 _ACEOF
2611 rm -f conftest.o conftest.obj
2612 if { (ac_try="$ac_compile"
2613 case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compile") 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 for ac_file in conftest.o conftest.obj conftest.*; do
2623 test -f "$ac_file" || continue;
2624 case $ac_file in
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2626 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2627 break;;
2628 esac
2629 done
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2637 See \`config.log' for more details." >&2;}
2638 { (exit 1); exit 1; }; }
2641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2643 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2644 echo "${ECHO_T}$ac_cv_objext" >&6; }
2645 OBJEXT=$ac_cv_objext
2646 ac_objext=$OBJEXT
2647 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2648 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2649 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h. */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2660 main ()
2662 #ifndef __GNUC__
2663 choke me
2664 #endif
2667 return 0;
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compile") 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } && {
2684 test -z "$ac_c_werror_flag" ||
2685 test ! -s conftest.err
2686 } && test -s conftest.$ac_objext; then
2687 ac_compiler_gnu=yes
2688 else
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2692 ac_compiler_gnu=no
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2699 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2700 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2701 GCC=`test $ac_compiler_gnu = yes && echo yes`
2702 ac_test_CFLAGS=${CFLAGS+set}
2703 ac_save_CFLAGS=$CFLAGS
2704 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2705 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2706 if test "${ac_cv_prog_cc_g+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 ac_save_c_werror_flag=$ac_c_werror_flag
2710 ac_c_werror_flag=yes
2711 ac_cv_prog_cc_g=no
2712 CFLAGS="-g"
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2721 main ()
2725 return 0;
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest.$ac_objext; then
2745 ac_cv_prog_cc_g=yes
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 CFLAGS=""
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h. */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2759 main ()
2763 return 0;
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (ac_try="$ac_compile"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.$ac_objext; then
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 ac_c_werror_flag=$ac_save_c_werror_flag
2789 CFLAGS="-g"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2798 main ()
2802 return 0;
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (ac_try="$ac_compile"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2822 ac_cv_prog_cc_g=yes
2823 else
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_c_werror_flag=$ac_save_c_werror_flag
2839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2840 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2841 if test "$ac_test_CFLAGS" = set; then
2842 CFLAGS=$ac_save_CFLAGS
2843 elif test $ac_cv_prog_cc_g = yes; then
2844 if test "$GCC" = yes; then
2845 CFLAGS="-g -O2"
2846 else
2847 CFLAGS="-g"
2849 else
2850 if test "$GCC" = yes; then
2851 CFLAGS="-O2"
2852 else
2853 CFLAGS=
2856 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2857 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_cc_c89+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 ac_cv_prog_cc_c89=no
2862 ac_save_CC=$CC
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2869 #include <stdarg.h>
2870 #include <stdio.h>
2871 #include <sys/types.h>
2872 #include <sys/stat.h>
2873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2874 struct buf { int x; };
2875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2876 static char *e (p, i)
2877 char **p;
2878 int i;
2880 return p[i];
2882 static char *f (char * (*g) (char **, int), char **p, ...)
2884 char *s;
2885 va_list v;
2886 va_start (v,p);
2887 s = g (p, va_arg (v,int));
2888 va_end (v);
2889 return s;
2892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2893 function prototypes and stuff, but not '\xHH' hex character constants.
2894 These don't provoke an error unfortunately, instead are silently treated
2895 as 'x'. The following induces an error, until -std is added to get
2896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2897 array size at least. It's necessary to write '\x00'==0 to get something
2898 that's true only with -std. */
2899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2902 inside strings and character constants. */
2903 #define FOO(x) 'x'
2904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2906 int test (int i, double x);
2907 struct s1 {int (*f) (int a);};
2908 struct s2 {int (*f) (double a);};
2909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2910 int argc;
2911 char **argv;
2913 main ()
2915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2917 return 0;
2919 _ACEOF
2920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2923 CC="$ac_save_CC $ac_arg"
2924 rm -f conftest.$ac_objext
2925 if { (ac_try="$ac_compile"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.$ac_objext; then
2941 ac_cv_prog_cc_c89=$ac_arg
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2949 rm -f core conftest.err conftest.$ac_objext
2950 test "x$ac_cv_prog_cc_c89" != "xno" && break
2951 done
2952 rm -f conftest.$ac_ext
2953 CC=$ac_save_CC
2956 # AC_CACHE_VAL
2957 case "x$ac_cv_prog_cc_c89" in
2959 { echo "$as_me:$LINENO: result: none needed" >&5
2960 echo "${ECHO_T}none needed" >&6; } ;;
2961 xno)
2962 { echo "$as_me:$LINENO: result: unsupported" >&5
2963 echo "${ECHO_T}unsupported" >&6; } ;;
2965 CC="$CC $ac_cv_prog_cc_c89"
2966 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2967 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2968 esac
2971 ac_ext=c
2972 ac_cpp='$CPP $CPPFLAGS'
2973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 case $ac_cv_prog_cc_stdc in
2978 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2979 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2980 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_c99+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 ac_cv_prog_cc_c99=no
2985 ac_save_CC=$CC
2986 cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <stdarg.h>
2993 #include <stdbool.h>
2994 #include <stdlib.h>
2995 #include <wchar.h>
2996 #include <stdio.h>
2998 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2999 #define debug(...) fprintf (stderr, __VA_ARGS__)
3000 #define showlist(...) puts (#__VA_ARGS__)
3001 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3002 static void
3003 test_varargs_macros (void)
3005 int x = 1234;
3006 int y = 5678;
3007 debug ("Flag");
3008 debug ("X = %d\n", x);
3009 showlist (The first, second, and third items.);
3010 report (x>y, "x is %d but y is %d", x, y);
3013 // Check long long types.
3014 #define BIG64 18446744073709551615ull
3015 #define BIG32 4294967295ul
3016 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3017 #if !BIG_OK
3018 your preprocessor is broken;
3019 #endif
3020 #if BIG_OK
3021 #else
3022 your preprocessor is broken;
3023 #endif
3024 static long long int bignum = -9223372036854775807LL;
3025 static unsigned long long int ubignum = BIG64;
3027 struct incomplete_array
3029 int datasize;
3030 double data[];
3033 struct named_init {
3034 int number;
3035 const wchar_t *name;
3036 double average;
3039 typedef const char *ccp;
3041 static inline int
3042 test_restrict (ccp restrict text)
3044 // See if C++-style comments work.
3045 // Iterate through items via the restricted pointer.
3046 // Also check for declarations in for loops.
3047 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3048 continue;
3049 return 0;
3052 // Check varargs and va_copy.
3053 static void
3054 test_varargs (const char *format, ...)
3056 va_list args;
3057 va_start (args, format);
3058 va_list args_copy;
3059 va_copy (args_copy, args);
3061 const char *str;
3062 int number;
3063 float fnumber;
3065 while (*format)
3067 switch (*format++)
3069 case 's': // string
3070 str = va_arg (args_copy, const char *);
3071 break;
3072 case 'd': // int
3073 number = va_arg (args_copy, int);
3074 break;
3075 case 'f': // float
3076 fnumber = va_arg (args_copy, double);
3077 break;
3078 default:
3079 break;
3082 va_end (args_copy);
3083 va_end (args);
3087 main ()
3090 // Check bool.
3091 _Bool success = false;
3093 // Check restrict.
3094 if (test_restrict ("String literal") == 0)
3095 success = true;
3096 char *restrict newvar = "Another string";
3098 // Check varargs.
3099 test_varargs ("s, d' f .", "string", 65, 34.234);
3100 test_varargs_macros ();
3102 // Check flexible array members.
3103 struct incomplete_array *ia =
3104 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3105 ia->datasize = 10;
3106 for (int i = 0; i < ia->datasize; ++i)
3107 ia->data[i] = i * 1.234;
3109 // Check named initializers.
3110 struct named_init ni = {
3111 .number = 34,
3112 .name = L"Test wide string",
3113 .average = 543.34343,
3116 ni.number = 58;
3118 int dynamic_array[ni.number];
3119 dynamic_array[ni.number - 1] = 543;
3121 // work around unused variable warnings
3122 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3123 || dynamic_array[ni.number - 1] != 543);
3126 return 0;
3128 _ACEOF
3129 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3131 CC="$ac_save_CC $ac_arg"
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3149 ac_cv_prog_cc_c99=$ac_arg
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3157 rm -f core conftest.err conftest.$ac_objext
3158 test "x$ac_cv_prog_cc_c99" != "xno" && break
3159 done
3160 rm -f conftest.$ac_ext
3161 CC=$ac_save_CC
3164 # AC_CACHE_VAL
3165 case "x$ac_cv_prog_cc_c99" in
3167 { echo "$as_me:$LINENO: result: none needed" >&5
3168 echo "${ECHO_T}none needed" >&6; } ;;
3169 xno)
3170 { echo "$as_me:$LINENO: result: unsupported" >&5
3171 echo "${ECHO_T}unsupported" >&6; } ;;
3173 CC="$CC $ac_cv_prog_cc_c99"
3174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3176 esac
3177 if test "x$ac_cv_prog_cc_c99" != xno; then
3178 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3179 else
3180 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3181 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3182 if test "${ac_cv_prog_cc_c89+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 ac_cv_prog_cc_c89=no
3186 ac_save_CC=$CC
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193 #include <stdarg.h>
3194 #include <stdio.h>
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3201 char **p;
3202 int i;
3204 return p[i];
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3208 char *s;
3209 va_list v;
3210 va_start (v,p);
3211 s = g (p, va_arg (v,int));
3212 va_end (v);
3213 return s;
3216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3217 function prototypes and stuff, but not '\xHH' hex character constants.
3218 These don't provoke an error unfortunately, instead are silently treated
3219 as 'x'. The following induces an error, until -std is added to get
3220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3221 array size at least. It's necessary to write '\x00'==0 to get something
3222 that's true only with -std. */
3223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3226 inside strings and character constants. */
3227 #define FOO(x) 'x'
3228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3230 int test (int i, double x);
3231 struct s1 {int (*f) (int a);};
3232 struct s2 {int (*f) (double a);};
3233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3234 int argc;
3235 char **argv;
3237 main ()
3239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3241 return 0;
3243 _ACEOF
3244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3247 CC="$ac_save_CC $ac_arg"
3248 rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && {
3262 test -z "$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3264 } && test -s conftest.$ac_objext; then
3265 ac_cv_prog_cc_c89=$ac_arg
3266 else
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3273 rm -f core conftest.err conftest.$ac_objext
3274 test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 done
3276 rm -f conftest.$ac_ext
3277 CC=$ac_save_CC
3280 # AC_CACHE_VAL
3281 case "x$ac_cv_prog_cc_c89" in
3283 { echo "$as_me:$LINENO: result: none needed" >&5
3284 echo "${ECHO_T}none needed" >&6; } ;;
3285 xno)
3286 { echo "$as_me:$LINENO: result: unsupported" >&5
3287 echo "${ECHO_T}unsupported" >&6; } ;;
3289 CC="$CC $ac_cv_prog_cc_c89"
3290 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3291 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3292 esac
3293 if test "x$ac_cv_prog_cc_c89" != xno; then
3294 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3295 else
3296 ac_cv_prog_cc_stdc=no
3303 esac
3304 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3305 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3306 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 case $ac_cv_prog_cc_stdc in
3311 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3312 echo "${ECHO_T}unsupported" >&6; } ;;
3313 '') { echo "$as_me:$LINENO: result: none needed" >&5
3314 echo "${ECHO_T}none needed" >&6; } ;;
3315 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3316 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3317 esac
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3327 # On Suns, sometimes $CPP names a directory.
3328 if test -n "$CPP" && test -d "$CPP"; then
3329 CPP=
3331 if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358 Syntax error
3359 _ACEOF
3360 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null && {
3373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3374 test ! -s conftest.err
3375 }; then
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Broken: fails on valid input.
3382 continue
3385 rm -f conftest.err conftest.$ac_ext
3387 # OK, works on sane cases. Now check whether nonexistent headers
3388 # can be detected and how.
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <ac_nonexistent.h>
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null && {
3410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 }; then
3413 # Broken: success on invalid input.
3414 continue
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3424 rm -f conftest.err conftest.$ac_ext
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430 break
3433 done
3434 ac_cv_prog_CPP=$CPP
3437 CPP=$ac_cv_prog_CPP
3438 else
3439 ac_cv_prog_CPP=$CPP
3441 { echo "$as_me:$LINENO: result: $CPP" >&5
3442 echo "${ECHO_T}$CPP" >&6; }
3443 ac_preproc_ok=false
3444 for ac_c_preproc_warn_flag in '' yes
3446 # Use a header file that comes with gcc, so configuring glibc
3447 # with a fresh cross-compiler works.
3448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449 # <limits.h> exists even on freestanding compilers.
3450 # On the NeXT, cc -E runs the code through the compiler's parser,
3451 # not just through cpp. "Syntax error" is here to catch this case.
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 #ifdef __STDC__
3459 # include <limits.h>
3460 #else
3461 # include <assert.h>
3462 #endif
3463 Syntax error
3464 _ACEOF
3465 if { (ac_try="$ac_cpp conftest.$ac_ext"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472 ac_status=$?
3473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } >/dev/null && {
3478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 }; then
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 # Broken: fails on valid input.
3487 continue
3490 rm -f conftest.err conftest.$ac_ext
3492 # OK, works on sane cases. Now check whether nonexistent headers
3493 # can be detected and how.
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include <ac_nonexistent.h>
3501 _ACEOF
3502 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null && {
3515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 }; then
3518 # Broken: success on invalid input.
3519 continue
3520 else
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 # Passes both tests.
3525 ac_preproc_ok=:
3526 break
3529 rm -f conftest.err conftest.$ac_ext
3531 done
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then
3536 else
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 # Check for a compatible awk
3552 for ac_prog in gawk nawk
3554 # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3558 if test "${ac_cv_prog_AWK+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -n "$AWK"; then
3562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_AWK="$ac_prog"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 AWK=$ac_cv_prog_AWK
3582 if test -n "$AWK"; then
3583 { echo "$as_me:$LINENO: result: $AWK" >&5
3584 echo "${ECHO_T}$AWK" >&6; }
3585 else
3586 { echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6; }
3591 test -n "$AWK" && break
3592 done
3594 if test "$AWK" = ""; then
3595 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3596 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3597 { (exit 1); exit 1; }; }
3599 # Extract the first word of "mmake", so it can be a program name with args.
3600 set dummy mmake; ac_word=$2
3601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_MMAKE+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$MMAKE"; then
3607 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_MMAKE="mmake "
3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3622 IFS=$as_save_IFS
3626 MMAKE=$ac_cv_prog_MMAKE
3627 if test -n "$MMAKE"; then
3628 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3629 echo "${ECHO_T}$MMAKE" >&6; }
3630 else
3631 { echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6; }
3637 # Perform some default variable assignments. Note all of these will be
3638 # Regenerated from the script, so there is no need to cache them.
3640 aros_host_cc="$CC"
3641 if test "$GCC" = "yes"; then
3642 aros_gcc_ld=`$CC -print-prog-name=ld`
3643 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3644 set dummy `basename $aros_gcc_ld`; ac_word=$2
3645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3647 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 case $aros_host_ld in
3651 [\\/]* | ?:[\\/]*)
3652 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in `dirname $aros_gcc_ld`
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3671 esac
3673 aros_host_ld=$ac_cv_path_aros_host_ld
3674 if test -n "$aros_host_ld"; then
3675 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3676 echo "${ECHO_T}$aros_host_ld" >&6; }
3677 else
3678 { echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6; }
3684 if test "$aros_host_ld" = ""; then
3685 # Extract the first word of "ld", so it can be a program name with args.
3686 set dummy ld; ac_word=$2
3687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3689 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 case $aros_host_ld in
3693 [\\/]* | ?:[\\/]*)
3694 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3713 esac
3715 aros_host_ld=$ac_cv_path_aros_host_ld
3716 if test -n "$aros_host_ld"; then
3717 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3718 echo "${ECHO_T}$aros_host_ld" >&6; }
3719 else
3720 { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3726 if test "$aros_host_ld" = ""; then
3727 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3728 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3729 { (exit 1); exit 1; }; }
3731 aros_host_make="make"
3732 aros_host_cflags=$CFLAGS
3733 aros_host_ldflags=$LDFLAGS
3734 aros_host_debug="-g -O0"
3735 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3736 aros_host_mkargs="--no-print-directory"
3737 aros_host_incl="/usr/include"
3738 aros_host_exe_suffix="$EXEEXT"
3739 aros_host_lib_suffix=""
3741 for ac_prog in aclocal aclocal19
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3747 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 if test -n "$aros_host_aclocal"; then
3751 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_aros_host_aclocal="$ac_prog"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3771 if test -n "$aros_host_aclocal"; then
3772 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3773 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3774 else
3775 { echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6; }
3780 test -n "$aros_host_aclocal" && break
3781 done
3783 for ac_prog in autoconf autoconf259 autoconf253
3785 # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3789 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 if test -n "$aros_host_autoconf"; then
3793 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_aros_host_autoconf="$ac_prog"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3808 IFS=$as_save_IFS
3812 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3813 if test -n "$aros_host_autoconf"; then
3814 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3815 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3816 else
3817 { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3822 test -n "$aros_host_autoconf" && break
3823 done
3825 for ac_prog in autoheader autoheader259 autoheader253
3827 # Extract the first word of "$ac_prog", so it can be a program name with args.
3828 set dummy $ac_prog; ac_word=$2
3829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3831 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 if test -n "$aros_host_autoheader"; then
3835 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_aros_host_autoheader="$ac_prog"
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3848 done
3849 done
3850 IFS=$as_save_IFS
3854 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3855 if test -n "$aros_host_autoheader"; then
3856 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3857 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3858 else
3859 { echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6; }
3864 test -n "$aros_host_autoheader" && break
3865 done
3867 for ac_prog in automake automake19
3869 # Extract the first word of "$ac_prog", so it can be a program name with args.
3870 set dummy $ac_prog; ac_word=$2
3871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3873 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 if test -n "$aros_host_automake"; then
3877 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_aros_host_automake="$ac_prog"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3890 done
3891 done
3892 IFS=$as_save_IFS
3896 aros_host_automake=$ac_cv_prog_aros_host_automake
3897 if test -n "$aros_host_automake"; then
3898 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3899 echo "${ECHO_T}$aros_host_automake" >&6; }
3900 else
3901 { echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6; }
3906 test -n "$aros_host_automake" && break
3907 done
3910 case "$aros_host_cc" in
3911 *gcc*)
3912 aros_host_cc_pipe="-pipe"
3914 icc)
3915 aros_host_cc_pipe=""
3918 aros_host_cc_pipe=""
3920 esac
3922 aros_target_cc_includes=""
3924 # This is the main host configuration section. It is where the host
3925 # can change the values of any variables it needs to change. We do
3926 # not look at anything that compiles to the target yet, we'll get
3927 # to that later.
3929 case "$host_os" in
3930 linux*)
3931 aros_host_arch="linux"
3932 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3933 case "$host_cpu" in
3934 *i?86*)
3935 aros_host_cpu="i386"
3937 *x86_64*)
3938 aros_host_cpu="x86_64"
3940 *m68k*)
3941 aros_host_cpu="m68k"
3943 *powerpc*)
3944 aros_host_cpu="ppc"
3947 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3948 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3949 aros_host_cpu="$host_cpu"
3951 esac
3954 freebsd*)
3955 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3956 aros_host_make="gmake"
3957 aros_host_arch="freebsd"
3958 aros_host_cpu="i386"
3960 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3963 case $host_os in
3964 freebsd[234]*)
3965 aros_object_format="elf_i386"
3969 aros_object_format="elf_i386_fbsd"
3971 esac
3975 darwin*)
3976 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3977 aros_host_arch="darwin"
3978 case "$host_cpu" in
3979 *i?86*)
3980 aros_host_cpu="i386"
3982 *powerpc*)
3983 aros_host_cpu="ppc"
3986 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3987 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3988 aros_host_cpu="$host_cpu"
3990 esac
3992 aros_host_ldflags="$aros_host_ldflags -liconv"
3996 netbsd*)
3997 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3998 aros_host_make="gmake"
3999 aros_host_arch="netbsd"
4000 case "$host_cpu" in
4001 *i?86*)
4002 aros_host_cpu="i386"
4004 *m68k*)
4005 aros_host_cpu="m68k"
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
4013 aros_host_lib_suffix=".0.0"
4016 openbsd*)
4017 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4018 aros_host_make="gmake"
4019 aros_host_arch="openbsd"
4020 case "$host_cpu" in
4021 *i?86*)
4022 aros_host_cpu="i386"
4025 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4026 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4027 aros_host_cpu="$host_cpu"
4029 esac
4032 solaris*)
4033 aros_host_arch="solaris"
4034 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4035 case "$host_cpu" in
4036 *i?86*)
4037 aros_host_cpu="i386"
4039 *sparc*)
4040 aros_host_cpu="sparc"
4043 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4044 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4045 aros_host_cpu="$host_cpu"
4047 esac
4050 morphos*)
4051 aros_host_arch="morphos"
4052 aros_host_cpu="ppc"
4055 amiga*)
4056 aros_host_arch="amiga"
4057 SORT="/gg/bin/sort"
4058 TEST="/gg/bin/test"
4059 UNIQ="/gg/bin/uniq"
4060 FOR="for"
4061 TOUCH="/gg/bin/touch"
4062 case "$host_cpu" in
4063 *m68k*)
4064 aros_host_cpu="m68k"
4066 *powerpc*)
4067 aros_host_cpu="ppc"
4070 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4071 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4072 aros_host_cpu="$host_cpu"
4074 esac
4077 cygwin*)
4078 aros_host_arch="cygwin"
4079 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4080 case "$host_cpu" in
4081 *i?86*)
4082 aros_host_cpu="i386"
4085 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4086 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4087 aros_host_cpu="$host_cpu"
4089 esac
4092 mingw32*)
4093 aros_host_arch="mingw32"
4094 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4095 case "$host_cpu" in
4096 *i?86*)
4097 aros_host_cpu="i386"
4100 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4101 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4102 aros_host_cpu="$host_cpu"
4104 esac
4107 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4108 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4109 { (exit 1); exit 1; }; }
4111 esac
4113 # Extract the first word of "ar", so it can be a program name with args.
4114 set dummy ar; ac_word=$2
4115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4117 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$aros_host_ar"; then
4121 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130 ac_cv_prog_aros_host_ar="ar cr"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4136 IFS=$as_save_IFS
4140 aros_host_ar=$ac_cv_prog_aros_host_ar
4141 if test -n "$aros_host_ar"; then
4142 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4143 echo "${ECHO_T}$aros_host_ar" >&6; }
4144 else
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4150 if test "$aros_host_ar" = ""; then
4151 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4152 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4153 { (exit 1); exit 1; }; }
4155 # Extract the first word of "ranlib", so it can be a program name with args.
4156 set dummy ranlib; ac_word=$2
4157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -n "$aros_host_ranlib"; then
4163 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_aros_host_ranlib="ranlib "
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4178 IFS=$as_save_IFS
4182 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4183 if test -n "$aros_host_ranlib"; then
4184 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4185 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4186 else
4187 { echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6; }
4192 if test "$aros_host_ranlib" = ""; then
4193 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4194 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4195 { (exit 1); exit 1; }; }
4197 # Extract the first word of "strip", so it can be a program name with args.
4198 set dummy strip; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 if test -n "$aros_host_strip"; then
4205 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 ac_cv_prog_aros_host_strip="strip "
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4220 IFS=$as_save_IFS
4224 aros_host_strip=$ac_cv_prog_aros_host_strip
4225 if test -n "$aros_host_strip"; then
4226 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4227 echo "${ECHO_T}$aros_host_strip" >&6; }
4228 else
4229 { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4234 if test "$aros_host_strip" = ""; then
4235 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4236 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4237 { (exit 1); exit 1; }; }
4240 # Extract the first word of "rm", so it can be a program name with args.
4241 set dummy rm; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_RM+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -n "$RM"; then
4248 ac_cv_prog_RM="$RM" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_RM="rm -rf"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4263 IFS=$as_save_IFS
4267 RM=$ac_cv_prog_RM
4268 if test -n "$RM"; then
4269 { echo "$as_me:$LINENO: result: $RM" >&5
4270 echo "${ECHO_T}$RM" >&6; }
4271 else
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4277 if test "$RM" = ""; then
4278 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4279 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4280 { (exit 1); exit 1; }; }
4282 # Extract the first word of "cp", so it can be a program name with args.
4283 set dummy cp; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_CP+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$CP"; then
4290 ac_cv_prog_CP="$CP" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_CP="cp "
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 CP=$ac_cv_prog_CP
4310 if test -n "$CP"; then
4311 { echo "$as_me:$LINENO: result: $CP" >&5
4312 echo "${ECHO_T}$CP" >&6; }
4313 else
4314 { echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6; }
4319 if test "$CP" = ""; then
4320 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4321 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4322 { (exit 1); exit 1; }; }
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_prog_MV+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test -n "$MV"; then
4332 ac_cv_prog_MV="$MV" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_prog_MV="mv "
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 MV=$ac_cv_prog_MV
4352 if test -n "$MV"; then
4353 { echo "$as_me:$LINENO: result: $MV" >&5
4354 echo "${ECHO_T}$MV" >&6; }
4355 else
4356 { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4361 if test "$MV" = ""; then
4362 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4363 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4364 { (exit 1); exit 1; }; }
4366 # Extract the first word of "echo", so it can be a program name with args.
4367 set dummy echo; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_prog_ECHO+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 if test -n "$ECHO"; then
4374 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ECHO="echo "
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4393 ECHO=$ac_cv_prog_ECHO
4394 if test -n "$ECHO"; then
4395 { echo "$as_me:$LINENO: result: $ECHO" >&5
4396 echo "${ECHO_T}$ECHO" >&6; }
4397 else
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4403 if test "$ECHO" = ""; then
4404 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4405 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4406 { (exit 1); exit 1; }; }
4408 # Extract the first word of "mkdir", so it can be a program name with args.
4409 set dummy mkdir; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_MKDIR+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 if test -n "$MKDIR"; then
4416 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_MKDIR="mkdir -p"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4429 done
4430 done
4431 IFS=$as_save_IFS
4435 MKDIR=$ac_cv_prog_MKDIR
4436 if test -n "$MKDIR"; then
4437 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4438 echo "${ECHO_T}$MKDIR" >&6; }
4439 else
4440 { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4445 if test "$MKDIR" = ""; then
4446 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4447 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4448 { (exit 1); exit 1; }; }
4450 # Extract the first word of "touch", so it can be a program name with args.
4451 set dummy touch; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_prog_TOUCH+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457 if test -n "$TOUCH"; then
4458 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_TOUCH="touch "
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4471 done
4472 done
4473 IFS=$as_save_IFS
4477 TOUCH=$ac_cv_prog_TOUCH
4478 if test -n "$TOUCH"; then
4479 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4480 echo "${ECHO_T}$TOUCH" >&6; }
4481 else
4482 { echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6; }
4487 if test "$TOUCH" = ""; then
4488 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4489 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4490 { (exit 1); exit 1; }; }
4492 # Extract the first word of "sort", so it can be a program name with args.
4493 set dummy sort; ac_word=$2
4494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4496 if test "${ac_cv_prog_SORT+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 if test -n "$SORT"; then
4500 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_SORT="sort "
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 SORT=$ac_cv_prog_SORT
4520 if test -n "$SORT"; then
4521 { echo "$as_me:$LINENO: result: $SORT" >&5
4522 echo "${ECHO_T}$SORT" >&6; }
4523 else
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4529 if test "$SORT" = ""; then
4530 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4531 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4532 { (exit 1); exit 1; }; }
4534 # Extract the first word of "uniq", so it can be a program name with args.
4535 set dummy uniq; ac_word=$2
4536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538 if test "${ac_cv_prog_UNIQ+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 if test -n "$UNIQ"; then
4542 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_UNIQ="uniq "
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 UNIQ=$ac_cv_prog_UNIQ
4562 if test -n "$UNIQ"; then
4563 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4564 echo "${ECHO_T}$UNIQ" >&6; }
4565 else
4566 { echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6; }
4571 if test "$UNIQ" = ""; then
4572 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4573 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4574 { (exit 1); exit 1; }; }
4576 # Extract the first word of "true", so it can be a program name with args.
4577 set dummy true; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_prog_NOP+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 if test -n "$NOP"; then
4584 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_NOP="true "
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 NOP=$ac_cv_prog_NOP
4604 if test -n "$NOP"; then
4605 { echo "$as_me:$LINENO: result: $NOP" >&5
4606 echo "${ECHO_T}$NOP" >&6; }
4607 else
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4613 if test "$NOP" = ""; then
4614 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4615 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4616 { (exit 1); exit 1; }; }
4618 # Extract the first word of "cat", so it can be a program name with args.
4619 set dummy cat; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CAT+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$CAT"; then
4626 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CAT="cat "
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 CAT=$ac_cv_prog_CAT
4646 if test -n "$CAT"; then
4647 { echo "$as_me:$LINENO: result: $CAT" >&5
4648 echo "${ECHO_T}$CAT" >&6; }
4649 else
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 if test "$CAT" = ""; then
4656 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4657 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4658 { (exit 1); exit 1; }; }
4660 # Extract the first word of "bison", so it can be a program name with args.
4661 set dummy bison; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_BISON+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 if test -n "$BISON"; then
4668 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_BISON="bison "
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 BISON=$ac_cv_prog_BISON
4688 if test -n "$BISON"; then
4689 { echo "$as_me:$LINENO: result: $BISON" >&5
4690 echo "${ECHO_T}$BISON" >&6; }
4691 else
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 if test "$BISON" = ""; then
4698 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4699 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4700 { (exit 1); exit 1; }; }
4702 # Extract the first word of "flex", so it can be a program name with args.
4703 set dummy flex; ac_word=$2
4704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4706 if test "${ac_cv_prog_FLEX+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 if test -n "$FLEX"; then
4710 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_prog_FLEX="flex "
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4723 done
4724 done
4725 IFS=$as_save_IFS
4729 FLEX=$ac_cv_prog_FLEX
4730 if test -n "$FLEX"; then
4731 { echo "$as_me:$LINENO: result: $FLEX" >&5
4732 echo "${ECHO_T}$FLEX" >&6; }
4733 else
4734 { echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6; }
4739 if test "$FLEX" = ""; then
4740 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4741 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4742 { (exit 1); exit 1; }; }
4744 # Extract the first word of "pngtopnm", so it can be a program name with args.
4745 set dummy pngtopnm; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 if test -n "$PNGTOPNM"; then
4752 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_PNGTOPNM="pngtopnm "
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4772 if test -n "$PNGTOPNM"; then
4773 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4774 echo "${ECHO_T}$PNGTOPNM" >&6; }
4775 else
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4781 if test "$PNGTOPNM" = ""; then
4782 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4783 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4784 { (exit 1); exit 1; }; }
4786 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4787 set dummy ppmtoilbm; ac_word=$2
4788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 if test -n "$PPMTOILBM"; then
4794 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4809 IFS=$as_save_IFS
4813 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4814 if test -n "$PPMTOILBM"; then
4815 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4816 echo "${ECHO_T}$PPMTOILBM" >&6; }
4817 else
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4823 if test "$PPMTOILBM" = ""; then
4824 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4825 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4826 { (exit 1); exit 1; }; }
4828 # Extract the first word of "sed", so it can be a program name with args.
4829 set dummy sed; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_SED+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 if test -n "$SED"; then
4836 ac_cv_prog_SED="$SED" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_SED="sed "
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 SED=$ac_cv_prog_SED
4856 if test -n "$SED"; then
4857 { echo "$as_me:$LINENO: result: $SED" >&5
4858 echo "${ECHO_T}$SED" >&6; }
4859 else
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4865 if test "$SED" = ""; then
4866 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4867 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4868 { (exit 1); exit 1; }; }
4870 # Extract the first word of "chmod", so it can be a program name with args.
4871 set dummy chmod; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_prog_CHMOD+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 if test -n "$CHMOD"; then
4878 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_CHMOD="chmod "
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 CHMOD=$ac_cv_prog_CHMOD
4898 if test -n "$CHMOD"; then
4899 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4900 echo "${ECHO_T}$CHMOD" >&6; }
4901 else
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4907 if test "$CHMOD" = ""; then
4908 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4909 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4910 { (exit 1); exit 1; }; }
4917 if test -n "$PYTHON"; then
4918 # If the user set $PYTHON, use it and don't search something else.
4919 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4920 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4921 prog="import sys, string
4922 # split strings by '.' and convert to numeric. Append some zeros
4923 # because we need at least 4 digits for the hex conversion.
4924 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4925 minverhex = 0
4926 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4927 sys.exit(sys.hexversion < minverhex)"
4928 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4929 ($PYTHON -c "$prog") >&5 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; then
4933 { echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6; }
4935 else
4936 { { echo "$as_me:$LINENO: error: too old" >&5
4937 echo "$as_me: error: too old" >&2;}
4938 { (exit 1); exit 1; }; }
4941 am_display_PYTHON=$PYTHON
4942 else
4943 # Otherwise, try each interpreter until we find one that satisfies
4944 # VERSION.
4945 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4946 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4947 if test "${am_cv_pathless_PYTHON+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4951 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
4952 test "$am_cv_pathless_PYTHON" = none && break
4953 prog="import sys, string
4954 # split strings by '.' and convert to numeric. Append some zeros
4955 # because we need at least 4 digits for the hex conversion.
4956 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4957 minverhex = 0
4958 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4959 sys.exit(sys.hexversion < minverhex)"
4960 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4961 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; then
4965 break
4968 done
4970 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4971 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4972 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4973 if test "$am_cv_pathless_PYTHON" = none; then
4974 PYTHON=:
4975 else
4976 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4977 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_PYTHON+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 case $PYTHON in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4999 done
5000 done
5001 IFS=$as_save_IFS
5004 esac
5006 PYTHON=$ac_cv_path_PYTHON
5007 if test -n "$PYTHON"; then
5008 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5009 echo "${ECHO_T}$PYTHON" >&6; }
5010 else
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5017 am_display_PYTHON=$am_cv_pathless_PYTHON
5021 if test "$PYTHON" = :; then
5022 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5023 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5024 { (exit 1); exit 1; }; }
5025 else
5028 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5029 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5030 if test "${am_cv_python_version+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5035 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5036 echo "${ECHO_T}$am_cv_python_version" >&6; }
5037 PYTHON_VERSION=$am_cv_python_version
5041 PYTHON_PREFIX='${prefix}'
5043 PYTHON_EXEC_PREFIX='${exec_prefix}'
5047 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5048 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5049 if test "${am_cv_python_platform+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5054 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5055 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5056 PYTHON_PLATFORM=$am_cv_python_platform
5061 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5062 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5063 if test "${am_cv_python_pythondir+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5067 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5069 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5070 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5071 pythondir=$am_cv_python_pythondir
5075 pkgpythondir=\${pythondir}/$PACKAGE
5078 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5079 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5080 if test "${am_cv_python_pyexecdir+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5084 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5086 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5087 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5088 pyexecdir=$am_cv_python_pyexecdir
5092 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5100 FOR=for
5102 IF=if
5104 TEST=test
5106 CMP=cmp
5110 # Check for some includes for the X11 HIDD and the kernel
5113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5115 if test "${ac_cv_path_GREP+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 # Extract the first word of "grep ggrep" to use in msg output
5119 if test -z "$GREP"; then
5120 set dummy grep ggrep; ac_prog_name=$2
5121 if test "${ac_cv_path_GREP+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 ac_path_GREP_found=false
5125 # Loop through the user's path and test for each of PROGNAME-LIST
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_prog in grep ggrep; do
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5135 # Check for GNU ac_path_GREP and select it if it is found.
5136 # Check for GNU $ac_path_GREP
5137 case `"$ac_path_GREP" --version 2>&1` in
5138 *GNU*)
5139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5141 ac_count=0
5142 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5143 while :
5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
5146 mv "conftest.tmp" "conftest.in"
5147 cp "conftest.in" "conftest.nl"
5148 echo 'GREP' >> "conftest.nl"
5149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151 ac_count=`expr $ac_count + 1`
5152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5153 # Best one so far, save it but keep looking for a better one
5154 ac_cv_path_GREP="$ac_path_GREP"
5155 ac_path_GREP_max=$ac_count
5157 # 10*(2^10) chars as input seems more than enough
5158 test $ac_count -gt 10 && break
5159 done
5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161 esac
5164 $ac_path_GREP_found && break 3
5165 done
5166 done
5168 done
5169 IFS=$as_save_IFS
5174 GREP="$ac_cv_path_GREP"
5175 if test -z "$GREP"; then
5176 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5178 { (exit 1); exit 1; }; }
5181 else
5182 ac_cv_path_GREP=$GREP
5187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5189 GREP="$ac_cv_path_GREP"
5192 { echo "$as_me:$LINENO: checking for egrep" >&5
5193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_EGREP+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5198 then ac_cv_path_EGREP="$GREP -E"
5199 else
5200 # Extract the first word of "egrep" to use in msg output
5201 if test -z "$EGREP"; then
5202 set dummy egrep; ac_prog_name=$2
5203 if test "${ac_cv_path_EGREP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 ac_path_EGREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in egrep; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5217 # Check for GNU ac_path_EGREP and select it if it is found.
5218 # Check for GNU $ac_path_EGREP
5219 case `"$ac_path_EGREP" --version 2>&1` in
5220 *GNU*)
5221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5223 ac_count=0
5224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5225 while :
5227 cat "conftest.in" "conftest.in" >"conftest.tmp"
5228 mv "conftest.tmp" "conftest.in"
5229 cp "conftest.in" "conftest.nl"
5230 echo 'EGREP' >> "conftest.nl"
5231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5233 ac_count=`expr $ac_count + 1`
5234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5235 # Best one so far, save it but keep looking for a better one
5236 ac_cv_path_EGREP="$ac_path_EGREP"
5237 ac_path_EGREP_max=$ac_count
5239 # 10*(2^10) chars as input seems more than enough
5240 test $ac_count -gt 10 && break
5241 done
5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5243 esac
5246 $ac_path_EGREP_found && break 3
5247 done
5248 done
5250 done
5251 IFS=$as_save_IFS
5256 EGREP="$ac_cv_path_EGREP"
5257 if test -z "$EGREP"; then
5258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5260 { (exit 1); exit 1; }; }
5263 else
5264 ac_cv_path_EGREP=$EGREP
5270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5272 EGREP="$ac_cv_path_EGREP"
5275 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5276 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5277 if test "${ac_cv_header_stdc+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 #include <stdlib.h>
5287 #include <stdarg.h>
5288 #include <string.h>
5289 #include <float.h>
5292 main ()
5296 return 0;
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (ac_try="$ac_compile"
5301 case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304 esac
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && {
5313 test -z "$ac_c_werror_flag" ||
5314 test ! -s conftest.err
5315 } && test -s conftest.$ac_objext; then
5316 ac_cv_header_stdc=yes
5317 else
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 ac_cv_header_stdc=no
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 if test $ac_cv_header_stdc = yes; then
5327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h. */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 #include <string.h>
5336 _ACEOF
5337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5338 $EGREP "memchr" >/dev/null 2>&1; then
5340 else
5341 ac_cv_header_stdc=no
5343 rm -f conftest*
5347 if test $ac_cv_header_stdc = yes; then
5348 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5349 cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h. */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5355 #include <stdlib.h>
5357 _ACEOF
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "free" >/dev/null 2>&1; then
5361 else
5362 ac_cv_header_stdc=no
5364 rm -f conftest*
5368 if test $ac_cv_header_stdc = yes; then
5369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5370 if test "$cross_compiling" = yes; then
5372 else
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <ctype.h>
5380 #include <stdlib.h>
5381 #if ((' ' & 0x0FF) == 0x020)
5382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5384 #else
5385 # define ISLOWER(c) \
5386 (('a' <= (c) && (c) <= 'i') \
5387 || ('j' <= (c) && (c) <= 'r') \
5388 || ('s' <= (c) && (c) <= 'z'))
5389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5390 #endif
5392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5394 main ()
5396 int i;
5397 for (i = 0; i < 256; i++)
5398 if (XOR (islower (i), ISLOWER (i))
5399 || toupper (i) != TOUPPER (i))
5400 return 2;
5401 return 0;
5403 _ACEOF
5404 rm -f conftest$ac_exeext
5405 if { (ac_try="$ac_link"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_link") 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5415 { (case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418 esac
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_try") 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5425 else
5426 echo "$as_me: program exited with status $ac_status" >&5
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 ( exit $ac_status )
5431 ac_cv_header_stdc=no
5433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5439 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5440 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5441 if test $ac_cv_header_stdc = yes; then
5443 cat >>confdefs.h <<\_ACEOF
5444 #define STDC_HEADERS 1
5445 _ACEOF
5449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5460 inttypes.h stdint.h unistd.h
5462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5476 #include <$ac_header>
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5495 eval "$as_ac_Header=yes"
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 eval "$as_ac_Header=no"
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 ac_res=`eval echo '${'$as_ac_Header'}'`
5506 { echo "$as_me:$LINENO: result: $ac_res" >&5
5507 echo "${ECHO_T}$ac_res" >&6; }
5508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509 cat >>confdefs.h <<_ACEOF
5510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511 _ACEOF
5515 done
5527 for ac_header in sys/ipc.h sys/shm.h \
5528 sys/mmap.h sys/mman.h sysexits.h \
5529 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 ac_res=`eval echo '${'$as_ac_Header'}'`
5540 { echo "$as_me:$LINENO: result: $ac_res" >&5
5541 echo "${ECHO_T}$ac_res" >&6; }
5542 else
5543 # Is the header compilable?
5544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5553 #include <$ac_header>
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (ac_try="$ac_compile"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compile") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 ac_header_compiler=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_header_compiler=no
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5582 echo "${ECHO_T}$ac_header_compiler" >&6; }
5584 # Is the header present?
5585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #include <$ac_header>
5594 _ACEOF
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null && {
5608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5610 }; then
5611 ac_header_preproc=yes
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 ac_header_preproc=no
5619 rm -f conftest.err conftest.$ac_ext
5620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5621 echo "${ECHO_T}$ac_header_preproc" >&6; }
5623 # So? What about this header?
5624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5625 yes:no: )
5626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5630 ac_header_preproc=yes
5632 no:yes:* )
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5647 esac
5648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 eval "$as_ac_Header=\$ac_header_preproc"
5655 ac_res=`eval echo '${'$as_ac_Header'}'`
5656 { echo "$as_me:$LINENO: result: $ac_res" >&5
5657 echo "${ECHO_T}$ac_res" >&6; }
5660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5661 cat >>confdefs.h <<_ACEOF
5662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5663 _ACEOF
5667 done
5671 for ac_header in sys/mount.h
5673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 #include <sys/param.h>
5687 #include <$ac_header>
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5691 case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
5706 eval "$as_ac_Header=yes"
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 eval "$as_ac_Header=no"
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 ac_res=`eval echo '${'$as_ac_Header'}'`
5717 { echo "$as_me:$LINENO: result: $ac_res" >&5
5718 echo "${ECHO_T}$ac_res" >&6; }
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 _ACEOF
5726 done
5734 ac_header_dirent=no
5735 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5736 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5737 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5738 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 #include <$ac_hdr>
5752 main ()
5754 if ((DIR *) 0)
5755 return 0;
5757 return 0;
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (ac_try="$ac_compile"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compile") 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } && {
5774 test -z "$ac_c_werror_flag" ||
5775 test ! -s conftest.err
5776 } && test -s conftest.$ac_objext; then
5777 eval "$as_ac_Header=yes"
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 eval "$as_ac_Header=no"
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_res=`eval echo '${'$as_ac_Header'}'`
5788 { echo "$as_me:$LINENO: result: $ac_res" >&5
5789 echo "${ECHO_T}$ac_res" >&6; }
5790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5791 cat >>confdefs.h <<_ACEOF
5792 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5793 _ACEOF
5795 ac_header_dirent=$ac_hdr; break
5798 done
5799 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5800 if test $ac_header_dirent = dirent.h; then
5801 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5803 if test "${ac_cv_search_opendir+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 ac_func_search_save_LIBS=$LIBS
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5814 /* Override any GCC internal prototype to avoid an error.
5815 Use char because int might match the return type of a GCC
5816 builtin and then its argument prototype would still apply. */
5817 #ifdef __cplusplus
5818 extern "C"
5819 #endif
5820 char opendir ();
5822 main ()
5824 return opendir ();
5826 return 0;
5828 _ACEOF
5829 for ac_lib in '' dir; do
5830 if test -z "$ac_lib"; then
5831 ac_res="none required"
5832 else
5833 ac_res=-l$ac_lib
5834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (ac_try="$ac_link"
5838 case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_link") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest$ac_exeext &&
5853 $as_test_x conftest$ac_exeext; then
5854 ac_cv_search_opendir=$ac_res
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5863 conftest$ac_exeext
5864 if test "${ac_cv_search_opendir+set}" = set; then
5865 break
5867 done
5868 if test "${ac_cv_search_opendir+set}" = set; then
5870 else
5871 ac_cv_search_opendir=no
5873 rm conftest.$ac_ext
5874 LIBS=$ac_func_search_save_LIBS
5876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5878 ac_res=$ac_cv_search_opendir
5879 if test "$ac_res" != no; then
5880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5884 else
5885 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5886 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5887 if test "${ac_cv_search_opendir+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 ac_func_search_save_LIBS=$LIBS
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h. */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5898 /* Override any GCC internal prototype to avoid an error.
5899 Use char because int might match the return type of a GCC
5900 builtin and then its argument prototype would still apply. */
5901 #ifdef __cplusplus
5902 extern "C"
5903 #endif
5904 char opendir ();
5906 main ()
5908 return opendir ();
5910 return 0;
5912 _ACEOF
5913 for ac_lib in '' x; do
5914 if test -z "$ac_lib"; then
5915 ac_res="none required"
5916 else
5917 ac_res=-l$ac_lib
5918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (ac_try="$ac_link"
5922 case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_link") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest$ac_exeext &&
5937 $as_test_x conftest$ac_exeext; then
5938 ac_cv_search_opendir=$ac_res
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5947 conftest$ac_exeext
5948 if test "${ac_cv_search_opendir+set}" = set; then
5949 break
5951 done
5952 if test "${ac_cv_search_opendir+set}" = set; then
5954 else
5955 ac_cv_search_opendir=no
5957 rm conftest.$ac_ext
5958 LIBS=$ac_func_search_save_LIBS
5960 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5961 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5962 ac_res=$ac_cv_search_opendir
5963 if test "$ac_res" != no; then
5964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5970 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5971 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5972 if test "${ac_cv_header_stat_broken+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <sys/types.h>
5982 #include <sys/stat.h>
5984 #if defined S_ISBLK && defined S_IFDIR
5985 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5986 #endif
5988 #if defined S_ISBLK && defined S_IFCHR
5989 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5990 #endif
5992 #if defined S_ISLNK && defined S_IFREG
5993 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5994 #endif
5996 #if defined S_ISSOCK && defined S_IFREG
5997 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5998 #endif
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6018 ac_cv_header_stat_broken=no
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 ac_cv_header_stat_broken=yes
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6029 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6030 if test $ac_cv_header_stat_broken = yes; then
6032 cat >>confdefs.h <<\_ACEOF
6033 #define STAT_MACROS_BROKEN 1
6034 _ACEOF
6038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6040 if test "${ac_cv_header_stdc+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <stdlib.h>
6050 #include <stdarg.h>
6051 #include <string.h>
6052 #include <float.h>
6055 main ()
6059 return 0;
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (ac_try="$ac_compile"
6064 case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
6079 ac_cv_header_stdc=yes
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cv_header_stdc=no
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 if test $ac_cv_header_stdc = yes; then
6090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 #include <string.h>
6099 _ACEOF
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "memchr" >/dev/null 2>&1; then
6103 else
6104 ac_cv_header_stdc=no
6106 rm -f conftest*
6110 if test $ac_cv_header_stdc = yes; then
6111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <stdlib.h>
6120 _ACEOF
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "free" >/dev/null 2>&1; then
6124 else
6125 ac_cv_header_stdc=no
6127 rm -f conftest*
6131 if test $ac_cv_header_stdc = yes; then
6132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6133 if test "$cross_compiling" = yes; then
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <ctype.h>
6143 #include <stdlib.h>
6144 #if ((' ' & 0x0FF) == 0x020)
6145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6147 #else
6148 # define ISLOWER(c) \
6149 (('a' <= (c) && (c) <= 'i') \
6150 || ('j' <= (c) && (c) <= 'r') \
6151 || ('s' <= (c) && (c) <= 'z'))
6152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6153 #endif
6155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6157 main ()
6159 int i;
6160 for (i = 0; i < 256; i++)
6161 if (XOR (islower (i), ISLOWER (i))
6162 || toupper (i) != TOUPPER (i))
6163 return 2;
6164 return 0;
6166 _ACEOF
6167 rm -f conftest$ac_exeext
6168 if { (ac_try="$ac_link"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_link") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6188 else
6189 echo "$as_me: program exited with status $ac_status" >&5
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 ( exit $ac_status )
6194 ac_cv_header_stdc=no
6196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6204 if test $ac_cv_header_stdc = yes; then
6206 cat >>confdefs.h <<\_ACEOF
6207 #define STDC_HEADERS 1
6208 _ACEOF
6212 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6213 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6214 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <sys/types.h>
6224 #include <sys/wait.h>
6225 #ifndef WEXITSTATUS
6226 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6227 #endif
6228 #ifndef WIFEXITED
6229 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6230 #endif
6233 main ()
6235 int s;
6236 wait (&s);
6237 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6239 return 0;
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6244 case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest.$ac_objext; then
6259 ac_cv_header_sys_wait_h=yes
6260 else
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_cv_header_sys_wait_h=no
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6270 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6271 if test $ac_cv_header_sys_wait_h = yes; then
6273 cat >>confdefs.h <<\_ACEOF
6274 #define HAVE_SYS_WAIT_H 1
6275 _ACEOF
6279 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6280 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6281 if test "${ac_cv_header_time+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <sys/types.h>
6291 #include <sys/time.h>
6292 #include <time.h>
6295 main ()
6297 if ((struct tm *) 0)
6298 return 0;
6300 return 0;
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6305 case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_cv_header_time=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ac_cv_header_time=no
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6331 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6332 if test $ac_cv_header_time = yes; then
6334 cat >>confdefs.h <<\_ACEOF
6335 #define TIME_WITH_SYS_TIME 1
6336 _ACEOF
6340 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6341 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6342 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6353 main ()
6355 static struct stat ac_aggr;
6356 if (ac_aggr.st_blksize)
6357 return 0;
6359 return 0;
6361 _ACEOF
6362 rm -f conftest.$ac_objext
6363 if { (ac_try="$ac_compile"
6364 case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_compile") 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && {
6376 test -z "$ac_c_werror_flag" ||
6377 test ! -s conftest.err
6378 } && test -s conftest.$ac_objext; then
6379 ac_cv_member_struct_stat_st_blksize=yes
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h. */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 $ac_includes_default
6392 main ()
6394 static struct stat ac_aggr;
6395 if (sizeof ac_aggr.st_blksize)
6396 return 0;
6398 return 0;
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (ac_try="$ac_compile"
6403 case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_compile") 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && {
6415 test -z "$ac_c_werror_flag" ||
6416 test ! -s conftest.err
6417 } && test -s conftest.$ac_objext; then
6418 ac_cv_member_struct_stat_st_blksize=yes
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 ac_cv_member_struct_stat_st_blksize=no
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6432 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6433 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6437 _ACEOF
6440 cat >>confdefs.h <<\_ACEOF
6441 #define HAVE_ST_BLKSIZE 1
6442 _ACEOF
6447 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6448 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6449 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 $ac_includes_default
6460 main ()
6462 static struct stat ac_aggr;
6463 if (ac_aggr.st_blocks)
6464 return 0;
6466 return 0;
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6471 case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest.$ac_objext; then
6486 ac_cv_member_struct_stat_st_blocks=yes
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 $ac_includes_default
6499 main ()
6501 static struct stat ac_aggr;
6502 if (sizeof ac_aggr.st_blocks)
6503 return 0;
6505 return 0;
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6510 case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.$ac_objext; then
6525 ac_cv_member_struct_stat_st_blocks=yes
6526 else
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_member_struct_stat_st_blocks=no
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6539 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6540 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6542 cat >>confdefs.h <<_ACEOF
6543 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6544 _ACEOF
6547 cat >>confdefs.h <<\_ACEOF
6548 #define HAVE_ST_BLOCKS 1
6549 _ACEOF
6551 else
6552 case " $LIBOBJS " in
6553 *" fileblocks.$ac_objext "* ) ;;
6554 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6556 esac
6561 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6562 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6563 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6574 main ()
6576 static struct stat ac_aggr;
6577 if (ac_aggr.st_rdev)
6578 return 0;
6580 return 0;
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (ac_try="$ac_compile"
6585 case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_compile") 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && {
6597 test -z "$ac_c_werror_flag" ||
6598 test ! -s conftest.err
6599 } && test -s conftest.$ac_objext; then
6600 ac_cv_member_struct_stat_st_rdev=yes
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 $ac_includes_default
6613 main ()
6615 static struct stat ac_aggr;
6616 if (sizeof ac_aggr.st_rdev)
6617 return 0;
6619 return 0;
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (ac_try="$ac_compile"
6624 case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_compile") 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } && {
6636 test -z "$ac_c_werror_flag" ||
6637 test ! -s conftest.err
6638 } && test -s conftest.$ac_objext; then
6639 ac_cv_member_struct_stat_st_rdev=yes
6640 else
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 ac_cv_member_struct_stat_st_rdev=no
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6653 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6654 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6656 cat >>confdefs.h <<_ACEOF
6657 #define HAVE_STRUCT_STAT_ST_RDEV 1
6658 _ACEOF
6661 cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_ST_RDEV 1
6663 _ACEOF
6668 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6669 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6670 if test "${ac_cv_struct_tm+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <sys/types.h>
6680 #include <time.h>
6683 main ()
6685 struct tm tm;
6686 int *p = &tm.tm_sec;
6687 return !p;
6689 return 0;
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6694 case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
6700 ac_status=$?
6701 grep -v '^ *+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.$ac_objext; then
6709 ac_cv_struct_tm=time.h
6710 else
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_cv_struct_tm=sys/time.h
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6720 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6721 if test $ac_cv_struct_tm = sys/time.h; then
6723 cat >>confdefs.h <<\_ACEOF
6724 #define TM_IN_SYS_TIME 1
6725 _ACEOF
6729 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6730 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6731 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <$ac_cv_struct_tm>
6745 main ()
6747 static struct tm ac_aggr;
6748 if (ac_aggr.tm_zone)
6749 return 0;
6751 return 0;
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (ac_try="$ac_compile"
6756 case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_compile") 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest.$ac_objext; then
6771 ac_cv_member_struct_tm_tm_zone=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <$ac_cv_struct_tm>
6787 main ()
6789 static struct tm ac_aggr;
6790 if (sizeof ac_aggr.tm_zone)
6791 return 0;
6793 return 0;
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (ac_try="$ac_compile"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_compile") 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } && {
6810 test -z "$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6812 } && test -s conftest.$ac_objext; then
6813 ac_cv_member_struct_tm_tm_zone=yes
6814 else
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 ac_cv_member_struct_tm_tm_zone=no
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6827 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6828 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_STRUCT_TM_TM_ZONE 1
6832 _ACEOF
6837 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6839 cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_TM_ZONE 1
6841 _ACEOF
6843 else
6844 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6845 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6846 if test "${ac_cv_have_decl_tzname+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h. */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 #include <time.h>
6858 main ()
6860 #ifndef tzname
6861 (void) tzname;
6862 #endif
6865 return 0;
6867 _ACEOF
6868 rm -f conftest.$ac_objext
6869 if { (ac_try="$ac_compile"
6870 case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6873 esac
6874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6875 (eval "$ac_compile") 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && {
6882 test -z "$ac_c_werror_flag" ||
6883 test ! -s conftest.err
6884 } && test -s conftest.$ac_objext; then
6885 ac_cv_have_decl_tzname=yes
6886 else
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6890 ac_cv_have_decl_tzname=no
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6896 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6897 if test $ac_cv_have_decl_tzname = yes; then
6899 cat >>confdefs.h <<_ACEOF
6900 #define HAVE_DECL_TZNAME 1
6901 _ACEOF
6904 else
6905 cat >>confdefs.h <<_ACEOF
6906 #define HAVE_DECL_TZNAME 0
6907 _ACEOF
6913 { echo "$as_me:$LINENO: checking for tzname" >&5
6914 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6915 if test "${ac_cv_var_tzname+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 #include <time.h>
6925 #if !HAVE_DECL_TZNAME
6926 extern char *tzname[];
6927 #endif
6930 main ()
6932 return tzname[0][0];
6934 return 0;
6936 _ACEOF
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (ac_try="$ac_link"
6939 case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_link") 2>conftest.er1
6945 ac_status=$?
6946 grep -v '^ *+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } && {
6951 test -z "$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6953 } && test -s conftest$ac_exeext &&
6954 $as_test_x conftest$ac_exeext; then
6955 ac_cv_var_tzname=yes
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_cv_var_tzname=no
6963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6964 conftest$ac_exeext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6967 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6968 if test $ac_cv_var_tzname = yes; then
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_TZNAME 1
6972 _ACEOF
6977 { echo "$as_me:$LINENO: checking for off_t" >&5
6978 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6979 if test "${ac_cv_type_off_t+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 typedef off_t ac__type_new_;
6991 main ()
6993 if ((ac__type_new_ *) 0)
6994 return 0;
6995 if (sizeof (ac__type_new_))
6996 return 0;
6998 return 0;
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (ac_try="$ac_compile"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compile") 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest.$ac_objext; then
7018 ac_cv_type_off_t=yes
7019 else
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_cv_type_off_t=no
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7029 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7030 if test $ac_cv_type_off_t = yes; then
7032 else
7034 cat >>confdefs.h <<_ACEOF
7035 #define off_t long int
7036 _ACEOF
7040 { echo "$as_me:$LINENO: checking for pid_t" >&5
7041 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7042 if test "${ac_cv_type_pid_t+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7052 typedef pid_t ac__type_new_;
7054 main ()
7056 if ((ac__type_new_ *) 0)
7057 return 0;
7058 if (sizeof (ac__type_new_))
7059 return 0;
7061 return 0;
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 ac_cv_type_pid_t=yes
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_type_pid_t=no
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7092 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7093 if test $ac_cv_type_pid_t = yes; then
7095 else
7097 cat >>confdefs.h <<_ACEOF
7098 #define pid_t int
7099 _ACEOF
7103 { echo "$as_me:$LINENO: checking for size_t" >&5
7104 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7105 if test "${ac_cv_type_size_t+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7115 typedef size_t ac__type_new_;
7117 main ()
7119 if ((ac__type_new_ *) 0)
7120 return 0;
7121 if (sizeof (ac__type_new_))
7122 return 0;
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7144 ac_cv_type_size_t=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 ac_cv_type_size_t=no
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7155 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7156 if test $ac_cv_type_size_t = yes; then
7158 else
7160 cat >>confdefs.h <<_ACEOF
7161 #define size_t unsigned int
7162 _ACEOF
7166 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7167 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7168 if test "${ac_cv_type_uid_t+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7179 _ACEOF
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 $EGREP "uid_t" >/dev/null 2>&1; then
7182 ac_cv_type_uid_t=yes
7183 else
7184 ac_cv_type_uid_t=no
7186 rm -f conftest*
7189 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7190 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7191 if test $ac_cv_type_uid_t = no; then
7193 cat >>confdefs.h <<\_ACEOF
7194 #define uid_t int
7195 _ACEOF
7198 cat >>confdefs.h <<\_ACEOF
7199 #define gid_t int
7200 _ACEOF
7205 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7206 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7207 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 $ac_includes_default
7218 main ()
7220 static struct tm ac_aggr;
7221 if (ac_aggr.tm_gmtoff)
7222 return 0;
7224 return 0;
7226 _ACEOF
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7229 case "(($ac_try" in
7230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231 *) ac_try_echo=$ac_try;;
7232 esac
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.$ac_objext; then
7244 ac_cv_member_struct_tm_tm_gmtoff=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7257 main ()
7259 static struct tm ac_aggr;
7260 if (sizeof ac_aggr.tm_gmtoff)
7261 return 0;
7263 return 0;
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7268 case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7283 ac_cv_member_struct_tm_tm_gmtoff=yes
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 ac_cv_member_struct_tm_tm_gmtoff=no
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7297 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7298 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7300 cat >>confdefs.h <<_ACEOF
7301 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7302 _ACEOF
7308 # Look for some functions
7323 for ac_func in getpagesize kqueue statfs statvfs \
7324 clone kse_create rfork_thread thr_create sa_register \
7325 getcontext makecontext setcontext sigaltstack swapcontext
7327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7341 #define $ac_func innocuous_$ac_func
7343 /* System header to define __stub macros and hopefully few prototypes,
7344 which can conflict with char $ac_func (); below.
7345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7346 <limits.h> exists even on freestanding compilers. */
7348 #ifdef __STDC__
7349 # include <limits.h>
7350 #else
7351 # include <assert.h>
7352 #endif
7354 #undef $ac_func
7356 /* Override any GCC internal prototype to avoid an error.
7357 Use char because int might match the return type of a GCC
7358 builtin and then its argument prototype would still apply. */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 char $ac_func ();
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined __stub_$ac_func || defined __stub___$ac_func
7367 choke me
7368 #endif
7371 main ()
7373 return $ac_func ();
7375 return 0;
7377 _ACEOF
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (ac_try="$ac_link"
7380 case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383 esac
7384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385 (eval "$ac_link") 2>conftest.er1
7386 ac_status=$?
7387 grep -v '^ *+' conftest.er1 >conftest.err
7388 rm -f conftest.er1
7389 cat conftest.err >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } && {
7392 test -z "$ac_c_werror_flag" ||
7393 test ! -s conftest.err
7394 } && test -s conftest$ac_exeext &&
7395 $as_test_x conftest$ac_exeext; then
7396 eval "$as_ac_var=yes"
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 eval "$as_ac_var=no"
7404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7405 conftest$ac_exeext conftest.$ac_ext
7407 ac_res=`eval echo '${'$as_ac_var'}'`
7408 { echo "$as_me:$LINENO: result: $ac_res" >&5
7409 echo "${ECHO_T}$ac_res" >&6; }
7410 if test `eval echo '${'$as_ac_var'}'` = yes; then
7411 cat >>confdefs.h <<_ACEOF
7412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7413 _ACEOF
7416 done
7421 for ac_header in stdlib.h unistd.h
7423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_res=`eval echo '${'$as_ac_Header'}'`
7431 { echo "$as_me:$LINENO: result: $ac_res" >&5
7432 echo "${ECHO_T}$ac_res" >&6; }
7433 else
7434 # Is the header compilable?
7435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #include <$ac_header>
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (ac_try="$ac_compile"
7448 case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_compile") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest.$ac_objext; then
7463 ac_header_compiler=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_header_compiler=no
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7473 echo "${ECHO_T}$ac_header_compiler" >&6; }
7475 # Is the header present?
7476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <$ac_header>
7485 _ACEOF
7486 if { (ac_try="$ac_cpp conftest.$ac_ext"
7487 case "(($ac_try" in
7488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7489 *) ac_try_echo=$ac_try;;
7490 esac
7491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7493 ac_status=$?
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } >/dev/null && {
7499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7500 test ! -s conftest.err
7501 }; then
7502 ac_header_preproc=yes
7503 else
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7507 ac_header_preproc=no
7510 rm -f conftest.err conftest.$ac_ext
7511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7512 echo "${ECHO_T}$ac_header_preproc" >&6; }
7514 # So? What about this header?
7515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7516 yes:no: )
7517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7521 ac_header_preproc=yes
7523 no:yes:* )
7524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7538 esac
7539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544 eval "$as_ac_Header=\$ac_header_preproc"
7546 ac_res=`eval echo '${'$as_ac_Header'}'`
7547 { echo "$as_me:$LINENO: result: $ac_res" >&5
7548 echo "${ECHO_T}$ac_res" >&6; }
7551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7552 cat >>confdefs.h <<_ACEOF
7553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7554 _ACEOF
7558 done
7561 for ac_func in getpagesize
7563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7577 #define $ac_func innocuous_$ac_func
7579 /* System header to define __stub macros and hopefully few prototypes,
7580 which can conflict with char $ac_func (); below.
7581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7582 <limits.h> exists even on freestanding compilers. */
7584 #ifdef __STDC__
7585 # include <limits.h>
7586 #else
7587 # include <assert.h>
7588 #endif
7590 #undef $ac_func
7592 /* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7595 #ifdef __cplusplus
7596 extern "C"
7597 #endif
7598 char $ac_func ();
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined __stub_$ac_func || defined __stub___$ac_func
7603 choke me
7604 #endif
7607 main ()
7609 return $ac_func ();
7611 return 0;
7613 _ACEOF
7614 rm -f conftest.$ac_objext conftest$ac_exeext
7615 if { (ac_try="$ac_link"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_link") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest$ac_exeext &&
7631 $as_test_x conftest$ac_exeext; then
7632 eval "$as_ac_var=yes"
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 eval "$as_ac_var=no"
7640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7641 conftest$ac_exeext conftest.$ac_ext
7643 ac_res=`eval echo '${'$as_ac_var'}'`
7644 { echo "$as_me:$LINENO: result: $ac_res" >&5
7645 echo "${ECHO_T}$ac_res" >&6; }
7646 if test `eval echo '${'$as_ac_var'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7649 _ACEOF
7652 done
7654 { echo "$as_me:$LINENO: checking for working mmap" >&5
7655 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7656 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659 if test "$cross_compiling" = yes; then
7660 ac_cv_func_mmap_fixed_mapped=no
7661 else
7662 cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h. */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 $ac_includes_default
7669 /* malloc might have been renamed as rpl_malloc. */
7670 #undef malloc
7672 /* Thanks to Mike Haertel and Jim Avera for this test.
7673 Here is a matrix of mmap possibilities:
7674 mmap private not fixed
7675 mmap private fixed at somewhere currently unmapped
7676 mmap private fixed at somewhere already mapped
7677 mmap shared not fixed
7678 mmap shared fixed at somewhere currently unmapped
7679 mmap shared fixed at somewhere already mapped
7680 For private mappings, we should verify that changes cannot be read()
7681 back from the file, nor mmap's back from the file at a different
7682 address. (There have been systems where private was not correctly
7683 implemented like the infamous i386 svr4.0, and systems where the
7684 VM page cache was not coherent with the file system buffer cache
7685 like early versions of FreeBSD and possibly contemporary NetBSD.)
7686 For shared mappings, we should conversely verify that changes get
7687 propagated back to all the places they're supposed to be.
7689 Grep wants private fixed already mapped.
7690 The main things grep needs to know about mmap are:
7691 * does it exist and is it safe to write into the mmap'd area
7692 * how to use it (BSD variants) */
7694 #include <fcntl.h>
7695 #include <sys/mman.h>
7697 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7698 char *malloc ();
7699 #endif
7701 /* This mess was copied from the GNU getpagesize.h. */
7702 #ifndef HAVE_GETPAGESIZE
7703 /* Assume that all systems that can run configure have sys/param.h. */
7704 # ifndef HAVE_SYS_PARAM_H
7705 # define HAVE_SYS_PARAM_H 1
7706 # endif
7708 # ifdef _SC_PAGESIZE
7709 # define getpagesize() sysconf(_SC_PAGESIZE)
7710 # else /* no _SC_PAGESIZE */
7711 # ifdef HAVE_SYS_PARAM_H
7712 # include <sys/param.h>
7713 # ifdef EXEC_PAGESIZE
7714 # define getpagesize() EXEC_PAGESIZE
7715 # else /* no EXEC_PAGESIZE */
7716 # ifdef NBPG
7717 # define getpagesize() NBPG * CLSIZE
7718 # ifndef CLSIZE
7719 # define CLSIZE 1
7720 # endif /* no CLSIZE */
7721 # else /* no NBPG */
7722 # ifdef NBPC
7723 # define getpagesize() NBPC
7724 # else /* no NBPC */
7725 # ifdef PAGESIZE
7726 # define getpagesize() PAGESIZE
7727 # endif /* PAGESIZE */
7728 # endif /* no NBPC */
7729 # endif /* no NBPG */
7730 # endif /* no EXEC_PAGESIZE */
7731 # else /* no HAVE_SYS_PARAM_H */
7732 # define getpagesize() 8192 /* punt totally */
7733 # endif /* no HAVE_SYS_PARAM_H */
7734 # endif /* no _SC_PAGESIZE */
7736 #endif /* no HAVE_GETPAGESIZE */
7739 main ()
7741 char *data, *data2, *data3;
7742 int i, pagesize;
7743 int fd;
7745 pagesize = getpagesize ();
7747 /* First, make a file with some known garbage in it. */
7748 data = (char *) malloc (pagesize);
7749 if (!data)
7750 return 1;
7751 for (i = 0; i < pagesize; ++i)
7752 *(data + i) = rand ();
7753 umask (0);
7754 fd = creat ("conftest.mmap", 0600);
7755 if (fd < 0)
7756 return 1;
7757 if (write (fd, data, pagesize) != pagesize)
7758 return 1;
7759 close (fd);
7761 /* Next, try to mmap the file at a fixed address which already has
7762 something else allocated at it. If we can, also make sure that
7763 we see the same garbage. */
7764 fd = open ("conftest.mmap", O_RDWR);
7765 if (fd < 0)
7766 return 1;
7767 data2 = (char *) malloc (2 * pagesize);
7768 if (!data2)
7769 return 1;
7770 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7771 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7772 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7773 return 1;
7774 for (i = 0; i < pagesize; ++i)
7775 if (*(data + i) != *(data2 + i))
7776 return 1;
7778 /* Finally, make sure that changes to the mapped area do not
7779 percolate back to the file as seen by read(). (This is a bug on
7780 some variants of i386 svr4.0.) */
7781 for (i = 0; i < pagesize; ++i)
7782 *(data2 + i) = *(data2 + i) + 1;
7783 data3 = (char *) malloc (pagesize);
7784 if (!data3)
7785 return 1;
7786 if (read (fd, data3, pagesize) != pagesize)
7787 return 1;
7788 for (i = 0; i < pagesize; ++i)
7789 if (*(data + i) != *(data3 + i))
7790 return 1;
7791 close (fd);
7792 return 0;
7794 _ACEOF
7795 rm -f conftest$ac_exeext
7796 if { (ac_try="$ac_link"
7797 case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800 esac
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_link") 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7806 { (case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_try") 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_cv_func_mmap_fixed_mapped=yes
7816 else
7817 echo "$as_me: program exited with status $ac_status" >&5
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ( exit $ac_status )
7822 ac_cv_func_mmap_fixed_mapped=no
7824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7829 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7830 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7831 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7833 cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_MMAP 1
7835 _ACEOF
7838 rm -f conftest.mmap
7843 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7844 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7845 aros_config_ldflags=""
7847 aros_shared_default=yes
7849 aros_shared_cflags="-fPIC"
7850 aros_shared_aflags=""
7851 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7852 aros_kernel_ldflags="-Wl,-rpath,./lib"
7854 aros_target_ar_flags="cr"
7855 aros_target_nm_flags="-C -ul"
7856 aros_target_strip_flags="--strip-unneeded -R.comment"
7858 aros_compiler_libs=
7860 aros_target_genmap="-Wl,-Map -Xlinker"
7862 # Native flavour stuff
7863 aros_bochs_hack="0"
7864 aros_serial_debug="0"
7866 # Palm native flavour stuff
7867 aros_palm_debug_hack="0"
7869 # Unix flavour stuff
7870 aros_nesting_supervisor="0"
7872 # Collect-aros stuff: "-ius" to ignore undefined symbols
7873 ignore_undefined_symbols=""
7875 #-----------------------------------------------------------------------------
7878 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7879 # it switched on by default, and we use the host compiler, so it compiles AROS
7880 # code with this enabled resulting in link failures as we don't have support
7881 # for it.
7883 # We use two methods to disable it. For the host compiler (used to compile
7884 # some hosted modules), we test to see if the compiler supports stack
7885 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7886 # work on all platforms.
7888 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7889 # (this is done unconditionally, as it should have no effect on compilers
7890 # without the stack protection feature). This may be specific to the way that
7891 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7892 # strong enough to disable it in a generic way though, so we'll live with it
7893 # until another vendor ships GCC with it enabled in a different way, and deal
7894 # with it then.
7897 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7898 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7899 save_cflags="$CFLAGS"
7900 CFLAGS="$CFLAGS -fno-stack-protector"
7901 cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h. */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7909 main ()
7913 return 0;
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7918 case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7933 use_no_stack_protector="yes"
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 use_no_stack_protector="no"
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7943 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7944 if test "x-$use_no_stack_protector" = "x-yes" ; then
7945 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7947 CFLAGS="$save_cflags"
7950 #-----------------------------------------------------------------------------
7952 # Disable pointer-signedness warnings if the compiler recognises the option
7953 # (this only works for the host compiler at the moment)
7955 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7956 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
7957 save_cflags="$CFLAGS"
7958 CFLAGS="$CFLAGS -Wno-pointer-sign"
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7967 main ()
7971 return 0;
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 use_no_sign_warning="yes"
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 use_no_sign_warning="no"
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8001 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8002 if test "x-$use_no_sign_warning" = "x-yes" ; then
8003 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8005 CFLAGS="$save_cflags"
8007 #-----------------------------------------------------------------------------
8009 { echo "$as_me:$LINENO: checking for type of build" >&5
8010 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8011 # Check whether --enable-build_type was given.
8012 if test "${enable_build_type+set}" = set; then
8013 enableval=$enable_build_type; build_type=$enableval
8014 else
8015 build_type="personal"
8019 if test "$build_type" = "nightly"; then
8020 build_type_string="NIGHTLY"
8021 elif test "$build_type" = "snapshot"; then
8022 build_type_string="SNAPSHOT"
8023 elif test "$build_type" = "milestone"; then
8024 build_type_string="MILESTONE"
8025 elif test "$build_type" = "release"; then
8026 build_type_string="RELEASE"
8027 else
8028 build_type_string="PERSONAL"
8029 build_type="personal"
8032 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8034 { echo "$as_me:$LINENO: result: $build_type" >&5
8035 echo "${ECHO_T}$build_type" >&6; }
8037 #-----------------------------------------------------------------------------
8038 all_debug_types="messages stack mungwall modules symbols"
8040 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8041 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8042 # Check whether --enable-debug was given.
8043 if test "${enable_debug+set}" = set; then
8044 enableval=$enable_debug; debug="$enableval"
8045 else
8046 debug=""
8050 if test "$debug" = "" -o "$debug" = "no"; then
8051 debug="none"
8052 elif test "$debug" = "yes"; then
8053 debug="all"
8056 if test "$debug" = "all" ; then
8057 debug=$all_debug_types
8058 for d in $all_debug_types; do
8059 export aros_${d}_debug="1"
8060 done
8061 else
8062 for d in $all_debug_types; do
8063 export aros_${d}_debug="0"
8064 done
8067 if test "$debug" != "none"; then
8068 debug=`echo $debug | sed s/,/\ /g`
8069 for d in $debug; do
8070 found="0"
8071 for d2 in $all_debug_types; do
8072 if test "$d2" = "$d"; then
8073 found="1"
8074 break
8076 done
8077 if test "$found" = "0"; then
8078 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8079 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8080 { (exit 1); exit 1; }; }
8082 export aros_${d}_debug="1"
8083 done
8084 aros_debug="yes"
8086 { echo "$as_me:$LINENO: result: $debug" >&5
8087 echo "${ECHO_T}$debug" >&6; }
8089 if test "$aros_messages_debug" = "1"; then
8090 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8091 else
8092 aros_messages_debug=""
8094 if test "$aros_symbols_debug" = "1"; then
8095 aros_symbols_debug="-g"
8096 else
8097 aros_symbols_debug=""
8100 # These are the flags to pass when compiling debugged programs
8101 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8102 aros_debug_aflags=""
8103 aros_debug_ldflags="$aros_symbols_debug"
8105 #-----------------------------------------------------------------------------
8106 # Checking for distcc and ccache.
8108 # Always apply the transforms in this particular order. Basically you should
8109 # always run 'ccache distcc compiler' in that order for the best performance.
8111 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8112 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8113 # Check whether --enable-distcc was given.
8114 if test "${enable_distcc+set}" = set; then
8115 enableval=$enable_distcc; distcc="$enableval"
8116 else
8117 distcc="no"
8120 if test "$distcc" != "" -a "$distcc" != "no"; then
8121 # AC_CHECK_PROG will print out the result in this case
8122 # Extract the first word of "distcc", so it can be a program name with args.
8123 set dummy distcc; ac_word=$2
8124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8126 if test "${ac_cv_path_DISTCC+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 case $DISTCC in
8130 [\\/]* | ?:[\\/]*)
8131 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8145 done
8146 done
8147 IFS=$as_save_IFS
8149 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8151 esac
8153 DISTCC=$ac_cv_path_DISTCC
8154 if test -n "$DISTCC"; then
8155 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8156 echo "${ECHO_T}$DISTCC" >&6; }
8157 else
8158 { echo "$as_me:$LINENO: result: no" >&5
8159 echo "${ECHO_T}no" >&6; }
8163 else
8164 { echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6; }
8168 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8169 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8170 # Check whether --enable-ccache was given.
8171 if test "${enable_ccache+set}" = set; then
8172 enableval=$enable_ccache; ccache="$enableval"
8173 else
8174 ccache="no"
8177 if test "$ccache" != "" -a "$ccache" != "no"; then
8178 # AC_CHECK_PROG will print out the result in this case
8179 # Extract the first word of "ccache", so it can be a program name with args.
8180 set dummy ccache; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_prog_CCACHE+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 if test -n "$CCACHE"; then
8187 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_prog_CCACHE="ccache"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8200 done
8201 done
8202 IFS=$as_save_IFS
8206 CCACHE=$ac_cv_prog_CCACHE
8207 if test -n "$CCACHE"; then
8208 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8209 echo "${ECHO_T}$CCACHE" >&6; }
8210 else
8211 { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8216 else
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8221 #-----------------------------------------------------------------------------
8222 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8223 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8225 # Check whether --with-optimization was given.
8226 if test "${with_optimization+set}" = set; then
8227 withval=$with_optimization; optimization="$withval"
8228 else
8229 optimization="unknown"
8232 if test "$optimization" = "unknown"; then
8233 if test "$debug" != "none"; then
8234 optimization="-O0"
8235 else
8236 optimization="-O2"
8239 aros_config_cflags="$aros_config_cflags $optimization"
8240 { echo "$as_me:$LINENO: result: $optimization" >&5
8241 echo "${ECHO_T}$optimization" >&6; }
8243 #-----------------------------------------------------------------------------
8244 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8245 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8246 # Check whether --enable-target_variant was given.
8247 if test "${enable_target_variant+set}" = set; then
8248 enableval=$enable_target_variant; target_variant=$enableval
8249 else
8250 target_variant="none"
8253 if test "$target_variant" = "none"; then
8254 aros_target_variant=""
8255 aros_target_suffix=""
8256 else
8257 aros_target_variant="$target_variant"
8258 aros_target_suffix="-$target_variant"
8260 { echo "$as_me:$LINENO: result: $enableval" >&5
8261 echo "${ECHO_T}$enableval" >&6; }
8263 target_bootloader="none"
8265 #-----------------------------------------------------------------------------
8266 # This is the target configuration switch.
8267 case "$target_os" in
8268 linux*)
8269 aros_target_arch="linux"
8270 case "$target_cpu" in
8271 *m68k*)
8272 aros_target_cpu="m68k"
8273 aros_object_format="m68kelf"
8274 aros_flavour="emulcompat"
8275 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8276 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8277 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8278 gcc_target_cpu="mc68000"
8280 *i?86*)
8281 aros_target_cpu="i386"
8282 aros_object_format="elf_i386"
8283 aros_flavour="emulation"
8284 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8285 aros_default_wbdepth=8
8286 gcc_target_cpu="i386"
8288 *x86_64*)
8289 aros_target_cpu="x86_64"
8290 aros_object_format="elf_x86_64"
8291 aros_flavour="emulation"
8292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8293 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8294 aros_default_wbdepth=8
8295 gcc_target_cpu="x86_64"
8297 *powerpc*)
8298 aros_target_cpu="ppc"
8299 aros_object_format="elf32ppc"
8300 aros_flavour="emulation"
8301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8302 aros_default_wbdepth=8
8303 gcc_target_cpu="ppc"
8305 # TODO
8306 # Same as powerpc, but I need this for the nightly build to work again.
8307 # Actually, the nightly should be made working with powerpc target.
8308 # That just was too much work for the moment, another week or two.
8309 *ppc*)
8310 aros_target_cpu="ppc"
8311 aros_object_format="elf32ppc"
8312 aros_flavour="emulation"
8313 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8314 aros_default_wbdepth=8
8315 gcc_target_cpu="ppc"
8318 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8319 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8320 { (exit 1); exit 1; }; }
8322 esac
8326 aros_target_arch="pc"
8327 aros_shared_default="no"
8328 target_bootloader="grub"
8329 case "$target_cpu" in
8330 *i?86*)
8331 aros_target_cpu="i386"
8334 if test "$aros_object_format" = "" ; then
8335 aros_object_format="elf_i386"
8337 aros_flavour="standalone"
8338 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8339 aros_kernel_ldflags=""
8340 aros_default_wbwidth=640
8341 aros_default_wbheight=480
8342 gcc_target_cpu="i386"
8344 *x86_64*)
8345 aros_target_cpu="x86_64"
8346 aros_serial_debug=1
8347 if test "$aros_object_format" = "" ; then
8348 aros_object_format="elf_x86_64"
8350 aros_flavour="standalone"
8351 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8352 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8353 aros_kernel_ldflags=""
8354 aros_default_wbwidth=640
8355 aros_default_wbheight=480
8356 gcc_target_cpu="x86_64"
8359 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8360 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8361 { (exit 1); exit 1; }; }
8363 esac
8366 prep)
8367 aros_target_arch="prep"
8368 aros_shared_default="no"
8369 aros_target_cpu="ppc"
8370 aros_object_format="elf32ppc"
8371 aros_flavour="ppcnative"
8372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8373 aros_kernel_ldflags=""
8374 aros_default_wbwidth=640
8375 aros_default_wbheight=480
8376 gcc_target_cpu="ppc"
8379 freebsd*)
8380 aros_target_arch="freebsd"
8381 aros_target_cpu="i386"
8382 aros_flavour="emulation"
8383 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8384 gcc_target_cpu="i386"
8386 aros_target_strip_flags="-x"
8389 darwin*)
8390 aros_target_arch="darwin"
8391 aros_flavour="emulation"
8392 case "$target_cpu" in
8393 *i?86*)
8394 aros_target_cpu="i386"
8395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8396 gcc_target_cpu="i386"
8397 aros_object_format="elf_i386"
8398 aros_target_strip_flags="-x"
8401 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8402 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8403 { (exit 1); exit 1; }; }
8405 esac
8407 netbsd*)
8408 aros_target_arch="netbsd"
8409 case "$target_cpu" in
8410 *m68k*)
8411 aros_target_cpu="m68k"
8412 aros_object_format="m68kelf"
8413 aros_flavour="emulcompat"
8414 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8415 gcc_target_cpu="mc68000"
8417 *i?86*)
8418 aros_target_cpu="i386"
8419 aros_object_format="elf_i386"
8420 aros_flavour="emulation"
8421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8422 aros_default_wbdepth=8
8423 gcc_target_cpu="i386"
8426 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8427 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8428 { (exit 1); exit 1; }; }
8430 esac
8431 aros_target_genmap="-Wl,-M -Xlinker >"
8432 aros_flavour="emulation"
8433 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8436 openbsd*)
8437 aros_target_arch="openbsd"
8438 case "$target_cpu" in
8439 *i?86*)
8440 aros_target_cpu="i386"
8441 aros_object_format="elf_i386"
8442 aros_flavour="emulation"
8443 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8444 gcc_target_cpu="i386"
8447 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8448 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8449 { (exit 1); exit 1; }; }
8451 esac
8452 aros_target_genmap="-Wl,-M -Xlinker >"
8453 aros_target_nm_flags="-u"
8454 aros_flavour="emulation"
8457 solaris*)
8458 aros_target_arch="solaris"
8459 case "$target_cpu" in
8460 *i?86*)
8461 aros_target_cpu="i386"
8462 aros_object_format="elf_i386"
8463 aros_flavour="emulation"
8464 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8465 aros_default_wbdepth=8
8466 gcc_target_cpu="i386"
8468 *sparc*)
8469 aros_target_cpu="sparc"
8470 aros_object_format="elf_sparc"
8471 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8472 gcc_target_cpu="sparc"
8475 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8476 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8477 { (exit 1); exit 1; }; }
8479 esac
8480 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8481 aros_flavour="emulation"
8484 morphos*)
8485 aros_target_arch="morphos"
8486 aros_shared_default="no"
8487 aros_target_cpu="ppc"
8488 aros_object_format="elf_ppc"
8489 aros_flavour="nativecompat"
8490 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8491 gcc_target_cpu="ppc"
8494 sam440)
8495 aros_target_arch="sam440"
8496 aros_shared_default="no"
8497 aros_target_cpu="ppc"
8498 aros_object_format="elf32ppc"
8499 aros_flavour="ppcnative"
8500 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8501 aros_kernel_ldflags=""
8502 aros_default_wbwidth=640
8503 aros_default_wbheight=480
8504 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8505 gcc_target_cpu="powerpc"
8508 amiga*)
8509 aros_target_arch="amiga"
8510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8511 aros_shared_default="no"
8513 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8515 case "$target_cpu" in
8516 *m68k*)
8517 aros_target_cpu="m68k"
8518 aros_object_format="m68kelf"
8519 aros_flavour="nativecompat"
8520 gcc_target_cpu="mc68000"
8522 *ppc*)
8523 aros_cpu="ppc"
8524 aros_flavour="native"
8525 gcc_target_cpu="ppc"
8528 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8529 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8530 { (exit 1); exit 1; }; }
8532 esac
8535 cygwin*)
8536 aros_target_arch="cygwin"
8537 aros_shared_default="no"
8538 case "$target_cpu" in
8539 *i?86*)
8540 aros_target_cpu="i386"
8541 aros_object_format="elf_i386"
8542 aros_flavour="emulation"
8543 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8544 aros_shared_cflags=""
8545 aros_default_wbdepth=8
8546 gcc_target_cpu="i386"
8547 aros_target_cc="i386-aros-gcc"
8548 aros_target_ld="i386-aros-ld"
8549 aros_target_as="i386-aros-as"
8550 aros_target_ar="i386-aros-ar"
8551 aros_target_ranlib="i386-aros-ranlib"
8552 aros_target_nm="i386-aros-nm"
8553 aros_target_strip="i386-aros-strip"
8554 aros_target_objcopy="i386-aros-objcopy"
8555 aros_target_objdump="i386-aros-objdump"
8558 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8559 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8560 { (exit 1); exit 1; }; }
8562 esac
8565 mingw32*)
8566 aros_target_arch="mingw32"
8567 aros_shared_default="no"
8568 case "$target_cpu" in
8569 *i?86*)
8570 aros_target_cpu="i386"
8571 aros_object_format="elf_i386"
8572 aros_flavour="emulation"
8573 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8574 aros_shared_cflags=""
8575 aros_default_wbdepth=8
8576 gcc_target_cpu="i386"
8577 aros_target_cc="i386-aros-gcc"
8578 aros_target_ld="i386-aros-ld"
8579 aros_target_as="i386-aros-as"
8580 aros_target_ar="i386-aros-ar"
8581 aros_target_ranlib="i386-aros-ranlib"
8582 aros_target_nm="i386-aros-nm"
8583 aros_target_strip="i386-aros-strip"
8584 aros_target_objcopy="i386-aros-objcopy"
8585 aros_target_objdump="i386-aros-objdump"
8588 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8589 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8590 { (exit 1); exit 1; }; }
8592 esac
8593 if test $host_os = "cygwin"; then
8594 aros_kernel_cflags="-mno-cygwin"
8597 pp*)
8598 aros_target_arch="pp"
8599 aros_shared_default="no"
8600 case "$target_cpu" in
8601 *m68k*)
8602 aros_target_cpu="m68k"
8603 aros_object_format="m68kelf"
8604 aros_flavour="palmnative"
8605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8606 aros_kernel_ldflags=""
8607 aros_default_wbwidth=160
8608 aros_default_wbheight=160
8609 aros_default_wbdepth=1
8610 aros_target_ar_flags="cru"
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_ar_flags="cru"
8646 aros_compiler_libs="-lgcc1"
8647 aros_shared_default=no
8648 aros_shared_cflags="-fpic"
8649 aros_shared_aflags=""
8650 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8651 aros_kernel_ldflags="-Wl,-rpath,./lib"
8652 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8653 aros_debug_aflags=""
8654 aros_debug_ldflags="$aros_symbols_debug"
8655 aros_mungwall_debug="0"
8656 aros_modules_debug="0"
8657 gcc_target_cpu="mc68000"
8658 ignore_undefined_symbols="-ius"
8661 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8662 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8663 { (exit 1); exit 1; }; }
8665 esac
8669 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8670 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8671 { (exit 1); exit 1; }; }
8673 esac
8675 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8676 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8678 # Check whether --with-portssources was given.
8679 if test "${with_portssources+set}" = set; then
8680 withval=$with_portssources; with_portssrcdir=$withval
8681 else
8682 with_portssrcdir="default"
8685 if test "$with_portssrcdir" = "default"; then
8686 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
8687 else
8688 AROS_PORTSSRCDIR="$with_portssrcdir"
8690 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8691 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8693 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8694 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8696 # Check whether --with-bootloader was given.
8697 if test "${with_bootloader+set}" = set; then
8698 withval=$with_bootloader; target_bootloader=$withval
8699 else
8700 target_bootloader=$target_bootloader
8703 if test "$target_bootloader" = "none"; then
8704 aros_target_bootloader=""
8705 else
8706 aros_target_bootloader="$target_bootloader"
8708 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8709 echo "${ECHO_T}$target_bootloader" >&6; }
8711 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
8712 aros_liblzo_check="no"
8713 case "$aros_target_bootloader" in
8714 grub2*)
8715 case "$target_cpu" in
8716 *i?86*)
8717 aros_liblzo_check="yes"
8719 *x86_64*)
8720 aros_liblzo_check="yes"
8724 esac
8729 esac
8731 if test "$aros_liblzo_check" = "yes"; then
8732 # There are three possibilities. LZO version 2 installed with the name
8733 # liblzo2, with the name liblzo, and LZO version 1.
8734 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
8735 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
8736 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739 ac_check_lib_save_LIBS=$LIBS
8740 LIBS="-llzo2 $LIBS"
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h. */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8748 /* Override any GCC internal prototype to avoid an error.
8749 Use char because int might match the return type of a GCC
8750 builtin and then its argument prototype would still apply. */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 char __lzo_init_v2 ();
8756 main ()
8758 return __lzo_init_v2 ();
8760 return 0;
8762 _ACEOF
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (ac_try="$ac_link"
8765 case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_link") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest$ac_exeext &&
8780 $as_test_x conftest$ac_exeext; then
8781 ac_cv_lib_lzo2___lzo_init_v2=yes
8782 else
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_lib_lzo2___lzo_init_v2=no
8789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8790 conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8793 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
8794 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
8795 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
8796 LIBLZO="-llzo2"
8797 else
8798 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
8799 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
8800 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803 ac_check_lib_save_LIBS=$LIBS
8804 LIBS="-llzo $LIBS"
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h. */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8812 /* Override any GCC internal prototype to avoid an error.
8813 Use char because int might match the return type of a GCC
8814 builtin and then its argument prototype would still apply. */
8815 #ifdef __cplusplus
8816 extern "C"
8817 #endif
8818 char __lzo_init_v2 ();
8820 main ()
8822 return __lzo_init_v2 ();
8824 return 0;
8826 _ACEOF
8827 rm -f conftest.$ac_objext conftest$ac_exeext
8828 if { (ac_try="$ac_link"
8829 case "(($ac_try" in
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8832 esac
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_link") 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } && {
8841 test -z "$ac_c_werror_flag" ||
8842 test ! -s conftest.err
8843 } && test -s conftest$ac_exeext &&
8844 $as_test_x conftest$ac_exeext; then
8845 ac_cv_lib_lzo___lzo_init_v2=yes
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_cv_lib_lzo___lzo_init_v2=no
8853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8854 conftest$ac_exeext conftest.$ac_ext
8855 LIBS=$ac_check_lib_save_LIBS
8857 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
8858 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
8859 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
8860 LIBLZO="-llzo"
8861 else
8862 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
8863 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
8864 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 ac_check_lib_save_LIBS=$LIBS
8868 LIBS="-llzo $LIBS"
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 /* Override any GCC internal prototype to avoid an error.
8877 Use char because int might match the return type of a GCC
8878 builtin and then its argument prototype would still apply. */
8879 #ifdef __cplusplus
8880 extern "C"
8881 #endif
8882 char __lzo_init2 ();
8884 main ()
8886 return __lzo_init2 ();
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } && {
8905 test -z "$ac_c_werror_flag" ||
8906 test ! -s conftest.err
8907 } && test -s conftest$ac_exeext &&
8908 $as_test_x conftest$ac_exeext; then
8909 ac_cv_lib_lzo___lzo_init2=yes
8910 else
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8914 ac_cv_lib_lzo___lzo_init2=no
8917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8918 conftest$ac_exeext conftest.$ac_ext
8919 LIBS=$ac_check_lib_save_LIBS
8921 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
8922 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
8923 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
8924 LIBLZO="-llzo"
8925 else
8926 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
8927 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
8928 { (exit 1); exit 1; }; }
8937 LIBS="$LIBS $LIBLZO"
8938 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
8939 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
8940 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
8950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8951 #define lzo1x_999_compress innocuous_lzo1x_999_compress
8953 /* System header to define __stub macros and hopefully few prototypes,
8954 which can conflict with char lzo1x_999_compress (); below.
8955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8956 <limits.h> exists even on freestanding compilers. */
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8964 #undef lzo1x_999_compress
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 char lzo1x_999_compress ();
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
8977 choke me
8978 #endif
8981 main ()
8983 return lzo1x_999_compress ();
8985 return 0;
8987 _ACEOF
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8990 case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_link") 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest$ac_exeext &&
9005 $as_test_x conftest$ac_exeext; then
9006 ac_cv_func_lzo1x_999_compress=yes
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_func_lzo1x_999_compress=no
9014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9015 conftest$ac_exeext conftest.$ac_ext
9017 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9018 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
9019 if test $ac_cv_func_lzo1x_999_compress = yes; then
9021 else
9022 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9023 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9024 { (exit 1); exit 1; }; }
9028 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9031 for ac_header in lzo/lzo1x.h lzo1x.h
9033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 ac_res=`eval echo '${'$as_ac_Header'}'`
9041 { echo "$as_me:$LINENO: result: $ac_res" >&5
9042 echo "${ECHO_T}$ac_res" >&6; }
9043 else
9044 # Is the header compilable?
9045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9054 #include <$ac_header>
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9058 case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061 esac
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_compile") 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest.$ac_objext; then
9073 ac_header_compiler=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_header_compiler=no
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9083 echo "${ECHO_T}$ac_header_compiler" >&6; }
9085 # Is the header present?
9086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 #include <$ac_header>
9095 _ACEOF
9096 if { (ac_try="$ac_cpp conftest.$ac_ext"
9097 case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev/null && {
9109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9111 }; then
9112 ac_header_preproc=yes
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9117 ac_header_preproc=no
9120 rm -f conftest.err conftest.$ac_ext
9121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9122 echo "${ECHO_T}$ac_header_preproc" >&6; }
9124 # So? What about this header?
9125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9126 yes:no: )
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9131 ac_header_preproc=yes
9133 no:yes:* )
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9148 esac
9149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 eval "$as_ac_Header=\$ac_header_preproc"
9156 ac_res=`eval echo '${'$as_ac_Header'}'`
9157 { echo "$as_me:$LINENO: result: $ac_res" >&5
9158 echo "${ECHO_T}$ac_res" >&6; }
9161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9162 cat >>confdefs.h <<_ACEOF
9163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9164 _ACEOF
9168 done
9172 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9173 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9175 # Check whether --with-theme was given.
9176 if test "${with_theme+set}" = set; then
9177 withval=$with_theme; target_guitheme=$withval
9178 else
9179 target_guitheme="default"
9182 if test "$target_guitheme" = "default"; then
9183 aros_target_guitheme="Ice"
9184 else
9185 aros_target_guitheme="$target_guitheme"
9187 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9188 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9190 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9191 # for target code)
9192 cross_compiling=no
9193 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9194 cross_compiling=yes
9196 if test "$aros_host_arch" == "darwin" ; then
9197 cross_compiling=yes
9200 # Set prefix for target compiler etc. if we're cross-compiling
9201 # (should possibly be earlier but needs to be after AC_PROG_CC)
9202 if test "$cross_compiling" = "yes" ; then
9203 target_tool_prefix=${target_cpu}-elf-
9204 CC=${target_tool_prefix}gcc
9207 # Find all the tools we need to compile. This could be cross-compiling
9208 # though! If that is the case we use the GNU form of the target and
9209 # simply add this to the front of the binary name. This is rather simple,
9210 # but it should work under most circumstances.
9212 # The default tools are to use the same as the host, but only if the
9213 # host and target CPU are the same. With GCC this is normally enough.
9216 aros_cc_pre=""
9217 aros_shared_ld="$aros_host_ld"
9219 aros_target_mkdep="$aros_host_mkdep"
9220 aros_target_incl_def="$aros_host_incl"
9222 # Extract the first word of "$CC", so it can be a program name with args.
9223 set dummy $CC; ac_word=$2
9224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9226 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 case $aros_kernel_cc in
9230 [\\/]* | ?:[\\/]*)
9231 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9245 done
9246 done
9247 IFS=$as_save_IFS
9250 esac
9252 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9253 if test -n "$aros_kernel_cc"; then
9254 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9255 echo "${ECHO_T}$aros_kernel_cc" >&6; }
9256 else
9257 { echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6; }
9263 # The default tools executables to be linked to.
9264 if test "$aros_target_cc" != ""; then
9265 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9266 set dummy $aros_target_cc; ac_word=$2
9267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9269 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 case $aros_target_cc in
9273 [\\/]* | ?:[\\/]*)
9274 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9288 done
9289 done
9290 IFS=$as_save_IFS
9293 esac
9295 aros_target_cc=$ac_cv_path_aros_target_cc
9296 if test -n "$aros_target_cc"; then
9297 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9298 echo "${ECHO_T}$aros_target_cc" >&6; }
9299 else
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9305 if test "$aros_target_cc" = ""; then
9306 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9307 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9308 { (exit 1); exit 1; }; }
9311 if test "$aros_target_ld" != ""; then
9312 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9313 set dummy $aros_target_ld; ac_word=$2
9314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9316 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319 case $aros_target_ld in
9320 [\\/]* | ?:[\\/]*)
9321 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9340 esac
9342 aros_target_ld=$ac_cv_path_aros_target_ld
9343 if test -n "$aros_target_ld"; then
9344 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9345 echo "${ECHO_T}$aros_target_ld" >&6; }
9346 else
9347 { echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6; }
9352 if test "$aros_target_ld" = ""; then
9353 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9354 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9355 { (exit 1); exit 1; }; }
9359 if test "$aros_target_as" = ""; then
9360 if test "$cross_compiling" = "yes" ; then
9361 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9362 set dummy ${target_tool_prefix}as; ac_word=$2
9363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9365 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368 case $aros_target_as_ln in
9369 [\\/]* | ?:[\\/]*)
9370 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9384 done
9385 done
9386 IFS=$as_save_IFS
9389 esac
9391 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9392 if test -n "$aros_target_as_ln"; then
9393 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9394 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9395 else
9396 { echo "$as_me:$LINENO: result: no" >&5
9397 echo "${ECHO_T}no" >&6; }
9401 else
9402 if test "$GCC" = "yes"; then
9403 aros_gcc_as=`$CC -print-prog-name=as`
9404 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9405 set dummy `basename $aros_gcc_as`; ac_word=$2
9406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9408 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 case $aros_target_as_ln in
9412 [\\/]* | ?:[\\/]*)
9413 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 for as_dir in `dirname $aros_gcc_as`
9419 IFS=$as_save_IFS
9420 test -z "$as_dir" && as_dir=.
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9423 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 break 2
9427 done
9428 done
9429 IFS=$as_save_IFS
9432 esac
9434 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9435 if test -n "$aros_target_as_ln"; then
9436 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9437 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9438 else
9439 { echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6; }
9445 if test "$aros_target_as_ln" = ""; then
9446 # Extract the first word of "as", so it can be a program name with args.
9447 set dummy as; ac_word=$2
9448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9450 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 case $aros_target_as_ln in
9454 [\\/]* | ?:[\\/]*)
9455 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9469 done
9470 done
9471 IFS=$as_save_IFS
9474 esac
9476 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9477 if test -n "$aros_target_as_ln"; then
9478 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9479 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9480 else
9481 { echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6; }
9488 else
9489 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9490 set dummy $aros_target_as; ac_word=$2
9491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9493 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 case $aros_target_as_ln in
9497 [\\/]* | ?:[\\/]*)
9498 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9512 done
9513 done
9514 IFS=$as_save_IFS
9517 esac
9519 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9520 if test -n "$aros_target_as_ln"; then
9521 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9522 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9523 else
9524 { echo "$as_me:$LINENO: result: no" >&5
9525 echo "${ECHO_T}no" >&6; }
9531 if test "$aros_target_as_ln" = ""; then
9532 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9533 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9534 { (exit 1); exit 1; }; }
9537 if test "$aros_kernel_ld" = ""; then
9538 if test "$cross_compiling" = "yes" ; then
9539 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9540 set dummy ${target_tool_prefix}ld; ac_word=$2
9541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9543 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 case $aros_kernel_ld in
9547 [\\/]* | ?:[\\/]*)
9548 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9558 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 break 2
9562 done
9563 done
9564 IFS=$as_save_IFS
9567 esac
9569 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9570 if test -n "$aros_kernel_ld"; then
9571 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9572 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9573 else
9574 { echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6; }
9579 else
9580 if test "$GCC" = "yes"; then
9581 aros_gcc_ld=`$CC -print-prog-name=ld`
9582 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9583 set dummy `basename $aros_gcc_ld`; ac_word=$2
9584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9586 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 case $aros_kernel_ld in
9590 [\\/]* | ?:[\\/]*)
9591 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 for as_dir in `dirname $aros_gcc_ld`
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9605 done
9606 done
9607 IFS=$as_save_IFS
9610 esac
9612 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9613 if test -n "$aros_kernel_ld"; then
9614 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9615 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9616 else
9617 { echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6; }
9623 if test "$aros_kernel_ld" = ""; then
9624 # Extract the first word of "ld", so it can be a program name with args.
9625 set dummy ld; ac_word=$2
9626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9628 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 case $aros_kernel_ld in
9632 [\\/]* | ?:[\\/]*)
9633 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9647 done
9648 done
9649 IFS=$as_save_IFS
9652 esac
9654 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9655 if test -n "$aros_kernel_ld"; then
9656 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9657 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9658 else
9659 { echo "$as_me:$LINENO: result: no" >&5
9660 echo "${ECHO_T}no" >&6; }
9666 else
9667 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9668 set dummy $aros_kernel_ld; ac_word=$2
9669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9671 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 case $aros_kernel_ld in
9675 [\\/]* | ?:[\\/]*)
9676 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9686 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9690 done
9691 done
9692 IFS=$as_save_IFS
9695 esac
9697 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9698 if test -n "$aros_kernel_ld"; then
9699 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9700 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9701 else
9702 { echo "$as_me:$LINENO: result: no" >&5
9703 echo "${ECHO_T}no" >&6; }
9709 if test "$aros_kernel_ld" = ""; then
9710 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9711 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9712 { (exit 1); exit 1; }; }
9715 if test "$aros_target_ar" = ""; then
9716 if test "$cross_compiling" = "yes" ; then
9717 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9718 set dummy ${target_tool_prefix}ar; ac_word=$2
9719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9721 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 case $aros_target_ar_ln in
9725 [\\/]* | ?:[\\/]*)
9726 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9740 done
9741 done
9742 IFS=$as_save_IFS
9745 esac
9747 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9748 if test -n "$aros_target_ar_ln"; then
9749 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9750 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9751 else
9752 { echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6; }
9757 else
9758 if test "$GCC" = "yes"; then
9759 aros_gcc_ar=`$CC -print-prog-name=ar`
9760 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9761 set dummy `basename $aros_gcc_ar`; ac_word=$2
9762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9764 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767 case $aros_target_ar_ln in
9768 [\\/]* | ?:[\\/]*)
9769 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in `dirname $aros_gcc_ar`
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9783 done
9784 done
9785 IFS=$as_save_IFS
9788 esac
9790 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9791 if test -n "$aros_target_ar_ln"; then
9792 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9793 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9794 else
9795 { echo "$as_me:$LINENO: result: no" >&5
9796 echo "${ECHO_T}no" >&6; }
9801 if test "$aros_target_ar_ln" = ""; then
9802 # Extract the first word of "ar", so it can be a program name with args.
9803 set dummy ar; ac_word=$2
9804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9806 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 case $aros_target_ar_ln in
9810 [\\/]* | ?:[\\/]*)
9811 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9825 done
9826 done
9827 IFS=$as_save_IFS
9830 esac
9832 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9833 if test -n "$aros_target_ar_ln"; then
9834 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9835 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9836 else
9837 { echo "$as_me:$LINENO: result: no" >&5
9838 echo "${ECHO_T}no" >&6; }
9844 else
9845 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9846 set dummy $aros_target_ar; ac_word=$2
9847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9849 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852 case $aros_target_ar_ln in
9853 [\\/]* | ?:[\\/]*)
9854 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9866 break 2
9868 done
9869 done
9870 IFS=$as_save_IFS
9873 esac
9875 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9876 if test -n "$aros_target_ar_ln"; then
9877 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9878 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9879 else
9880 { echo "$as_me:$LINENO: result: no" >&5
9881 echo "${ECHO_T}no" >&6; }
9887 if test "$aros_target_ar_ln" = ""; then
9888 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9889 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9890 { (exit 1); exit 1; }; }
9893 if test "$aros_target_nm" = ""; then
9894 if test "$cross_compiling" = "yes" ; then
9895 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9896 set dummy ${target_tool_prefix}nm; ac_word=$2
9897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9899 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902 case $aros_target_nm_ln in
9903 [\\/]* | ?:[\\/]*)
9904 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 break 2
9918 done
9919 done
9920 IFS=$as_save_IFS
9923 esac
9925 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9926 if test -n "$aros_target_nm_ln"; then
9927 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9928 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9929 else
9930 { echo "$as_me:$LINENO: result: no" >&5
9931 echo "${ECHO_T}no" >&6; }
9935 else
9936 if test "$GCC" = "yes"; then
9937 aros_gcc_nm=`$CC -print-prog-name=nm`
9938 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9939 set dummy `basename $aros_gcc_nm`; ac_word=$2
9940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9942 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945 case $aros_target_nm_ln in
9946 [\\/]* | ?:[\\/]*)
9947 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in `dirname $aros_gcc_nm`
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9957 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9961 done
9962 done
9963 IFS=$as_save_IFS
9966 esac
9968 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9969 if test -n "$aros_target_nm_ln"; then
9970 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9971 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9972 else
9973 { echo "$as_me:$LINENO: result: no" >&5
9974 echo "${ECHO_T}no" >&6; }
9979 if test "$aros_target_nm_ln" = ""; then
9980 # Extract the first word of "nm", so it can be a program name with args.
9981 set dummy nm; ac_word=$2
9982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9984 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 case $aros_target_nm_ln in
9988 [\\/]* | ?:[\\/]*)
9989 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9999 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10003 done
10004 done
10005 IFS=$as_save_IFS
10008 esac
10010 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10011 if test -n "$aros_target_nm_ln"; then
10012 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10013 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10014 else
10015 { echo "$as_me:$LINENO: result: no" >&5
10016 echo "${ECHO_T}no" >&6; }
10022 else
10023 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10024 set dummy $aros_target_nm; ac_word=$2
10025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10027 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030 case $aros_target_nm_ln in
10031 [\\/]* | ?:[\\/]*)
10032 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10042 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10046 done
10047 done
10048 IFS=$as_save_IFS
10051 esac
10053 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10054 if test -n "$aros_target_nm_ln"; then
10055 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10056 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10057 else
10058 { echo "$as_me:$LINENO: result: no" >&5
10059 echo "${ECHO_T}no" >&6; }
10065 if test "$aros_target_nm_ln" = ""; then
10066 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10067 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10068 { (exit 1); exit 1; }; }
10071 if test "$aros_target_objcopy" = ""; then
10072 if test "$cross_compiling" = "yes" ; then
10073 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10074 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10077 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080 case $aros_target_objcopy_ln in
10081 [\\/]* | ?:[\\/]*)
10082 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10092 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10096 done
10097 done
10098 IFS=$as_save_IFS
10101 esac
10103 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10104 if test -n "$aros_target_objcopy_ln"; then
10105 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10106 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10107 else
10108 { echo "$as_me:$LINENO: result: no" >&5
10109 echo "${ECHO_T}no" >&6; }
10113 else
10114 if test "$GCC" = "yes"; then
10115 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10116 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10117 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10120 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123 case $aros_target_objcopy_ln in
10124 [\\/]* | ?:[\\/]*)
10125 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in `dirname $aros_gcc_objcopy`
10131 IFS=$as_save_IFS
10132 test -z "$as_dir" && as_dir=.
10133 for ac_exec_ext in '' $ac_executable_extensions; do
10134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10135 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 break 2
10139 done
10140 done
10141 IFS=$as_save_IFS
10144 esac
10146 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10147 if test -n "$aros_target_objcopy_ln"; then
10148 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10149 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10150 else
10151 { echo "$as_me:$LINENO: result: no" >&5
10152 echo "${ECHO_T}no" >&6; }
10157 if test "$aros_target_objcopy_ln" = ""; then
10158 # Extract the first word of "objcopy", so it can be a program name with args.
10159 set dummy objcopy; ac_word=$2
10160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10162 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 case $aros_target_objcopy_ln in
10166 [\\/]* | ?:[\\/]*)
10167 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171 for as_dir in $PATH
10173 IFS=$as_save_IFS
10174 test -z "$as_dir" && as_dir=.
10175 for ac_exec_ext in '' $ac_executable_extensions; do
10176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10177 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 break 2
10181 done
10182 done
10183 IFS=$as_save_IFS
10186 esac
10188 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10189 if test -n "$aros_target_objcopy_ln"; then
10190 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10191 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10192 else
10193 { echo "$as_me:$LINENO: result: no" >&5
10194 echo "${ECHO_T}no" >&6; }
10200 else
10201 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10202 set dummy $aros_target_objcopy; ac_word=$2
10203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10205 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208 case $aros_target_objcopy_ln in
10209 [\\/]* | ?:[\\/]*)
10210 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10216 IFS=$as_save_IFS
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10220 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 break 2
10224 done
10225 done
10226 IFS=$as_save_IFS
10229 esac
10231 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10232 if test -n "$aros_target_objcopy_ln"; then
10233 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10234 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10235 else
10236 { echo "$as_me:$LINENO: result: no" >&5
10237 echo "${ECHO_T}no" >&6; }
10243 if test "$aros_target_objcopy_ln" = ""; then
10244 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10245 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10246 { (exit 1); exit 1; }; }
10249 if test "$aros_target_objdump" = ""; then
10250 if test "$cross_compiling" = "yes" ; then
10251 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10252 set dummy ${target_tool_prefix}objdump; ac_word=$2
10253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10255 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258 case $aros_target_objdump_ln in
10259 [\\/]* | ?:[\\/]*)
10260 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10279 esac
10281 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10282 if test -n "$aros_target_objdump_ln"; then
10283 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10284 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10285 else
10286 { echo "$as_me:$LINENO: result: no" >&5
10287 echo "${ECHO_T}no" >&6; }
10291 else
10292 if test "$GCC" = "yes"; then
10293 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10294 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10295 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10298 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 case $aros_target_objdump_ln in
10302 [\\/]* | ?:[\\/]*)
10303 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in `dirname $aros_gcc_objdump`
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10313 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10322 esac
10324 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10325 if test -n "$aros_target_objdump_ln"; then
10326 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10327 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10328 else
10329 { echo "$as_me:$LINENO: result: no" >&5
10330 echo "${ECHO_T}no" >&6; }
10335 if test "$aros_target_objdump_ln" = ""; then
10336 # Extract the first word of "objdump", so it can be a program name with args.
10337 set dummy objdump; ac_word=$2
10338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10340 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343 case $aros_target_objdump_ln in
10344 [\\/]* | ?:[\\/]*)
10345 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10359 done
10360 done
10361 IFS=$as_save_IFS
10364 esac
10366 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10367 if test -n "$aros_target_objdump_ln"; then
10368 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10369 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10370 else
10371 { echo "$as_me:$LINENO: result: no" >&5
10372 echo "${ECHO_T}no" >&6; }
10378 else
10379 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10380 set dummy $aros_target_objdump; ac_word=$2
10381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10383 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386 case $aros_target_objdump_ln in
10387 [\\/]* | ?:[\\/]*)
10388 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10402 done
10403 done
10404 IFS=$as_save_IFS
10407 esac
10409 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10410 if test -n "$aros_target_objdump_ln"; then
10411 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10412 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10413 else
10414 { echo "$as_me:$LINENO: result: no" >&5
10415 echo "${ECHO_T}no" >&6; }
10421 if test "$aros_target_objdump_ln" = ""; then
10422 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10423 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10424 { (exit 1); exit 1; }; }
10427 if test "$aros_target_ranlib" = ""; then
10428 if test "$cross_compiling" = "yes" ; then
10429 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10430 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10433 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436 case $aros_target_ranlib_ln in
10437 [\\/]* | ?:[\\/]*)
10438 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in $PATH
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10450 break 2
10452 done
10453 done
10454 IFS=$as_save_IFS
10457 esac
10459 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10460 if test -n "$aros_target_ranlib_ln"; then
10461 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10462 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10463 else
10464 { echo "$as_me:$LINENO: result: no" >&5
10465 echo "${ECHO_T}no" >&6; }
10469 else
10470 if test "$GCC" = "yes"; then
10471 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10472 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10473 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10476 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479 case $aros_target_ranlib_ln in
10480 [\\/]* | ?:[\\/]*)
10481 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in `dirname $aros_gcc_ranlib`
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 break 2
10495 done
10496 done
10497 IFS=$as_save_IFS
10500 esac
10502 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10503 if test -n "$aros_target_ranlib_ln"; then
10504 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10505 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10506 else
10507 { echo "$as_me:$LINENO: result: no" >&5
10508 echo "${ECHO_T}no" >&6; }
10513 if test "$aros_target_ranlib_ln" = ""; then
10514 # Extract the first word of "ranlib", so it can be a program name with args.
10515 set dummy ranlib; ac_word=$2
10516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10518 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 case $aros_target_ranlib_ln in
10522 [\\/]* | ?:[\\/]*)
10523 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10537 done
10538 done
10539 IFS=$as_save_IFS
10542 esac
10544 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10545 if test -n "$aros_target_ranlib_ln"; then
10546 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10547 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10548 else
10549 { echo "$as_me:$LINENO: result: no" >&5
10550 echo "${ECHO_T}no" >&6; }
10556 else
10557 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10558 set dummy $aros_target_ranlib; ac_word=$2
10559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10561 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564 case $aros_target_ranlib_ln in
10565 [\\/]* | ?:[\\/]*)
10566 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10580 done
10581 done
10582 IFS=$as_save_IFS
10585 esac
10587 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10588 if test -n "$aros_target_ranlib_ln"; then
10589 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10590 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10591 else
10592 { echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6; }
10599 if test "$aros_target_ranlib_ln" = ""; then
10600 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10601 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10602 { (exit 1); exit 1; }; }
10605 if test "$aros_target_strip" = ""; then
10606 if test "$cross_compiling" = "yes" ; then
10607 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10608 set dummy ${target_tool_prefix}strip; ac_word=$2
10609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10611 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 case $aros_target_strip_ln in
10615 [\\/]* | ?:[\\/]*)
10616 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620 for as_dir in $PATH
10622 IFS=$as_save_IFS
10623 test -z "$as_dir" && as_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10626 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10628 break 2
10630 done
10631 done
10632 IFS=$as_save_IFS
10635 esac
10637 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10638 if test -n "$aros_target_strip_ln"; then
10639 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10640 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10641 else
10642 { echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6; }
10647 else
10648 if test "$GCC" = "yes"; then
10649 aros_gcc_strip=`$CC -print-prog-name=strip`
10650 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10651 set dummy `basename $aros_gcc_strip`; ac_word=$2
10652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10654 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657 case $aros_target_strip_ln in
10658 [\\/]* | ?:[\\/]*)
10659 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in `dirname $aros_gcc_strip`
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10673 done
10674 done
10675 IFS=$as_save_IFS
10678 esac
10680 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10681 if test -n "$aros_target_strip_ln"; then
10682 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10683 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10684 else
10685 { echo "$as_me:$LINENO: result: no" >&5
10686 echo "${ECHO_T}no" >&6; }
10691 if test "$aros_target_strip_ln" = ""; then
10692 # Extract the first word of "strip", so it can be a program name with args.
10693 set dummy strip; ac_word=$2
10694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10696 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699 case $aros_target_strip_ln in
10700 [\\/]* | ?:[\\/]*)
10701 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10715 done
10716 done
10717 IFS=$as_save_IFS
10720 esac
10722 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10723 if test -n "$aros_target_strip_ln"; then
10724 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10725 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10726 else
10727 { echo "$as_me:$LINENO: result: no" >&5
10728 echo "${ECHO_T}no" >&6; }
10734 else
10735 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10736 set dummy $aros_target_strip; ac_word=$2
10737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10739 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 case $aros_target_strip_ln in
10743 [\\/]* | ?:[\\/]*)
10744 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10754 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10758 done
10759 done
10760 IFS=$as_save_IFS
10763 esac
10765 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10766 if test -n "$aros_target_strip_ln"; then
10767 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10768 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10769 else
10770 { echo "$as_me:$LINENO: result: no" >&5
10771 echo "${ECHO_T}no" >&6; }
10777 if test "$aros_target_strip_ln" = ""; then
10778 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10779 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10780 { (exit 1); exit 1; }; }
10783 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10784 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10785 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10786 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10787 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10788 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10789 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10791 # aros_cc_pre is a variable that is added to the front of the compiler name
10792 # in the generated aros-gcc shell script. We need this to enable the cache
10793 # to work across cleaned builds. Also, support DISTCC using the correct
10794 # environment variable.
10797 if test "x${DISTCC}" != "x" ; then
10798 if test "x${CCACHE}" != "x" ; then
10799 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10800 else
10801 aros_cc_pre="${DISTCC} "
10803 else
10804 if test "x${CCACHE}" != "x" ; then
10805 aros_cc_pre="${CCACHE} "
10809 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10811 aros_target_nostdinc_cflags=-nostdinc
10813 aros_target_nostartup_ldflags=-nostartfiles
10815 aros_target_nix_ldflags=-nix
10817 aros_target_detach_ldflags=-detach
10819 aros_target_nostdlib_ldflags=-nostdlib
10822 # Target tools
10823 if test "$aros_target_cc" = ""; then
10824 orig_target_cc=$aros_kernel_cc
10825 else
10826 orig_target_cc=$aros_target_cc
10828 if test "$aros_target_ld" = ""; then
10829 orig_target_ld=$aros_kernel_ld
10830 else
10831 orig_target_ld=$aros_target_ld
10833 if test "$GCC" = "yes"; then
10834 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10836 aros_target_cc="${prefix}-gcc"
10837 aros_target_as="${prefix}-as"
10838 aros_target_ld="${prefix}-ld"
10839 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10840 aros_target_objcopy=${prefix}-objcopy
10841 aros_target_objdump=${prefix}-objdump
10842 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10843 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10844 aros_kernel_nm="${prefix}-nm"
10845 aros_target_strip=${prefix}-strip
10847 # Find the system include path. We can suggest that an alternative is
10848 # used if we don't get it correct. The default is to use /usr/include.
10849 # Which is set in the aros_target_incl_def variable.
10851 # Check whether --enable-includes was given.
10852 if test "${enable_includes+set}" = set; then
10853 enableval=$enable_includes; aros_target_incl=$enable_includes
10854 else
10855 aros_target_incl=$aros_target_incl_def
10859 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10860 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10861 if test "$aros_target_cc_includes" = "" ; then
10862 #try to guess where the directory is
10863 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10864 if ! test -d $aros_target_cc_includes; then
10865 #the directory doesn't exist, we need to do some more work
10866 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10868 #these are the headers we're looling for
10869 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10870 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10871 zutil.h"
10873 dirs=
10874 for h in $headers; do
10875 #which other headers each of the above headers needs?
10876 deps=$(echo "#include <$h>" | \
10877 $aros_host_cc -E -M - 2>/dev/null | \
10878 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10880 #copy all the needed headers to a directory beneath gendir
10881 for d in $deps; do
10882 h=$(basename $d)
10883 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10884 sed -n "s,^.*/include\(/.*\),\1,p")
10885 ! test -d $dir && mkdir -p $dir
10886 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10887 done
10888 done
10891 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10892 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10895 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10896 # On GCC >= 4.0 -iquote should be used
10899 save_cc="$CC"
10900 save_cflags="$CFLAGS"
10901 CC="$aros_kernel_cc"
10902 CFLAGS="-iquote."
10903 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10904 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10905 cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10913 main ()
10917 return 0;
10919 _ACEOF
10920 rm -f conftest.$ac_objext
10921 if { (ac_try="$ac_compile"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_compile") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.$ac_objext; then
10937 has_iquote="yes"
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 has_iquote="no"
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10947 echo "${ECHO_T}$has_iquote" >&6; }
10948 if test "x-$has_iquote" = "x-yes" ; then
10949 aros_cflags_iquote=-iquote
10950 aros_cflags_iquote_end=
10951 else
10952 aros_cflags_iquote=-I
10953 aros_cflags_iquote_end=-I-
10955 CC="$save_cc"
10956 CFLAGS="$save_cflags"
10962 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10963 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
10965 # Check whether --with-resolution was given.
10966 if test "${with_resolution+set}" = set; then
10967 withval=$with_resolution; resolution=$withval
10968 else
10969 resolution=none
10972 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10973 if test "$resolution" = "yes" ; then
10974 resolution="none"
10976 if test "$resolution" = "no" ; then
10977 resolution="none"
10979 if test "$resolution" != "none" ; then
10980 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10981 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10982 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10984 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10985 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10986 aros_cv_default_wbwidth=$aros_default_wbwidth
10987 aros_cv_default_wbheight=$aros_default_wbheight
10988 aros_cv_default_wbdepth=$aros_default_wbdepth
10990 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
10991 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
10992 # Check whether --enable-bochs_hack was given.
10993 if test "${enable_bochs_hack+set}" = set; then
10994 enableval=$enable_bochs_hack; bochs_hack="yes"
10995 else
10996 bochs_hack="no"
10999 if test "$bochs_hack" = "yes" ; then
11000 aros_bochs_hack="1"
11002 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
11003 echo "${ECHO_T}$bochs_hack" >&6; }
11005 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11006 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11008 # Check whether --with-serial-debug was given.
11009 if test "${with_serial_debug+set}" = set; then
11010 withval=$with_serial_debug; serial_debug=$withval
11011 else
11012 serial_debug=none
11015 if test "$aros_serial_debug" = 0 ; then
11016 serial_debug_forced=""
11017 if test "$serial_debug" = "yes" ; then
11018 serial_debug="2"
11020 if test "$serial_debug" = "no" ; then
11021 serial_debug="none"
11023 else
11024 serial_debug_forced="(forced)"
11025 serial_debug=$aros_serial_debug
11027 if test "$serial_debug" != "none" ; then
11028 aros_serial_debug=$serial_debug
11029 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11030 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11031 else
11032 { echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6; }
11036 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11037 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11038 # Check whether --enable-palm_debug_hack was given.
11039 if test "${enable_palm_debug_hack+set}" = set; then
11040 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11041 else
11042 palm_debug_hack="no"
11045 if test "$palm_debug_hack" = "yes" ; then
11046 aros_palm_debug_hack="1"
11048 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11049 echo "${ECHO_T}$palm_debug_hack" >&6; }
11052 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11053 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11054 # Check whether --enable-nesting_supervisor was given.
11055 if test "${enable_nesting_supervisor+set}" = set; then
11056 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11057 else
11058 nesting_supervisor="no"
11061 if test "$nesting_supervisor" = "yes" ; then
11062 aros_nesting_supervisor="1"
11064 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11065 echo "${ECHO_T}$nesting_supervisor" >&6; }
11068 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11070 if test "x-$aros_host_arch" != "x-darwin" ; then
11071 { echo "$as_me:$LINENO: checking for dlopen" >&5
11072 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11073 if test "${ac_cv_func_dlopen+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11084 #define dlopen innocuous_dlopen
11086 /* System header to define __stub macros and hopefully few prototypes,
11087 which can conflict with char dlopen (); below.
11088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11089 <limits.h> exists even on freestanding compilers. */
11091 #ifdef __STDC__
11092 # include <limits.h>
11093 #else
11094 # include <assert.h>
11095 #endif
11097 #undef dlopen
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char dlopen ();
11106 /* The GNU C library defines this for functions which it implements
11107 to always fail with ENOSYS. Some functions are actually named
11108 something starting with __ and the normal name is an alias. */
11109 #if defined __stub_dlopen || defined __stub___dlopen
11110 choke me
11111 #endif
11114 main ()
11116 return dlopen ();
11118 return 0;
11120 _ACEOF
11121 rm -f conftest.$ac_objext conftest$ac_exeext
11122 if { (ac_try="$ac_link"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_link") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest$ac_exeext &&
11138 $as_test_x conftest$ac_exeext; then
11139 ac_cv_func_dlopen=yes
11140 else
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_cv_func_dlopen=no
11147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11148 conftest$ac_exeext conftest.$ac_ext
11150 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11151 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11152 if test $ac_cv_func_dlopen = yes; then
11153 have_dl="yes"
11154 else
11155 have_dl="no"
11158 if test "x-$have_dl" = "x-no" ; then
11159 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164 ac_check_lib_save_LIBS=$LIBS
11165 LIBS="-ldl $LIBS"
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h. */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char dlopen ();
11181 main ()
11183 return dlopen ();
11185 return 0;
11187 _ACEOF
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (ac_try="$ac_link"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_link") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest$ac_exeext &&
11205 $as_test_x conftest$ac_exeext; then
11206 ac_cv_lib_dl_dlopen=yes
11207 else
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_cv_lib_dl_dlopen=no
11214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11218 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11219 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11220 if test $ac_cv_lib_dl_dlopen = yes; then
11221 have_dl="yes"
11222 aros_host_ldflags="$aros_host_ldflags -ldl"
11223 else
11224 have_dl="no"
11228 if test "x-$have_dl" = "x-no" ; then
11229 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11230 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11231 { (exit 1); exit 1; }; }
11236 # Check whether --enable-x11_hidd was given.
11237 if test "${enable_x11_hidd+set}" = set; then
11238 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11239 else
11240 x11_hidd="auto"
11243 case "x-$x11_hidd" in
11244 x-yes|x-no|x-auto) ;;
11245 *) x11_hidd="auto" ;;
11246 esac
11248 if test "x-$x11_hidd" != "x-no" ; then
11250 { echo "$as_me:$LINENO: checking for X" >&5
11251 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11254 # Check whether --with-x was given.
11255 if test "${with_x+set}" = set; then
11256 withval=$with_x;
11259 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11260 if test "x$with_x" = xno; then
11261 # The user explicitly disabled X.
11262 have_x=disabled
11263 else
11264 case $x_includes,$x_libraries in #(
11265 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11266 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11267 { (exit 1); exit 1; }; };; #(
11268 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271 # One or both of the vars are not set, and there is no cached value.
11272 ac_x_includes=no ac_x_libraries=no
11273 rm -f -r conftest.dir
11274 if mkdir conftest.dir; then
11275 cd conftest.dir
11276 cat >Imakefile <<'_ACEOF'
11277 incroot:
11278 @echo incroot='${INCROOT}'
11279 usrlibdir:
11280 @echo usrlibdir='${USRLIBDIR}'
11281 libdir:
11282 @echo libdir='${LIBDIR}'
11283 _ACEOF
11284 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11285 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11286 for ac_var in incroot usrlibdir libdir; do
11287 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11288 done
11289 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11290 for ac_extension in a so sl; do
11291 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11292 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11293 ac_im_usrlibdir=$ac_im_libdir; break
11295 done
11296 # Screen out bogus values from the imake configuration. They are
11297 # bogus both because they are the default anyway, and because
11298 # using them would break gcc on systems where it needs fixed includes.
11299 case $ac_im_incroot in
11300 /usr/include) ac_x_includes= ;;
11301 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11302 esac
11303 case $ac_im_usrlibdir in
11304 /usr/lib | /lib) ;;
11305 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11306 esac
11308 cd ..
11309 rm -f -r conftest.dir
11312 # Standard set of common directories for X headers.
11313 # Check X11 before X11Rn because it is often a symlink to the current release.
11314 ac_x_header_dirs='
11315 /usr/X11/include
11316 /usr/X11R6/include
11317 /usr/X11R5/include
11318 /usr/X11R4/include
11320 /usr/include/X11
11321 /usr/include/X11R6
11322 /usr/include/X11R5
11323 /usr/include/X11R4
11325 /usr/local/X11/include
11326 /usr/local/X11R6/include
11327 /usr/local/X11R5/include
11328 /usr/local/X11R4/include
11330 /usr/local/include/X11
11331 /usr/local/include/X11R6
11332 /usr/local/include/X11R5
11333 /usr/local/include/X11R4
11335 /usr/X386/include
11336 /usr/x386/include
11337 /usr/XFree86/include/X11
11339 /usr/include
11340 /usr/local/include
11341 /usr/unsupported/include
11342 /usr/athena/include
11343 /usr/local/x11r5/include
11344 /usr/lpp/Xamples/include
11346 /usr/openwin/include
11347 /usr/openwin/share/include'
11349 if test "$ac_x_includes" = no; then
11350 # Guess where to find include files, by looking for Xlib.h.
11351 # First, try using that file with no special directory specified.
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 #include <X11/Xlib.h>
11359 _ACEOF
11360 if { (ac_try="$ac_cpp conftest.$ac_ext"
11361 case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } >/dev/null && {
11373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 }; then
11376 # We can compile using X headers with no special include directory.
11377 ac_x_includes=
11378 else
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 for ac_dir in $ac_x_header_dirs; do
11383 if test -r "$ac_dir/X11/Xlib.h"; then
11384 ac_x_includes=$ac_dir
11385 break
11387 done
11390 rm -f conftest.err conftest.$ac_ext
11391 fi # $ac_x_includes = no
11393 if test "$ac_x_libraries" = no; then
11394 # Check for the libraries.
11395 # See if we find them without any special options.
11396 # Don't add to $LIBS permanently.
11397 ac_save_LIBS=$LIBS
11398 LIBS="-lX11 $LIBS"
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 #include <X11/Xlib.h>
11407 main ()
11409 XrmInitialize ()
11411 return 0;
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (ac_try="$ac_link"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_link") 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest$ac_exeext &&
11431 $as_test_x conftest$ac_exeext; then
11432 LIBS=$ac_save_LIBS
11433 # We can link X programs with no special library path.
11434 ac_x_libraries=
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 LIBS=$ac_save_LIBS
11440 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11442 # Don't even attempt the hair of trying to link an X program!
11443 for ac_extension in a so sl; do
11444 if test -r "$ac_dir/libX11.$ac_extension"; then
11445 ac_x_libraries=$ac_dir
11446 break 2
11448 done
11449 done
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11454 fi # $ac_x_libraries = no
11456 case $ac_x_includes,$ac_x_libraries in #(
11457 no,* | *,no | *\'*)
11458 # Didn't find X, or a directory has "'" in its name.
11459 ac_cv_have_x="have_x=no";; #(
11461 # Record where we found X for the cache.
11462 ac_cv_have_x="have_x=yes\
11463 ac_x_includes='$ac_x_includes'\
11464 ac_x_libraries='$ac_x_libraries'"
11465 esac
11467 ;; #(
11468 *) have_x=yes;;
11469 esac
11470 eval "$ac_cv_have_x"
11471 fi # $with_x != no
11473 if test "$have_x" != yes; then
11474 { echo "$as_me:$LINENO: result: $have_x" >&5
11475 echo "${ECHO_T}$have_x" >&6; }
11476 no_x=yes
11477 else
11478 # If each of the values was on the command line, it overrides each guess.
11479 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11480 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11481 # Update the cache value to reflect the command line values.
11482 ac_cv_have_x="have_x=yes\
11483 ac_x_includes='$x_includes'\
11484 ac_x_libraries='$x_libraries'"
11485 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11486 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11490 x_cflags=
11491 for path in $x_libraries
11493 x_cflags="$x_cflags -L$path"
11494 done
11496 for path in $x_includes
11498 x_cflags="$x_cflags -I$path"
11499 done
11501 if test "x-$no_x" = "x-yes" ; then
11503 if test "x-$x11_hidd" != "x-auto" ; then
11504 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11505 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11506 { (exit 1); exit 1; }; }
11509 else
11510 x11_hidd_target=kernel-x11gfx
11513 # Check whether --enable-x11_shm was given.
11514 if test "${enable_x11_shm+set}" = set; then
11515 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11516 else
11517 x11_hidd_shm="auto"
11520 case "x-$x11_hidd_shm" in
11521 x-yes|x-no|x-auto) ;;
11522 *) x11_hidd_shm="auto" ;;
11523 esac
11525 have_xshm=no
11527 if test "x-$x11_hidd_shm" != "x-no" ; then
11530 for ac_header in sys/ipc.h
11532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 ac_res=`eval echo '${'$as_ac_Header'}'`
11540 { echo "$as_me:$LINENO: result: $ac_res" >&5
11541 echo "${ECHO_T}$ac_res" >&6; }
11542 else
11543 # Is the header compilable?
11544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h. */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 $ac_includes_default
11553 #include <$ac_header>
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_compile") 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest.$ac_objext; then
11572 ac_header_compiler=yes
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_header_compiler=no
11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11582 echo "${ECHO_T}$ac_header_compiler" >&6; }
11584 # Is the header present?
11585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 #include <$ac_header>
11594 _ACEOF
11595 if { (ac_try="$ac_cpp conftest.$ac_ext"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev/null && {
11608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 }; then
11611 ac_header_preproc=yes
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_header_preproc=no
11619 rm -f conftest.err conftest.$ac_ext
11620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621 echo "${ECHO_T}$ac_header_preproc" >&6; }
11623 # So? What about this header?
11624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625 yes:no: )
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11630 ac_header_preproc=yes
11632 no:yes:* )
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11647 esac
11648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 eval "$as_ac_Header=\$ac_header_preproc"
11655 ac_res=`eval echo '${'$as_ac_Header'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11663 _ACEOF
11667 done
11670 for ac_header in sys/shm.h
11672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 ac_res=`eval echo '${'$as_ac_Header'}'`
11680 { echo "$as_me:$LINENO: result: $ac_res" >&5
11681 echo "${ECHO_T}$ac_res" >&6; }
11682 else
11683 # Is the header compilable?
11684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11693 #include <$ac_header>
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (ac_try="$ac_compile"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_compile") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest.$ac_objext; then
11712 ac_header_compiler=yes
11713 else
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_header_compiler=no
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11722 echo "${ECHO_T}$ac_header_compiler" >&6; }
11724 # Is the header present?
11725 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 #include <$ac_header>
11734 _ACEOF
11735 if { (ac_try="$ac_cpp conftest.$ac_ext"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } >/dev/null && {
11748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 }; then
11751 ac_header_preproc=yes
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 ac_header_preproc=no
11759 rm -f conftest.err conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11761 echo "${ECHO_T}$ac_header_preproc" >&6; }
11763 # So? What about this header?
11764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11765 yes:no: )
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11770 ac_header_preproc=yes
11772 no:yes:* )
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11787 esac
11788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793 eval "$as_ac_Header=\$ac_header_preproc"
11795 ac_res=`eval echo '${'$as_ac_Header'}'`
11796 { echo "$as_me:$LINENO: result: $ac_res" >&5
11797 echo "${ECHO_T}$ac_res" >&6; }
11800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11803 _ACEOF
11807 done
11810 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11812 save_cflags="$CFLAGS"
11813 CFLAGS="$CFLAGS $x_cflags"
11814 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11815 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11816 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819 ac_check_lib_save_LIBS=$LIBS
11820 LIBS="-lXext $LIBS"
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11831 #ifdef __cplusplus
11832 extern "C"
11833 #endif
11834 char XShmQueryExtension ();
11836 main ()
11838 return XShmQueryExtension ();
11840 return 0;
11842 _ACEOF
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (ac_try="$ac_link"
11845 case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_link") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest$ac_exeext &&
11860 $as_test_x conftest$ac_exeext; then
11861 ac_cv_lib_Xext_XShmQueryExtension=yes
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_cv_lib_Xext_XShmQueryExtension=no
11869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11870 conftest$ac_exeext conftest.$ac_ext
11871 LIBS=$ac_check_lib_save_LIBS
11873 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11874 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11875 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11876 have_xshm=yes
11879 CFLAGS="$save_cflags"
11883 if test "x-$have_xshm" = "x-yes" ; then
11884 DO_XSHM_SUPPORT="1"
11885 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11886 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11887 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11888 { (exit 1); exit 1; }; }
11889 else
11890 DO_XSHM_SUPPORT="0"
11894 # Check whether --enable-x11_vidmode was given.
11895 if test "${enable_x11_vidmode+set}" = set; then
11896 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11897 else
11898 x11_hidd_vidmode="auto"
11901 case "x-$x11_hidd_vidmode" in
11902 x-yes|x-no|x-auto) ;;
11903 *) x11_hidd_vidmode="auto" ;;
11904 esac
11906 have_vidmode=no
11908 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11910 save_cflags="$CFLAGS"
11911 CFLAGS="$CFLAGS $x_cflags"
11912 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11913 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
11914 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917 ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-lXxf86vm $LIBS"
11919 cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h. */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char XF86VidModeQueryExtension ();
11934 main ()
11936 return XF86VidModeQueryExtension ();
11938 return 0;
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (ac_try="$ac_link"
11943 case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_link") 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest$ac_exeext &&
11958 $as_test_x conftest$ac_exeext; then
11959 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11971 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11972 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11973 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
11974 have_vidmode=yes
11977 CFLAGS="$save_cflags"
11980 if test "x-$have_vidmode" = "x-yes" ; then
11981 DO_VIDMODE_SUPPORT="1"
11982 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11983 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
11984 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
11985 { (exit 1); exit 1; }; }
11986 else
11987 DO_VIDMODE_SUPPORT="0"
11991 aros_host_x11_includes=$x_includes
11992 aros_host_x11_libdirs=$x_libraries
11996 # Check whether --enable-sdl_hidd was given.
11997 if test "${enable_sdl_hidd+set}" = set; then
11998 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11999 else
12000 sdl_hidd="auto"
12003 case "x-$sdl_hidd" in
12004 x-yes|x-no|x-auto) ;;
12005 *) sdl_hidd="auto" ;;
12006 esac
12008 if test "x-$sdl_hidd" != "x-no" ; then
12011 # Check whether --with-sdl-prefix was given.
12012 if test "${with_sdl_prefix+set}" = set; then
12013 withval=$with_sdl_prefix; sdl_prefix="$withval"
12014 else
12015 sdl_prefix=""
12019 # Check whether --with-sdl-exec-prefix was given.
12020 if test "${with_sdl_exec_prefix+set}" = set; then
12021 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12022 else
12023 sdl_exec_prefix=""
12026 # Check whether --enable-sdltest was given.
12027 if test "${enable_sdltest+set}" = set; then
12028 enableval=$enable_sdltest;
12029 else
12030 enable_sdltest=yes
12034 if test x$sdl_exec_prefix != x ; then
12035 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12036 if test x${SDL_CONFIG+set} != xset ; then
12037 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12040 if test x$sdl_prefix != x ; then
12041 sdl_args="$sdl_args --prefix=$sdl_prefix"
12042 if test x${SDL_CONFIG+set} != xset ; then
12043 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12047 if test "x$prefix" != xNONE; then
12048 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12050 # Extract the first word of "sdl-config", so it can be a program name with args.
12051 set dummy sdl-config; ac_word=$2
12052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12054 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057 case $SDL_CONFIG in
12058 [\\/]* | ?:[\\/]*)
12059 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12069 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12073 done
12074 done
12075 IFS=$as_save_IFS
12077 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12079 esac
12081 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12082 if test -n "$SDL_CONFIG"; then
12083 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12084 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12085 else
12086 { echo "$as_me:$LINENO: result: no" >&5
12087 echo "${ECHO_T}no" >&6; }
12091 min_sdl_version=1.2.10
12092 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12093 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12094 no_sdl=""
12095 if test "$SDL_CONFIG" = "no" ; then
12096 no_sdl=yes
12097 else
12098 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12099 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12101 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12103 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12104 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12105 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12106 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12107 if test "x$enable_sdltest" = "xyes" ; then
12108 ac_save_CFLAGS="$CFLAGS"
12109 ac_save_CXXFLAGS="$CXXFLAGS"
12110 ac_save_LIBS="$LIBS"
12111 CFLAGS="$CFLAGS $SDL_CFLAGS"
12112 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12113 LIBS="$LIBS $SDL_LIBS"
12114 rm -f conf.sdltest
12115 if test "$cross_compiling" = yes; then
12116 echo $ac_n "cross compiling; assumed OK... $ac_c"
12117 else
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h. */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12125 #include <stdio.h>
12126 #include <stdlib.h>
12127 #include <string.h>
12128 #include "SDL.h"
12130 char*
12131 my_strdup (char *str)
12133 char *new_str;
12135 if (str)
12137 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12138 strcpy (new_str, str);
12140 else
12141 new_str = NULL;
12143 return new_str;
12146 int main (int argc, char *argv[])
12148 int major, minor, micro;
12149 char *tmp_version;
12151 /* This hangs on some systems (?)
12152 system ("touch conf.sdltest");
12154 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12156 /* HP/UX 9 (%@#!) writes to sscanf strings */
12157 tmp_version = my_strdup("$min_sdl_version");
12158 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12159 printf("%s, bad version string\n", "$min_sdl_version");
12160 exit(1);
12163 if (($sdl_major_version > major) ||
12164 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12165 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12167 return 0;
12169 else
12171 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12172 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12173 printf("*** best to upgrade to the required version.\n");
12174 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12175 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12176 printf("*** config.cache before re-running configure\n");
12177 return 1;
12182 _ACEOF
12183 rm -f conftest$ac_exeext
12184 if { (ac_try="$ac_link"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_link") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12204 else
12205 echo "$as_me: program exited with status $ac_status" >&5
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ( exit $ac_status )
12210 no_sdl=yes
12212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12216 CFLAGS="$ac_save_CFLAGS"
12217 CXXFLAGS="$ac_save_CXXFLAGS"
12218 LIBS="$ac_save_LIBS"
12221 if test "x$no_sdl" = x ; then
12222 { echo "$as_me:$LINENO: result: yes" >&5
12223 echo "${ECHO_T}yes" >&6; }
12224 have_sdl="yes"
12225 else
12226 { echo "$as_me:$LINENO: result: no" >&5
12227 echo "${ECHO_T}no" >&6; }
12228 if test "$SDL_CONFIG" = "no" ; then
12229 echo "*** The sdl-config script installed by SDL could not be found"
12230 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12231 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12232 echo "*** full path to sdl-config."
12233 else
12234 if test -f conf.sdltest ; then
12236 else
12237 echo "*** Could not run SDL test program, checking why..."
12238 CFLAGS="$CFLAGS $SDL_CFLAGS"
12239 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12240 LIBS="$LIBS $SDL_LIBS"
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12248 #include <stdio.h>
12249 #include "SDL.h"
12251 int main(int argc, char *argv[])
12252 { return 0; }
12253 #undef main
12254 #define main K_and_R_C_main
12257 main ()
12259 return 0;
12261 return 0;
12263 _ACEOF
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (ac_try="$ac_link"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_link") 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest$ac_exeext &&
12281 $as_test_x conftest$ac_exeext; then
12282 echo "*** The test program compiled, but did not run. This usually means"
12283 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12284 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12285 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12286 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12287 echo "*** is required on your system"
12288 echo "***"
12289 echo "*** If you have an old version installed, it is best to remove it, although"
12290 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12291 else
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 echo "*** The test program failed to compile or link. See the file config.log for the"
12296 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12297 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12298 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302 conftest$ac_exeext conftest.$ac_ext
12303 CFLAGS="$ac_save_CFLAGS"
12304 CXXFLAGS="$ac_save_CXXFLAGS"
12305 LIBS="$ac_save_LIBS"
12308 SDL_CFLAGS=""
12309 SDL_LIBS=""
12310 have_sdl="no"
12314 rm -f conf.sdltest
12317 if test "x-$have_sdl" != "x-yes" ; then
12319 if test "x-$sdl_hidd" != "x-auto" ; then
12320 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12321 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12322 { (exit 1); exit 1; }; }
12325 else
12326 sdl_hidd_target=kernel-hidd-sdl
12327 aros_host_sdl_cflags=SDL_CFLAGS
12328 aros_host_sdl_libs=SDL_LIBS
12335 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12336 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12337 # Check whether --enable-dbus was given.
12338 if test "${enable_dbus+set}" = set; then
12339 enableval=$enable_dbus; dbus="yes"
12340 else
12341 dbus="no"
12344 if test "$dbus" = "yes" ; then
12345 ENABLE_DBUS=1
12346 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12347 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12348 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12349 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12350 else
12351 ENABLE_DBUS=0
12353 { echo "$as_me:$LINENO: result: $dbus" >&5
12354 echo "${ECHO_T}$dbus" >&6; }
12358 # Generic
12367 # Host related
12390 # Target Related
12434 # Graphics Related
12449 # Native version related
12453 # Palm native version related
12456 # Unix/Hosted version related
12459 # DBUS related
12466 # Debug related
12472 # Collect-aros stuff: "-ius" to ignore undefined symbols
12475 # C compiler related
12478 case "$aros_flavour" in
12479 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12480 aros_flavour="emulation" ;;
12481 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12482 aros_flavour="emulation" ;;
12483 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12484 aros_flavour="standalone";;
12485 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12486 aros_flavour="native" ;;
12487 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12488 aros_flavour="native" ;;
12489 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12490 aros_flavour="linklib" ;;
12491 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12492 aros_flavour="palmnative" ;;
12493 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12494 aros_flavour="mac68knative" ;;
12495 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12496 aros_flavour="ppcnative" ;;
12497 esac
12499 if test ! -d ${aros_inc_dir} ; then
12500 ${MKDIR} ${aros_inc_dir}
12502 if test ! -d ${aros_geninc_dir} ; then
12503 ${MKDIR} ${aros_geninc_dir}
12505 if test ! -d ${aros_hostcfg_dir} ; then
12506 ${MKDIR} ${aros_hostcfg_dir}
12508 if test ! -d ${aros_targetcfg_dir} ; then
12509 ${MKDIR} ${aros_targetcfg_dir}
12511 if test ! -d ${aros_tools_dir} ; then
12512 ${MKDIR} ${aros_tools_dir}
12514 if test ! -d ${aros_scripts_dir} ; then
12515 ${MKDIR} ${aros_scripts_dir}
12518 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12521 ac_config_commands="$ac_config_commands compiler_executable"
12523 ac_config_commands="$ac_config_commands genshared_executable"
12525 ac_config_commands="$ac_config_commands genmf_executable"
12527 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
12530 ac_config_files="$ac_config_files Makefile rom/mmakefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/adflib/myconf.aros tools/collect-aros/env.h"
12533 cat >confcache <<\_ACEOF
12534 # This file is a shell script that caches the results of configure
12535 # tests run on this system so they can be shared between configure
12536 # scripts and configure runs, see configure's option --config-cache.
12537 # It is not useful on other systems. If it contains results you don't
12538 # want to keep, you may remove or edit it.
12540 # config.status only pays attention to the cache file if you give it
12541 # the --recheck option to rerun configure.
12543 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12544 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12545 # following values.
12547 _ACEOF
12549 # The following way of writing the cache mishandles newlines in values,
12550 # but we know of no workaround that is simple, portable, and efficient.
12551 # So, we kill variables containing newlines.
12552 # Ultrix sh set writes to stderr and can't be redirected directly,
12553 # and sets the high bit in the cache file unless we assign to the vars.
12555 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12556 eval ac_val=\$$ac_var
12557 case $ac_val in #(
12558 *${as_nl}*)
12559 case $ac_var in #(
12560 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12561 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12562 esac
12563 case $ac_var in #(
12564 _ | IFS | as_nl) ;; #(
12565 *) $as_unset $ac_var ;;
12566 esac ;;
12567 esac
12568 done
12570 (set) 2>&1 |
12571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12572 *${as_nl}ac_space=\ *)
12573 # `set' does not quote correctly, so add quotes (double-quote
12574 # substitution turns \\\\ into \\, and sed turns \\ into \).
12575 sed -n \
12576 "s/'/'\\\\''/g;
12577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12578 ;; #(
12580 # `set' quotes correctly as required by POSIX, so do not add quotes.
12581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12583 esac |
12584 sort
12586 sed '
12587 /^ac_cv_env_/b end
12588 t clear
12589 :clear
12590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12591 t end
12592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12593 :end' >>confcache
12594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12595 if test -w "$cache_file"; then
12596 test "x$cache_file" != "x/dev/null" &&
12597 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12598 echo "$as_me: updating cache $cache_file" >&6;}
12599 cat confcache >$cache_file
12600 else
12601 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12602 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12605 rm -f confcache
12607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12608 # Let make expand exec_prefix.
12609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12611 DEFS=-DHAVE_CONFIG_H
12613 ac_libobjs=
12614 ac_ltlibobjs=
12615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12616 # 1. Remove the extension, and $U if already installed.
12617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12618 ac_i=`echo "$ac_i" | sed "$ac_script"`
12619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12620 # will be set to the directory where LIBOBJS objects are built.
12621 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12622 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12623 done
12624 LIBOBJS=$ac_libobjs
12626 LTLIBOBJS=$ac_ltlibobjs
12630 : ${CONFIG_STATUS=./config.status}
12631 ac_clean_files_save=$ac_clean_files
12632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12633 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12634 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12635 cat >$CONFIG_STATUS <<_ACEOF
12636 #! $SHELL
12637 # Generated by $as_me.
12638 # Run this file to recreate the current configuration.
12639 # Compiler output produced by configure, useful for debugging
12640 # configure, is in config.log if it exists.
12642 debug=false
12643 ac_cs_recheck=false
12644 ac_cs_silent=false
12645 SHELL=\${CONFIG_SHELL-$SHELL}
12646 _ACEOF
12648 cat >>$CONFIG_STATUS <<\_ACEOF
12649 ## --------------------- ##
12650 ## M4sh Initialization. ##
12651 ## --------------------- ##
12653 # Be more Bourne compatible
12654 DUALCASE=1; export DUALCASE # for MKS sh
12655 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12656 emulate sh
12657 NULLCMD=:
12658 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12659 # is contrary to our usage. Disable this feature.
12660 alias -g '${1+"$@"}'='"$@"'
12661 setopt NO_GLOB_SUBST
12662 else
12663 case `(set -o) 2>/dev/null` in
12664 *posix*) set -o posix ;;
12665 esac
12672 # PATH needs CR
12673 # Avoid depending upon Character Ranges.
12674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12677 as_cr_digits='0123456789'
12678 as_cr_alnum=$as_cr_Letters$as_cr_digits
12680 # The user is always right.
12681 if test "${PATH_SEPARATOR+set}" != set; then
12682 echo "#! /bin/sh" >conf$$.sh
12683 echo "exit 0" >>conf$$.sh
12684 chmod +x conf$$.sh
12685 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12686 PATH_SEPARATOR=';'
12687 else
12688 PATH_SEPARATOR=:
12690 rm -f conf$$.sh
12693 # Support unset when possible.
12694 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12695 as_unset=unset
12696 else
12697 as_unset=false
12701 # IFS
12702 # We need space, tab and new line, in precisely that order. Quoting is
12703 # there to prevent editors from complaining about space-tab.
12704 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12705 # splitting by setting IFS to empty value.)
12706 as_nl='
12708 IFS=" "" $as_nl"
12710 # Find who we are. Look in the path if we contain no directory separator.
12711 case $0 in
12712 *[\\/]* ) as_myself=$0 ;;
12713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12719 done
12720 IFS=$as_save_IFS
12723 esac
12724 # We did not find ourselves, most probably we were run as `sh COMMAND'
12725 # in which case we are not to be found in the path.
12726 if test "x$as_myself" = x; then
12727 as_myself=$0
12729 if test ! -f "$as_myself"; then
12730 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12731 { (exit 1); exit 1; }
12734 # Work around bugs in pre-3.0 UWIN ksh.
12735 for as_var in ENV MAIL MAILPATH
12736 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12737 done
12738 PS1='$ '
12739 PS2='> '
12740 PS4='+ '
12742 # NLS nuisances.
12743 for as_var in \
12744 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12745 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12746 LC_TELEPHONE LC_TIME
12748 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12749 eval $as_var=C; export $as_var
12750 else
12751 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12753 done
12755 # Required to use basename.
12756 if expr a : '\(a\)' >/dev/null 2>&1 &&
12757 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12758 as_expr=expr
12759 else
12760 as_expr=false
12763 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12764 as_basename=basename
12765 else
12766 as_basename=false
12770 # Name of the executable.
12771 as_me=`$as_basename -- "$0" ||
12772 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12773 X"$0" : 'X\(//\)$' \| \
12774 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12775 echo X/"$0" |
12776 sed '/^.*\/\([^/][^/]*\)\/*$/{
12777 s//\1/
12780 /^X\/\(\/\/\)$/{
12781 s//\1/
12784 /^X\/\(\/\).*/{
12785 s//\1/
12788 s/.*/./; q'`
12790 # CDPATH.
12791 $as_unset CDPATH
12795 as_lineno_1=$LINENO
12796 as_lineno_2=$LINENO
12797 test "x$as_lineno_1" != "x$as_lineno_2" &&
12798 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12800 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12801 # uniformly replaced by the line number. The first 'sed' inserts a
12802 # line-number line after each line using $LINENO; the second 'sed'
12803 # does the real work. The second script uses 'N' to pair each
12804 # line-number line with the line containing $LINENO, and appends
12805 # trailing '-' during substitution so that $LINENO is not a special
12806 # case at line end.
12807 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12808 # scripts with optimization help from Paolo Bonzini. Blame Lee
12809 # E. McMahon (1931-1989) for sed's syntax. :-)
12810 sed -n '
12812 /[$]LINENO/=
12813 ' <$as_myself |
12814 sed '
12815 s/[$]LINENO.*/&-/
12816 t lineno
12818 :lineno
12820 :loop
12821 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12822 t loop
12823 s/-\n.*//
12824 ' >$as_me.lineno &&
12825 chmod +x "$as_me.lineno" ||
12826 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12827 { (exit 1); exit 1; }; }
12829 # Don't try to exec as it changes $[0], causing all sort of problems
12830 # (the dirname of $[0] is not the place where we might find the
12831 # original and so on. Autoconf is especially sensitive to this).
12832 . "./$as_me.lineno"
12833 # Exit status is that of the last command.
12834 exit
12838 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12839 as_dirname=dirname
12840 else
12841 as_dirname=false
12844 ECHO_C= ECHO_N= ECHO_T=
12845 case `echo -n x` in
12846 -n*)
12847 case `echo 'x\c'` in
12848 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12849 *) ECHO_C='\c';;
12850 esac;;
12852 ECHO_N='-n';;
12853 esac
12855 if expr a : '\(a\)' >/dev/null 2>&1 &&
12856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12857 as_expr=expr
12858 else
12859 as_expr=false
12862 rm -f conf$$ conf$$.exe conf$$.file
12863 if test -d conf$$.dir; then
12864 rm -f conf$$.dir/conf$$.file
12865 else
12866 rm -f conf$$.dir
12867 mkdir conf$$.dir
12869 echo >conf$$.file
12870 if ln -s conf$$.file conf$$ 2>/dev/null; then
12871 as_ln_s='ln -s'
12872 # ... but there are two gotchas:
12873 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12874 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12875 # In both cases, we have to default to `cp -p'.
12876 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12877 as_ln_s='cp -p'
12878 elif ln conf$$.file conf$$ 2>/dev/null; then
12879 as_ln_s=ln
12880 else
12881 as_ln_s='cp -p'
12883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12884 rmdir conf$$.dir 2>/dev/null
12886 if mkdir -p . 2>/dev/null; then
12887 as_mkdir_p=:
12888 else
12889 test -d ./-p && rmdir ./-p
12890 as_mkdir_p=false
12893 if test -x / >/dev/null 2>&1; then
12894 as_test_x='test -x'
12895 else
12896 if ls -dL / >/dev/null 2>&1; then
12897 as_ls_L_option=L
12898 else
12899 as_ls_L_option=
12901 as_test_x='
12902 eval sh -c '\''
12903 if test -d "$1"; then
12904 test -d "$1/.";
12905 else
12906 case $1 in
12907 -*)set "./$1";;
12908 esac;
12909 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12910 ???[sx]*):;;*)false;;esac;fi
12911 '\'' sh
12914 as_executable_p=$as_test_x
12916 # Sed expression to map a string onto a valid CPP name.
12917 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12919 # Sed expression to map a string onto a valid variable name.
12920 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12923 exec 6>&1
12925 # Save the log message, to keep $[0] and so on meaningful, and to
12926 # report actual input values of CONFIG_FILES etc. instead of their
12927 # values after options handling.
12928 ac_log="
12929 This file was extended by $as_me, which was
12930 generated by GNU Autoconf 2.61. Invocation command line was
12932 CONFIG_FILES = $CONFIG_FILES
12933 CONFIG_HEADERS = $CONFIG_HEADERS
12934 CONFIG_LINKS = $CONFIG_LINKS
12935 CONFIG_COMMANDS = $CONFIG_COMMANDS
12936 $ $0 $@
12938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12941 _ACEOF
12943 cat >>$CONFIG_STATUS <<_ACEOF
12944 # Files that config.status was made for.
12945 config_files="$ac_config_files"
12946 config_headers="$ac_config_headers"
12947 config_commands="$ac_config_commands"
12949 _ACEOF
12951 cat >>$CONFIG_STATUS <<\_ACEOF
12952 ac_cs_usage="\
12953 \`$as_me' instantiates files from templates according to the
12954 current configuration.
12956 Usage: $0 [OPTIONS] [FILE]...
12958 -h, --help print this help, then exit
12959 -V, --version print version number and configuration settings, then exit
12960 -q, --quiet do not print progress messages
12961 -d, --debug don't remove temporary files
12962 --recheck update $as_me by reconfiguring in the same conditions
12963 --file=FILE[:TEMPLATE]
12964 instantiate the configuration file FILE
12965 --header=FILE[:TEMPLATE]
12966 instantiate the configuration header FILE
12968 Configuration files:
12969 $config_files
12971 Configuration headers:
12972 $config_headers
12974 Configuration commands:
12975 $config_commands
12977 Report bugs to <bug-autoconf@gnu.org>."
12979 _ACEOF
12980 cat >>$CONFIG_STATUS <<_ACEOF
12981 ac_cs_version="\\
12982 config.status
12983 configured by $0, generated by GNU Autoconf 2.61,
12984 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12986 Copyright (C) 2006 Free Software Foundation, Inc.
12987 This config.status script is free software; the Free Software Foundation
12988 gives unlimited permission to copy, distribute and modify it."
12990 ac_pwd='$ac_pwd'
12991 srcdir='$srcdir'
12992 _ACEOF
12994 cat >>$CONFIG_STATUS <<\_ACEOF
12995 # If no file are specified by the user, then we need to provide default
12996 # value. By we need to know if files were specified by the user.
12997 ac_need_defaults=:
12998 while test $# != 0
13000 case $1 in
13001 --*=*)
13002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13004 ac_shift=:
13007 ac_option=$1
13008 ac_optarg=$2
13009 ac_shift=shift
13011 esac
13013 case $ac_option in
13014 # Handling of the options.
13015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13016 ac_cs_recheck=: ;;
13017 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13018 echo "$ac_cs_version"; exit ;;
13019 --debug | --debu | --deb | --de | --d | -d )
13020 debug=: ;;
13021 --file | --fil | --fi | --f )
13022 $ac_shift
13023 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13024 ac_need_defaults=false;;
13025 --header | --heade | --head | --hea )
13026 $ac_shift
13027 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13028 ac_need_defaults=false;;
13029 --he | --h)
13030 # Conflict between --help and --header
13031 { echo "$as_me: error: ambiguous option: $1
13032 Try \`$0 --help' for more information." >&2
13033 { (exit 1); exit 1; }; };;
13034 --help | --hel | -h )
13035 echo "$ac_cs_usage"; exit ;;
13036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13038 ac_cs_silent=: ;;
13040 # This is an error.
13041 -*) { echo "$as_me: error: unrecognized option: $1
13042 Try \`$0 --help' for more information." >&2
13043 { (exit 1); exit 1; }; } ;;
13045 *) ac_config_targets="$ac_config_targets $1"
13046 ac_need_defaults=false ;;
13048 esac
13049 shift
13050 done
13052 ac_configure_extra_args=
13054 if $ac_cs_silent; then
13055 exec 6>/dev/null
13056 ac_configure_extra_args="$ac_configure_extra_args --silent"
13059 _ACEOF
13060 cat >>$CONFIG_STATUS <<_ACEOF
13061 if \$ac_cs_recheck; then
13062 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13063 CONFIG_SHELL=$SHELL
13064 export CONFIG_SHELL
13065 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13068 _ACEOF
13069 cat >>$CONFIG_STATUS <<\_ACEOF
13070 exec 5>>config.log
13072 echo
13073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13074 ## Running $as_me. ##
13075 _ASBOX
13076 echo "$ac_log"
13077 } >&5
13079 _ACEOF
13080 cat >>$CONFIG_STATUS <<_ACEOF
13082 # INIT-COMMANDS
13085 aros_tools_dir=${aros_tools_dir}
13086 aros_target_cpu=${aros_target_cpu}
13087 aros_target_arch=${aros_target_arch}
13088 aros_target_suffix=${aros_target_suffix}
13089 aros_target_nm_ln=${aros_target_nm_ln}
13090 aros_target_as_ln=${aros_target_as_ln}
13091 aros_target_ar_ln=${aros_target_ar_ln}
13092 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13093 aros_target_objdump_ln=${aros_target_objdump_ln}
13094 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13095 aros_target_strip_ln=${aros_target_strip_ln}
13098 aros_scripts_dir=${aros_scripts_dir}
13100 aros_tools_dir=${aros_tools_dir}
13103 _ACEOF
13105 cat >>$CONFIG_STATUS <<\_ACEOF
13107 # Handling of arguments.
13108 for ac_config_target in $ac_config_targets
13110 case $ac_config_target in
13111 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13112 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13113 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13114 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13115 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13117 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
13118 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13119 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13120 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13121 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13122 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13123 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13124 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13125 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13126 "${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" ;;
13127 "${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" ;;
13128 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13129 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13130 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13131 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13133 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13134 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13135 { (exit 1); exit 1; }; };;
13136 esac
13137 done
13140 # If the user did not use the arguments to specify the items to instantiate,
13141 # then the envvar interface is used. Set only those that are not.
13142 # We use the long form for the default assignment because of an extremely
13143 # bizarre bug on SunOS 4.1.3.
13144 if $ac_need_defaults; then
13145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13150 # Have a temporary directory for convenience. Make it in the build tree
13151 # simply because there is no reason against having it here, and in addition,
13152 # creating and moving files from /tmp can sometimes cause problems.
13153 # Hook for its removal unless debugging.
13154 # Note that there is a small window in which the directory will not be cleaned:
13155 # after its creation but before its name has been assigned to `$tmp'.
13156 $debug ||
13158 tmp=
13159 trap 'exit_status=$?
13160 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13162 trap '{ (exit 1); exit 1; }' 1 2 13 15
13164 # Create a (secure) tmp directory for tmp files.
13167 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13168 test -n "$tmp" && test -d "$tmp"
13169 } ||
13171 tmp=./conf$$-$RANDOM
13172 (umask 077 && mkdir "$tmp")
13173 } ||
13175 echo "$me: cannot create a temporary directory in ." >&2
13176 { (exit 1); exit 1; }
13180 # Set up the sed scripts for CONFIG_FILES section.
13183 # No need to generate the scripts if there are no CONFIG_FILES.
13184 # This happens for instance when ./config.status config.h
13185 if test -n "$CONFIG_FILES"; then
13187 _ACEOF
13191 ac_delim='%!_!# '
13192 for ac_last_try in false false false false false :; do
13193 cat >conf$$subs.sed <<_ACEOF
13194 SHELL!$SHELL$ac_delim
13195 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13196 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13197 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13198 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13199 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13200 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13201 exec_prefix!$exec_prefix$ac_delim
13202 prefix!$prefix$ac_delim
13203 program_transform_name!$program_transform_name$ac_delim
13204 bindir!$bindir$ac_delim
13205 sbindir!$sbindir$ac_delim
13206 libexecdir!$libexecdir$ac_delim
13207 datarootdir!$datarootdir$ac_delim
13208 datadir!$datadir$ac_delim
13209 sysconfdir!$sysconfdir$ac_delim
13210 sharedstatedir!$sharedstatedir$ac_delim
13211 localstatedir!$localstatedir$ac_delim
13212 includedir!$includedir$ac_delim
13213 oldincludedir!$oldincludedir$ac_delim
13214 docdir!$docdir$ac_delim
13215 infodir!$infodir$ac_delim
13216 htmldir!$htmldir$ac_delim
13217 dvidir!$dvidir$ac_delim
13218 pdfdir!$pdfdir$ac_delim
13219 psdir!$psdir$ac_delim
13220 libdir!$libdir$ac_delim
13221 localedir!$localedir$ac_delim
13222 mandir!$mandir$ac_delim
13223 DEFS!$DEFS$ac_delim
13224 ECHO_C!$ECHO_C$ac_delim
13225 ECHO_N!$ECHO_N$ac_delim
13226 ECHO_T!$ECHO_T$ac_delim
13227 LIBS!$LIBS$ac_delim
13228 build_alias!$build_alias$ac_delim
13229 host_alias!$host_alias$ac_delim
13230 target_alias!$target_alias$ac_delim
13231 build!$build$ac_delim
13232 build_cpu!$build_cpu$ac_delim
13233 build_vendor!$build_vendor$ac_delim
13234 build_os!$build_os$ac_delim
13235 host!$host$ac_delim
13236 host_cpu!$host_cpu$ac_delim
13237 host_vendor!$host_vendor$ac_delim
13238 host_os!$host_os$ac_delim
13239 CC!$CC$ac_delim
13240 CFLAGS!$CFLAGS$ac_delim
13241 LDFLAGS!$LDFLAGS$ac_delim
13242 CPPFLAGS!$CPPFLAGS$ac_delim
13243 ac_ct_CC!$ac_ct_CC$ac_delim
13244 EXEEXT!$EXEEXT$ac_delim
13245 OBJEXT!$OBJEXT$ac_delim
13246 CPP!$CPP$ac_delim
13247 AWK!$AWK$ac_delim
13248 MMAKE!$MMAKE$ac_delim
13249 aros_host_ld!$aros_host_ld$ac_delim
13250 aros_host_aclocal!$aros_host_aclocal$ac_delim
13251 aros_host_autoconf!$aros_host_autoconf$ac_delim
13252 aros_host_autoheader!$aros_host_autoheader$ac_delim
13253 aros_host_automake!$aros_host_automake$ac_delim
13254 aros_host_ar!$aros_host_ar$ac_delim
13255 aros_host_ranlib!$aros_host_ranlib$ac_delim
13256 aros_host_strip!$aros_host_strip$ac_delim
13257 RM!$RM$ac_delim
13258 CP!$CP$ac_delim
13259 MV!$MV$ac_delim
13260 ECHO!$ECHO$ac_delim
13261 MKDIR!$MKDIR$ac_delim
13262 TOUCH!$TOUCH$ac_delim
13263 SORT!$SORT$ac_delim
13264 UNIQ!$UNIQ$ac_delim
13265 NOP!$NOP$ac_delim
13266 CAT!$CAT$ac_delim
13267 BISON!$BISON$ac_delim
13268 FLEX!$FLEX$ac_delim
13269 PNGTOPNM!$PNGTOPNM$ac_delim
13270 PPMTOILBM!$PPMTOILBM$ac_delim
13271 SED!$SED$ac_delim
13272 CHMOD!$CHMOD$ac_delim
13273 PYTHON!$PYTHON$ac_delim
13274 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13275 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13276 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13277 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13278 pythondir!$pythondir$ac_delim
13279 pkgpythondir!$pkgpythondir$ac_delim
13280 pyexecdir!$pyexecdir$ac_delim
13281 pkgpyexecdir!$pkgpyexecdir$ac_delim
13282 FOR!$FOR$ac_delim
13283 IF!$IF$ac_delim
13284 TEST!$TEST$ac_delim
13285 CMP!$CMP$ac_delim
13286 GREP!$GREP$ac_delim
13287 EGREP!$EGREP$ac_delim
13288 LIBOBJS!$LIBOBJS$ac_delim
13289 DISTCC!$DISTCC$ac_delim
13290 CCACHE!$CCACHE$ac_delim
13291 _ACEOF
13293 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13294 break
13295 elif $ac_last_try; then
13296 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13297 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13298 { (exit 1); exit 1; }; }
13299 else
13300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13302 done
13304 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13305 if test -n "$ac_eof"; then
13306 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13307 ac_eof=`expr $ac_eof + 1`
13310 cat >>$CONFIG_STATUS <<_ACEOF
13311 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13313 _ACEOF
13314 sed '
13315 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13316 s/^/s,@/; s/!/@,|#_!!_#|/
13319 s/'"$ac_delim"'$/,g/; t
13320 s/$/\\/; p
13321 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13322 ' >>$CONFIG_STATUS <conf$$subs.sed
13323 rm -f conf$$subs.sed
13324 cat >>$CONFIG_STATUS <<_ACEOF
13325 CEOF$ac_eof
13326 _ACEOF
13329 ac_delim='%!_!# '
13330 for ac_last_try in false false false false false :; do
13331 cat >conf$$subs.sed <<_ACEOF
13332 LIBLZO!$LIBLZO$ac_delim
13333 aros_kernel_cc!$aros_kernel_cc$ac_delim
13334 aros_target_cc!$aros_target_cc$ac_delim
13335 aros_target_ld!$aros_target_ld$ac_delim
13336 aros_target_as_ln!$aros_target_as_ln$ac_delim
13337 aros_kernel_ld!$aros_kernel_ld$ac_delim
13338 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13339 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13340 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13341 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13342 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13343 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13344 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13345 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13346 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13347 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13348 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13349 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13350 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13351 XMKMF!$XMKMF$ac_delim
13352 SDL_CONFIG!$SDL_CONFIG$ac_delim
13353 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13354 SDL_LIBS!$SDL_LIBS$ac_delim
13355 aros_arch!$aros_arch$ac_delim
13356 aros_cpu!$aros_cpu$ac_delim
13357 aros_flavour!$aros_flavour$ac_delim
13358 aros_flavour_uc!$aros_flavour_uc$ac_delim
13359 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13360 AROS_SRCDIR!$AROS_SRCDIR$ac_delim
13361 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13362 aros_cc_pre!$aros_cc_pre$ac_delim
13363 aros_host_arch!$aros_host_arch$ac_delim
13364 aros_host_cpu!$aros_host_cpu$ac_delim
13365 aros_host_cc!$aros_host_cc$ac_delim
13366 aros_host_make!$aros_host_make$ac_delim
13367 aros_host_cflags!$aros_host_cflags$ac_delim
13368 aros_host_ldflags!$aros_host_ldflags$ac_delim
13369 aros_host_debug!$aros_host_debug$ac_delim
13370 aros_host_mkdep!$aros_host_mkdep$ac_delim
13371 aros_host_mkargs!$aros_host_mkargs$ac_delim
13372 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13373 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13374 aros_tools_dir!$aros_tools_dir$ac_delim
13375 aros_target_guitheme!$aros_target_guitheme$ac_delim
13376 aros_target_bootloader!$aros_target_bootloader$ac_delim
13377 aros_target_arch!$aros_target_arch$ac_delim
13378 aros_target_cpu!$aros_target_cpu$ac_delim
13379 aros_target_variant!$aros_target_variant$ac_delim
13380 aros_target_suffix!$aros_target_suffix$ac_delim
13381 aros_target_incl!$aros_target_incl$ac_delim
13382 aros_target_ar!$aros_target_ar$ac_delim
13383 aros_target_ranlib!$aros_target_ranlib$ac_delim
13384 aros_kernel_nm!$aros_kernel_nm$ac_delim
13385 orig_target_cc!$orig_target_cc$ac_delim
13386 aros_target_as!$aros_target_as$ac_delim
13387 orig_target_ld!$orig_target_ld$ac_delim
13388 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13389 aros_target_cc_path!$aros_target_cc_path$ac_delim
13390 aros_target_objdump!$aros_target_objdump$ac_delim
13391 aros_target_objcopy!$aros_target_objcopy$ac_delim
13392 aros_target_strip!$aros_target_strip$ac_delim
13393 aros_target_nm!$aros_target_nm$ac_delim
13394 aros_shared_default!$aros_shared_default$ac_delim
13395 aros_shared_ld!$aros_shared_ld$ac_delim
13396 aros_object_format!$aros_object_format$ac_delim
13397 aros_compiler_libs!$aros_compiler_libs$ac_delim
13398 aros_config_cflags!$aros_config_cflags$ac_delim
13399 aros_config_aflags!$aros_config_aflags$ac_delim
13400 aros_config_ldflags!$aros_config_ldflags$ac_delim
13401 aros_shared_cflags!$aros_shared_cflags$ac_delim
13402 aros_shared_aflags!$aros_shared_aflags$ac_delim
13403 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13404 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13405 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13406 aros_debug_cflags!$aros_debug_cflags$ac_delim
13407 aros_debug_aflags!$aros_debug_aflags$ac_delim
13408 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13409 aros_target_genmap!$aros_target_genmap$ac_delim
13410 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13411 x11_hidd_target!$x11_hidd_target$ac_delim
13412 sdl_hidd_target!$sdl_hidd_target$ac_delim
13413 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13414 aros_default_wbheight!$aros_default_wbheight$ac_delim
13415 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13416 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13417 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13418 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13419 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13420 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13421 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13422 aros_bochs_hack!$aros_bochs_hack$ac_delim
13423 aros_serial_debug!$aros_serial_debug$ac_delim
13424 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13425 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13426 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13427 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13428 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13429 _ACEOF
13431 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13432 break
13433 elif $ac_last_try; then
13434 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13435 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13436 { (exit 1); exit 1; }; }
13437 else
13438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13440 done
13442 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13443 if test -n "$ac_eof"; then
13444 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13445 ac_eof=`expr $ac_eof + 1`
13448 cat >>$CONFIG_STATUS <<_ACEOF
13449 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13451 _ACEOF
13452 sed '
13453 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13454 s/^/s,@/; s/!/@,|#_!!_#|/
13457 s/'"$ac_delim"'$/,g/; t
13458 s/$/\\/; p
13459 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13460 ' >>$CONFIG_STATUS <conf$$subs.sed
13461 rm -f conf$$subs.sed
13462 cat >>$CONFIG_STATUS <<_ACEOF
13463 CEOF$ac_eof
13464 _ACEOF
13467 ac_delim='%!_!# '
13468 for ac_last_try in false false false false false :; do
13469 cat >conf$$subs.sed <<_ACEOF
13470 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13471 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13472 aros_debug!$aros_debug$ac_delim
13473 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13474 aros_stack_debug!$aros_stack_debug$ac_delim
13475 aros_modules_debug!$aros_modules_debug$ac_delim
13476 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13477 gcc_target_cpu!$gcc_target_cpu$ac_delim
13478 LTLIBOBJS!$LTLIBOBJS$ac_delim
13479 _ACEOF
13481 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
13482 break
13483 elif $ac_last_try; then
13484 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13485 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13486 { (exit 1); exit 1; }; }
13487 else
13488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13490 done
13492 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13493 if test -n "$ac_eof"; then
13494 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13495 ac_eof=`expr $ac_eof + 1`
13498 cat >>$CONFIG_STATUS <<_ACEOF
13499 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13501 _ACEOF
13502 sed '
13503 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13504 s/^/s,@/; s/!/@,|#_!!_#|/
13507 s/'"$ac_delim"'$/,g/; t
13508 s/$/\\/; p
13509 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13510 ' >>$CONFIG_STATUS <conf$$subs.sed
13511 rm -f conf$$subs.sed
13512 cat >>$CONFIG_STATUS <<_ACEOF
13513 :end
13514 s/|#_!!_#|//g
13515 CEOF$ac_eof
13516 _ACEOF
13519 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13520 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13521 # trailing colons and then remove the whole line if VPATH becomes empty
13522 # (actually we leave an empty line to preserve line numbers).
13523 if test "x$srcdir" = x.; then
13524 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13525 s/:*\$(srcdir):*/:/
13526 s/:*\${srcdir}:*/:/
13527 s/:*@srcdir@:*/:/
13528 s/^\([^=]*=[ ]*\):*/\1/
13529 s/:*$//
13530 s/^[^=]*=[ ]*$//
13534 cat >>$CONFIG_STATUS <<\_ACEOF
13535 fi # test -n "$CONFIG_FILES"
13538 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13540 case $ac_tag in
13541 :[FHLC]) ac_mode=$ac_tag; continue;;
13542 esac
13543 case $ac_mode$ac_tag in
13544 :[FHL]*:*);;
13545 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13546 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13547 { (exit 1); exit 1; }; };;
13548 :[FH]-) ac_tag=-:-;;
13549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13550 esac
13551 ac_save_IFS=$IFS
13552 IFS=:
13553 set x $ac_tag
13554 IFS=$ac_save_IFS
13555 shift
13556 ac_file=$1
13557 shift
13559 case $ac_mode in
13560 :L) ac_source=$1;;
13561 :[FH])
13562 ac_file_inputs=
13563 for ac_f
13565 case $ac_f in
13566 -) ac_f="$tmp/stdin";;
13567 *) # Look for the file first in the build tree, then in the source tree
13568 # (if the path is not absolute). The absolute path cannot be DOS-style,
13569 # because $ac_f cannot contain `:'.
13570 test -f "$ac_f" ||
13571 case $ac_f in
13572 [\\/$]*) false;;
13573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13574 esac ||
13575 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13576 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13577 { (exit 1); exit 1; }; };;
13578 esac
13579 ac_file_inputs="$ac_file_inputs $ac_f"
13580 done
13582 # Let's still pretend it is `configure' which instantiates (i.e., don't
13583 # use $as_me), people would be surprised to read:
13584 # /* config.h. Generated by config.status. */
13585 configure_input="Generated from "`IFS=:
13586 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13587 if test x"$ac_file" != x-; then
13588 configure_input="$ac_file. $configure_input"
13589 { echo "$as_me:$LINENO: creating $ac_file" >&5
13590 echo "$as_me: creating $ac_file" >&6;}
13593 case $ac_tag in
13594 *:-:* | *:-) cat >"$tmp/stdin";;
13595 esac
13597 esac
13599 ac_dir=`$as_dirname -- "$ac_file" ||
13600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601 X"$ac_file" : 'X\(//\)[^/]' \| \
13602 X"$ac_file" : 'X\(//\)$' \| \
13603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13604 echo X"$ac_file" |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13606 s//\1/
13609 /^X\(\/\/\)[^/].*/{
13610 s//\1/
13613 /^X\(\/\/\)$/{
13614 s//\1/
13617 /^X\(\/\).*/{
13618 s//\1/
13621 s/.*/./; q'`
13622 { as_dir="$ac_dir"
13623 case $as_dir in #(
13624 -*) as_dir=./$as_dir;;
13625 esac
13626 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13627 as_dirs=
13628 while :; do
13629 case $as_dir in #(
13630 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13631 *) as_qdir=$as_dir;;
13632 esac
13633 as_dirs="'$as_qdir' $as_dirs"
13634 as_dir=`$as_dirname -- "$as_dir" ||
13635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13636 X"$as_dir" : 'X\(//\)[^/]' \| \
13637 X"$as_dir" : 'X\(//\)$' \| \
13638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13639 echo X"$as_dir" |
13640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13641 s//\1/
13644 /^X\(\/\/\)[^/].*/{
13645 s//\1/
13648 /^X\(\/\/\)$/{
13649 s//\1/
13652 /^X\(\/\).*/{
13653 s//\1/
13656 s/.*/./; q'`
13657 test -d "$as_dir" && break
13658 done
13659 test -z "$as_dirs" || eval "mkdir $as_dirs"
13660 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13661 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13662 { (exit 1); exit 1; }; }; }
13663 ac_builddir=.
13665 case "$ac_dir" in
13666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13669 # A ".." for each directory in $ac_dir_suffix.
13670 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13671 case $ac_top_builddir_sub in
13672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13674 esac ;;
13675 esac
13676 ac_abs_top_builddir=$ac_pwd
13677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13678 # for backward compatibility:
13679 ac_top_builddir=$ac_top_build_prefix
13681 case $srcdir in
13682 .) # We are building in place.
13683 ac_srcdir=.
13684 ac_top_srcdir=$ac_top_builddir_sub
13685 ac_abs_top_srcdir=$ac_pwd ;;
13686 [\\/]* | ?:[\\/]* ) # Absolute name.
13687 ac_srcdir=$srcdir$ac_dir_suffix;
13688 ac_top_srcdir=$srcdir
13689 ac_abs_top_srcdir=$srcdir ;;
13690 *) # Relative name.
13691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13692 ac_top_srcdir=$ac_top_build_prefix$srcdir
13693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13694 esac
13695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13698 case $ac_mode in
13701 # CONFIG_FILE
13704 _ACEOF
13706 cat >>$CONFIG_STATUS <<\_ACEOF
13707 # If the template does not know about datarootdir, expand it.
13708 # FIXME: This hack should be removed a few years after 2.60.
13709 ac_datarootdir_hack=; ac_datarootdir_seen=
13711 case `sed -n '/datarootdir/ {
13715 /@datadir@/p
13716 /@docdir@/p
13717 /@infodir@/p
13718 /@localedir@/p
13719 /@mandir@/p
13720 ' $ac_file_inputs` in
13721 *datarootdir*) ac_datarootdir_seen=yes;;
13722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13723 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13724 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13725 _ACEOF
13726 cat >>$CONFIG_STATUS <<_ACEOF
13727 ac_datarootdir_hack='
13728 s&@datadir@&$datadir&g
13729 s&@docdir@&$docdir&g
13730 s&@infodir@&$infodir&g
13731 s&@localedir@&$localedir&g
13732 s&@mandir@&$mandir&g
13733 s&\\\${datarootdir}&$datarootdir&g' ;;
13734 esac
13735 _ACEOF
13737 # Neutralize VPATH when `$srcdir' = `.'.
13738 # Shell code in configure.ac might set extrasub.
13739 # FIXME: do we really want to maintain this feature?
13740 cat >>$CONFIG_STATUS <<_ACEOF
13741 sed "$ac_vpsub
13742 $extrasub
13743 _ACEOF
13744 cat >>$CONFIG_STATUS <<\_ACEOF
13746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13747 s&@configure_input@&$configure_input&;t t
13748 s&@top_builddir@&$ac_top_builddir_sub&;t t
13749 s&@srcdir@&$ac_srcdir&;t t
13750 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13751 s&@top_srcdir@&$ac_top_srcdir&;t t
13752 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13753 s&@builddir@&$ac_builddir&;t t
13754 s&@abs_builddir@&$ac_abs_builddir&;t t
13755 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13756 $ac_datarootdir_hack
13757 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13760 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13762 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13763 which seems to be undefined. Please make sure it is defined." >&5
13764 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13765 which seems to be undefined. Please make sure it is defined." >&2;}
13767 rm -f "$tmp/stdin"
13768 case $ac_file in
13769 -) cat "$tmp/out"; rm -f "$tmp/out";;
13770 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13771 esac
13775 # CONFIG_HEADER
13777 _ACEOF
13779 # Transform confdefs.h into a sed script `conftest.defines', that
13780 # substitutes the proper values into config.h.in to produce config.h.
13781 rm -f conftest.defines conftest.tail
13782 # First, append a space to every undef/define line, to ease matching.
13783 echo 's/$/ /' >conftest.defines
13784 # Then, protect against being on the right side of a sed subst, or in
13785 # an unquoted here document, in config.status. If some macros were
13786 # called several times there might be several #defines for the same
13787 # symbol, which is useless. But do not sort them, since the last
13788 # AC_DEFINE must be honored.
13789 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13790 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13791 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13792 # PARAMS is the parameter list in the macro definition--in most cases, it's
13793 # just an empty string.
13794 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13795 ac_dB='\\)[ (].*,\\1define\\2'
13796 ac_dC=' '
13797 ac_dD=' ,'
13799 uniq confdefs.h |
13800 sed -n '
13801 t rset
13802 :rset
13803 s/^[ ]*#[ ]*define[ ][ ]*//
13804 t ok
13807 s/[\\&,]/\\&/g
13808 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13809 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13810 ' >>conftest.defines
13812 # Remove the space that was appended to ease matching.
13813 # Then replace #undef with comments. This is necessary, for
13814 # example, in the case of _POSIX_SOURCE, which is predefined and required
13815 # on some systems where configure will not decide to define it.
13816 # (The regexp can be short, since the line contains either #define or #undef.)
13817 echo 's/ $//
13818 s,^[ #]*u.*,/* & */,' >>conftest.defines
13820 # Break up conftest.defines:
13821 ac_max_sed_lines=50
13823 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13824 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13825 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13826 # et cetera.
13827 ac_in='$ac_file_inputs'
13828 ac_out='"$tmp/out1"'
13829 ac_nxt='"$tmp/out2"'
13831 while :
13833 # Write a here document:
13834 cat >>$CONFIG_STATUS <<_ACEOF
13835 # First, check the format of the line:
13836 cat >"\$tmp/defines.sed" <<\\CEOF
13837 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13838 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13840 :def
13841 _ACEOF
13842 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13843 echo 'CEOF
13844 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13845 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13846 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13847 grep . conftest.tail >/dev/null || break
13848 rm -f conftest.defines
13849 mv conftest.tail conftest.defines
13850 done
13851 rm -f conftest.defines conftest.tail
13853 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13854 cat >>$CONFIG_STATUS <<\_ACEOF
13855 if test x"$ac_file" != x-; then
13856 echo "/* $configure_input */" >"$tmp/config.h"
13857 cat "$ac_result" >>"$tmp/config.h"
13858 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13859 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13860 echo "$as_me: $ac_file is unchanged" >&6;}
13861 else
13862 rm -f $ac_file
13863 mv "$tmp/config.h" $ac_file
13865 else
13866 echo "/* $configure_input */"
13867 cat "$ac_result"
13869 rm -f "$tmp/out12"
13872 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13873 echo "$as_me: executing $ac_file commands" >&6;}
13875 esac
13878 case $ac_file$ac_mode in
13879 "compiler_executable":C)
13880 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13881 mkdir -p $prefix
13882 prefix="${prefix}/${aros_target_cpu}-aros"
13883 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13885 echo ${prefix}
13886 echo ${prefix2}
13887 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13889 ln -sf ${prefix2}-gcc ${prefix}-gcc
13890 ln -sf ${prefix2}-ld ${prefix}-ld
13892 ln -sf $aros_target_as_ln ${prefix}-as
13893 ln -sf $aros_target_nm_ln ${prefix}-nm
13894 ln -sf $aros_target_ar_ln ${prefix}-ar
13895 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
13896 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
13897 ln -sf $aros_target_objdump_ln ${prefix}-objdump
13898 ln -sf $aros_target_strip_ln ${prefix}-strip
13900 ln -sf $aros_target_as_ln ${prefix2}-as
13901 ln -sf $aros_target_nm_ln ${prefix2}-nm
13902 ln -sf $aros_target_ar_ln ${prefix2}-ar
13903 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
13904 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
13905 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
13906 ln -sf $aros_target_strip_ln ${prefix2}-strip
13908 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
13909 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13910 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
13913 esac
13914 done # for ac_tag
13917 { (exit 0); exit 0; }
13918 _ACEOF
13919 chmod +x $CONFIG_STATUS
13920 ac_clean_files=$ac_clean_files_save
13923 # configure is writing to config.log, and then calls config.status.
13924 # config.status does its own redirection, appending to config.log.
13925 # Unfortunately, on DOS this fails, as config.log is still kept open
13926 # by configure, so config.status won't be able to write to it; its
13927 # output is simply discarded. So we exec the FD to /dev/null,
13928 # effectively closing config.log, so it can be properly (re)opened and
13929 # appended to by config.status. When coming back to configure, we
13930 # need to make the FD available again.
13931 if test "$no_create" != yes; then
13932 ac_cs_success=:
13933 ac_config_status_args=
13934 test "$silent" = yes &&
13935 ac_config_status_args="$ac_config_status_args --quiet"
13936 exec 5>/dev/null
13937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13938 exec 5>>config.log
13939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13940 # would make configure fail if this is the last instruction.
13941 $ac_cs_success || { (exit 1); exit 1; }
13946 #XXX compatability...
13947 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13949 if test -n "$aros_shared_cflags" ; then
13950 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13951 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg