Added protection against KernelBase == NULL. This may happen if Disable() is called...
[AROS.git] / configure
blobb87001a85d926b70efeae07b41315feaca138be9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 aros_target_cc
714 aros_target_ld
715 aros_target_as_ln
716 aros_kernel_ld
717 aros_target_ar_ln
718 aros_target_nm_ln
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
722 aros_target_strip_ln
723 aros_kernel_rescomp
724 aros_target_nostdinc_cflags
725 aros_target_nostartup_ldflags
726 aros_target_nix_ldflags
727 aros_target_detach_ldflags
728 aros_target_nostdlib_ldflags
729 host_cflags_iquote
730 host_cflags_iquote_end
731 kernel_cflags_iquote
732 kernel_cflags_iquote_end
733 aros_cflags_iquote
734 aros_cflags_iquote_end
735 XMKMF
736 SDL_CONFIG
737 SDL_CFLAGS
738 SDL_LIBS
739 aros_arch
740 aros_cpu
741 aros_flavour
742 aros_flavour_uc
743 AROS_BUILDDIR
744 AROS_BUILDDIR_UNIX
745 SRCDIR
746 AROS_PORTSSRCDIR
747 aros_cc_pre
748 aros_host_arch
749 aros_host_cpu
750 aros_host_cc
751 aros_host_make
752 aros_host_cflags
753 aros_host_ldflags
754 aros_host_debug
755 aros_host_mkdep
756 aros_host_mkargs
757 aros_host_exe_suffix
758 aros_host_lib_suffix
759 aros_tools_dir
760 aros_target_guitheme
761 aros_target_iconset
762 aros_target_bootloader
763 aros_target_arch
764 aros_target_cpu
765 aros_target_variant
766 aros_target_suffix
767 aros_target_incl
768 aros_target_ar
769 aros_target_ranlib
770 aros_kernel_nm
771 orig_target_cc
772 aros_kernel_cc
773 aros_target_as
774 orig_target_ld
775 aros_target_cc_includes
776 aros_target_cc_path
777 aros_target_objdump
778 aros_target_objcopy
779 aros_target_strip
780 aros_target_nm
781 aros_shared_default
782 aros_shared_ld
783 aros_object_format
784 aros_compiler_libs
785 aros_arch_libs
786 aros_config_cflags
787 aros_config_aflags
788 aros_config_ldflags
789 aros_shared_cflags
790 aros_shared_aflags
791 aros_shared_ldflags
792 aros_kernel_cflags
793 aros_kernel_ldflags
794 aros_debug_cflags
795 aros_debug_aflags
796 aros_debug_ldflags
797 aros_target_genmap
798 aros_target_strip_flags
799 x11_hidd_target
800 sdl_hidd_target
801 aros_default_wbwidth
802 aros_default_wbheight
803 aros_default_wbdepth
804 DO_XSHM_SUPPORT
805 DO_VIDMODE_SUPPORT
806 aros_host_x11_includes
807 aros_host_x11_libdirs
808 aros_host_sdl_cflags
809 aros_host_sdl_libs
810 aros_serial_debug
811 aros_palm_debug_hack
812 aros_nesting_supervisor
813 ENABLE_DBUS
814 DBUS_CFLAGS
815 DBUS_LIBFLAGS
816 KERNEL_DBUS_KOBJ
817 KERNEL_DBUS_INCLUDES
818 ENABLE_X11
819 aros_debug
820 aros_mungwall_debug
821 aros_stack_debug
822 aros_modules_debug
823 ignore_undefined_symbols
824 gcc_target_cpu
825 LTLIBOBJS'
826 ac_subst_files=''
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
836 XMKMF'
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
946 eval enable_$ac_feature=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
958 -enable-* | --enable-*)
959 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
962 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
963 { (exit 1); exit 1; }; }
964 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
965 eval enable_$ac_feature=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1155 -with-* | --with-*)
1156 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid package name: $ac_package" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1162 eval with_$ac_package=\$ac_optarg ;;
1164 -without-* | --without-*)
1165 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid package name: $ac_package" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1171 eval with_$ac_package=no ;;
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1191 -*) { echo "$as_me: error: unrecognized option: $ac_option
1192 Try \`$0 --help' for more information." >&2
1193 { (exit 1); exit 1; }; }
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1200 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1201 { (exit 1); exit 1; }; }
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 esac
1214 done
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 { echo "$as_me: error: missing argument to $ac_option" >&2
1219 { (exit 1); exit 1; }; }
1222 # Be sure to have absolute directory names.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1234 { (exit 1); exit 1; }; }
1235 done
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1249 If a cross compiler is detected then cross compile mode will be used." >&2
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258 test "$silent" = yes && exec 6>/dev/null
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 { echo "$as_me: error: Working directory cannot be determined" >&2
1265 { (exit 1); exit 1; }; }
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 { echo "$as_me: error: pwd does not report name of working directory" >&2
1268 { (exit 1); exit 1; }; }
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$0" ||
1276 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$0" : 'X\(//\)[^/]' \| \
1278 X"$0" : 'X\(//\)$' \| \
1279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1280 echo X"$0" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1289 /^X\(\/\/\)$/{
1290 s//\1/
1293 /^X\(\/\).*/{
1294 s//\1/
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1302 else
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1308 { (exit 1); exit 1; }; }
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1313 { (exit 1); exit 1; }; }
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures this package to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1394 cat <<\_ACEOF
1396 X features:
1397 --x-includes=DIR X include files are in DIR
1398 --x-libraries=DIR X library files are in DIR
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1406 if test -n "$ac_init_help"; then
1408 cat <<\_ACEOF
1410 Optional Features:
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-build-type=TYPE
1414 Select the build type. Available types are:
1415 personal, nightly, snapshot, milestone, release. Do
1416 NOT use this option unless you know what you are
1417 doing! (default=personal)
1418 --enable-debug=list Enable different types of debug. Commas or
1419 whitespaces can be used to separate the items in the
1420 list. Available types of debug are: all, none,
1421 messages, stack, mungwall, modules, symbols. If no
1422 list is provided then "all" is assumed.
1423 (default=none)
1424 --enable-crosstools Build cross-compiler toolchains if necessary
1425 (default=no).
1426 --enable-distcc Use distcc as a front end to the compiler
1427 (default=no).
1428 --enable-ccache Use ccache as a front end to the compiler
1429 (default=no).
1430 --enable-target-variant=NAME
1431 Enable a specific target variant(default=none)
1432 --enable-includes=dir Alternative system include directory
1433 --enable-palm-debug-hack
1434 Enable palm debug output hack in palm native
1435 (default=no)
1436 --enable-nesting-supervisor
1437 Enable nesting supervisor support in unix
1438 (default=no)
1439 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1440 --enable-x11-shm use X11 shared memory (default=auto)
1441 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1442 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1443 --disable-sdltest Do not try to compile and run a test SDL program
1444 --enable-dbus Enable DBUS support via dbus.library (default=no)
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-optimization=FLAGS
1450 Use optimization flags FLAGS (default=-O2).
1451 --with-portssources=DIR Where to download sourcecode for external ports
1452 --with-bootloader=NAME Use a specific bootloader
1453 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1454 --with-theme=NAME Use a specific GUI Theme
1455 --with-resolution=XRESxYRESxDEPTH
1456 Default resolution of the initial WorkbenchScreen
1457 --with-serial-debug Enable serial debug output in native (default=no)
1458 --with-x use the X Window System
1459 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1460 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CPP C preprocessor
1471 XMKMF Path to xmkmf, Makefile generator for X Window System
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 _ACEOF
1477 ac_status=$?
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1484 ac_builddir=.
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 configure
1537 generated by GNU Autoconf 2.61
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by $as_me, which was
1551 generated by GNU Autoconf 2.61. Invocation command line was
1553 $ $0 $@
1555 _ACEOF
1556 exec 5>>config.log
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580 _ASUNAME
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
1587 echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1591 } >&5
1593 cat >&5 <<_ACEOF
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1600 _ACEOF
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1614 for ac_arg
1616 case $ac_arg in
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1620 continue ;;
1621 *\'*)
1622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623 esac
1624 case $ac_pass in
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1630 else
1631 case $ac_arg in
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 esac
1640 -* ) ac_must_keep_next=true ;;
1641 esac
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1645 esac
1646 done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1659 echo
1661 cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666 echo
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in #(
1672 *${as_nl}*)
1673 case $ac_var in #(
1674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676 esac
1677 case $ac_var in #(
1678 _ | IFS | as_nl) ;; #(
1679 *) $as_unset $ac_var ;;
1680 esac ;;
1681 esac
1682 done
1683 (set) 2>&1 |
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1686 sed -n \
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1693 esac |
1694 sort
1696 echo
1698 cat <<\_ASBOX
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1702 _ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1706 eval ac_val=\$$ac_var
1707 case $ac_val in
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 esac
1710 echo "$ac_var='\''$ac_val'\''"
1711 done | sort
1712 echo
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1719 _ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1723 eval ac_val=\$$ac_var
1724 case $ac_val in
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 esac
1727 echo "$ac_var='\''$ac_val'\''"
1728 done | sort
1729 echo
1732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734 ## ----------- ##
1735 ## confdefs.h. ##
1736 ## ----------- ##
1737 _ASBOX
1738 echo
1739 cat confdefs.h
1740 echo
1742 test "$ac_signal" != 0 &&
1743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
1745 } >&5
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748 exit $exit_status
1750 for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 done
1753 ac_signal=0
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1758 # Predefined preprocessor variables.
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 _ACEOF
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 _ACEOF
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 _ACEOF
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 _ACEOF
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 _ACEOF
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788 set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 else
1792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
1795 shift
1796 for ac_site_file
1798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801 sed 's/^/| /' "$ac_site_file" >&5
1802 . "$ac_site_file"
1804 done
1806 if test -r "$cache_file"; then
1807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1812 case $cache_file in
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1815 esac
1817 else
1818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1820 >$cache_file
1823 # Check that the precious variables saved in the cache have kept the same
1824 # value.
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1832 set,)
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1836 ,set)
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1840 ,);;
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
1843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846 echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848 echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
1850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
1855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861 esac
1863 done
1864 if $ac_cache_corrupted; then
1865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
1888 ac_ext=c
1889 ac_cpp='$CPP $CPPFLAGS'
1890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1896 ac_aux_dir=
1897 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1898 if test -f "$ac_dir/install-sh"; then
1899 ac_aux_dir=$ac_dir
1900 ac_install_sh="$ac_aux_dir/install-sh -c"
1901 break
1902 elif test -f "$ac_dir/install.sh"; then
1903 ac_aux_dir=$ac_dir
1904 ac_install_sh="$ac_aux_dir/install.sh -c"
1905 break
1906 elif test -f "$ac_dir/shtool"; then
1907 ac_aux_dir=$ac_dir
1908 ac_install_sh="$ac_aux_dir/shtool install -c"
1909 break
1911 done
1912 if test -z "$ac_aux_dir"; then
1913 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1914 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1915 { (exit 1); exit 1; }; }
1918 # These three variables are undocumented and unsupported,
1919 # and are intended to be withdrawn in a future Autoconf release.
1920 # They can cause serious problems if a builder's source tree is in a directory
1921 # whose full name contains unusual characters.
1922 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1923 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1924 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1928 # Check what host we are running on.
1929 # If a target is not suggested, we use this one.
1930 # Note that what we call a target, Autoconf calls a host.
1931 # Make sure we can run config.sub.
1932 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1933 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1934 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1935 { (exit 1); exit 1; }; }
1937 { echo "$as_me:$LINENO: checking build system type" >&5
1938 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1939 if test "${ac_cv_build+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 ac_build_alias=$build_alias
1943 test "x$ac_build_alias" = x &&
1944 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1945 test "x$ac_build_alias" = x &&
1946 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1947 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1948 { (exit 1); exit 1; }; }
1949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1950 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1951 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1952 { (exit 1); exit 1; }; }
1955 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1956 echo "${ECHO_T}$ac_cv_build" >&6; }
1957 case $ac_cv_build in
1958 *-*-*) ;;
1959 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1960 echo "$as_me: error: invalid value of canonical build" >&2;}
1961 { (exit 1); exit 1; }; };;
1962 esac
1963 build=$ac_cv_build
1964 ac_save_IFS=$IFS; IFS='-'
1965 set x $ac_cv_build
1966 shift
1967 build_cpu=$1
1968 build_vendor=$2
1969 shift; shift
1970 # Remember, the first character of IFS is used to create $*,
1971 # except with old shells:
1972 build_os=$*
1973 IFS=$ac_save_IFS
1974 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1977 { echo "$as_me:$LINENO: checking host system type" >&5
1978 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1979 if test "${ac_cv_host+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 if test "x$host_alias" = x; then
1983 ac_cv_host=$ac_cv_build
1984 else
1985 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1986 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1987 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1988 { (exit 1); exit 1; }; }
1992 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1993 echo "${ECHO_T}$ac_cv_host" >&6; }
1994 case $ac_cv_host in
1995 *-*-*) ;;
1996 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1997 echo "$as_me: error: invalid value of canonical host" >&2;}
1998 { (exit 1); exit 1; }; };;
1999 esac
2000 host=$ac_cv_host
2001 ac_save_IFS=$IFS; IFS='-'
2002 set x $ac_cv_host
2003 shift
2004 host_cpu=$1
2005 host_vendor=$2
2006 shift; shift
2007 # Remember, the first character of IFS is used to create $*,
2008 # except with old shells:
2009 host_os=$*
2010 IFS=$ac_save_IFS
2011 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2015 # The AROS target is slightly different to the normal GNU style
2016 # format. We don't have the middle part, and we reverse the order
2017 # of the $(CPU) and $(OS) bits.
2019 # Don't strip the version of the target yet, it might be
2020 # useful on some systems.
2022 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2023 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2025 if test "$target" = "NONE" ; then
2026 target=$host_os-$host_cpu
2027 cross_compile=no
2028 else
2029 if test "$target" = "" ; then
2030 target=$host_os-$host_cpu
2031 cross_compile=no
2032 else
2033 cross_compile=yes
2036 { echo "$as_me:$LINENO: result: $target" >&5
2037 echo "${ECHO_T}$target" >&6; }
2039 if test "$host_os" = "mingw32" ; then
2040 PWDCMD="pwd -W"
2043 #don't know where else to put this...
2044 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2045 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2046 AROS_BUILDDIR=`${PWDCMD-pwd}`
2047 AROS_BUILDDIR_UNIX=${PWD}
2048 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2049 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2051 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2052 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2053 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2054 SRCDIR=${srcpwd}
2055 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2056 echo "${ECHO_T}$SRCDIR" >&6; }
2058 # Parse the target field into something useful.
2060 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2061 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2064 aros_default_wbwidth=800
2065 aros_default_wbheight=600
2066 aros_default_wbdepth=4
2069 # The first step is to find the host binaries.
2070 # Check for a compiler.
2071 ac_ext=c
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2081 if test "${ac_cv_prog_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 if test -n "$CC"; then
2085 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2100 IFS=$as_save_IFS
2104 CC=$ac_cv_prog_CC
2105 if test -n "$CC"; then
2106 { echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6; }
2108 else
2109 { echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6; }
2115 if test -z "$ac_cv_prog_CC"; then
2116 ac_ct_CC=$CC
2117 # Extract the first word of "gcc", so it can be a program name with args.
2118 set dummy gcc; ac_word=$2
2119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 if test -n "$ac_ct_CC"; then
2125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2134 ac_cv_prog_ac_ct_CC="gcc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2138 done
2139 done
2140 IFS=$as_save_IFS
2144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145 if test -n "$ac_ct_CC"; then
2146 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147 echo "${ECHO_T}$ac_ct_CC" >&6; }
2148 else
2149 { echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6; }
2153 if test "x$ac_ct_CC" = x; then
2154 CC=""
2155 else
2156 case $cross_compiling:$ac_tool_warned in
2157 yes:)
2158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2159 whose name does not start with the host triplet. If you think this
2160 configuration is useful to you, please write to autoconf@gnu.org." >&5
2161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet. If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2164 ac_tool_warned=yes ;;
2165 esac
2166 CC=$ac_ct_CC
2168 else
2169 CC="$ac_cv_prog_CC"
2172 if test -z "$CC"; then
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2175 set dummy ${ac_tool_prefix}cc; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$CC"; then
2182 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_CC="${ac_tool_prefix}cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2197 IFS=$as_save_IFS
2201 CC=$ac_cv_prog_CC
2202 if test -n "$CC"; then
2203 { echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6; }
2205 else
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2213 if test -z "$CC"; then
2214 # Extract the first word of "cc", so it can be a program name with args.
2215 set dummy cc; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2223 else
2224 ac_prog_rejected=no
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2233 ac_prog_rejected=yes
2234 continue
2236 ac_cv_prog_CC="cc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2240 done
2241 done
2242 IFS=$as_save_IFS
2244 if test $ac_prog_rejected = yes; then
2245 # We found a bogon in the path, so make sure we never use it.
2246 set dummy $ac_cv_prog_CC
2247 shift
2248 if test $# != 0; then
2249 # We chose a different compiler from the bogus one.
2250 # However, it has the same basename, so the bogon will be chosen
2251 # first if we set CC to just the basename; use the full file name.
2252 shift
2253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2258 CC=$ac_cv_prog_CC
2259 if test -n "$CC"; then
2260 { echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6; }
2262 else
2263 { echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6; }
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2271 for ac_prog in cl.exe
2273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2294 done
2295 done
2296 IFS=$as_save_IFS
2300 CC=$ac_cv_prog_CC
2301 if test -n "$CC"; then
2302 { echo "$as_me:$LINENO: result: $CC" >&5
2303 echo "${ECHO_T}$CC" >&6; }
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2310 test -n "$CC" && break
2311 done
2313 if test -z "$CC"; then
2314 ac_ct_CC=$CC
2315 for ac_prog in cl.exe
2317 # Extract the first word of "$ac_prog", so it can be a program name with args.
2318 set dummy $ac_prog; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 if test -n "$ac_ct_CC"; then
2325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_ac_ct_CC="$ac_prog"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2338 done
2339 done
2340 IFS=$as_save_IFS
2344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2345 if test -n "$ac_ct_CC"; then
2346 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2347 echo "${ECHO_T}$ac_ct_CC" >&6; }
2348 else
2349 { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2354 test -n "$ac_ct_CC" && break
2355 done
2357 if test "x$ac_ct_CC" = x; then
2358 CC=""
2359 else
2360 case $cross_compiling:$ac_tool_warned in
2361 yes:)
2362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&5
2365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2366 whose name does not start with the host triplet. If you think this
2367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2368 ac_tool_warned=yes ;;
2369 esac
2370 CC=$ac_ct_CC
2377 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: no acceptable C compiler found in \$PATH
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2383 # Provide some information about the compiler.
2384 echo "$as_me:$LINENO: checking for C compiler version" >&5
2385 ac_compiler=`set X $ac_compile; echo $2`
2386 { (ac_try="$ac_compiler --version >&5"
2387 case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compiler --version >&5") 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }
2396 { (ac_try="$ac_compiler -v >&5"
2397 case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compiler -v >&5") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }
2406 { (ac_try="$ac_compiler -V >&5"
2407 case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compiler -V >&5") 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2425 main ()
2429 return 0;
2431 _ACEOF
2432 ac_clean_files_save=$ac_clean_files
2433 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2434 # Try to create an executable without -o first, disregard a.out.
2435 # It will help us diagnose broken compilers, and finding out an intuition
2436 # of exeext.
2437 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2438 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2439 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2441 # List of possible output files, starting from the most likely.
2442 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2443 # only as a last resort. b.out is created by i960 compilers.
2444 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2446 # The IRIX 6 linker writes into existing files which may not be
2447 # executable, retaining their permissions. Remove them first so a
2448 # subsequent execution test works.
2449 ac_rmfiles=
2450 for ac_file in $ac_files
2452 case $ac_file in
2453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2454 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2455 esac
2456 done
2457 rm -f $ac_rmfiles
2459 if { (ac_try="$ac_link_default"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_link_default") 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2471 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2472 # so that the user can short-circuit this test for compilers unknown to
2473 # Autoconf.
2474 for ac_file in $ac_files ''
2476 test -f "$ac_file" || continue
2477 case $ac_file in
2478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2480 [ab].out )
2481 # We found the default executable, but exeext='' is most
2482 # certainly right.
2483 break;;
2484 *.* )
2485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2486 then :; else
2487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2489 # We set ac_cv_exeext here because the later test for it is not
2490 # safe: cross compilers may not add the suffix if given an `-o'
2491 # argument, so we may need to know it at that point already.
2492 # Even if this section looks crufty: it has the advantage of
2493 # actually working.
2494 break;;
2496 break;;
2497 esac
2498 done
2499 test "$ac_cv_exeext" = no && ac_cv_exeext=
2501 else
2502 ac_file=''
2505 { echo "$as_me:$LINENO: result: $ac_file" >&5
2506 echo "${ECHO_T}$ac_file" >&6; }
2507 if test -z "$ac_file"; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: C compiler cannot create executables
2514 See \`config.log' for more details." >&2;}
2515 { (exit 77); exit 77; }; }
2518 ac_exeext=$ac_cv_exeext
2520 # Check that the compiler produces executables we can run. If not, either
2521 # the compiler is broken, or we cross compile.
2522 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2523 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2524 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2525 # If not cross compiling, check that we can run a simple program.
2526 if test "$cross_compiling" != yes; then
2527 if { ac_try='./$ac_file'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 cross_compiling=no
2538 else
2539 if test "$cross_compiling" = maybe; then
2540 cross_compiling=yes
2541 else
2542 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2543 If you meant to cross compile, use \`--host'.
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: cannot run C compiled programs.
2546 If you meant to cross compile, use \`--host'.
2547 See \`config.log' for more details." >&2;}
2548 { (exit 1); exit 1; }; }
2552 { echo "$as_me:$LINENO: result: yes" >&5
2553 echo "${ECHO_T}yes" >&6; }
2555 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2556 ac_clean_files=$ac_clean_files_save
2557 # Check that the compiler produces executables we can run. If not, either
2558 # the compiler is broken, or we cross compile.
2559 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2560 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2561 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2562 echo "${ECHO_T}$cross_compiling" >&6; }
2564 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2565 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2566 if { (ac_try="$ac_link"
2567 case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_link") 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2577 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2578 # work properly (i.e., refer to `conftest.exe'), while it won't with
2579 # `rm'.
2580 for ac_file in conftest.exe conftest conftest.*; do
2581 test -f "$ac_file" || continue
2582 case $ac_file in
2583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2585 break;;
2586 * ) break;;
2587 esac
2588 done
2589 else
2590 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }
2597 rm -f conftest$ac_cv_exeext
2598 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2599 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2601 rm -f conftest.$ac_ext
2602 EXEEXT=$ac_cv_exeext
2603 ac_exeext=$EXEEXT
2604 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2605 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2606 if test "${ac_cv_objext+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 cat >conftest.$ac_ext <<_ACEOF
2610 /* confdefs.h. */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2617 main ()
2621 return 0;
2623 _ACEOF
2624 rm -f conftest.o conftest.obj
2625 if { (ac_try="$ac_compile"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_compile") 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; then
2635 for ac_file in conftest.o conftest.obj conftest.*; do
2636 test -f "$ac_file" || continue;
2637 case $ac_file in
2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2640 break;;
2641 esac
2642 done
2643 else
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2647 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2650 See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
2654 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2656 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2657 echo "${ECHO_T}$ac_cv_objext" >&6; }
2658 OBJEXT=$ac_cv_objext
2659 ac_objext=$OBJEXT
2660 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2661 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2662 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h. */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2673 main ()
2675 #ifndef __GNUC__
2676 choke me
2677 #endif
2680 return 0;
2682 _ACEOF
2683 rm -f conftest.$ac_objext
2684 if { (ac_try="$ac_compile"
2685 case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compile") 2>conftest.er1
2691 ac_status=$?
2692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } && {
2697 test -z "$ac_c_werror_flag" ||
2698 test ! -s conftest.err
2699 } && test -s conftest.$ac_objext; then
2700 ac_compiler_gnu=yes
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 ac_compiler_gnu=no
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2712 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2713 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2714 GCC=`test $ac_compiler_gnu = yes && echo yes`
2715 ac_test_CFLAGS=${CFLAGS+set}
2716 ac_save_CFLAGS=$CFLAGS
2717 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2718 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_cc_g+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 ac_save_c_werror_flag=$ac_c_werror_flag
2723 ac_c_werror_flag=yes
2724 ac_cv_prog_cc_g=no
2725 CFLAGS="-g"
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 main ()
2738 return 0;
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (ac_try="$ac_compile"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compile") 2>conftest.er1
2749 ac_status=$?
2750 grep -v '^ *+' conftest.er1 >conftest.err
2751 rm -f conftest.er1
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } && {
2755 test -z "$ac_c_werror_flag" ||
2756 test ! -s conftest.err
2757 } && test -s conftest.$ac_objext; then
2758 ac_cv_prog_cc_g=yes
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 CFLAGS=""
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2772 main ()
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } && {
2793 test -z "$ac_c_werror_flag" ||
2794 test ! -s conftest.err
2795 } && test -s conftest.$ac_objext; then
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 ac_c_werror_flag=$ac_save_c_werror_flag
2802 CFLAGS="-g"
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2811 main ()
2815 return 0;
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (ac_try="$ac_compile"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_compile") 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } && {
2832 test -z "$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2834 } && test -s conftest.$ac_objext; then
2835 ac_cv_prog_cc_g=yes
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 ac_c_werror_flag=$ac_save_c_werror_flag
2852 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2854 if test "$ac_test_CFLAGS" = set; then
2855 CFLAGS=$ac_save_CFLAGS
2856 elif test $ac_cv_prog_cc_g = yes; then
2857 if test "$GCC" = yes; then
2858 CFLAGS="-g -O2"
2859 else
2860 CFLAGS="-g"
2862 else
2863 if test "$GCC" = yes; then
2864 CFLAGS="-O2"
2865 else
2866 CFLAGS=
2869 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2870 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2871 if test "${ac_cv_prog_cc_c89+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 ac_cv_prog_cc_c89=no
2875 ac_save_CC=$CC
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 #include <stdarg.h>
2883 #include <stdio.h>
2884 #include <sys/types.h>
2885 #include <sys/stat.h>
2886 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2887 struct buf { int x; };
2888 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2889 static char *e (p, i)
2890 char **p;
2891 int i;
2893 return p[i];
2895 static char *f (char * (*g) (char **, int), char **p, ...)
2897 char *s;
2898 va_list v;
2899 va_start (v,p);
2900 s = g (p, va_arg (v,int));
2901 va_end (v);
2902 return s;
2905 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2906 function prototypes and stuff, but not '\xHH' hex character constants.
2907 These don't provoke an error unfortunately, instead are silently treated
2908 as 'x'. The following induces an error, until -std is added to get
2909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2910 array size at least. It's necessary to write '\x00'==0 to get something
2911 that's true only with -std. */
2912 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2914 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2915 inside strings and character constants. */
2916 #define FOO(x) 'x'
2917 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2919 int test (int i, double x);
2920 struct s1 {int (*f) (int a);};
2921 struct s2 {int (*f) (double a);};
2922 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2923 int argc;
2924 char **argv;
2926 main ()
2928 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2930 return 0;
2932 _ACEOF
2933 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2936 CC="$ac_save_CC $ac_arg"
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.$ac_objext; then
2954 ac_cv_prog_cc_c89=$ac_arg
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f core conftest.err conftest.$ac_objext
2963 test "x$ac_cv_prog_cc_c89" != "xno" && break
2964 done
2965 rm -f conftest.$ac_ext
2966 CC=$ac_save_CC
2969 # AC_CACHE_VAL
2970 case "x$ac_cv_prog_cc_c89" in
2972 { echo "$as_me:$LINENO: result: none needed" >&5
2973 echo "${ECHO_T}none needed" >&6; } ;;
2974 xno)
2975 { echo "$as_me:$LINENO: result: unsupported" >&5
2976 echo "${ECHO_T}unsupported" >&6; } ;;
2978 CC="$CC $ac_cv_prog_cc_c89"
2979 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2980 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2981 esac
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 case $ac_cv_prog_cc_stdc in
2991 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2992 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2993 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_cc_c99+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 ac_cv_prog_cc_c99=no
2998 ac_save_CC=$CC
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <stdarg.h>
3006 #include <stdbool.h>
3007 #include <stdlib.h>
3008 #include <wchar.h>
3009 #include <stdio.h>
3011 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3012 #define debug(...) fprintf (stderr, __VA_ARGS__)
3013 #define showlist(...) puts (#__VA_ARGS__)
3014 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3015 static void
3016 test_varargs_macros (void)
3018 int x = 1234;
3019 int y = 5678;
3020 debug ("Flag");
3021 debug ("X = %d\n", x);
3022 showlist (The first, second, and third items.);
3023 report (x>y, "x is %d but y is %d", x, y);
3026 // Check long long types.
3027 #define BIG64 18446744073709551615ull
3028 #define BIG32 4294967295ul
3029 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3030 #if !BIG_OK
3031 your preprocessor is broken;
3032 #endif
3033 #if BIG_OK
3034 #else
3035 your preprocessor is broken;
3036 #endif
3037 static long long int bignum = -9223372036854775807LL;
3038 static unsigned long long int ubignum = BIG64;
3040 struct incomplete_array
3042 int datasize;
3043 double data[];
3046 struct named_init {
3047 int number;
3048 const wchar_t *name;
3049 double average;
3052 typedef const char *ccp;
3054 static inline int
3055 test_restrict (ccp restrict text)
3057 // See if C++-style comments work.
3058 // Iterate through items via the restricted pointer.
3059 // Also check for declarations in for loops.
3060 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3061 continue;
3062 return 0;
3065 // Check varargs and va_copy.
3066 static void
3067 test_varargs (const char *format, ...)
3069 va_list args;
3070 va_start (args, format);
3071 va_list args_copy;
3072 va_copy (args_copy, args);
3074 const char *str;
3075 int number;
3076 float fnumber;
3078 while (*format)
3080 switch (*format++)
3082 case 's': // string
3083 str = va_arg (args_copy, const char *);
3084 break;
3085 case 'd': // int
3086 number = va_arg (args_copy, int);
3087 break;
3088 case 'f': // float
3089 fnumber = va_arg (args_copy, double);
3090 break;
3091 default:
3092 break;
3095 va_end (args_copy);
3096 va_end (args);
3100 main ()
3103 // Check bool.
3104 _Bool success = false;
3106 // Check restrict.
3107 if (test_restrict ("String literal") == 0)
3108 success = true;
3109 char *restrict newvar = "Another string";
3111 // Check varargs.
3112 test_varargs ("s, d' f .", "string", 65, 34.234);
3113 test_varargs_macros ();
3115 // Check flexible array members.
3116 struct incomplete_array *ia =
3117 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3118 ia->datasize = 10;
3119 for (int i = 0; i < ia->datasize; ++i)
3120 ia->data[i] = i * 1.234;
3122 // Check named initializers.
3123 struct named_init ni = {
3124 .number = 34,
3125 .name = L"Test wide string",
3126 .average = 543.34343,
3129 ni.number = 58;
3131 int dynamic_array[ni.number];
3132 dynamic_array[ni.number - 1] = 543;
3134 // work around unused variable warnings
3135 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3136 || dynamic_array[ni.number - 1] != 543);
3139 return 0;
3141 _ACEOF
3142 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3144 CC="$ac_save_CC $ac_arg"
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3147 case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } && {
3159 test -z "$ac_c_werror_flag" ||
3160 test ! -s conftest.err
3161 } && test -s conftest.$ac_objext; then
3162 ac_cv_prog_cc_c99=$ac_arg
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3170 rm -f core conftest.err conftest.$ac_objext
3171 test "x$ac_cv_prog_cc_c99" != "xno" && break
3172 done
3173 rm -f conftest.$ac_ext
3174 CC=$ac_save_CC
3177 # AC_CACHE_VAL
3178 case "x$ac_cv_prog_cc_c99" in
3180 { echo "$as_me:$LINENO: result: none needed" >&5
3181 echo "${ECHO_T}none needed" >&6; } ;;
3182 xno)
3183 { echo "$as_me:$LINENO: result: unsupported" >&5
3184 echo "${ECHO_T}unsupported" >&6; } ;;
3186 CC="$CC $ac_cv_prog_cc_c99"
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3189 esac
3190 if test "x$ac_cv_prog_cc_c99" != xno; then
3191 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3192 else
3193 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3194 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3195 if test "${ac_cv_prog_cc_c89+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 ac_cv_prog_cc_c89=no
3199 ac_save_CC=$CC
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206 #include <stdarg.h>
3207 #include <stdio.h>
3208 #include <sys/types.h>
3209 #include <sys/stat.h>
3210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3211 struct buf { int x; };
3212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3213 static char *e (p, i)
3214 char **p;
3215 int i;
3217 return p[i];
3219 static char *f (char * (*g) (char **, int), char **p, ...)
3221 char *s;
3222 va_list v;
3223 va_start (v,p);
3224 s = g (p, va_arg (v,int));
3225 va_end (v);
3226 return s;
3229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3230 function prototypes and stuff, but not '\xHH' hex character constants.
3231 These don't provoke an error unfortunately, instead are silently treated
3232 as 'x'. The following induces an error, until -std is added to get
3233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3234 array size at least. It's necessary to write '\x00'==0 to get something
3235 that's true only with -std. */
3236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3239 inside strings and character constants. */
3240 #define FOO(x) 'x'
3241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3243 int test (int i, double x);
3244 struct s1 {int (*f) (int a);};
3245 struct s2 {int (*f) (double a);};
3246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3247 int argc;
3248 char **argv;
3250 main ()
3252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3254 return 0;
3256 _ACEOF
3257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3260 CC="$ac_save_CC $ac_arg"
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 ac_cv_prog_cc_c89=$ac_arg
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3286 rm -f core conftest.err conftest.$ac_objext
3287 test "x$ac_cv_prog_cc_c89" != "xno" && break
3288 done
3289 rm -f conftest.$ac_ext
3290 CC=$ac_save_CC
3293 # AC_CACHE_VAL
3294 case "x$ac_cv_prog_cc_c89" in
3296 { echo "$as_me:$LINENO: result: none needed" >&5
3297 echo "${ECHO_T}none needed" >&6; } ;;
3298 xno)
3299 { echo "$as_me:$LINENO: result: unsupported" >&5
3300 echo "${ECHO_T}unsupported" >&6; } ;;
3302 CC="$CC $ac_cv_prog_cc_c89"
3303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3304 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3305 esac
3306 if test "x$ac_cv_prog_cc_c89" != xno; then
3307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3308 else
3309 ac_cv_prog_cc_stdc=no
3316 esac
3317 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3318 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3319 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 case $ac_cv_prog_cc_stdc in
3324 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3325 echo "${ECHO_T}unsupported" >&6; } ;;
3326 '') { echo "$as_me:$LINENO: result: none needed" >&5
3327 echo "${ECHO_T}none needed" >&6; } ;;
3328 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3329 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3330 esac
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3339 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3340 # On Suns, sometimes $CPP names a directory.
3341 if test -n "$CPP" && test -d "$CPP"; then
3342 CPP=
3344 if test -z "$CPP"; then
3345 if test "${ac_cv_prog_CPP+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 # Double quotes because CPP needs to be expanded
3349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3351 ac_preproc_ok=false
3352 for ac_c_preproc_warn_flag in '' yes
3354 # Use a header file that comes with gcc, so configuring glibc
3355 # with a fresh cross-compiler works.
3356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357 # <limits.h> exists even on freestanding compilers.
3358 # On the NeXT, cc -E runs the code through the compiler's parser,
3359 # not just through cpp. "Syntax error" is here to catch this case.
3360 cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371 Syntax error
3372 _ACEOF
3373 if { (ac_try="$ac_cpp conftest.$ac_ext"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } >/dev/null && {
3386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3387 test ! -s conftest.err
3388 }; then
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Broken: fails on valid input.
3395 continue
3398 rm -f conftest.err conftest.$ac_ext
3400 # OK, works on sane cases. Now check whether nonexistent headers
3401 # can be detected and how.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <ac_nonexistent.h>
3409 _ACEOF
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null && {
3423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3424 test ! -s conftest.err
3425 }; then
3426 # Broken: success on invalid input.
3427 continue
3428 else
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3437 rm -f conftest.err conftest.$ac_ext
3439 done
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.err conftest.$ac_ext
3442 if $ac_preproc_ok; then
3443 break
3446 done
3447 ac_cv_prog_CPP=$CPP
3450 CPP=$ac_cv_prog_CPP
3451 else
3452 ac_cv_prog_CPP=$CPP
3454 { echo "$as_me:$LINENO: result: $CPP" >&5
3455 echo "${ECHO_T}$CPP" >&6; }
3456 ac_preproc_ok=false
3457 for ac_c_preproc_warn_flag in '' yes
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 #ifdef __STDC__
3472 # include <limits.h>
3473 #else
3474 # include <assert.h>
3475 #endif
3476 Syntax error
3477 _ACEOF
3478 if { (ac_try="$ac_cpp conftest.$ac_ext"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null && {
3491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 }; then
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3500 continue
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null && {
3528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 }; then
3531 # Broken: success on invalid input.
3532 continue
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 # Passes both tests.
3538 ac_preproc_ok=:
3539 break
3542 rm -f conftest.err conftest.$ac_ext
3544 done
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok; then
3549 else
3550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3551 See \`config.log' for more details." >&5
3552 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3553 See \`config.log' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
3557 ac_ext=c
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 # Check for a compatible awk
3565 for ac_prog in gawk nawk
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy $ac_prog; ac_word=$2
3569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_AWK+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 if test -n "$AWK"; then
3575 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_AWK="$ac_prog"
3585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3588 done
3589 done
3590 IFS=$as_save_IFS
3594 AWK=$ac_cv_prog_AWK
3595 if test -n "$AWK"; then
3596 { echo "$as_me:$LINENO: result: $AWK" >&5
3597 echo "${ECHO_T}$AWK" >&6; }
3598 else
3599 { echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6; }
3604 test -n "$AWK" && break
3605 done
3607 if test "$AWK" = ""; then
3608 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3609 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3610 { (exit 1); exit 1; }; }
3612 # Extract the first word of "mmake", so it can be a program name with args.
3613 set dummy mmake; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_MMAKE+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 if test -n "$MMAKE"; then
3620 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_MMAKE="mmake "
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3633 done
3634 done
3635 IFS=$as_save_IFS
3639 MMAKE=$ac_cv_prog_MMAKE
3640 if test -n "$MMAKE"; then
3641 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3642 echo "${ECHO_T}$MMAKE" >&6; }
3643 else
3644 { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3650 # Perform some default variable assignments. Note all of these will be
3651 # Regenerated from the script, so there is no need to cache them.
3653 aros_host_cc="$CC"
3654 if test "$GCC" = "yes"; then
3655 aros_gcc_ld=`$CC -print-prog-name=ld`
3656 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3657 set dummy `basename $aros_gcc_ld`; ac_word=$2
3658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 case $aros_host_ld in
3664 [\\/]* | ?:[\\/]*)
3665 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in `dirname $aros_gcc_ld`
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3679 done
3680 done
3681 IFS=$as_save_IFS
3684 esac
3686 aros_host_ld=$ac_cv_path_aros_host_ld
3687 if test -n "$aros_host_ld"; then
3688 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3689 echo "${ECHO_T}$aros_host_ld" >&6; }
3690 else
3691 { echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6; }
3697 if test "$aros_host_ld" = ""; then
3698 # Extract the first word of "ld", so it can be a program name with args.
3699 set dummy ld; ac_word=$2
3700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 case $aros_host_ld in
3706 [\\/]* | ?:[\\/]*)
3707 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3726 esac
3728 aros_host_ld=$ac_cv_path_aros_host_ld
3729 if test -n "$aros_host_ld"; then
3730 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3731 echo "${ECHO_T}$aros_host_ld" >&6; }
3732 else
3733 { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3739 if test "$aros_host_ld" = ""; then
3740 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3741 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3742 { (exit 1); exit 1; }; }
3744 aros_host_make="make"
3745 aros_host_cflags=$CFLAGS
3746 aros_host_ldflags=$LDFLAGS
3747 aros_host_debug="-g -O0"
3748 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3749 aros_host_mkargs="--no-print-directory"
3750 aros_host_incl="/usr/include"
3751 aros_host_exe_suffix="$EXEEXT"
3752 aros_host_lib_suffix=""
3754 for ac_prog in aclocal aclocal19 aclocal-1.9
3756 # Extract the first word of "$ac_prog", so it can be a program name with args.
3757 set dummy $ac_prog; ac_word=$2
3758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3760 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 if test -n "$aros_host_aclocal"; then
3764 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_aros_host_aclocal="$ac_prog"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3777 done
3778 done
3779 IFS=$as_save_IFS
3783 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3784 if test -n "$aros_host_aclocal"; then
3785 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3786 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3787 else
3788 { echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6; }
3793 test -n "$aros_host_aclocal" && break
3794 done
3796 for ac_prog in autoconf autoconf259 autoconf253
3798 # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 if test -n "$aros_host_autoconf"; then
3806 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_aros_host_autoconf="$ac_prog"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3819 done
3820 done
3821 IFS=$as_save_IFS
3825 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3826 if test -n "$aros_host_autoconf"; then
3827 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3828 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3829 else
3830 { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3835 test -n "$aros_host_autoconf" && break
3836 done
3838 for ac_prog in autoheader autoheader259 autoheader253
3840 # Extract the first word of "$ac_prog", so it can be a program name with args.
3841 set dummy $ac_prog; ac_word=$2
3842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3844 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 if test -n "$aros_host_autoheader"; then
3848 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_aros_host_autoheader="$ac_prog"
3858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3861 done
3862 done
3863 IFS=$as_save_IFS
3867 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3868 if test -n "$aros_host_autoheader"; then
3869 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3870 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3871 else
3872 { echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6; }
3877 test -n "$aros_host_autoheader" && break
3878 done
3880 for ac_prog in automake automake19 automake-1.9
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy $ac_prog; ac_word=$2
3884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3886 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$aros_host_automake"; then
3890 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_aros_host_automake="$ac_prog"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3903 done
3904 done
3905 IFS=$as_save_IFS
3909 aros_host_automake=$ac_cv_prog_aros_host_automake
3910 if test -n "$aros_host_automake"; then
3911 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3912 echo "${ECHO_T}$aros_host_automake" >&6; }
3913 else
3914 { echo "$as_me:$LINENO: result: no" >&5
3915 echo "${ECHO_T}no" >&6; }
3919 test -n "$aros_host_automake" && break
3920 done
3923 if test "$aros_host_aclocal" = ""; then
3924 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3925 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3926 { (exit 1); exit 1; }; }
3928 if test "$aros_host_automake" = ""; then
3929 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3930 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3931 { (exit 1); exit 1; }; }
3934 case "$aros_host_cc" in
3935 *gcc*)
3936 aros_host_cc_pipe="-pipe"
3938 icc)
3939 aros_host_cc_pipe=""
3942 aros_host_cc_pipe=""
3944 esac
3946 aros_target_cc_includes=""
3948 # This is the main host configuration section. It is where the host
3949 # can change the values of any variables it needs to change. We do
3950 # not look at anything that compiles to the target yet, we'll get
3951 # to that later.
3953 case "$host_os" in
3954 aros*)
3955 aros_host_arch="aros"
3956 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3957 case "$host_cpu" in
3958 *i?86*)
3959 aros_host_cpu="i386"
3961 *x86_64*)
3962 aros_host_cpu="x86_64"
3965 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3966 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3967 aros_host_cpu="$host_cpu"
3969 esac
3972 linux*)
3973 aros_host_arch="linux"
3974 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3975 case "$host_cpu" in
3976 *i?86*)
3977 aros_host_cpu="i386"
3979 *x86_64*)
3980 aros_host_cpu="x86_64"
3982 *m68k*)
3983 aros_host_cpu="m68k"
3985 *powerpc*)
3986 aros_host_cpu="ppc"
3988 *arm*)
3989 aros_host_cpu="arm"
3992 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3993 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3994 aros_host_cpu="$host_cpu"
3996 esac
3999 freebsd*)
4000 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4001 aros_host_make="gmake"
4002 aros_host_arch="freebsd"
4003 aros_host_cpu="i386"
4005 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4008 case $host_os in
4009 freebsd[234]*)
4010 aros_object_format="elf_i386"
4014 aros_object_format="elf_i386_fbsd"
4016 esac
4020 darwin*)
4021 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4022 aros_host_arch="darwin"
4023 case "$host_cpu" in
4024 *i?86*)
4025 aros_host_cpu="i386"
4027 *powerpc*)
4028 aros_host_cpu="ppc"
4031 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4032 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4033 aros_host_cpu="$host_cpu"
4035 esac
4037 aros_host_ldflags="$aros_host_ldflags -liconv"
4041 dragonfly*)
4042 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4043 aros_host_make="gmake"
4044 aros_host_arch="dragonfly"
4045 case $host_cpu in
4046 *i?86*)
4047 aros_host_cpu="i386"
4049 *amd64*)
4050 aros_host_cpu="x86_64"
4053 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4054 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4055 aros_host_cpu="$host_cpu"
4057 esac
4060 netbsd*)
4061 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4062 aros_host_make="gmake"
4063 aros_host_arch="netbsd"
4064 case "$host_cpu" in
4065 *i?86*)
4066 aros_host_cpu="i386"
4068 *m68k*)
4069 aros_host_cpu="m68k"
4072 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4073 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4074 aros_host_cpu="$host_cpu"
4076 esac
4077 aros_host_lib_suffix=".0.0"
4080 openbsd*)
4081 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4082 aros_host_make="gmake"
4083 aros_host_arch="openbsd"
4084 case "$host_cpu" in
4085 *i?86*)
4086 aros_host_cpu="i386"
4089 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4090 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4091 aros_host_cpu="$host_cpu"
4093 esac
4096 solaris*)
4097 aros_host_arch="solaris"
4098 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4099 case "$host_cpu" in
4100 *i?86*)
4101 aros_host_cpu="i386"
4103 *sparc*)
4104 aros_host_cpu="sparc"
4107 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4108 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4109 aros_host_cpu="$host_cpu"
4111 esac
4114 morphos*)
4115 aros_host_arch="morphos"
4116 aros_host_cpu="ppc"
4119 amiga*)
4120 aros_host_arch="amiga"
4121 SORT="/gg/bin/sort"
4122 TEST="/gg/bin/test"
4123 UNIQ="/gg/bin/uniq"
4124 FOR="for"
4125 TOUCH="/gg/bin/touch"
4126 case "$host_cpu" in
4127 *m68k*)
4128 aros_host_cpu="m68k"
4130 *powerpc*)
4131 aros_host_cpu="ppc"
4134 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4135 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4136 aros_host_cpu="$host_cpu"
4138 esac
4141 cygwin*)
4142 aros_host_arch="cygwin"
4143 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4144 case "$host_cpu" in
4145 *i?86*)
4146 aros_host_cpu="i386"
4149 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4150 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4151 aros_host_cpu="$host_cpu"
4153 esac
4156 mingw32*)
4157 aros_host_arch="mingw32"
4158 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4159 case "$host_cpu" in
4160 *i?86*)
4161 aros_host_cpu="i386"
4164 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4165 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4166 aros_host_cpu="$host_cpu"
4168 esac
4171 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4172 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4173 { (exit 1); exit 1; }; }
4175 esac
4177 # Extract the first word of "ar", so it can be a program name with args.
4178 set dummy ar; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 if test -n "$aros_host_ar"; then
4185 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_aros_host_ar="ar cr"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4198 done
4199 done
4200 IFS=$as_save_IFS
4204 aros_host_ar=$ac_cv_prog_aros_host_ar
4205 if test -n "$aros_host_ar"; then
4206 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4207 echo "${ECHO_T}$aros_host_ar" >&6; }
4208 else
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4214 if test "$aros_host_ar" = ""; then
4215 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4216 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4217 { (exit 1); exit 1; }; }
4219 # Extract the first word of "ranlib", so it can be a program name with args.
4220 set dummy ranlib; ac_word=$2
4221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4223 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 if test -n "$aros_host_ranlib"; then
4227 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_aros_host_ranlib="ranlib "
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4240 done
4241 done
4242 IFS=$as_save_IFS
4246 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4247 if test -n "$aros_host_ranlib"; then
4248 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4249 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4250 else
4251 { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4256 if test "$aros_host_ranlib" = ""; then
4257 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4258 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4259 { (exit 1); exit 1; }; }
4261 # Extract the first word of "strip", so it can be a program name with args.
4262 set dummy strip; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 if test -n "$aros_host_strip"; then
4269 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_aros_host_strip="strip "
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4284 IFS=$as_save_IFS
4288 aros_host_strip=$ac_cv_prog_aros_host_strip
4289 if test -n "$aros_host_strip"; then
4290 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4291 echo "${ECHO_T}$aros_host_strip" >&6; }
4292 else
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test "$aros_host_strip" = ""; then
4299 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4300 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4301 { (exit 1); exit 1; }; }
4304 # Extract the first word of "rm", so it can be a program name with args.
4305 set dummy rm; ac_word=$2
4306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308 if test "${ac_cv_prog_RM+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 if test -n "$RM"; then
4312 ac_cv_prog_RM="$RM" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_RM="rm -rf"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4327 IFS=$as_save_IFS
4331 RM=$ac_cv_prog_RM
4332 if test -n "$RM"; then
4333 { echo "$as_me:$LINENO: result: $RM" >&5
4334 echo "${ECHO_T}$RM" >&6; }
4335 else
4336 { echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6; }
4341 if test "$RM" = ""; then
4342 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4343 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4344 { (exit 1); exit 1; }; }
4346 # Extract the first word of "cp", so it can be a program name with args.
4347 set dummy cp; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_CP+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -n "$CP"; then
4354 ac_cv_prog_CP="$CP" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_CP="cp "
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4373 CP=$ac_cv_prog_CP
4374 if test -n "$CP"; then
4375 { echo "$as_me:$LINENO: result: $CP" >&5
4376 echo "${ECHO_T}$CP" >&6; }
4377 else
4378 { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4383 if test "$CP" = ""; then
4384 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4385 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4386 { (exit 1); exit 1; }; }
4388 # Extract the first word of "mv", so it can be a program name with args.
4389 set dummy mv; ac_word=$2
4390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392 if test "${ac_cv_prog_MV+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395 if test -n "$MV"; then
4396 ac_cv_prog_MV="$MV" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_MV="mv "
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4415 MV=$ac_cv_prog_MV
4416 if test -n "$MV"; then
4417 { echo "$as_me:$LINENO: result: $MV" >&5
4418 echo "${ECHO_T}$MV" >&6; }
4419 else
4420 { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4425 if test "$MV" = ""; then
4426 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4427 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4428 { (exit 1); exit 1; }; }
4430 # Extract the first word of "echo", so it can be a program name with args.
4431 set dummy echo; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_ECHO+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 if test -n "$ECHO"; then
4438 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_ECHO="echo "
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4453 IFS=$as_save_IFS
4457 ECHO=$ac_cv_prog_ECHO
4458 if test -n "$ECHO"; then
4459 { echo "$as_me:$LINENO: result: $ECHO" >&5
4460 echo "${ECHO_T}$ECHO" >&6; }
4461 else
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 if test "$ECHO" = ""; then
4468 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4469 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4470 { (exit 1); exit 1; }; }
4472 # Extract the first word of "mkdir", so it can be a program name with args.
4473 set dummy mkdir; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_MKDIR+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 if test -n "$MKDIR"; then
4480 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_MKDIR="mkdir -p"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4493 done
4494 done
4495 IFS=$as_save_IFS
4499 MKDIR=$ac_cv_prog_MKDIR
4500 if test -n "$MKDIR"; then
4501 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4502 echo "${ECHO_T}$MKDIR" >&6; }
4503 else
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 if test "$MKDIR" = ""; then
4510 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4511 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4512 { (exit 1); exit 1; }; }
4514 # Extract the first word of "touch", so it can be a program name with args.
4515 set dummy touch; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_TOUCH+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 if test -n "$TOUCH"; then
4522 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_TOUCH="touch "
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 TOUCH=$ac_cv_prog_TOUCH
4542 if test -n "$TOUCH"; then
4543 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4544 echo "${ECHO_T}$TOUCH" >&6; }
4545 else
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4551 if test "$TOUCH" = ""; then
4552 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4553 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4554 { (exit 1); exit 1; }; }
4556 # Extract the first word of "sort", so it can be a program name with args.
4557 set dummy sort; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_SORT+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test -n "$SORT"; then
4564 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_SORT="sort "
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 SORT=$ac_cv_prog_SORT
4584 if test -n "$SORT"; then
4585 { echo "$as_me:$LINENO: result: $SORT" >&5
4586 echo "${ECHO_T}$SORT" >&6; }
4587 else
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4593 if test "$SORT" = ""; then
4594 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4595 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4596 { (exit 1); exit 1; }; }
4598 # Extract the first word of "uniq", so it can be a program name with args.
4599 set dummy uniq; ac_word=$2
4600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4602 if test "${ac_cv_prog_UNIQ+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$UNIQ"; then
4606 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_prog_UNIQ="uniq "
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4621 IFS=$as_save_IFS
4625 UNIQ=$ac_cv_prog_UNIQ
4626 if test -n "$UNIQ"; then
4627 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4628 echo "${ECHO_T}$UNIQ" >&6; }
4629 else
4630 { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4635 if test "$UNIQ" = ""; then
4636 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4637 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4638 { (exit 1); exit 1; }; }
4640 # Extract the first word of "true", so it can be a program name with args.
4641 set dummy true; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_prog_NOP+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 if test -n "$NOP"; then
4648 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_NOP="true "
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4667 NOP=$ac_cv_prog_NOP
4668 if test -n "$NOP"; then
4669 { echo "$as_me:$LINENO: result: $NOP" >&5
4670 echo "${ECHO_T}$NOP" >&6; }
4671 else
4672 { echo "$as_me:$LINENO: result: no" >&5
4673 echo "${ECHO_T}no" >&6; }
4677 if test "$NOP" = ""; then
4678 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4679 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4680 { (exit 1); exit 1; }; }
4682 # Extract the first word of "cat", so it can be a program name with args.
4683 set dummy cat; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_CAT+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 if test -n "$CAT"; then
4690 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_CAT="cat "
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 CAT=$ac_cv_prog_CAT
4710 if test -n "$CAT"; then
4711 { echo "$as_me:$LINENO: result: $CAT" >&5
4712 echo "${ECHO_T}$CAT" >&6; }
4713 else
4714 { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4719 if test "$CAT" = ""; then
4720 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4721 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4722 { (exit 1); exit 1; }; }
4724 # Extract the first word of "bison", so it can be a program name with args.
4725 set dummy bison; ac_word=$2
4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728 if test "${ac_cv_prog_BISON+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 if test -n "$BISON"; then
4732 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_BISON="bison "
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4745 done
4746 done
4747 IFS=$as_save_IFS
4751 BISON=$ac_cv_prog_BISON
4752 if test -n "$BISON"; then
4753 { echo "$as_me:$LINENO: result: $BISON" >&5
4754 echo "${ECHO_T}$BISON" >&6; }
4755 else
4756 { echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6; }
4761 if test "$BISON" = ""; then
4762 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4763 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4764 { (exit 1); exit 1; }; }
4766 # Extract the first word of "flex", so it can be a program name with args.
4767 set dummy flex; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_FLEX+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 if test -n "$FLEX"; then
4774 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_FLEX="flex "
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4789 IFS=$as_save_IFS
4793 FLEX=$ac_cv_prog_FLEX
4794 if test -n "$FLEX"; then
4795 { echo "$as_me:$LINENO: result: $FLEX" >&5
4796 echo "${ECHO_T}$FLEX" >&6; }
4797 else
4798 { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4803 if test "$FLEX" = ""; then
4804 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4805 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4806 { (exit 1); exit 1; }; }
4808 # Extract the first word of "pngtopnm", so it can be a program name with args.
4809 set dummy pngtopnm; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 if test -n "$PNGTOPNM"; then
4816 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_PNGTOPNM="pngtopnm "
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4836 if test -n "$PNGTOPNM"; then
4837 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4838 echo "${ECHO_T}$PNGTOPNM" >&6; }
4839 else
4840 { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4845 if test "$PNGTOPNM" = ""; then
4846 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4847 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4848 { (exit 1); exit 1; }; }
4850 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4851 set dummy ppmtoilbm; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 if test -n "$PPMTOILBM"; then
4858 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4871 done
4872 done
4873 IFS=$as_save_IFS
4877 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4878 if test -n "$PPMTOILBM"; then
4879 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4880 echo "${ECHO_T}$PPMTOILBM" >&6; }
4881 else
4882 { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4887 if test "$PPMTOILBM" = ""; then
4888 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4889 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4890 { (exit 1); exit 1; }; }
4892 # Extract the first word of "sed", so it can be a program name with args.
4893 set dummy sed; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_SED+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 if test -n "$SED"; then
4900 ac_cv_prog_SED="$SED" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_SED="sed "
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 SED=$ac_cv_prog_SED
4920 if test -n "$SED"; then
4921 { echo "$as_me:$LINENO: result: $SED" >&5
4922 echo "${ECHO_T}$SED" >&6; }
4923 else
4924 { echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6; }
4929 if test "$SED" = ""; then
4930 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4931 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4932 { (exit 1); exit 1; }; }
4934 # Extract the first word of "chmod", so it can be a program name with args.
4935 set dummy chmod; ac_word=$2
4936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4938 if test "${ac_cv_prog_CHMOD+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 if test -n "$CHMOD"; then
4942 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_prog_CHMOD="chmod "
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4955 done
4956 done
4957 IFS=$as_save_IFS
4961 CHMOD=$ac_cv_prog_CHMOD
4962 if test -n "$CHMOD"; then
4963 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4964 echo "${ECHO_T}$CHMOD" >&6; }
4965 else
4966 { echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6; }
4971 if test "$CHMOD" = ""; then
4972 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4973 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4974 { (exit 1); exit 1; }; }
4981 if test -n "$PYTHON"; then
4982 # If the user set $PYTHON, use it and don't search something else.
4983 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4984 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4985 prog="import sys, string
4986 # split strings by '.' and convert to numeric. Append some zeros
4987 # because we need at least 4 digits for the hex conversion.
4988 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4989 minverhex = 0
4990 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4991 sys.exit(sys.hexversion < minverhex)"
4992 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4993 ($PYTHON -c "$prog") >&5 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; then
4997 { echo "$as_me:$LINENO: result: yes" >&5
4998 echo "${ECHO_T}yes" >&6; }
4999 else
5000 { { echo "$as_me:$LINENO: error: too old" >&5
5001 echo "$as_me: error: too old" >&2;}
5002 { (exit 1); exit 1; }; }
5005 am_display_PYTHON=$PYTHON
5006 else
5007 # Otherwise, try each interpreter until we find one that satisfies
5008 # VERSION.
5009 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
5010 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
5011 if test "${am_cv_pathless_PYTHON+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5015 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
5016 test "$am_cv_pathless_PYTHON" = none && break
5017 prog="import sys, string
5018 # split strings by '.' and convert to numeric. Append some zeros
5019 # because we need at least 4 digits for the hex conversion.
5020 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5021 minverhex = 0
5022 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5023 sys.exit(sys.hexversion < minverhex)"
5024 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5025 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; then
5029 break
5032 done
5034 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5035 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5036 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5037 if test "$am_cv_pathless_PYTHON" = none; then
5038 PYTHON=:
5039 else
5040 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5041 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044 if test "${ac_cv_path_PYTHON+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 case $PYTHON in
5048 [\\/]* | ?:[\\/]*)
5049 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5068 esac
5070 PYTHON=$ac_cv_path_PYTHON
5071 if test -n "$PYTHON"; then
5072 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5073 echo "${ECHO_T}$PYTHON" >&6; }
5074 else
5075 { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5081 am_display_PYTHON=$am_cv_pathless_PYTHON
5085 if test "$PYTHON" = :; then
5086 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5087 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5088 { (exit 1); exit 1; }; }
5089 else
5092 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5093 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5094 if test "${am_cv_python_version+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5099 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5100 echo "${ECHO_T}$am_cv_python_version" >&6; }
5101 PYTHON_VERSION=$am_cv_python_version
5105 PYTHON_PREFIX='${prefix}'
5107 PYTHON_EXEC_PREFIX='${exec_prefix}'
5111 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5112 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5113 if test "${am_cv_python_platform+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5118 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5119 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5120 PYTHON_PLATFORM=$am_cv_python_platform
5125 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5126 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5127 if test "${am_cv_python_pythondir+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5131 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5133 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5134 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5135 pythondir=$am_cv_python_pythondir
5139 pkgpythondir=\${pythondir}/$PACKAGE
5142 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5143 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5144 if test "${am_cv_python_pyexecdir+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5148 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5150 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5151 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5152 pyexecdir=$am_cv_python_pyexecdir
5156 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5164 FOR=for
5166 IF=if
5168 TEST=test
5170 CMP=cmp
5174 # Check for some includes for the X11 HIDD and the kernel
5177 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5178 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_GREP+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 # Extract the first word of "grep ggrep" to use in msg output
5183 if test -z "$GREP"; then
5184 set dummy grep ggrep; ac_prog_name=$2
5185 if test "${ac_cv_path_GREP+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 ac_path_GREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in grep ggrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199 # Check for GNU ac_path_GREP and select it if it is found.
5200 # Check for GNU $ac_path_GREP
5201 case `"$ac_path_GREP" --version 2>&1` in
5202 *GNU*)
5203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5205 ac_count=0
5206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5207 while :
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 echo 'GREP' >> "conftest.nl"
5213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 ac_count=`expr $ac_count + 1`
5216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_GREP="$ac_path_GREP"
5219 ac_path_GREP_max=$ac_count
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 esac
5228 $ac_path_GREP_found && break 3
5229 done
5230 done
5232 done
5233 IFS=$as_save_IFS
5238 GREP="$ac_cv_path_GREP"
5239 if test -z "$GREP"; then
5240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5241 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5242 { (exit 1); exit 1; }; }
5245 else
5246 ac_cv_path_GREP=$GREP
5251 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5252 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5253 GREP="$ac_cv_path_GREP"
5256 { echo "$as_me:$LINENO: checking for egrep" >&5
5257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5258 if test "${ac_cv_path_EGREP+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5262 then ac_cv_path_EGREP="$GREP -E"
5263 else
5264 # Extract the first word of "egrep" to use in msg output
5265 if test -z "$EGREP"; then
5266 set dummy egrep; ac_prog_name=$2
5267 if test "${ac_cv_path_EGREP+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270 ac_path_EGREP_found=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_prog in egrep; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5280 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5281 # Check for GNU ac_path_EGREP and select it if it is found.
5282 # Check for GNU $ac_path_EGREP
5283 case `"$ac_path_EGREP" --version 2>&1` in
5284 *GNU*)
5285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5287 ac_count=0
5288 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5289 while :
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 echo 'EGREP' >> "conftest.nl"
5295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 ac_count=`expr $ac_count + 1`
5298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_EGREP="$ac_path_EGREP"
5301 ac_path_EGREP_max=$ac_count
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5305 done
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307 esac
5310 $ac_path_EGREP_found && break 3
5311 done
5312 done
5314 done
5315 IFS=$as_save_IFS
5320 EGREP="$ac_cv_path_EGREP"
5321 if test -z "$EGREP"; then
5322 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5323 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5324 { (exit 1); exit 1; }; }
5327 else
5328 ac_cv_path_EGREP=$EGREP
5334 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5335 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5336 EGREP="$ac_cv_path_EGREP"
5339 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5340 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5341 if test "${ac_cv_header_stdc+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 #include <stdlib.h>
5351 #include <stdarg.h>
5352 #include <string.h>
5353 #include <float.h>
5356 main ()
5360 return 0;
5362 _ACEOF
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5380 ac_cv_header_stdc=yes
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 ac_cv_header_stdc=no
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 if test $ac_cv_header_stdc = yes; then
5391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <string.h>
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "memchr" >/dev/null 2>&1; then
5404 else
5405 ac_cv_header_stdc=no
5407 rm -f conftest*
5411 if test $ac_cv_header_stdc = yes; then
5412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 #include <stdlib.h>
5421 _ACEOF
5422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5423 $EGREP "free" >/dev/null 2>&1; then
5425 else
5426 ac_cv_header_stdc=no
5428 rm -f conftest*
5432 if test $ac_cv_header_stdc = yes; then
5433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5434 if test "$cross_compiling" = yes; then
5436 else
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <ctype.h>
5444 #include <stdlib.h>
5445 #if ((' ' & 0x0FF) == 0x020)
5446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5448 #else
5449 # define ISLOWER(c) \
5450 (('a' <= (c) && (c) <= 'i') \
5451 || ('j' <= (c) && (c) <= 'r') \
5452 || ('s' <= (c) && (c) <= 'z'))
5453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5454 #endif
5456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5458 main ()
5460 int i;
5461 for (i = 0; i < 256; i++)
5462 if (XOR (islower (i), ISLOWER (i))
5463 || toupper (i) != TOUPPER (i))
5464 return 2;
5465 return 0;
5467 _ACEOF
5468 rm -f conftest$ac_exeext
5469 if { (ac_try="$ac_link"
5470 case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_link") 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5479 { (case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_try") 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5489 else
5490 echo "$as_me: program exited with status $ac_status" >&5
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 ( exit $ac_status )
5495 ac_cv_header_stdc=no
5497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5503 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5504 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5505 if test $ac_cv_header_stdc = yes; then
5507 cat >>confdefs.h <<\_ACEOF
5508 #define STDC_HEADERS 1
5509 _ACEOF
5513 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5524 inttypes.h stdint.h unistd.h
5526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h. */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 $ac_includes_default
5540 #include <$ac_header>
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 eval "$as_ac_Header=yes"
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 eval "$as_ac_Header=no"
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 ac_res=`eval echo '${'$as_ac_Header'}'`
5570 { echo "$as_me:$LINENO: result: $ac_res" >&5
5571 echo "${ECHO_T}$ac_res" >&6; }
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h <<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5575 _ACEOF
5579 done
5591 for ac_header in sys/ipc.h sys/shm.h \
5592 sys/mmap.h sys/mman.h sysexits.h \
5593 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 ac_res=`eval echo '${'$as_ac_Header'}'`
5604 { echo "$as_me:$LINENO: result: $ac_res" >&5
5605 echo "${ECHO_T}$ac_res" >&6; }
5606 else
5607 # Is the header compilable?
5608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 $ac_includes_default
5617 #include <$ac_header>
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_header_compiler=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_header_compiler=no
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6; }
5648 # Is the header present?
5649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <$ac_header>
5658 _ACEOF
5659 if { (ac_try="$ac_cpp conftest.$ac_ext"
5660 case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } >/dev/null && {
5672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5673 test ! -s conftest.err
5674 }; then
5675 ac_header_preproc=yes
5676 else
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 ac_header_preproc=no
5683 rm -f conftest.err conftest.$ac_ext
5684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5685 echo "${ECHO_T}$ac_header_preproc" >&6; }
5687 # So? What about this header?
5688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5689 yes:no: )
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5694 ac_header_preproc=yes
5696 no:yes:* )
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5711 esac
5712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 eval "$as_ac_Header=\$ac_header_preproc"
5719 ac_res=`eval echo '${'$as_ac_Header'}'`
5720 { echo "$as_me:$LINENO: result: $ac_res" >&5
5721 echo "${ECHO_T}$ac_res" >&6; }
5724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5725 cat >>confdefs.h <<_ACEOF
5726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5727 _ACEOF
5731 done
5735 for ac_header in sys/mount.h
5737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <sys/param.h>
5751 #include <$ac_header>
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (ac_try="$ac_compile"
5755 case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_compile") 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } && {
5767 test -z "$ac_c_werror_flag" ||
5768 test ! -s conftest.err
5769 } && test -s conftest.$ac_objext; then
5770 eval "$as_ac_Header=yes"
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 eval "$as_ac_Header=no"
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_res=`eval echo '${'$as_ac_Header'}'`
5781 { echo "$as_me:$LINENO: result: $ac_res" >&5
5782 echo "${ECHO_T}$ac_res" >&6; }
5783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5784 cat >>confdefs.h <<_ACEOF
5785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 _ACEOF
5790 done
5798 ac_header_dirent=no
5799 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5800 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5801 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5802 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 #include <sys/types.h>
5813 #include <$ac_hdr>
5816 main ()
5818 if ((DIR *) 0)
5819 return 0;
5821 return 0;
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5826 case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.$ac_objext; then
5841 eval "$as_ac_Header=yes"
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 eval "$as_ac_Header=no"
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 ac_res=`eval echo '${'$as_ac_Header'}'`
5852 { echo "$as_me:$LINENO: result: $ac_res" >&5
5853 echo "${ECHO_T}$ac_res" >&6; }
5854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5855 cat >>confdefs.h <<_ACEOF
5856 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5857 _ACEOF
5859 ac_header_dirent=$ac_hdr; break
5862 done
5863 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5864 if test $ac_header_dirent = dirent.h; then
5865 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5866 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5867 if test "${ac_cv_search_opendir+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 ac_func_search_save_LIBS=$LIBS
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5878 /* Override any GCC internal prototype to avoid an error.
5879 Use char because int might match the return type of a GCC
5880 builtin and then its argument prototype would still apply. */
5881 #ifdef __cplusplus
5882 extern "C"
5883 #endif
5884 char opendir ();
5886 main ()
5888 return opendir ();
5890 return 0;
5892 _ACEOF
5893 for ac_lib in '' dir; do
5894 if test -z "$ac_lib"; then
5895 ac_res="none required"
5896 else
5897 ac_res=-l$ac_lib
5898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5900 rm -f conftest.$ac_objext conftest$ac_exeext
5901 if { (ac_try="$ac_link"
5902 case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_link") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest$ac_exeext &&
5917 $as_test_x conftest$ac_exeext; then
5918 ac_cv_search_opendir=$ac_res
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5927 conftest$ac_exeext
5928 if test "${ac_cv_search_opendir+set}" = set; then
5929 break
5931 done
5932 if test "${ac_cv_search_opendir+set}" = set; then
5934 else
5935 ac_cv_search_opendir=no
5937 rm conftest.$ac_ext
5938 LIBS=$ac_func_search_save_LIBS
5940 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5941 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5942 ac_res=$ac_cv_search_opendir
5943 if test "$ac_res" != no; then
5944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5948 else
5949 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5951 if test "${ac_cv_search_opendir+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 ac_func_search_save_LIBS=$LIBS
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5962 /* Override any GCC internal prototype to avoid an error.
5963 Use char because int might match the return type of a GCC
5964 builtin and then its argument prototype would still apply. */
5965 #ifdef __cplusplus
5966 extern "C"
5967 #endif
5968 char opendir ();
5970 main ()
5972 return opendir ();
5974 return 0;
5976 _ACEOF
5977 for ac_lib in '' x; do
5978 if test -z "$ac_lib"; then
5979 ac_res="none required"
5980 else
5981 ac_res=-l$ac_lib
5982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (ac_try="$ac_link"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_link") 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest$ac_exeext &&
6001 $as_test_x conftest$ac_exeext; then
6002 ac_cv_search_opendir=$ac_res
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6011 conftest$ac_exeext
6012 if test "${ac_cv_search_opendir+set}" = set; then
6013 break
6015 done
6016 if test "${ac_cv_search_opendir+set}" = set; then
6018 else
6019 ac_cv_search_opendir=no
6021 rm conftest.$ac_ext
6022 LIBS=$ac_func_search_save_LIBS
6024 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6025 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6026 ac_res=$ac_cv_search_opendir
6027 if test "$ac_res" != no; then
6028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6034 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6035 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6036 if test "${ac_cv_header_stat_broken+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 #include <sys/types.h>
6046 #include <sys/stat.h>
6048 #if defined S_ISBLK && defined S_IFDIR
6049 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6050 #endif
6052 #if defined S_ISBLK && defined S_IFCHR
6053 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6054 #endif
6056 #if defined S_ISLNK && defined S_IFREG
6057 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6058 #endif
6060 #if defined S_ISSOCK && defined S_IFREG
6061 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6062 #endif
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6082 ac_cv_header_stat_broken=no
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_header_stat_broken=yes
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6093 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6094 if test $ac_cv_header_stat_broken = yes; then
6096 cat >>confdefs.h <<\_ACEOF
6097 #define STAT_MACROS_BROKEN 1
6098 _ACEOF
6102 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6104 if test "${ac_cv_header_stdc+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <stdlib.h>
6114 #include <stdarg.h>
6115 #include <string.h>
6116 #include <float.h>
6119 main ()
6123 return 0;
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_compile") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } && {
6140 test -z "$ac_c_werror_flag" ||
6141 test ! -s conftest.err
6142 } && test -s conftest.$ac_objext; then
6143 ac_cv_header_stdc=yes
6144 else
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6148 ac_cv_header_stdc=no
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 if test $ac_cv_header_stdc = yes; then
6154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <string.h>
6163 _ACEOF
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165 $EGREP "memchr" >/dev/null 2>&1; then
6167 else
6168 ac_cv_header_stdc=no
6170 rm -f conftest*
6174 if test $ac_cv_header_stdc = yes; then
6175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #include <stdlib.h>
6184 _ACEOF
6185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186 $EGREP "free" >/dev/null 2>&1; then
6188 else
6189 ac_cv_header_stdc=no
6191 rm -f conftest*
6195 if test $ac_cv_header_stdc = yes; then
6196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6197 if test "$cross_compiling" = yes; then
6199 else
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #include <ctype.h>
6207 #include <stdlib.h>
6208 #if ((' ' & 0x0FF) == 0x020)
6209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6211 #else
6212 # define ISLOWER(c) \
6213 (('a' <= (c) && (c) <= 'i') \
6214 || ('j' <= (c) && (c) <= 'r') \
6215 || ('s' <= (c) && (c) <= 'z'))
6216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6217 #endif
6219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6221 main ()
6223 int i;
6224 for (i = 0; i < 256; i++)
6225 if (XOR (islower (i), ISLOWER (i))
6226 || toupper (i) != TOUPPER (i))
6227 return 2;
6228 return 0;
6230 _ACEOF
6231 rm -f conftest$ac_exeext
6232 if { (ac_try="$ac_link"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_link") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6242 { (case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_try") 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6252 else
6253 echo "$as_me: program exited with status $ac_status" >&5
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ( exit $ac_status )
6258 ac_cv_header_stdc=no
6260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6266 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6267 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6268 if test $ac_cv_header_stdc = yes; then
6270 cat >>confdefs.h <<\_ACEOF
6271 #define STDC_HEADERS 1
6272 _ACEOF
6276 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6277 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6278 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 #include <sys/types.h>
6288 #include <sys/wait.h>
6289 #ifndef WEXITSTATUS
6290 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6291 #endif
6292 #ifndef WIFEXITED
6293 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6294 #endif
6297 main ()
6299 int s;
6300 wait (&s);
6301 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6303 return 0;
6305 _ACEOF
6306 rm -f conftest.$ac_objext
6307 if { (ac_try="$ac_compile"
6308 case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.$ac_objext; then
6323 ac_cv_header_sys_wait_h=yes
6324 else
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_cv_header_sys_wait_h=no
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6334 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6335 if test $ac_cv_header_sys_wait_h = yes; then
6337 cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_SYS_WAIT_H 1
6339 _ACEOF
6343 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6344 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6345 if test "${ac_cv_header_time+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #include <sys/types.h>
6355 #include <sys/time.h>
6356 #include <time.h>
6359 main ()
6361 if ((struct tm *) 0)
6362 return 0;
6364 return 0;
6366 _ACEOF
6367 rm -f conftest.$ac_objext
6368 if { (ac_try="$ac_compile"
6369 case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372 esac
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_compile") 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest.$ac_objext; then
6384 ac_cv_header_time=yes
6385 else
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 ac_cv_header_time=no
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6395 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6396 if test $ac_cv_header_time = yes; then
6398 cat >>confdefs.h <<\_ACEOF
6399 #define TIME_WITH_SYS_TIME 1
6400 _ACEOF
6404 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6405 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6406 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h. */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 $ac_includes_default
6417 main ()
6419 static struct stat ac_aggr;
6420 if (ac_aggr.st_blksize)
6421 return 0;
6423 return 0;
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_compile") 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } && {
6440 test -z "$ac_c_werror_flag" ||
6441 test ! -s conftest.err
6442 } && test -s conftest.$ac_objext; then
6443 ac_cv_member_struct_stat_st_blksize=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 $ac_includes_default
6456 main ()
6458 static struct stat ac_aggr;
6459 if (sizeof ac_aggr.st_blksize)
6460 return 0;
6462 return 0;
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 ac_cv_member_struct_stat_st_blksize=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 ac_cv_member_struct_stat_st_blksize=no
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6496 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6497 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6501 _ACEOF
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_ST_BLKSIZE 1
6506 _ACEOF
6511 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6512 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6513 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6524 main ()
6526 static struct stat ac_aggr;
6527 if (ac_aggr.st_blocks)
6528 return 0;
6530 return 0;
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest.$ac_objext; then
6550 ac_cv_member_struct_stat_st_blocks=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 $ac_includes_default
6563 main ()
6565 static struct stat ac_aggr;
6566 if (sizeof ac_aggr.st_blocks)
6567 return 0;
6569 return 0;
6571 _ACEOF
6572 rm -f conftest.$ac_objext
6573 if { (ac_try="$ac_compile"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6589 ac_cv_member_struct_stat_st_blocks=yes
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_cv_member_struct_stat_st_blocks=no
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6603 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6604 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6608 _ACEOF
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_ST_BLOCKS 1
6613 _ACEOF
6615 else
6616 case " $LIBOBJS " in
6617 *" fileblocks.$ac_objext "* ) ;;
6618 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6620 esac
6625 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6626 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6627 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 $ac_includes_default
6638 main ()
6640 static struct stat ac_aggr;
6641 if (ac_aggr.st_rdev)
6642 return 0;
6644 return 0;
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (ac_try="$ac_compile"
6649 case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_cv_member_struct_stat_st_rdev=yes
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 $ac_includes_default
6677 main ()
6679 static struct stat ac_aggr;
6680 if (sizeof ac_aggr.st_rdev)
6681 return 0;
6683 return 0;
6685 _ACEOF
6686 rm -f conftest.$ac_objext
6687 if { (ac_try="$ac_compile"
6688 case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_compile") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest.$ac_objext; then
6703 ac_cv_member_struct_stat_st_rdev=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_cv_member_struct_stat_st_rdev=no
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6717 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6718 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6720 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_STRUCT_STAT_ST_RDEV 1
6722 _ACEOF
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_ST_RDEV 1
6727 _ACEOF
6732 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6733 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6734 if test "${ac_cv_struct_tm+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <sys/types.h>
6744 #include <time.h>
6747 main ()
6749 struct tm tm;
6750 int *p = &tm.tm_sec;
6751 return !p;
6753 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (ac_try="$ac_compile"
6758 case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_compile") 2>conftest.er1
6764 ac_status=$?
6765 grep -v '^ *+' conftest.er1 >conftest.err
6766 rm -f conftest.er1
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && {
6770 test -z "$ac_c_werror_flag" ||
6771 test ! -s conftest.err
6772 } && test -s conftest.$ac_objext; then
6773 ac_cv_struct_tm=time.h
6774 else
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ac_cv_struct_tm=sys/time.h
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6784 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6785 if test $ac_cv_struct_tm = sys/time.h; then
6787 cat >>confdefs.h <<\_ACEOF
6788 #define TM_IN_SYS_TIME 1
6789 _ACEOF
6793 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6794 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6795 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h. */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 #include <sys/types.h>
6805 #include <$ac_cv_struct_tm>
6809 main ()
6811 static struct tm ac_aggr;
6812 if (ac_aggr.tm_zone)
6813 return 0;
6815 return 0;
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6820 case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 ac_cv_member_struct_tm_tm_zone=yes
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 #include <sys/types.h>
6847 #include <$ac_cv_struct_tm>
6851 main ()
6853 static struct tm ac_aggr;
6854 if (sizeof ac_aggr.tm_zone)
6855 return 0;
6857 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (ac_try="$ac_compile"
6862 case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_compile") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_c_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest.$ac_objext; then
6877 ac_cv_member_struct_tm_tm_zone=yes
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 ac_cv_member_struct_tm_tm_zone=no
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6891 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6892 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6894 cat >>confdefs.h <<_ACEOF
6895 #define HAVE_STRUCT_TM_TM_ZONE 1
6896 _ACEOF
6901 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define HAVE_TM_ZONE 1
6905 _ACEOF
6907 else
6908 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6909 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6910 if test "${ac_cv_have_decl_tzname+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <time.h>
6922 main ()
6924 #ifndef tzname
6925 (void) tzname;
6926 #endif
6929 return 0;
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (ac_try="$ac_compile"
6934 case "(($ac_try" in
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6937 esac
6938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939 (eval "$ac_compile") 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && {
6946 test -z "$ac_c_werror_flag" ||
6947 test ! -s conftest.err
6948 } && test -s conftest.$ac_objext; then
6949 ac_cv_have_decl_tzname=yes
6950 else
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6954 ac_cv_have_decl_tzname=no
6957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6960 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6961 if test $ac_cv_have_decl_tzname = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964 #define HAVE_DECL_TZNAME 1
6965 _ACEOF
6968 else
6969 cat >>confdefs.h <<_ACEOF
6970 #define HAVE_DECL_TZNAME 0
6971 _ACEOF
6977 { echo "$as_me:$LINENO: checking for tzname" >&5
6978 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6979 if test "${ac_cv_var_tzname+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 #include <time.h>
6989 #if !HAVE_DECL_TZNAME
6990 extern char *tzname[];
6991 #endif
6994 main ()
6996 return tzname[0][0];
6998 return 0;
7000 _ACEOF
7001 rm -f conftest.$ac_objext conftest$ac_exeext
7002 if { (ac_try="$ac_link"
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_link") 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_exeext &&
7018 $as_test_x conftest$ac_exeext; then
7019 ac_cv_var_tzname=yes
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_cv_var_tzname=no
7027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028 conftest$ac_exeext conftest.$ac_ext
7030 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7031 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7032 if test $ac_cv_var_tzname = yes; then
7034 cat >>confdefs.h <<\_ACEOF
7035 #define HAVE_TZNAME 1
7036 _ACEOF
7041 { echo "$as_me:$LINENO: checking for off_t" >&5
7042 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7043 if test "${ac_cv_type_off_t+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7053 typedef off_t ac__type_new_;
7055 main ()
7057 if ((ac__type_new_ *) 0)
7058 return 0;
7059 if (sizeof (ac__type_new_))
7060 return 0;
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7067 case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_type_off_t=yes
7083 else
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_type_off_t=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7093 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7094 if test $ac_cv_type_off_t = yes; then
7096 else
7098 cat >>confdefs.h <<_ACEOF
7099 #define off_t long int
7100 _ACEOF
7104 { echo "$as_me:$LINENO: checking for pid_t" >&5
7105 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7106 if test "${ac_cv_type_pid_t+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 $ac_includes_default
7116 typedef pid_t ac__type_new_;
7118 main ()
7120 if ((ac__type_new_ *) 0)
7121 return 0;
7122 if (sizeof (ac__type_new_))
7123 return 0;
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 ac_cv_type_pid_t=yes
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_type_pid_t=no
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7156 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7157 if test $ac_cv_type_pid_t = yes; then
7159 else
7161 cat >>confdefs.h <<_ACEOF
7162 #define pid_t int
7163 _ACEOF
7167 { echo "$as_me:$LINENO: checking for size_t" >&5
7168 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7169 if test "${ac_cv_type_size_t+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 typedef size_t ac__type_new_;
7181 main ()
7183 if ((ac__type_new_ *) 0)
7184 return 0;
7185 if (sizeof (ac__type_new_))
7186 return 0;
7188 return 0;
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_type_size_t=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_type_size_t=no
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7219 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7220 if test $ac_cv_type_size_t = yes; then
7222 else
7224 cat >>confdefs.h <<_ACEOF
7225 #define size_t unsigned int
7226 _ACEOF
7230 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7231 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7232 if test "${ac_cv_type_uid_t+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7243 _ACEOF
7244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7245 $EGREP "uid_t" >/dev/null 2>&1; then
7246 ac_cv_type_uid_t=yes
7247 else
7248 ac_cv_type_uid_t=no
7250 rm -f conftest*
7253 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7254 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7255 if test $ac_cv_type_uid_t = no; then
7257 cat >>confdefs.h <<\_ACEOF
7258 #define uid_t int
7259 _ACEOF
7262 cat >>confdefs.h <<\_ACEOF
7263 #define gid_t int
7264 _ACEOF
7269 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7270 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7271 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7282 main ()
7284 static struct tm ac_aggr;
7285 if (ac_aggr.tm_gmtoff)
7286 return 0;
7288 return 0;
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_cv_member_struct_tm_tm_gmtoff=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 $ac_includes_default
7321 main ()
7323 static struct tm ac_aggr;
7324 if (sizeof ac_aggr.tm_gmtoff)
7325 return 0;
7327 return 0;
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (ac_try="$ac_compile"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
7347 ac_cv_member_struct_tm_tm_gmtoff=yes
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_cv_member_struct_tm_tm_gmtoff=no
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7361 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7362 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7364 cat >>confdefs.h <<_ACEOF
7365 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7366 _ACEOF
7372 # Look for some functions
7387 for ac_func in getpagesize kqueue statfs statvfs \
7388 clone kse_create rfork_thread thr_create sa_register \
7389 getcontext makecontext setcontext sigaltstack swapcontext
7391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7405 #define $ac_func innocuous_$ac_func
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func (); below.
7409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7410 <limits.h> exists even on freestanding compilers. */
7412 #ifdef __STDC__
7413 # include <limits.h>
7414 #else
7415 # include <assert.h>
7416 #endif
7418 #undef $ac_func
7420 /* Override any GCC internal prototype to avoid an error.
7421 Use char because int might match the return type of a GCC
7422 builtin and then its argument prototype would still apply. */
7423 #ifdef __cplusplus
7424 extern "C"
7425 #endif
7426 char $ac_func ();
7427 /* The GNU C library defines this for functions which it implements
7428 to always fail with ENOSYS. Some functions are actually named
7429 something starting with __ and the normal name is an alias. */
7430 #if defined __stub_$ac_func || defined __stub___$ac_func
7431 choke me
7432 #endif
7435 main ()
7437 return $ac_func ();
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_link") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest$ac_exeext &&
7459 $as_test_x conftest$ac_exeext; then
7460 eval "$as_ac_var=yes"
7461 else
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 eval "$as_ac_var=no"
7468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7469 conftest$ac_exeext conftest.$ac_ext
7471 ac_res=`eval echo '${'$as_ac_var'}'`
7472 { echo "$as_me:$LINENO: result: $ac_res" >&5
7473 echo "${ECHO_T}$ac_res" >&6; }
7474 if test `eval echo '${'$as_ac_var'}'` = yes; then
7475 cat >>confdefs.h <<_ACEOF
7476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7477 _ACEOF
7480 done
7485 for ac_header in stdlib.h unistd.h
7487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 ac_res=`eval echo '${'$as_ac_Header'}'`
7495 { echo "$as_me:$LINENO: result: $ac_res" >&5
7496 echo "${ECHO_T}$ac_res" >&6; }
7497 else
7498 # Is the header compilable?
7499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7508 #include <$ac_header>
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7512 case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515 esac
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7518 ac_status=$?
7519 grep -v '^ *+' conftest.er1 >conftest.err
7520 rm -f conftest.er1
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7527 ac_header_compiler=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_header_compiler=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7537 echo "${ECHO_T}$ac_header_compiler" >&6; }
7539 # Is the header present?
7540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 #include <$ac_header>
7549 _ACEOF
7550 if { (ac_try="$ac_cpp conftest.$ac_ext"
7551 case "(($ac_try" in
7552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553 *) ac_try_echo=$ac_try;;
7554 esac
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } >/dev/null && {
7563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7564 test ! -s conftest.err
7565 }; then
7566 ac_header_preproc=yes
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_header_preproc=no
7574 rm -f conftest.err conftest.$ac_ext
7575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7576 echo "${ECHO_T}$ac_header_preproc" >&6; }
7578 # So? What about this header?
7579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7580 yes:no: )
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7585 ac_header_preproc=yes
7587 no:yes:* )
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7602 esac
7603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 eval "$as_ac_Header=\$ac_header_preproc"
7610 ac_res=`eval echo '${'$as_ac_Header'}'`
7611 { echo "$as_me:$LINENO: result: $ac_res" >&5
7612 echo "${ECHO_T}$ac_res" >&6; }
7615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7616 cat >>confdefs.h <<_ACEOF
7617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7618 _ACEOF
7622 done
7625 for ac_func in getpagesize
7627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h. */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7641 #define $ac_func innocuous_$ac_func
7643 /* System header to define __stub macros and hopefully few prototypes,
7644 which can conflict with char $ac_func (); below.
7645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7646 <limits.h> exists even on freestanding compilers. */
7648 #ifdef __STDC__
7649 # include <limits.h>
7650 #else
7651 # include <assert.h>
7652 #endif
7654 #undef $ac_func
7656 /* Override any GCC internal prototype to avoid an error.
7657 Use char because int might match the return type of a GCC
7658 builtin and then its argument prototype would still apply. */
7659 #ifdef __cplusplus
7660 extern "C"
7661 #endif
7662 char $ac_func ();
7663 /* The GNU C library defines this for functions which it implements
7664 to always fail with ENOSYS. Some functions are actually named
7665 something starting with __ and the normal name is an alias. */
7666 #if defined __stub_$ac_func || defined __stub___$ac_func
7667 choke me
7668 #endif
7671 main ()
7673 return $ac_func ();
7675 return 0;
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7680 case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683 esac
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_link") 2>conftest.er1
7686 ac_status=$?
7687 grep -v '^ *+' conftest.er1 >conftest.err
7688 rm -f conftest.er1
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } && {
7692 test -z "$ac_c_werror_flag" ||
7693 test ! -s conftest.err
7694 } && test -s conftest$ac_exeext &&
7695 $as_test_x conftest$ac_exeext; then
7696 eval "$as_ac_var=yes"
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 eval "$as_ac_var=no"
7704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7705 conftest$ac_exeext conftest.$ac_ext
7707 ac_res=`eval echo '${'$as_ac_var'}'`
7708 { echo "$as_me:$LINENO: result: $ac_res" >&5
7709 echo "${ECHO_T}$ac_res" >&6; }
7710 if test `eval echo '${'$as_ac_var'}'` = yes; then
7711 cat >>confdefs.h <<_ACEOF
7712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7713 _ACEOF
7716 done
7718 { echo "$as_me:$LINENO: checking for working mmap" >&5
7719 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7720 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723 if test "$cross_compiling" = yes; then
7724 ac_cv_func_mmap_fixed_mapped=no
7725 else
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h. */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 $ac_includes_default
7733 /* malloc might have been renamed as rpl_malloc. */
7734 #undef malloc
7736 /* Thanks to Mike Haertel and Jim Avera for this test.
7737 Here is a matrix of mmap possibilities:
7738 mmap private not fixed
7739 mmap private fixed at somewhere currently unmapped
7740 mmap private fixed at somewhere already mapped
7741 mmap shared not fixed
7742 mmap shared fixed at somewhere currently unmapped
7743 mmap shared fixed at somewhere already mapped
7744 For private mappings, we should verify that changes cannot be read()
7745 back from the file, nor mmap's back from the file at a different
7746 address. (There have been systems where private was not correctly
7747 implemented like the infamous i386 svr4.0, and systems where the
7748 VM page cache was not coherent with the file system buffer cache
7749 like early versions of FreeBSD and possibly contemporary NetBSD.)
7750 For shared mappings, we should conversely verify that changes get
7751 propagated back to all the places they're supposed to be.
7753 Grep wants private fixed already mapped.
7754 The main things grep needs to know about mmap are:
7755 * does it exist and is it safe to write into the mmap'd area
7756 * how to use it (BSD variants) */
7758 #include <fcntl.h>
7759 #include <sys/mman.h>
7761 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7762 char *malloc ();
7763 #endif
7765 /* This mess was copied from the GNU getpagesize.h. */
7766 #ifndef HAVE_GETPAGESIZE
7767 /* Assume that all systems that can run configure have sys/param.h. */
7768 # ifndef HAVE_SYS_PARAM_H
7769 # define HAVE_SYS_PARAM_H 1
7770 # endif
7772 # ifdef _SC_PAGESIZE
7773 # define getpagesize() sysconf(_SC_PAGESIZE)
7774 # else /* no _SC_PAGESIZE */
7775 # ifdef HAVE_SYS_PARAM_H
7776 # include <sys/param.h>
7777 # ifdef EXEC_PAGESIZE
7778 # define getpagesize() EXEC_PAGESIZE
7779 # else /* no EXEC_PAGESIZE */
7780 # ifdef NBPG
7781 # define getpagesize() NBPG * CLSIZE
7782 # ifndef CLSIZE
7783 # define CLSIZE 1
7784 # endif /* no CLSIZE */
7785 # else /* no NBPG */
7786 # ifdef NBPC
7787 # define getpagesize() NBPC
7788 # else /* no NBPC */
7789 # ifdef PAGESIZE
7790 # define getpagesize() PAGESIZE
7791 # endif /* PAGESIZE */
7792 # endif /* no NBPC */
7793 # endif /* no NBPG */
7794 # endif /* no EXEC_PAGESIZE */
7795 # else /* no HAVE_SYS_PARAM_H */
7796 # define getpagesize() 8192 /* punt totally */
7797 # endif /* no HAVE_SYS_PARAM_H */
7798 # endif /* no _SC_PAGESIZE */
7800 #endif /* no HAVE_GETPAGESIZE */
7803 main ()
7805 char *data, *data2, *data3;
7806 int i, pagesize;
7807 int fd;
7809 pagesize = getpagesize ();
7811 /* First, make a file with some known garbage in it. */
7812 data = (char *) malloc (pagesize);
7813 if (!data)
7814 return 1;
7815 for (i = 0; i < pagesize; ++i)
7816 *(data + i) = rand ();
7817 umask (0);
7818 fd = creat ("conftest.mmap", 0600);
7819 if (fd < 0)
7820 return 1;
7821 if (write (fd, data, pagesize) != pagesize)
7822 return 1;
7823 close (fd);
7825 /* Next, try to mmap the file at a fixed address which already has
7826 something else allocated at it. If we can, also make sure that
7827 we see the same garbage. */
7828 fd = open ("conftest.mmap", O_RDWR);
7829 if (fd < 0)
7830 return 1;
7831 data2 = (char *) malloc (2 * pagesize);
7832 if (!data2)
7833 return 1;
7834 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7835 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7836 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7837 return 1;
7838 for (i = 0; i < pagesize; ++i)
7839 if (*(data + i) != *(data2 + i))
7840 return 1;
7842 /* Finally, make sure that changes to the mapped area do not
7843 percolate back to the file as seen by read(). (This is a bug on
7844 some variants of i386 svr4.0.) */
7845 for (i = 0; i < pagesize; ++i)
7846 *(data2 + i) = *(data2 + i) + 1;
7847 data3 = (char *) malloc (pagesize);
7848 if (!data3)
7849 return 1;
7850 if (read (fd, data3, pagesize) != pagesize)
7851 return 1;
7852 for (i = 0; i < pagesize; ++i)
7853 if (*(data + i) != *(data3 + i))
7854 return 1;
7855 close (fd);
7856 return 0;
7858 _ACEOF
7859 rm -f conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7870 { (case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_try") 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 ac_cv_func_mmap_fixed_mapped=yes
7880 else
7881 echo "$as_me: program exited with status $ac_status" >&5
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ( exit $ac_status )
7886 ac_cv_func_mmap_fixed_mapped=no
7888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7893 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7894 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7895 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_MMAP 1
7899 _ACEOF
7902 rm -f conftest.mmap
7907 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7908 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7909 aros_config_ldflags=""
7911 aros_shared_default=yes
7913 aros_shared_cflags="-fPIC"
7914 aros_shared_aflags=""
7915 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7916 aros_kernel_ldflags="-Wl,-rpath,./lib"
7918 aros_target_ar_flags="cr"
7919 aros_target_nm_flags="-C -ul"
7920 aros_target_strip_flags="--strip-unneeded -R.comment"
7922 aros_compiler_libs=
7923 aros_arch_libs=
7925 aros_target_genmap="-Wl,-Map -Xlinker"
7927 # Native flavour stuff
7928 aros_serial_debug="0"
7930 # Palm native flavour stuff
7931 aros_palm_debug_hack="0"
7933 # Unix flavour stuff
7934 aros_nesting_supervisor="0"
7936 # Collect-aros stuff: "-ius" to ignore undefined symbols
7937 ignore_undefined_symbols=""
7939 #-----------------------------------------------------------------------------
7942 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7943 # it switched on by default, and we use the host compiler, so it compiles AROS
7944 # code with this enabled resulting in link failures as we don't have support
7945 # for it.
7947 # We use two methods to disable it. For the host compiler (used to compile
7948 # some hosted modules), we test to see if the compiler supports stack
7949 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7950 # work on all platforms.
7952 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7953 # (this is done unconditionally, as it should have no effect on compilers
7954 # without the stack protection feature). This may be specific to the way that
7955 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7956 # strong enough to disable it in a generic way though, so we'll live with it
7957 # until another vendor ships GCC with it enabled in a different way, and deal
7958 # with it then.
7961 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7962 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7963 save_cflags="$CFLAGS"
7964 CFLAGS="$CFLAGS -fno-stack-protector"
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7973 main ()
7977 return 0;
7979 _ACEOF
7980 rm -f conftest.$ac_objext
7981 if { (ac_try="$ac_compile"
7982 case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_compile") 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest.$ac_objext; then
7997 use_no_stack_protector="yes"
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 use_no_stack_protector="no"
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8007 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8008 if test "x-$use_no_stack_protector" = "x-yes" ; then
8009 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8011 CFLAGS="$save_cflags"
8013 #-----------------------------------------------------------------------------
8015 # Disable pointer-signedness warnings if the compiler recognises the option
8016 # (this only works for the host compiler at the moment)
8018 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8019 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8020 save_cflags="$CFLAGS"
8021 CFLAGS="$CFLAGS -Wno-pointer-sign"
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8030 main ()
8034 return 0;
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (ac_try="$ac_compile"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8054 use_no_sign_warning="yes"
8055 else
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 use_no_sign_warning="no"
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8064 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8065 if test "x-$use_no_sign_warning" = "x-yes" ; then
8066 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8068 CFLAGS="$save_cflags"
8070 #-----------------------------------------------------------------------------
8072 { echo "$as_me:$LINENO: checking for type of build" >&5
8073 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8074 # Check whether --enable-build_type was given.
8075 if test "${enable_build_type+set}" = set; then
8076 enableval=$enable_build_type; build_type=$enableval
8077 else
8078 build_type="personal"
8082 if test "$build_type" = "nightly"; then
8083 build_type_string="NIGHTLY"
8084 elif test "$build_type" = "snapshot"; then
8085 build_type_string="SNAPSHOT"
8086 elif test "$build_type" = "milestone"; then
8087 build_type_string="MILESTONE"
8088 elif test "$build_type" = "release"; then
8089 build_type_string="RELEASE"
8090 else
8091 build_type_string="PERSONAL"
8092 build_type="personal"
8095 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8097 { echo "$as_me:$LINENO: result: $build_type" >&5
8098 echo "${ECHO_T}$build_type" >&6; }
8100 #-----------------------------------------------------------------------------
8101 all_debug_types="messages stack modules mungwall symbols"
8103 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8104 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8105 # Check whether --enable-debug was given.
8106 if test "${enable_debug+set}" = set; then
8107 enableval=$enable_debug; debug="$enableval"
8108 else
8109 debug=""
8113 if test "$debug" = "" -o "$debug" = "no"; then
8114 debug="none"
8115 elif test "$debug" = "yes"; then
8116 debug="all"
8119 if test "$debug" = "all" ; then
8120 debug="messages stack modules symbols"
8121 for d in $all_debug_types; do
8122 export aros_${d}_debug="1"
8123 done
8124 else
8125 for d in $all_debug_types; do
8126 export aros_${d}_debug="0"
8127 done
8130 if test "$debug" != "none"; then
8131 debug=`echo $debug | sed s/,/\ /g`
8132 for d in $debug; do
8133 found="0"
8134 for d2 in $all_debug_types; do
8135 if test "$d2" = "$d"; then
8136 found="1"
8137 break
8139 done
8140 if test "$found" = "0"; then
8141 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8142 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8143 { (exit 1); exit 1; }; }
8145 export aros_${d}_debug="1"
8146 done
8147 aros_debug="yes"
8149 { echo "$as_me:$LINENO: result: $debug" >&5
8150 echo "${ECHO_T}$debug" >&6; }
8152 if test "$aros_messages_debug" = "1"; then
8153 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8154 else
8155 aros_messages_debug=""
8157 if test "$aros_symbols_debug" = "1"; then
8158 aros_symbols_debug="-g"
8159 else
8160 aros_symbols_debug=""
8163 # These are the flags to pass when compiling debugged programs
8164 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8165 aros_debug_aflags=""
8166 aros_debug_ldflags="$aros_symbols_debug"
8168 aros_crosstools="no"
8170 #-----------------------------------------------------------------------------
8171 # Checking if we should build crosstools..
8172 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8173 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8174 # Check whether --enable-crosstools was given.
8175 if test "${enable_crosstools+set}" = set; then
8176 enableval=$enable_crosstools; crosstools="$enableval"
8177 else
8178 crosstools="no"
8181 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8182 { echo "$as_me:$LINENO: result: yes" >&5
8183 echo "${ECHO_T}yes" >&6; }
8184 aros_crosstools="yes"
8185 else
8186 { echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6; }
8190 #-----------------------------------------------------------------------------
8191 # Checking for distcc and ccache.
8193 # Always apply the transforms in this particular order. Basically you should
8194 # always run 'ccache distcc compiler' in that order for the best performance.
8196 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8197 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8198 # Check whether --enable-distcc was given.
8199 if test "${enable_distcc+set}" = set; then
8200 enableval=$enable_distcc; distcc="$enableval"
8201 else
8202 distcc="no"
8205 if test "$distcc" != "" -a "$distcc" != "no"; then
8206 # AC_CHECK_PROG will print out the result in this case
8207 # Extract the first word of "distcc", so it can be a program name with args.
8208 set dummy distcc; ac_word=$2
8209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8211 if test "${ac_cv_path_DISTCC+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 case $DISTCC in
8215 [\\/]* | ?:[\\/]*)
8216 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8226 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8230 done
8231 done
8232 IFS=$as_save_IFS
8234 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8236 esac
8238 DISTCC=$ac_cv_path_DISTCC
8239 if test -n "$DISTCC"; then
8240 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8241 echo "${ECHO_T}$DISTCC" >&6; }
8242 else
8243 { echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6; }
8248 else
8249 { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8253 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8254 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8255 # Check whether --enable-ccache was given.
8256 if test "${enable_ccache+set}" = set; then
8257 enableval=$enable_ccache; ccache="$enableval"
8258 else
8259 ccache="no"
8262 if test "$ccache" != "" -a "$ccache" != "no"; then
8263 # AC_CHECK_PROG will print out the result in this case
8264 # Extract the first word of "ccache", so it can be a program name with args.
8265 set dummy ccache; ac_word=$2
8266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8268 if test "${ac_cv_prog_CCACHE+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271 if test -n "$CCACHE"; then
8272 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_prog_CCACHE="ccache"
8282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8285 done
8286 done
8287 IFS=$as_save_IFS
8291 CCACHE=$ac_cv_prog_CCACHE
8292 if test -n "$CCACHE"; then
8293 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8294 echo "${ECHO_T}$CCACHE" >&6; }
8295 else
8296 { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8301 else
8302 { echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6; }
8306 #-----------------------------------------------------------------------------
8307 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8308 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8310 # Check whether --with-optimization was given.
8311 if test "${with_optimization+set}" = set; then
8312 withval=$with_optimization; optimization="$withval"
8313 else
8314 optimization="unknown"
8317 if test "$optimization" = "unknown"; then
8318 if test "$debug" != "none"; then
8319 optimization="-O0"
8320 else
8321 optimization="-O2"
8324 aros_config_cflags="$aros_config_cflags $optimization"
8325 { echo "$as_me:$LINENO: result: $optimization" >&5
8326 echo "${ECHO_T}$optimization" >&6; }
8328 #-----------------------------------------------------------------------------
8329 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8330 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8331 # Check whether --enable-target_variant was given.
8332 if test "${enable_target_variant+set}" = set; then
8333 enableval=$enable_target_variant; target_variant=$enableval
8334 else
8335 target_variant="none"
8338 if test "$target_variant" = "none"; then
8339 aros_target_variant=""
8340 aros_target_suffix=""
8341 else
8342 aros_target_variant="$target_variant"
8343 aros_target_suffix="-$target_variant"
8345 { echo "$as_me:$LINENO: result: $enableval" >&5
8346 echo "${ECHO_T}$enableval" >&6; }
8348 target_bootloader="none"
8350 #-----------------------------------------------------------------------------
8351 # This is the target configuration switch.
8352 case "$target_os" in
8353 linux*)
8354 aros_target_arch="linux"
8355 case "$target_cpu" in
8356 *m68k*)
8357 aros_target_cpu="m68k"
8358 aros_object_format="m68kelf"
8359 aros_flavour="emulcompat"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8361 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8362 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8363 gcc_target_cpu="mc68000"
8365 *i?86*)
8366 aros_target_cpu="i386"
8367 aros_object_format="elf_i386"
8368 aros_flavour="emulation"
8369 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8370 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8371 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8372 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8373 aros_config_ldflags="-m32 -march=i486"
8374 aros_kernel_ldflags="-melf_i386"
8375 aros_default_wbdepth=8
8376 gcc_target_cpu="i386"
8378 *x86_64*)
8379 aros_target_cpu="x86_64"
8380 aros_object_format="elf_x86_64"
8381 aros_flavour="emulation"
8382 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8383 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8384 aros_default_wbdepth=8
8385 gcc_target_cpu="x86_64"
8387 *powerpc*)
8388 aros_target_cpu="ppc"
8389 aros_object_format="elf32ppc"
8390 aros_flavour="emulation"
8391 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8392 aros_default_wbdepth=8
8393 gcc_target_cpu="ppc"
8395 # TODO
8396 # Same as powerpc, but I need this for the nightly build to work again.
8397 # Actually, the nightly should be made working with powerpc target.
8398 # That just was too much work for the moment, another week or two.
8399 *ppc*)
8400 aros_target_cpu="ppc"
8401 aros_object_format="elf32ppc"
8402 aros_flavour="emulation"
8403 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8404 aros_default_wbdepth=8
8405 gcc_target_cpu="ppc"
8407 *arm*)
8408 aros_target_cpu="arm"
8409 aros_object_format="armelf_linux_eabi"
8410 aros_flavour="emulation"
8411 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8412 gcc_target_cpu="arm"
8413 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8414 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8417 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8418 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8419 { (exit 1); exit 1; }; }
8421 esac
8425 aros_target_arch="pc"
8426 aros_shared_default="no"
8427 target_bootloader="grub2"
8428 case "$target_cpu" in
8429 *i?86*)
8430 aros_target_cpu="i386"
8433 if test "$aros_object_format" = "" ; then
8434 aros_object_format="elf_i386"
8436 aros_flavour="standalone"
8437 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8438 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8439 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8440 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8441 aros_config_ldflags="-m32 -march=i486"
8442 aros_kernel_ldflags="-melf_i386"
8443 aros_default_wbwidth=640
8444 aros_default_wbheight=480
8445 gcc_target_cpu="i386"
8447 *x86_64*)
8448 aros_target_cpu="x86_64"
8449 aros_serial_debug=1
8450 if test "$aros_object_format" = "" ; then
8451 aros_object_format="elf_x86_64"
8453 aros_flavour="standalone"
8454 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8455 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8456 aros_kernel_ldflags=""
8457 aros_default_wbwidth=640
8458 aros_default_wbheight=480
8459 gcc_target_cpu="x86_64"
8462 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8463 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8464 { (exit 1); exit 1; }; }
8466 esac
8469 prep)
8470 aros_target_arch="prep"
8471 aros_shared_default="no"
8472 aros_target_cpu="ppc"
8473 aros_object_format="elf32ppc"
8474 aros_flavour="ppcnative"
8475 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8476 aros_kernel_ldflags=""
8477 aros_default_wbwidth=640
8478 aros_default_wbheight=480
8479 gcc_target_cpu="ppc"
8482 freebsd*)
8483 aros_target_arch="freebsd"
8484 aros_target_cpu="i386"
8485 aros_flavour="emulation"
8486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8487 gcc_target_cpu="i386"
8489 aros_target_strip_flags="-x"
8492 darwin*)
8493 aros_target_arch="darwin"
8494 aros_flavour="emulation"
8495 need_dlopen="no"
8496 case "$target_cpu" in
8497 *i?86*)
8498 aros_target_cpu="i386"
8499 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8500 gcc_target_cpu="i386"
8501 aros_object_format="elf_i386"
8502 aros_target_strip_flags="-x"
8505 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8506 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8507 { (exit 1); exit 1; }; }
8509 esac
8512 dragonfly*)
8513 aros_target_arch="dragonfly"
8514 aros_flavour="emulation"
8515 case "$target_cpu" in
8516 *i?86*)
8517 aros_target_cpu="i386"
8518 aros_object_format="elf_i386"
8519 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8521 *x86_64*)
8522 aros_target_cpu="x86_64"
8523 aros_object_format="elf_x86_64"
8524 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8527 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8528 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8529 { (exit 1); exit 1; }; }
8531 esac
8534 netbsd*)
8535 aros_target_arch="netbsd"
8536 case "$target_cpu" in
8537 *m68k*)
8538 aros_target_cpu="m68k"
8539 aros_object_format="m68kelf"
8540 aros_flavour="emulcompat"
8541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8542 gcc_target_cpu="mc68000"
8544 *i?86*)
8545 aros_target_cpu="i386"
8546 aros_object_format="elf_i386"
8547 aros_flavour="emulation"
8548 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8549 aros_default_wbdepth=8
8550 gcc_target_cpu="i386"
8553 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8554 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8555 { (exit 1); exit 1; }; }
8557 esac
8558 aros_target_genmap="-Wl,-M -Xlinker >"
8559 aros_flavour="emulation"
8560 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8563 openbsd*)
8564 aros_target_arch="openbsd"
8565 case "$target_cpu" in
8566 *i?86*)
8567 aros_target_cpu="i386"
8568 aros_object_format="elf_i386"
8569 aros_flavour="emulation"
8570 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8571 gcc_target_cpu="i386"
8574 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8575 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8576 { (exit 1); exit 1; }; }
8578 esac
8579 aros_target_genmap="-Wl,-M -Xlinker >"
8580 aros_target_nm_flags="-u"
8581 aros_flavour="emulation"
8584 solaris*)
8585 aros_target_arch="solaris"
8586 case "$target_cpu" in
8587 *i?86*)
8588 aros_target_cpu="i386"
8589 aros_object_format="elf_i386"
8590 aros_flavour="emulation"
8591 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8592 aros_default_wbdepth=8
8593 gcc_target_cpu="i386"
8595 *sparc*)
8596 aros_target_cpu="sparc"
8597 aros_object_format="elf_sparc"
8598 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8599 gcc_target_cpu="sparc"
8602 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8603 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8604 { (exit 1); exit 1; }; }
8606 esac
8607 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8608 aros_flavour="emulation"
8611 morphos*)
8612 aros_target_arch="morphos"
8613 aros_shared_default="no"
8614 aros_target_cpu="ppc"
8615 aros_object_format="elf_ppc"
8616 aros_flavour="nativecompat"
8617 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8618 gcc_target_cpu="ppc"
8621 sam440)
8622 aros_target_arch="sam440"
8623 aros_shared_default="no"
8624 aros_target_cpu="ppc"
8625 aros_object_format="elf32ppc"
8626 aros_flavour="ppcnative"
8627 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8628 aros_kernel_ldflags=""
8629 aros_default_wbwidth=1024
8630 aros_default_wbheight=768
8631 aros_default_wbdepth=24
8632 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8633 gcc_target_cpu="powerpc"
8636 efika)
8637 aros_target_arch="efika"
8638 aros_shared_default="no"
8639 aros_target_cpu="arm"
8640 aros_object_format="armelf_linux_eabi"
8641 aros_flavour="standalone"
8642 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8643 aros_kernel_ldflags=""
8644 aros_default_wbwidth=1024
8645 aros_default_wbheight=600
8646 aros_arch_libs="-laeabi"
8647 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8648 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8651 chrp)
8652 aros_target_arch="chrp"
8653 aros_shared_default="no"
8654 aros_target_cpu="ppc"
8655 aros_object_format="elf32ppc"
8656 aros_flavour="ppcnative"
8657 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8658 aros_kernel_ldflags=""
8659 aros_default_wbwidth=640
8660 aros_default_wbheight=480
8661 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8662 gcc_target_cpu="powerpc"
8663 case "$aros_target_variant" in
8664 efika)
8665 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8667 esac
8670 amiga*)
8671 aros_target_arch="amiga"
8672 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8673 aros_shared_default="no"
8675 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8677 case "$target_cpu" in
8678 *m68k*)
8679 aros_target_cpu="m68k"
8680 aros_object_format="m68kelf"
8681 aros_flavour="nativecompat"
8682 gcc_target_cpu="mc68000"
8684 *ppc*)
8685 aros_cpu="ppc"
8686 aros_flavour="native"
8687 gcc_target_cpu="ppc"
8690 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8691 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8692 { (exit 1); exit 1; }; }
8694 esac
8697 mingw*)
8698 aros_target_arch="mingw32"
8699 aros_shared_default="no"
8700 aros_flavour="emulation"
8701 aros_shared_cflags=""
8702 need_dlopen="no"
8703 rescomp="windres"
8704 case "$target_cpu" in
8705 *i?86*)
8706 aros_target_cpu="i386"
8707 aros_object_format="elf_i386"
8708 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8709 aros_default_wbdepth=8
8710 gcc_target_cpu="i386"
8711 aros_target_cc="i386-aros-gcc"
8712 aros_target_ld="i386-aros-ld"
8713 aros_target_as="i386-aros-as"
8714 aros_target_ar="i386-aros-ar"
8715 aros_target_ranlib="i386-aros-ranlib"
8716 aros_target_nm="i386-aros-nm"
8717 aros_target_strip="i386-aros-strip"
8718 aros_target_objcopy="i386-aros-objcopy"
8719 aros_target_objdump="i386-aros-objdump"
8720 target_tool_prefix="i386-mingw32-"
8722 *x86_64*)
8723 aros_target_cpu="x86_64"
8724 aros_object_format="elf_x86_64"
8725 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8726 aros_default_wbdepth=8
8727 gcc_target_cpu="x86_64"
8728 aros_target_cc="x86_64-aros-gcc"
8729 aros_target_ld="x86_64-aros-ld"
8730 aros_target_as="x86_64-aros-as"
8731 aros_target_ar="x86_64-aros-ar"
8732 aros_target_ranlib="x86_64-aros-ranlib"
8733 aros_target_nm="x86_64-aros-nm"
8734 aros_target_strip="x86_64-aros-strip"
8735 aros_target_objcopy="x86_64-aros-objcopy"
8736 aros_target_objdump="x86_64-aros-objdump"
8737 target_tool_prefix="x86_64-w64-mingw32-"
8739 *arm*)
8740 aros_target_cpu="arm"
8741 aros_object_format="armelf_linux_eabi"
8742 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8743 aros_default_wbdepth=8
8744 gcc_target_cpu="arm"
8745 aros_target_cc="arm-elf-gcc"
8746 aros_target_ld="arm-elf-ld"
8747 aros_target_as="arm-elf-as"
8748 aros_target_ar="arm-elf-ar"
8749 aros_target_ranlib="arm-elf-ranlib"
8750 aros_target_nm="arm-elf-nm"
8751 aros_target_strip="arm-elf-strip"
8752 aros_target_objcopy="arm-elf-objcopy"
8753 aros_target_objdump="arm-elf-objdump"
8754 target_tool_prefix="arm-mingw32ce-"
8755 aros_default_wbwidth=160
8756 aros_default_wbheight=160
8759 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8760 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8761 { (exit 1); exit 1; }; }
8763 esac
8764 if test $host_os = "cygwin"; then
8765 aros_kernel_cflags="-mno-cygwin"
8768 pp*)
8769 aros_target_arch="pp"
8770 aros_shared_default="no"
8771 case "$target_cpu" in
8772 *m68k*)
8773 aros_target_cpu="m68k"
8774 aros_object_format="m68kelf"
8775 aros_flavour="palmnative"
8776 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8777 aros_default_wbwidth=160
8778 aros_default_wbheight=160
8779 aros_default_wbdepth=1
8780 aros_target_ar_flags="cru"
8781 aros_compiler_libs="-lgcc1"
8782 aros_shared_default=no
8783 aros_shared_cflags="-fpic"
8784 aros_shared_aflags=""
8785 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8786 aros_kernel_ldflags="-Wl,-rpath,./lib"
8787 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8788 aros_debug_aflags=""
8789 aros_debug_ldflags="$aros_symbols_debug"
8790 aros_mungwall_debug="0"
8791 aros_modules_debug="0"
8792 gcc_target_cpu="mc68000"
8793 ignore_undefined_symbols="-ius"
8796 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8797 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8798 { (exit 1); exit 1; }; }
8800 esac
8803 mac*)
8804 aros_target_arch="mac"
8805 aros_shared_default="no"
8806 case "$target_cpu" in
8807 *m68k*)
8808 aros_target_cpu="m68k"
8809 aros_object_format="m68kelf"
8810 aros_flavour="mac68knative"
8811 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8812 aros_default_wbwidth=512
8813 aros_default_wbheight=384
8814 aros_default_wbdepth=8
8815 aros_target_ar_flags="cru"
8816 aros_compiler_libs="-lgcc1"
8817 aros_shared_default=no
8818 aros_shared_cflags="-fpic"
8819 aros_shared_aflags=""
8820 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8821 aros_kernel_ldflags="-Wl,-rpath,./lib"
8822 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8823 aros_debug_aflags=""
8824 aros_debug_ldflags="$aros_symbols_debug"
8825 aros_mungwall_debug="0"
8826 aros_modules_debug="0"
8827 gcc_target_cpu="mc68000"
8828 ignore_undefined_symbols="-ius"
8831 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8832 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8833 { (exit 1); exit 1; }; }
8835 esac
8839 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8840 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8841 { (exit 1); exit 1; }; }
8843 esac
8845 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8846 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8848 # Check whether --with-portssources was given.
8849 if test "${with_portssources+set}" = set; then
8850 withval=$with_portssources; with_portssrcdir=$withval
8851 else
8852 with_portssrcdir="default"
8855 if test "$with_portssrcdir" = "default"; then
8856 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8857 else
8858 AROS_PORTSSRCDIR="$with_portssrcdir"
8860 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8861 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8863 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8864 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8866 # Check whether --with-bootloader was given.
8867 if test "${with_bootloader+set}" = set; then
8868 withval=$with_bootloader; target_bootloader=$withval
8869 else
8870 target_bootloader=$target_bootloader
8873 if test "$target_bootloader" = "none"; then
8874 aros_target_bootloader=""
8875 else
8876 aros_target_bootloader="$target_bootloader"
8878 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8879 echo "${ECHO_T}$target_bootloader" >&6; }
8881 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
8882 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
8884 # Check whether --with-iconset was given.
8885 if test "${with_iconset+set}" = set; then
8886 withval=$with_iconset; target_iconset=$withval
8887 else
8888 target_iconset="default"
8891 if test "$target_iconset" = "default"; then
8892 aros_target_iconset="Gorilla"
8893 target_iconset="default (Gorilla)"
8894 else
8895 aros_target_iconset="$target_iconset"
8897 { echo "$as_me:$LINENO: result: $target_iconset" >&5
8898 echo "${ECHO_T}$target_iconset" >&6; }
8900 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
8901 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
8903 # Check whether --with-theme was given.
8904 if test "${with_theme+set}" = set; then
8905 withval=$with_theme; target_guitheme=$withval
8906 else
8907 target_guitheme="default"
8910 if test "$target_guitheme" = "default"; then
8911 aros_target_guitheme="Ice"
8912 else
8913 aros_target_guitheme="$target_guitheme"
8915 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
8916 echo "${ECHO_T}$aros_target_guitheme" >&6; }
8918 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8919 # for target code)
8920 cross_compiling=no
8921 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8922 cross_compiling=yes
8924 if test "$aros_host_cpu" == "x86_64" ; then
8925 if test "$aros_target_cpu" == "i386" ; then
8926 if test "$aros_target_arch" != "mingw32"; then
8927 cross_compiling=no
8931 if test "$aros_host_arch" == "darwin" ; then
8932 cross_compiling=yes
8935 # Set prefix for target compiler etc. if we're cross-compiling
8936 # (should possibly be earlier but needs to be after AC_PROG_CC)
8937 if test "$cross_compiling" = "yes" ; then
8938 if test "$target_tool_prefix" = ""; then
8939 target_tool_prefix=${target_cpu}-elf-
8941 CC=${target_tool_prefix}gcc
8944 #-----------------------------------------------------------------------------
8946 # Disable pointer-signedness warnings if the compiler recognises the option
8948 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8949 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8950 save_cflags="$CFLAGS"
8951 CFLAGS="$CFLAGS -Wno-pointer-sign"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8960 main ()
8964 return 0;
8966 _ACEOF
8967 rm -f conftest.$ac_objext
8968 if { (ac_try="$ac_compile"
8969 case "(($ac_try" in
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8972 esac
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_compile") 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } && {
8981 test -z "$ac_c_werror_flag" ||
8982 test ! -s conftest.err
8983 } && test -s conftest.$ac_objext; then
8984 use_no_sign_warning="yes"
8985 else
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8989 use_no_sign_warning="no"
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8994 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8995 if test "x-$use_no_sign_warning" = "x-yes" ; then
8996 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8998 CFLAGS="$save_cflags"
9000 #-----------------------------------------------------------------------------
9002 # Find all the tools we need to compile. This could be cross-compiling
9003 # though! If that is the case we use the GNU form of the target and
9004 # simply add this to the front of the binary name. This is rather simple,
9005 # but it should work under most circumstances.
9007 # The default tools are to use the same as the host, but only if the
9008 # host and target CPU are the same. With GCC this is normally enough.
9011 aros_cc_pre=""
9012 aros_shared_ld="$aros_host_ld"
9014 aros_target_mkdep="$aros_host_mkdep"
9015 aros_target_incl_def="$aros_host_incl"
9017 aros_kernel_cc="$CC"
9019 # The default tools executables to be linked to.
9020 if test "$aros_target_cc" != ""; then
9021 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9022 set dummy $aros_target_cc; ac_word=$2
9023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9025 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 case $aros_target_cc in
9029 [\\/]* | ?:[\\/]*)
9030 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 for as_dir in $PATH
9036 IFS=$as_save_IFS
9037 test -z "$as_dir" && as_dir=.
9038 for ac_exec_ext in '' $ac_executable_extensions; do
9039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9040 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 break 2
9044 done
9045 done
9046 IFS=$as_save_IFS
9049 esac
9051 aros_target_cc=$ac_cv_path_aros_target_cc
9052 if test -n "$aros_target_cc"; then
9053 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9054 echo "${ECHO_T}$aros_target_cc" >&6; }
9055 else
9056 { echo "$as_me:$LINENO: result: no" >&5
9057 echo "${ECHO_T}no" >&6; }
9061 if test "$aros_target_cc" = ""; then
9062 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9063 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9064 { (exit 1); exit 1; }; }
9067 if test "$aros_target_ld" != ""; then
9068 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9069 set dummy $aros_target_ld; ac_word=$2
9070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9072 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075 case $aros_target_ld in
9076 [\\/]* | ?:[\\/]*)
9077 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9091 done
9092 done
9093 IFS=$as_save_IFS
9096 esac
9098 aros_target_ld=$ac_cv_path_aros_target_ld
9099 if test -n "$aros_target_ld"; then
9100 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9101 echo "${ECHO_T}$aros_target_ld" >&6; }
9102 else
9103 { echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6; }
9108 if test "$aros_target_ld" = ""; then
9109 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9110 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9111 { (exit 1); exit 1; }; }
9115 if test "$crosstools" != "yes"; then
9117 if test "$aros_target_as" = ""; then
9118 if test "$cross_compiling" = "yes" ; then
9119 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9120 set dummy ${target_tool_prefix}as; ac_word=$2
9121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9123 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126 case $aros_target_as_ln in
9127 [\\/]* | ?:[\\/]*)
9128 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9142 done
9143 done
9144 IFS=$as_save_IFS
9147 esac
9149 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9150 if test -n "$aros_target_as_ln"; then
9151 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9152 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9153 else
9154 { echo "$as_me:$LINENO: result: no" >&5
9155 echo "${ECHO_T}no" >&6; }
9159 else
9160 if test "$GCC" = "yes"; then
9161 aros_gcc_as=`$CC -print-prog-name=as`
9162 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9163 set dummy `basename $aros_gcc_as`; ac_word=$2
9164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9166 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169 case $aros_target_as_ln in
9170 [\\/]* | ?:[\\/]*)
9171 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 for as_dir in `dirname $aros_gcc_as`
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9181 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9185 done
9186 done
9187 IFS=$as_save_IFS
9190 esac
9192 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9193 if test -n "$aros_target_as_ln"; then
9194 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9195 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9196 else
9197 { echo "$as_me:$LINENO: result: no" >&5
9198 echo "${ECHO_T}no" >&6; }
9203 if test "$aros_target_as_ln" = ""; then
9204 # Extract the first word of "as", so it can be a program name with args.
9205 set dummy as; ac_word=$2
9206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9208 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 case $aros_target_as_ln in
9212 [\\/]* | ?:[\\/]*)
9213 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9232 esac
9234 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9235 if test -n "$aros_target_as_ln"; then
9236 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9237 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9238 else
9239 { echo "$as_me:$LINENO: result: no" >&5
9240 echo "${ECHO_T}no" >&6; }
9246 else
9247 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9248 set dummy $aros_target_as; ac_word=$2
9249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9251 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254 case $aros_target_as_ln in
9255 [\\/]* | ?:[\\/]*)
9256 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in $PATH
9262 IFS=$as_save_IFS
9263 test -z "$as_dir" && as_dir=.
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9266 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 break 2
9270 done
9271 done
9272 IFS=$as_save_IFS
9275 esac
9277 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9278 if test -n "$aros_target_as_ln"; then
9279 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9280 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9281 else
9282 { echo "$as_me:$LINENO: result: no" >&5
9283 echo "${ECHO_T}no" >&6; }
9289 if test "$aros_target_as_ln" = ""; then
9290 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9291 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9292 { (exit 1); exit 1; }; }
9295 if test "$aros_kernel_ld" = ""; then
9296 if test "$cross_compiling" = "yes" ; then
9297 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9298 set dummy ${target_tool_prefix}ld; ac_word=$2
9299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9301 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 case $aros_kernel_ld in
9305 [\\/]* | ?:[\\/]*)
9306 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 for as_dir in $PATH
9312 IFS=$as_save_IFS
9313 test -z "$as_dir" && as_dir=.
9314 for ac_exec_ext in '' $ac_executable_extensions; do
9315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9316 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 break 2
9320 done
9321 done
9322 IFS=$as_save_IFS
9325 esac
9327 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9328 if test -n "$aros_kernel_ld"; then
9329 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9330 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9331 else
9332 { echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6; }
9337 else
9338 if test "$GCC" = "yes"; then
9339 aros_gcc_ld=`$CC -print-prog-name=ld`
9340 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9341 set dummy `basename $aros_gcc_ld`; ac_word=$2
9342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9344 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 case $aros_kernel_ld in
9348 [\\/]* | ?:[\\/]*)
9349 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353 for as_dir in `dirname $aros_gcc_ld`
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9359 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9363 done
9364 done
9365 IFS=$as_save_IFS
9368 esac
9370 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9371 if test -n "$aros_kernel_ld"; then
9372 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9373 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9374 else
9375 { echo "$as_me:$LINENO: result: no" >&5
9376 echo "${ECHO_T}no" >&6; }
9381 if test "$aros_kernel_ld" = ""; then
9382 # Extract the first word of "ld", so it can be a program name with args.
9383 set dummy ld; ac_word=$2
9384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9386 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 case $aros_kernel_ld in
9390 [\\/]* | ?:[\\/]*)
9391 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9397 IFS=$as_save_IFS
9398 test -z "$as_dir" && as_dir=.
9399 for ac_exec_ext in '' $ac_executable_extensions; do
9400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9401 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9403 break 2
9405 done
9406 done
9407 IFS=$as_save_IFS
9410 esac
9412 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9413 if test -n "$aros_kernel_ld"; then
9414 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9415 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9416 else
9417 { echo "$as_me:$LINENO: result: no" >&5
9418 echo "${ECHO_T}no" >&6; }
9424 else
9425 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9426 set dummy $aros_kernel_ld; ac_word=$2
9427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9429 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 case $aros_kernel_ld in
9433 [\\/]* | ?:[\\/]*)
9434 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9448 done
9449 done
9450 IFS=$as_save_IFS
9453 esac
9455 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9456 if test -n "$aros_kernel_ld"; then
9457 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9458 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9459 else
9460 { echo "$as_me:$LINENO: result: no" >&5
9461 echo "${ECHO_T}no" >&6; }
9467 if test "$aros_kernel_ld" = ""; then
9468 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9469 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9470 { (exit 1); exit 1; }; }
9473 if test "$aros_target_ar" = ""; then
9474 if test "$cross_compiling" = "yes" ; then
9475 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9476 set dummy ${target_tool_prefix}ar; ac_word=$2
9477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9479 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 case $aros_target_ar_ln in
9483 [\\/]* | ?:[\\/]*)
9484 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9494 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9498 done
9499 done
9500 IFS=$as_save_IFS
9503 esac
9505 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9506 if test -n "$aros_target_ar_ln"; then
9507 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9508 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9509 else
9510 { echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6; }
9515 else
9516 if test "$GCC" = "yes"; then
9517 aros_gcc_ar=`$CC -print-prog-name=ar`
9518 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9519 set dummy `basename $aros_gcc_ar`; ac_word=$2
9520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9522 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525 case $aros_target_ar_ln in
9526 [\\/]* | ?:[\\/]*)
9527 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in `dirname $aros_gcc_ar`
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9541 done
9542 done
9543 IFS=$as_save_IFS
9546 esac
9548 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9549 if test -n "$aros_target_ar_ln"; then
9550 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9551 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9552 else
9553 { echo "$as_me:$LINENO: result: no" >&5
9554 echo "${ECHO_T}no" >&6; }
9559 if test "$aros_target_ar_ln" = ""; then
9560 # Extract the first word of "ar", so it can be a program name with args.
9561 set dummy ar; ac_word=$2
9562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9564 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 case $aros_target_ar_ln in
9568 [\\/]* | ?:[\\/]*)
9569 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in $PATH
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9579 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9583 done
9584 done
9585 IFS=$as_save_IFS
9588 esac
9590 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9591 if test -n "$aros_target_ar_ln"; then
9592 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9593 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9594 else
9595 { echo "$as_me:$LINENO: result: no" >&5
9596 echo "${ECHO_T}no" >&6; }
9602 else
9603 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9604 set dummy $aros_target_ar; ac_word=$2
9605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9607 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 case $aros_target_ar_ln in
9611 [\\/]* | ?:[\\/]*)
9612 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616 for as_dir in $PATH
9618 IFS=$as_save_IFS
9619 test -z "$as_dir" && as_dir=.
9620 for ac_exec_ext in '' $ac_executable_extensions; do
9621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9622 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 break 2
9626 done
9627 done
9628 IFS=$as_save_IFS
9631 esac
9633 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9634 if test -n "$aros_target_ar_ln"; then
9635 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9636 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9637 else
9638 { echo "$as_me:$LINENO: result: no" >&5
9639 echo "${ECHO_T}no" >&6; }
9645 if test "$aros_target_ar_ln" = ""; then
9646 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9647 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9648 { (exit 1); exit 1; }; }
9651 if test "$aros_target_nm" = ""; then
9652 if test "$cross_compiling" = "yes" ; then
9653 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9654 set dummy ${target_tool_prefix}nm; ac_word=$2
9655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9657 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 case $aros_target_nm_ln in
9661 [\\/]* | ?:[\\/]*)
9662 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 for as_dir in $PATH
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9672 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 break 2
9676 done
9677 done
9678 IFS=$as_save_IFS
9681 esac
9683 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9684 if test -n "$aros_target_nm_ln"; then
9685 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9686 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9687 else
9688 { echo "$as_me:$LINENO: result: no" >&5
9689 echo "${ECHO_T}no" >&6; }
9693 else
9694 if test "$GCC" = "yes"; then
9695 aros_gcc_nm=`$CC -print-prog-name=nm`
9696 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9697 set dummy `basename $aros_gcc_nm`; ac_word=$2
9698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9700 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 case $aros_target_nm_ln in
9704 [\\/]* | ?:[\\/]*)
9705 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 for as_dir in `dirname $aros_gcc_nm`
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9719 done
9720 done
9721 IFS=$as_save_IFS
9724 esac
9726 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9727 if test -n "$aros_target_nm_ln"; then
9728 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9729 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9730 else
9731 { echo "$as_me:$LINENO: result: no" >&5
9732 echo "${ECHO_T}no" >&6; }
9737 if test "$aros_target_nm_ln" = ""; then
9738 # Extract the first word of "nm", so it can be a program name with args.
9739 set dummy nm; ac_word=$2
9740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9742 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 case $aros_target_nm_ln in
9746 [\\/]* | ?:[\\/]*)
9747 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751 for as_dir in $PATH
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9757 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9761 done
9762 done
9763 IFS=$as_save_IFS
9766 esac
9768 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9769 if test -n "$aros_target_nm_ln"; then
9770 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9771 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9772 else
9773 { echo "$as_me:$LINENO: result: no" >&5
9774 echo "${ECHO_T}no" >&6; }
9780 else
9781 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9782 set dummy $aros_target_nm; ac_word=$2
9783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9785 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 case $aros_target_nm_ln in
9789 [\\/]* | ?:[\\/]*)
9790 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9796 IFS=$as_save_IFS
9797 test -z "$as_dir" && as_dir=.
9798 for ac_exec_ext in '' $ac_executable_extensions; do
9799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9800 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 break 2
9804 done
9805 done
9806 IFS=$as_save_IFS
9809 esac
9811 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9812 if test -n "$aros_target_nm_ln"; then
9813 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9814 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9815 else
9816 { echo "$as_me:$LINENO: result: no" >&5
9817 echo "${ECHO_T}no" >&6; }
9823 if test "$aros_target_nm_ln" = ""; then
9824 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9825 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9826 { (exit 1); exit 1; }; }
9829 if test "$aros_target_objcopy" = ""; then
9830 if test "$cross_compiling" = "yes" ; then
9831 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9832 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9835 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 case $aros_target_objcopy_ln in
9839 [\\/]* | ?:[\\/]*)
9840 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9859 esac
9861 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9862 if test -n "$aros_target_objcopy_ln"; then
9863 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9864 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9865 else
9866 { echo "$as_me:$LINENO: result: no" >&5
9867 echo "${ECHO_T}no" >&6; }
9871 else
9872 if test "$GCC" = "yes"; then
9873 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9874 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9875 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9878 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881 case $aros_target_objcopy_ln in
9882 [\\/]* | ?:[\\/]*)
9883 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in `dirname $aros_gcc_objcopy`
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9902 esac
9904 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9905 if test -n "$aros_target_objcopy_ln"; then
9906 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9907 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9908 else
9909 { echo "$as_me:$LINENO: result: no" >&5
9910 echo "${ECHO_T}no" >&6; }
9915 if test "$aros_target_objcopy_ln" = ""; then
9916 # Extract the first word of "objcopy", so it can be a program name with args.
9917 set dummy objcopy; ac_word=$2
9918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9920 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 case $aros_target_objcopy_ln in
9924 [\\/]* | ?:[\\/]*)
9925 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 break 2
9939 done
9940 done
9941 IFS=$as_save_IFS
9944 esac
9946 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9947 if test -n "$aros_target_objcopy_ln"; then
9948 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9949 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9950 else
9951 { echo "$as_me:$LINENO: result: no" >&5
9952 echo "${ECHO_T}no" >&6; }
9958 else
9959 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9960 set dummy $aros_target_objcopy; ac_word=$2
9961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9963 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966 case $aros_target_objcopy_ln in
9967 [\\/]* | ?:[\\/]*)
9968 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9982 done
9983 done
9984 IFS=$as_save_IFS
9987 esac
9989 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9990 if test -n "$aros_target_objcopy_ln"; then
9991 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9992 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9993 else
9994 { echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6; }
10001 if test "$aros_target_objcopy_ln" = ""; then
10002 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10003 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10004 { (exit 1); exit 1; }; }
10007 if test "$aros_target_objdump" = ""; then
10008 if test "$cross_compiling" = "yes" ; then
10009 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10010 set dummy ${target_tool_prefix}objdump; ac_word=$2
10011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10013 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 case $aros_target_objdump_ln in
10017 [\\/]* | ?:[\\/]*)
10018 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10032 done
10033 done
10034 IFS=$as_save_IFS
10037 esac
10039 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10040 if test -n "$aros_target_objdump_ln"; then
10041 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10042 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10043 else
10044 { echo "$as_me:$LINENO: result: no" >&5
10045 echo "${ECHO_T}no" >&6; }
10049 else
10050 if test "$GCC" = "yes"; then
10051 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10052 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10053 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10056 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 case $aros_target_objdump_ln in
10060 [\\/]* | ?:[\\/]*)
10061 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in `dirname $aros_gcc_objdump`
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10075 done
10076 done
10077 IFS=$as_save_IFS
10080 esac
10082 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10083 if test -n "$aros_target_objdump_ln"; then
10084 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10085 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10086 else
10087 { echo "$as_me:$LINENO: result: no" >&5
10088 echo "${ECHO_T}no" >&6; }
10093 if test "$aros_target_objdump_ln" = ""; then
10094 # Extract the first word of "objdump", so it can be a program name with args.
10095 set dummy objdump; ac_word=$2
10096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10098 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101 case $aros_target_objdump_ln in
10102 [\\/]* | ?:[\\/]*)
10103 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10113 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10117 done
10118 done
10119 IFS=$as_save_IFS
10122 esac
10124 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10125 if test -n "$aros_target_objdump_ln"; then
10126 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10127 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10128 else
10129 { echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6; }
10136 else
10137 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10138 set dummy $aros_target_objdump; ac_word=$2
10139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10141 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144 case $aros_target_objdump_ln in
10145 [\\/]* | ?:[\\/]*)
10146 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150 for as_dir in $PATH
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10156 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 break 2
10160 done
10161 done
10162 IFS=$as_save_IFS
10165 esac
10167 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10168 if test -n "$aros_target_objdump_ln"; then
10169 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10170 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10171 else
10172 { echo "$as_me:$LINENO: result: no" >&5
10173 echo "${ECHO_T}no" >&6; }
10179 if test "$aros_target_objdump_ln" = ""; then
10180 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10181 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10182 { (exit 1); exit 1; }; }
10185 if test "$aros_target_ranlib" = ""; then
10186 if test "$cross_compiling" = "yes" ; then
10187 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10188 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10191 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194 case $aros_target_ranlib_ln in
10195 [\\/]* | ?:[\\/]*)
10196 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10210 done
10211 done
10212 IFS=$as_save_IFS
10215 esac
10217 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10218 if test -n "$aros_target_ranlib_ln"; then
10219 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10220 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10221 else
10222 { echo "$as_me:$LINENO: result: no" >&5
10223 echo "${ECHO_T}no" >&6; }
10227 else
10228 if test "$GCC" = "yes"; then
10229 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10230 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10231 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10234 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 case $aros_target_ranlib_ln in
10238 [\\/]* | ?:[\\/]*)
10239 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243 for as_dir in `dirname $aros_gcc_ranlib`
10245 IFS=$as_save_IFS
10246 test -z "$as_dir" && as_dir=.
10247 for ac_exec_ext in '' $ac_executable_extensions; do
10248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10249 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10251 break 2
10253 done
10254 done
10255 IFS=$as_save_IFS
10258 esac
10260 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10261 if test -n "$aros_target_ranlib_ln"; then
10262 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10263 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10264 else
10265 { echo "$as_me:$LINENO: result: no" >&5
10266 echo "${ECHO_T}no" >&6; }
10271 if test "$aros_target_ranlib_ln" = ""; then
10272 # Extract the first word of "ranlib", so it can be a program name with args.
10273 set dummy ranlib; ac_word=$2
10274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10276 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 case $aros_target_ranlib_ln in
10280 [\\/]* | ?:[\\/]*)
10281 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10291 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10295 done
10296 done
10297 IFS=$as_save_IFS
10300 esac
10302 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10303 if test -n "$aros_target_ranlib_ln"; then
10304 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10305 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10306 else
10307 { echo "$as_me:$LINENO: result: no" >&5
10308 echo "${ECHO_T}no" >&6; }
10314 else
10315 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10316 set dummy $aros_target_ranlib; ac_word=$2
10317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10319 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 case $aros_target_ranlib_ln in
10323 [\\/]* | ?:[\\/]*)
10324 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10330 IFS=$as_save_IFS
10331 test -z "$as_dir" && as_dir=.
10332 for ac_exec_ext in '' $ac_executable_extensions; do
10333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10334 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10336 break 2
10338 done
10339 done
10340 IFS=$as_save_IFS
10343 esac
10345 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10346 if test -n "$aros_target_ranlib_ln"; then
10347 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10348 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10349 else
10350 { echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6; }
10357 if test "$aros_target_ranlib_ln" = ""; then
10358 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10359 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10360 { (exit 1); exit 1; }; }
10363 if test "$aros_target_strip" = ""; then
10364 if test "$cross_compiling" = "yes" ; then
10365 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10366 set dummy ${target_tool_prefix}strip; ac_word=$2
10367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10369 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 case $aros_target_strip_ln in
10373 [\\/]* | ?:[\\/]*)
10374 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10384 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10388 done
10389 done
10390 IFS=$as_save_IFS
10393 esac
10395 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10396 if test -n "$aros_target_strip_ln"; then
10397 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10398 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10399 else
10400 { echo "$as_me:$LINENO: result: no" >&5
10401 echo "${ECHO_T}no" >&6; }
10405 else
10406 if test "$GCC" = "yes"; then
10407 aros_gcc_strip=`$CC -print-prog-name=strip`
10408 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10409 set dummy `basename $aros_gcc_strip`; ac_word=$2
10410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10412 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 case $aros_target_strip_ln in
10416 [\\/]* | ?:[\\/]*)
10417 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in `dirname $aros_gcc_strip`
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10431 done
10432 done
10433 IFS=$as_save_IFS
10436 esac
10438 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10439 if test -n "$aros_target_strip_ln"; then
10440 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10441 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10442 else
10443 { echo "$as_me:$LINENO: result: no" >&5
10444 echo "${ECHO_T}no" >&6; }
10449 if test "$aros_target_strip_ln" = ""; then
10450 # Extract the first word of "strip", so it can be a program name with args.
10451 set dummy strip; ac_word=$2
10452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10454 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457 case $aros_target_strip_ln in
10458 [\\/]* | ?:[\\/]*)
10459 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10473 done
10474 done
10475 IFS=$as_save_IFS
10478 esac
10480 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10481 if test -n "$aros_target_strip_ln"; then
10482 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10483 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10484 else
10485 { echo "$as_me:$LINENO: result: no" >&5
10486 echo "${ECHO_T}no" >&6; }
10492 else
10493 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10494 set dummy $aros_target_strip; ac_word=$2
10495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10497 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 case $aros_target_strip_ln in
10501 [\\/]* | ?:[\\/]*)
10502 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 break 2
10516 done
10517 done
10518 IFS=$as_save_IFS
10521 esac
10523 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10524 if test -n "$aros_target_strip_ln"; then
10525 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10526 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10527 else
10528 { echo "$as_me:$LINENO: result: no" >&5
10529 echo "${ECHO_T}no" >&6; }
10535 if test "$aros_target_strip_ln" = ""; then
10536 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10537 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10538 { (exit 1); exit 1; }; }
10542 if test "$rescomp" != ""; then
10543 if test "$cross_compiling" = "yes" ; then
10544 rescomp=${target_tool_prefix}${rescomp}
10546 # Extract the first word of "$rescomp", so it can be a program name with args.
10547 set dummy $rescomp; ac_word=$2
10548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10550 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553 case $aros_kernel_rescomp in
10554 [\\/]* | ?:[\\/]*)
10555 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10569 done
10570 done
10571 IFS=$as_save_IFS
10574 esac
10576 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10577 if test -n "$aros_kernel_rescomp"; then
10578 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10579 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10580 else
10581 { echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6; }
10586 if test "$aros_kernel_rescomp" = ""; then
10587 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10588 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10589 { (exit 1); exit 1; }; }
10593 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10594 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10595 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10596 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10597 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10598 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10599 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10601 # aros_cc_pre is a variable that is added to the front of the compiler name
10602 # in the generated aros-gcc shell script. We need this to enable the cache
10603 # to work across cleaned builds. Also, support DISTCC using the correct
10604 # environment variable.
10607 if test "x${DISTCC}" != "x" ; then
10608 if test "x${CCACHE}" != "x" ; then
10609 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10610 else
10611 aros_cc_pre="${DISTCC} "
10613 else
10614 if test "x${CCACHE}" != "x" ; then
10615 aros_cc_pre="${CCACHE} "
10619 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10621 aros_target_nostdinc_cflags=-nostdinc
10623 aros_target_nostartup_ldflags=-nostartfiles
10625 aros_target_nix_ldflags=-nix
10627 aros_target_detach_ldflags=-detach
10629 aros_target_nostdlib_ldflags=-nostdlib
10632 # Target tools
10633 if test "$aros_target_cc" = ""; then
10634 orig_target_cc=$aros_kernel_cc
10635 else
10636 orig_target_cc=$aros_target_cc
10638 if test "$aros_target_ld" = ""; then
10639 orig_target_ld=$aros_kernel_ld
10640 else
10641 orig_target_ld=$aros_target_ld
10643 if test "$GCC" = "yes"; then
10644 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10646 aros_target_cc="${prefix}-gcc"
10647 aros_target_as="${prefix}-as"
10648 aros_target_ld="${prefix}-ld"
10649 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10650 aros_target_objcopy=${prefix}-objcopy
10651 aros_target_objdump=${prefix}-objdump
10652 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10653 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10654 aros_kernel_nm="${prefix}-nm"
10655 aros_target_strip=${prefix}-strip
10657 # Find the system include path. We can suggest that an alternative is
10658 # used if we don't get it correct. The default is to use /usr/include.
10659 # Which is set in the aros_target_incl_def variable.
10661 # Check whether --enable-includes was given.
10662 if test "${enable_includes+set}" = set; then
10663 enableval=$enable_includes; aros_target_incl=$enable_includes
10664 else
10665 aros_target_incl=$aros_target_incl_def
10669 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10670 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10671 if test "$aros_target_cc_includes" = "" ; then
10672 #try to guess where the directory is
10673 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10674 if ! test -d $aros_target_cc_includes; then
10675 #the directory doesn't exist, we need to do some more work
10676 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10678 #these are the headers we're looling for
10679 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10680 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10681 zutil.h"
10683 dirs=
10684 for h in $headers; do
10685 #which other headers each of the above headers needs?
10686 deps=$(echo "#include <$h>" | \
10687 $aros_host_cc -E -M - 2>/dev/null | \
10688 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10690 #copy all the needed headers to a directory beneath gendir
10691 for d in $deps; do
10692 h=$(basename $d)
10693 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10694 sed -n "s,^.*/include\(/.*\),\1,p")
10695 ! test -d $dir && mkdir -p $dir
10696 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10697 done
10698 done
10701 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10702 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10705 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10706 # On GCC >= 4.0 -iquote should be used
10709 save_cc="$CC"
10710 save_cflags="$CFLAGS"
10711 CFLAGS="-iquote."
10712 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10713 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h. */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10722 main ()
10726 return 0;
10728 _ACEOF
10729 rm -f conftest.$ac_objext
10730 if { (ac_try="$ac_compile"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest.$ac_objext; then
10746 has_iquote="yes"
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 has_iquote="no"
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10756 echo "${ECHO_T}$has_iquote" >&6; }
10757 if test "x-$has_iquote" = "x-yes" ; then
10758 host_cflags_iquote=-iquote
10759 host_cflags_iquote_end=
10760 else
10761 host_cflags_iquote=-I
10762 host_cflags_iquote_end=-I-
10764 kernel_cflags_iquote=$host_cflags_iquote
10765 kernel_cflags_iquote_end=$host_cflags_iquote_end
10766 if test "x-$cross_compiling" = "x-yes"; then
10767 CC="$aros_kernel_cc"
10768 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
10769 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10778 main ()
10782 return 0;
10784 _ACEOF
10785 rm -f conftest.$ac_objext
10786 if { (ac_try="$ac_compile"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_compile") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && {
10799 test -z "$ac_c_werror_flag" ||
10800 test ! -s conftest.err
10801 } && test -s conftest.$ac_objext; then
10802 use_no_stack_protector="yes"
10803 else
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 use_no_stack_protector="no"
10810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
10812 echo "${ECHO_T}$use_no_stack_protector" >&6; }
10813 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10814 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10823 main ()
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } && {
10844 test -z "$ac_c_werror_flag" ||
10845 test ! -s conftest.err
10846 } && test -s conftest.$ac_objext; then
10847 has_iquote="yes"
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 has_iquote="no"
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10857 echo "${ECHO_T}$has_iquote" >&6; }
10858 if test "x-$has_iquote" = "x-yes" ; then
10859 kernel_cflags_iquote=-iquote
10860 kernel_cflags_iquote_end=
10861 else
10862 kernel_cflags_iquote=-I
10863 kernel_cflags_iquote_end=-I-
10866 aros_cflags_iquote=$kernel_cflags_iquote
10867 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10868 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10869 CC="$orig_target_cc"
10870 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10871 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10880 main ()
10884 return 0;
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest.$ac_objext; then
10904 has_iquote="yes"
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 has_iquote="no"
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10914 echo "${ECHO_T}$has_iquote" >&6; }
10915 if test "x-$has_iquote" = "x-yes" ; then
10916 aros_cflags_iquote=-iquote
10917 aros_cflags_iquote_end=
10918 else
10919 aros_cflags_iquote=-I
10920 aros_cflags_iquote_end=-I-
10923 if test "x-$use_no_stack_protector" = "x-yes" ; then
10924 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10927 #-----------------------------------------------------------------------------
10929 # Check if we can explicitly choose older version of symbol hashing
10931 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10932 CC="$aros_kernel_cc"
10933 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10934 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h. */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10943 main ()
10947 return 0;
10949 _ACEOF
10950 rm -f conftest.$ac_objext conftest$ac_exeext
10951 if { (ac_try="$ac_link"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_link") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest$ac_exeext &&
10967 $as_test_x conftest$ac_exeext; then
10968 use_hash_style="yes"
10969 else
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 use_hash_style="no"
10976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10977 conftest$ac_exeext conftest.$ac_ext
10978 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
10979 echo "${ECHO_T}$use_hash_style" >&6; }
10980 if test "x-$use_hash_style" = "x-yes" ; then
10981 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10983 CC="$save_cc"
10984 CFLAGS="$save_cflags"
10994 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10995 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
10997 # Check whether --with-resolution was given.
10998 if test "${with_resolution+set}" = set; then
10999 withval=$with_resolution; resolution=$withval
11000 else
11001 resolution=none
11004 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11005 if test "$resolution" = "yes" ; then
11006 resolution="none"
11008 if test "$resolution" = "no" ; then
11009 resolution="none"
11011 if test "$resolution" != "none" ; then
11012 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11013 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11014 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11016 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11017 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11018 aros_cv_default_wbwidth=$aros_default_wbwidth
11019 aros_cv_default_wbheight=$aros_default_wbheight
11020 aros_cv_default_wbdepth=$aros_default_wbdepth
11022 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11023 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11025 # Check whether --with-serial-debug was given.
11026 if test "${with_serial_debug+set}" = set; then
11027 withval=$with_serial_debug; serial_debug=$withval
11028 else
11029 serial_debug=none
11032 if test "$aros_serial_debug" = 0 ; then
11033 serial_debug_forced=""
11034 if test "$serial_debug" = "yes" ; then
11035 serial_debug="2"
11037 if test "$serial_debug" = "no" ; then
11038 serial_debug="none"
11040 else
11041 serial_debug_forced="(forced)"
11042 serial_debug=$aros_serial_debug
11044 if test "$serial_debug" != "none" ; then
11045 aros_serial_debug=$serial_debug
11046 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11047 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11048 else
11049 { echo "$as_me:$LINENO: result: no" >&5
11050 echo "${ECHO_T}no" >&6; }
11053 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11054 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11055 # Check whether --enable-palm_debug_hack was given.
11056 if test "${enable_palm_debug_hack+set}" = set; then
11057 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11058 else
11059 palm_debug_hack="no"
11062 if test "$palm_debug_hack" = "yes" ; then
11063 aros_palm_debug_hack="1"
11065 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11066 echo "${ECHO_T}$palm_debug_hack" >&6; }
11069 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11070 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11071 # Check whether --enable-nesting_supervisor was given.
11072 if test "${enable_nesting_supervisor+set}" = set; then
11073 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11074 else
11075 nesting_supervisor="no"
11078 if test "$nesting_supervisor" = "yes" ; then
11079 aros_nesting_supervisor="1"
11081 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11082 echo "${ECHO_T}$nesting_supervisor" >&6; }
11085 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11087 if test "x-$need_dlopen" != "x-no" ; then
11088 { echo "$as_me:$LINENO: checking for dlopen" >&5
11089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11090 if test "${ac_cv_func_dlopen+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 cat >conftest.$ac_ext <<_ACEOF
11094 /* confdefs.h. */
11095 _ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11101 #define dlopen innocuous_dlopen
11103 /* System header to define __stub macros and hopefully few prototypes,
11104 which can conflict with char dlopen (); below.
11105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11106 <limits.h> exists even on freestanding compilers. */
11108 #ifdef __STDC__
11109 # include <limits.h>
11110 #else
11111 # include <assert.h>
11112 #endif
11114 #undef dlopen
11116 /* Override any GCC internal prototype to avoid an error.
11117 Use char because int might match the return type of a GCC
11118 builtin and then its argument prototype would still apply. */
11119 #ifdef __cplusplus
11120 extern "C"
11121 #endif
11122 char dlopen ();
11123 /* The GNU C library defines this for functions which it implements
11124 to always fail with ENOSYS. Some functions are actually named
11125 something starting with __ and the normal name is an alias. */
11126 #if defined __stub_dlopen || defined __stub___dlopen
11127 choke me
11128 #endif
11131 main ()
11133 return dlopen ();
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (ac_try="$ac_link"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_link") 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } && {
11152 test -z "$ac_c_werror_flag" ||
11153 test ! -s conftest.err
11154 } && test -s conftest$ac_exeext &&
11155 $as_test_x conftest$ac_exeext; then
11156 ac_cv_func_dlopen=yes
11157 else
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 ac_cv_func_dlopen=no
11164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11165 conftest$ac_exeext conftest.$ac_ext
11167 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11168 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11169 if test $ac_cv_func_dlopen = yes; then
11170 have_dl="yes"
11171 else
11172 have_dl="no"
11175 if test "x-$have_dl" = "x-no" ; then
11176 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11177 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-ldl $LIBS"
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char dlopen ();
11198 main ()
11200 return dlopen ();
11202 return 0;
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && {
11219 test -z "$ac_c_werror_flag" ||
11220 test ! -s conftest.err
11221 } && test -s conftest$ac_exeext &&
11222 $as_test_x conftest$ac_exeext; then
11223 ac_cv_lib_dl_dlopen=yes
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 ac_cv_lib_dl_dlopen=no
11231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11232 conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11236 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11237 if test $ac_cv_lib_dl_dlopen = yes; then
11238 have_dl="yes"
11239 aros_host_ldflags="$aros_host_ldflags -ldl"
11240 else
11241 have_dl="no"
11245 if test "x-$have_dl" = "x-no" ; then
11246 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11247 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11248 { (exit 1); exit 1; }; }
11253 # Check whether --enable-x11_hidd was given.
11254 if test "${enable_x11_hidd+set}" = set; then
11255 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11256 else
11257 x11_hidd="auto"
11260 case "x-$x11_hidd" in
11261 x-yes|x-no|x-auto) ;;
11262 *) x11_hidd="auto" ;;
11263 esac
11265 ENABLE_X11=0
11267 if test "x-$x11_hidd" != "x-no" ; then
11269 { echo "$as_me:$LINENO: checking for X" >&5
11270 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11273 # Check whether --with-x was given.
11274 if test "${with_x+set}" = set; then
11275 withval=$with_x;
11278 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11279 if test "x$with_x" = xno; then
11280 # The user explicitly disabled X.
11281 have_x=disabled
11282 else
11283 case $x_includes,$x_libraries in #(
11284 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11285 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11286 { (exit 1); exit 1; }; };; #(
11287 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 # One or both of the vars are not set, and there is no cached value.
11291 ac_x_includes=no ac_x_libraries=no
11292 rm -f -r conftest.dir
11293 if mkdir conftest.dir; then
11294 cd conftest.dir
11295 cat >Imakefile <<'_ACEOF'
11296 incroot:
11297 @echo incroot='${INCROOT}'
11298 usrlibdir:
11299 @echo usrlibdir='${USRLIBDIR}'
11300 libdir:
11301 @echo libdir='${LIBDIR}'
11302 _ACEOF
11303 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11304 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11305 for ac_var in incroot usrlibdir libdir; do
11306 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11307 done
11308 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11309 for ac_extension in a so sl; do
11310 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11311 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11312 ac_im_usrlibdir=$ac_im_libdir; break
11314 done
11315 # Screen out bogus values from the imake configuration. They are
11316 # bogus both because they are the default anyway, and because
11317 # using them would break gcc on systems where it needs fixed includes.
11318 case $ac_im_incroot in
11319 /usr/include) ac_x_includes= ;;
11320 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11321 esac
11322 case $ac_im_usrlibdir in
11323 /usr/lib | /lib) ;;
11324 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11325 esac
11327 cd ..
11328 rm -f -r conftest.dir
11331 # Standard set of common directories for X headers.
11332 # Check X11 before X11Rn because it is often a symlink to the current release.
11333 ac_x_header_dirs='
11334 /usr/X11/include
11335 /usr/X11R6/include
11336 /usr/X11R5/include
11337 /usr/X11R4/include
11339 /usr/include/X11
11340 /usr/include/X11R6
11341 /usr/include/X11R5
11342 /usr/include/X11R4
11344 /usr/local/X11/include
11345 /usr/local/X11R6/include
11346 /usr/local/X11R5/include
11347 /usr/local/X11R4/include
11349 /usr/local/include/X11
11350 /usr/local/include/X11R6
11351 /usr/local/include/X11R5
11352 /usr/local/include/X11R4
11354 /usr/X386/include
11355 /usr/x386/include
11356 /usr/XFree86/include/X11
11358 /usr/include
11359 /usr/local/include
11360 /usr/unsupported/include
11361 /usr/athena/include
11362 /usr/local/x11r5/include
11363 /usr/lpp/Xamples/include
11365 /usr/openwin/include
11366 /usr/openwin/share/include'
11368 if test "$ac_x_includes" = no; then
11369 # Guess where to find include files, by looking for Xlib.h.
11370 # First, try using that file with no special directory specified.
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include <X11/Xlib.h>
11378 _ACEOF
11379 if { (ac_try="$ac_cpp conftest.$ac_ext"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } >/dev/null && {
11392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 }; then
11395 # We can compile using X headers with no special include directory.
11396 ac_x_includes=
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 for ac_dir in $ac_x_header_dirs; do
11402 if test -r "$ac_dir/X11/Xlib.h"; then
11403 ac_x_includes=$ac_dir
11404 break
11406 done
11409 rm -f conftest.err conftest.$ac_ext
11410 fi # $ac_x_includes = no
11412 if test "$ac_x_libraries" = no; then
11413 # Check for the libraries.
11414 # See if we find them without any special options.
11415 # Don't add to $LIBS permanently.
11416 ac_save_LIBS=$LIBS
11417 LIBS="-lX11 $LIBS"
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h. */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <X11/Xlib.h>
11426 main ()
11428 XrmInitialize ()
11430 return 0;
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (ac_try="$ac_link"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_link") 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest$ac_exeext &&
11450 $as_test_x conftest$ac_exeext; then
11451 LIBS=$ac_save_LIBS
11452 # We can link X programs with no special library path.
11453 ac_x_libraries=
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 LIBS=$ac_save_LIBS
11459 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11461 # Don't even attempt the hair of trying to link an X program!
11462 for ac_extension in a so sl; do
11463 if test -r "$ac_dir/libX11.$ac_extension"; then
11464 ac_x_libraries=$ac_dir
11465 break 2
11467 done
11468 done
11471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11472 conftest$ac_exeext conftest.$ac_ext
11473 fi # $ac_x_libraries = no
11475 case $ac_x_includes,$ac_x_libraries in #(
11476 no,* | *,no | *\'*)
11477 # Didn't find X, or a directory has "'" in its name.
11478 ac_cv_have_x="have_x=no";; #(
11480 # Record where we found X for the cache.
11481 ac_cv_have_x="have_x=yes\
11482 ac_x_includes='$ac_x_includes'\
11483 ac_x_libraries='$ac_x_libraries'"
11484 esac
11486 ;; #(
11487 *) have_x=yes;;
11488 esac
11489 eval "$ac_cv_have_x"
11490 fi # $with_x != no
11492 if test "$have_x" != yes; then
11493 { echo "$as_me:$LINENO: result: $have_x" >&5
11494 echo "${ECHO_T}$have_x" >&6; }
11495 no_x=yes
11496 else
11497 # If each of the values was on the command line, it overrides each guess.
11498 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11499 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11500 # Update the cache value to reflect the command line values.
11501 ac_cv_have_x="have_x=yes\
11502 ac_x_includes='$x_includes'\
11503 ac_x_libraries='$x_libraries'"
11504 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11505 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11509 x_cflags=
11510 for path in $x_libraries
11512 x_cflags="$x_cflags -L$path"
11513 done
11515 for path in $x_includes
11517 x_cflags="$x_cflags -I$path"
11518 done
11520 if test "x-$no_x" = "x-yes" ; then
11522 if test "x-$x11_hidd" != "x-auto" ; then
11523 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11524 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11525 { (exit 1); exit 1; }; }
11528 else
11529 x11_hidd_target=kernel-x11gfx-kobj
11530 ENABLE_X11=1
11532 # Check whether --enable-x11_shm was given.
11533 if test "${enable_x11_shm+set}" = set; then
11534 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11535 else
11536 x11_hidd_shm="auto"
11539 case "x-$x11_hidd_shm" in
11540 x-yes|x-no|x-auto) ;;
11541 *) x11_hidd_shm="auto" ;;
11542 esac
11544 have_xshm=no
11546 if test "x-$x11_hidd_shm" != "x-no" ; then
11549 for ac_header in sys/ipc.h
11551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 ac_res=`eval echo '${'$as_ac_Header'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560 echo "${ECHO_T}$ac_res" >&6; }
11561 else
11562 # Is the header compilable?
11563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11572 #include <$ac_header>
11573 _ACEOF
11574 rm -f conftest.$ac_objext
11575 if { (ac_try="$ac_compile"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_compile") 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } && {
11588 test -z "$ac_c_werror_flag" ||
11589 test ! -s conftest.err
11590 } && test -s conftest.$ac_objext; then
11591 ac_header_compiler=yes
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_header_compiler=no
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11601 echo "${ECHO_T}$ac_header_compiler" >&6; }
11603 # Is the header present?
11604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 #include <$ac_header>
11613 _ACEOF
11614 if { (ac_try="$ac_cpp conftest.$ac_ext"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } >/dev/null && {
11627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11628 test ! -s conftest.err
11629 }; then
11630 ac_header_preproc=yes
11631 else
11632 echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11635 ac_header_preproc=no
11638 rm -f conftest.err conftest.$ac_ext
11639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11640 echo "${ECHO_T}$ac_header_preproc" >&6; }
11642 # So? What about this header?
11643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11644 yes:no: )
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11649 ac_header_preproc=yes
11651 no:yes:* )
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11666 esac
11667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 eval "$as_ac_Header=\$ac_header_preproc"
11674 ac_res=`eval echo '${'$as_ac_Header'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11682 _ACEOF
11686 done
11689 for ac_header in sys/shm.h
11691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 ac_res=`eval echo '${'$as_ac_Header'}'`
11699 { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 else
11702 # Is the header compilable?
11703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11705 cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h. */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 $ac_includes_default
11712 #include <$ac_header>
11713 _ACEOF
11714 rm -f conftest.$ac_objext
11715 if { (ac_try="$ac_compile"
11716 case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11719 esac
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721 (eval "$ac_compile") 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } && {
11728 test -z "$ac_c_werror_flag" ||
11729 test ! -s conftest.err
11730 } && test -s conftest.$ac_objext; then
11731 ac_header_compiler=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_header_compiler=no
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11741 echo "${ECHO_T}$ac_header_compiler" >&6; }
11743 # Is the header present?
11744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 #include <$ac_header>
11753 _ACEOF
11754 if { (ac_try="$ac_cpp conftest.$ac_ext"
11755 case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11758 esac
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11761 ac_status=$?
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } >/dev/null && {
11767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11768 test ! -s conftest.err
11769 }; then
11770 ac_header_preproc=yes
11771 else
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ac_header_preproc=no
11778 rm -f conftest.err conftest.$ac_ext
11779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11780 echo "${ECHO_T}$ac_header_preproc" >&6; }
11782 # So? What about this header?
11783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11784 yes:no: )
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11789 ac_header_preproc=yes
11791 no:yes:* )
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11806 esac
11807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 else
11812 eval "$as_ac_Header=\$ac_header_preproc"
11814 ac_res=`eval echo '${'$as_ac_Header'}'`
11815 { echo "$as_me:$LINENO: result: $ac_res" >&5
11816 echo "${ECHO_T}$ac_res" >&6; }
11819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11820 cat >>confdefs.h <<_ACEOF
11821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11822 _ACEOF
11826 done
11829 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11831 save_cflags="$CFLAGS"
11832 CFLAGS="$CFLAGS $x_cflags"
11833 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11834 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11835 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838 ac_check_lib_save_LIBS=$LIBS
11839 LIBS="-lXext $LIBS"
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h. */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char XShmQueryExtension ();
11855 main ()
11857 return XShmQueryExtension ();
11859 return 0;
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (ac_try="$ac_link"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_link") 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } && {
11876 test -z "$ac_c_werror_flag" ||
11877 test ! -s conftest.err
11878 } && test -s conftest$ac_exeext &&
11879 $as_test_x conftest$ac_exeext; then
11880 ac_cv_lib_Xext_XShmQueryExtension=yes
11881 else
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_cv_lib_Xext_XShmQueryExtension=no
11888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11893 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11894 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11895 have_xshm=yes
11898 CFLAGS="$save_cflags"
11902 if test "x-$have_xshm" = "x-yes" ; then
11903 DO_XSHM_SUPPORT="1"
11904 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11905 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11906 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11907 { (exit 1); exit 1; }; }
11908 else
11909 DO_XSHM_SUPPORT="0"
11913 # Check whether --enable-x11_vidmode was given.
11914 if test "${enable_x11_vidmode+set}" = set; then
11915 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11916 else
11917 x11_hidd_vidmode="auto"
11920 case "x-$x11_hidd_vidmode" in
11921 x-yes|x-no|x-auto) ;;
11922 *) x11_hidd_vidmode="auto" ;;
11923 esac
11925 have_vidmode=no
11927 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11929 save_cflags="$CFLAGS"
11930 CFLAGS="$CFLAGS $x_cflags"
11931 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11932 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
11933 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lXxf86vm $LIBS"
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char XF86VidModeQueryExtension ();
11953 main ()
11955 return XF86VidModeQueryExtension ();
11957 return 0;
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest$ac_exeext &&
11977 $as_test_x conftest$ac_exeext; then
11978 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11979 else
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11991 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11992 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
11993 have_vidmode=yes
11996 CFLAGS="$save_cflags"
11999 if test "x-$have_vidmode" = "x-yes" ; then
12000 DO_VIDMODE_SUPPORT="1"
12001 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12002 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12003 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12004 { (exit 1); exit 1; }; }
12005 else
12006 DO_VIDMODE_SUPPORT="0"
12010 aros_host_x11_includes=$x_includes
12011 aros_host_x11_libdirs=$x_libraries
12015 # Check whether --enable-sdl_hidd was given.
12016 if test "${enable_sdl_hidd+set}" = set; then
12017 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12018 else
12019 sdl_hidd="auto"
12022 case "x-$sdl_hidd" in
12023 x-yes|x-no|x-auto) ;;
12024 *) sdl_hidd="auto" ;;
12025 esac
12027 if test "x-$sdl_hidd" != "x-no" ; then
12030 # Check whether --with-sdl-prefix was given.
12031 if test "${with_sdl_prefix+set}" = set; then
12032 withval=$with_sdl_prefix; sdl_prefix="$withval"
12033 else
12034 sdl_prefix=""
12038 # Check whether --with-sdl-exec-prefix was given.
12039 if test "${with_sdl_exec_prefix+set}" = set; then
12040 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12041 else
12042 sdl_exec_prefix=""
12045 # Check whether --enable-sdltest was given.
12046 if test "${enable_sdltest+set}" = set; then
12047 enableval=$enable_sdltest;
12048 else
12049 enable_sdltest=yes
12053 if test x$sdl_exec_prefix != x ; then
12054 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12055 if test x${SDL_CONFIG+set} != xset ; then
12056 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12059 if test x$sdl_prefix != x ; then
12060 sdl_args="$sdl_args --prefix=$sdl_prefix"
12061 if test x${SDL_CONFIG+set} != xset ; then
12062 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12066 if test "x$prefix" != xNONE; then
12067 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12069 # Extract the first word of "sdl-config", so it can be a program name with args.
12070 set dummy sdl-config; ac_word=$2
12071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12073 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 case $SDL_CONFIG in
12077 [\\/]* | ?:[\\/]*)
12078 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12092 done
12093 done
12094 IFS=$as_save_IFS
12096 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12098 esac
12100 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12101 if test -n "$SDL_CONFIG"; then
12102 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12103 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12104 else
12105 { echo "$as_me:$LINENO: result: no" >&5
12106 echo "${ECHO_T}no" >&6; }
12110 min_sdl_version=1.2.10
12111 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12112 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12113 no_sdl=""
12114 if test "$SDL_CONFIG" = "no" ; then
12115 no_sdl=yes
12116 else
12117 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12118 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12120 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12121 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12122 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12123 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12124 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12126 if test "x$enable_sdltest" = "xyes" ; then
12127 ac_save_CFLAGS="$CFLAGS"
12128 ac_save_CXXFLAGS="$CXXFLAGS"
12129 ac_save_LIBS="$LIBS"
12130 CFLAGS="$CFLAGS $SDL_CFLAGS"
12131 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12132 LIBS="$LIBS $SDL_LIBS"
12133 rm -f conf.sdltest
12134 if test "$cross_compiling" = yes; then
12135 echo $ac_n "cross compiling; assumed OK... $ac_c"
12136 else
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h. */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12144 #include <stdio.h>
12145 #include <stdlib.h>
12146 #include <string.h>
12147 #include "SDL.h"
12149 char*
12150 my_strdup (char *str)
12152 char *new_str;
12154 if (str)
12156 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12157 strcpy (new_str, str);
12159 else
12160 new_str = NULL;
12162 return new_str;
12165 int main (int argc, char *argv[])
12167 int major, minor, micro;
12168 char *tmp_version;
12170 /* This hangs on some systems (?)
12171 system ("touch conf.sdltest");
12173 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12175 /* HP/UX 9 (%@#!) writes to sscanf strings */
12176 tmp_version = my_strdup("$min_sdl_version");
12177 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12178 printf("%s, bad version string\n", "$min_sdl_version");
12179 exit(1);
12182 if (($sdl_major_version > major) ||
12183 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12184 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12186 return 0;
12188 else
12190 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12191 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12192 printf("*** best to upgrade to the required version.\n");
12193 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12194 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12195 printf("*** config.cache before re-running configure\n");
12196 return 1;
12201 _ACEOF
12202 rm -f conftest$ac_exeext
12203 if { (ac_try="$ac_link"
12204 case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_link") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12213 { (case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_try") 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12223 else
12224 echo "$as_me: program exited with status $ac_status" >&5
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 ( exit $ac_status )
12229 no_sdl=yes
12231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12235 CFLAGS="$ac_save_CFLAGS"
12236 CXXFLAGS="$ac_save_CXXFLAGS"
12237 LIBS="$ac_save_LIBS"
12240 if test "x$no_sdl" = x ; then
12241 { echo "$as_me:$LINENO: result: yes" >&5
12242 echo "${ECHO_T}yes" >&6; }
12243 have_sdl="yes"
12244 else
12245 { echo "$as_me:$LINENO: result: no" >&5
12246 echo "${ECHO_T}no" >&6; }
12247 if test "$SDL_CONFIG" = "no" ; then
12248 echo "*** The sdl-config script installed by SDL could not be found"
12249 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12250 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12251 echo "*** full path to sdl-config."
12252 else
12253 if test -f conf.sdltest ; then
12255 else
12256 echo "*** Could not run SDL test program, checking why..."
12257 CFLAGS="$CFLAGS $SDL_CFLAGS"
12258 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12259 LIBS="$LIBS $SDL_LIBS"
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12267 #include <stdio.h>
12268 #include "SDL.h"
12270 int main(int argc, char *argv[])
12271 { return 0; }
12272 #undef main
12273 #define main K_and_R_C_main
12276 main ()
12278 return 0;
12280 return 0;
12282 _ACEOF
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288 esac
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } && {
12297 test -z "$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12299 } && test -s conftest$ac_exeext &&
12300 $as_test_x conftest$ac_exeext; then
12301 echo "*** The test program compiled, but did not run. This usually means"
12302 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12303 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12304 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12305 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12306 echo "*** is required on your system"
12307 echo "***"
12308 echo "*** If you have an old version installed, it is best to remove it, although"
12309 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 echo "*** The test program failed to compile or link. See the file config.log for the"
12315 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12316 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12317 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12321 conftest$ac_exeext conftest.$ac_ext
12322 CFLAGS="$ac_save_CFLAGS"
12323 CXXFLAGS="$ac_save_CXXFLAGS"
12324 LIBS="$ac_save_LIBS"
12327 SDL_CFLAGS=""
12328 SDL_LIBS=""
12329 have_sdl="no"
12333 rm -f conf.sdltest
12336 if test "x-$have_sdl" != "x-yes" ; then
12338 if test "x-$sdl_hidd" != "x-auto" ; then
12339 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12340 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12341 { (exit 1); exit 1; }; }
12344 else
12345 sdl_hidd_target=kernel-hidd-sdl
12346 aros_host_sdl_cflags=SDL_CFLAGS
12347 aros_host_sdl_libs=SDL_LIBS
12354 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12355 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12356 # Check whether --enable-dbus was given.
12357 if test "${enable_dbus+set}" = set; then
12358 enableval=$enable_dbus; dbus="yes"
12359 else
12360 dbus="no"
12363 if test "$dbus" = "yes" ; then
12364 ENABLE_DBUS=1
12365 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12366 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12367 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12368 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12369 else
12370 ENABLE_DBUS=0
12372 { echo "$as_me:$LINENO: result: $dbus" >&5
12373 echo "${ECHO_T}$dbus" >&6; }
12377 # Generic
12387 # Host related
12410 # Target Related
12457 # Graphics Related
12472 # Native version related
12475 # Palm native version related
12478 # Unix/Hosted version related
12481 # DBUS related
12488 #X11 related
12491 # Debug related
12497 # Collect-aros stuff: "-ius" to ignore undefined symbols
12500 # C compiler related
12503 case "$aros_flavour" in
12504 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12505 aros_flavour="emulation" ;;
12506 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12507 aros_flavour="emulation" ;;
12508 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12509 aros_flavour="standalone";;
12510 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12511 aros_flavour="native" ;;
12512 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12513 aros_flavour="native" ;;
12514 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12515 aros_flavour="linklib" ;;
12516 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12517 aros_flavour="palmnative" ;;
12518 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12519 aros_flavour="mac68knative" ;;
12520 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12521 aros_flavour="ppcnative" ;;
12522 esac
12524 if test ! -d ${aros_inc_dir} ; then
12525 ${MKDIR} ${aros_inc_dir}
12527 if test ! -d ${aros_geninc_dir} ; then
12528 ${MKDIR} ${aros_geninc_dir}
12530 if test ! -d ${aros_hostcfg_dir} ; then
12531 ${MKDIR} ${aros_hostcfg_dir}
12533 if test ! -d ${aros_targetcfg_dir} ; then
12534 ${MKDIR} ${aros_targetcfg_dir}
12536 if test ! -d ${aros_tools_dir} ; then
12537 ${MKDIR} ${aros_tools_dir}
12539 if test ! -d ${aros_scripts_dir} ; then
12540 ${MKDIR} ${aros_scripts_dir}
12543 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12546 ac_config_commands="$ac_config_commands compiler_executable"
12548 ac_config_commands="$ac_config_commands genshared_executable"
12550 ac_config_commands="$ac_config_commands genmf_executable"
12553 ac_config_files="$ac_config_files Makefile 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/collect-aros/env.h"
12556 cat >confcache <<\_ACEOF
12557 # This file is a shell script that caches the results of configure
12558 # tests run on this system so they can be shared between configure
12559 # scripts and configure runs, see configure's option --config-cache.
12560 # It is not useful on other systems. If it contains results you don't
12561 # want to keep, you may remove or edit it.
12563 # config.status only pays attention to the cache file if you give it
12564 # the --recheck option to rerun configure.
12566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12568 # following values.
12570 _ACEOF
12572 # The following way of writing the cache mishandles newlines in values,
12573 # but we know of no workaround that is simple, portable, and efficient.
12574 # So, we kill variables containing newlines.
12575 # Ultrix sh set writes to stderr and can't be redirected directly,
12576 # and sets the high bit in the cache file unless we assign to the vars.
12578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12579 eval ac_val=\$$ac_var
12580 case $ac_val in #(
12581 *${as_nl}*)
12582 case $ac_var in #(
12583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12585 esac
12586 case $ac_var in #(
12587 _ | IFS | as_nl) ;; #(
12588 *) $as_unset $ac_var ;;
12589 esac ;;
12590 esac
12591 done
12593 (set) 2>&1 |
12594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12595 *${as_nl}ac_space=\ *)
12596 # `set' does not quote correctly, so add quotes (double-quote
12597 # substitution turns \\\\ into \\, and sed turns \\ into \).
12598 sed -n \
12599 "s/'/'\\\\''/g;
12600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12601 ;; #(
12603 # `set' quotes correctly as required by POSIX, so do not add quotes.
12604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12606 esac |
12607 sort
12609 sed '
12610 /^ac_cv_env_/b end
12611 t clear
12612 :clear
12613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12614 t end
12615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12616 :end' >>confcache
12617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12618 if test -w "$cache_file"; then
12619 test "x$cache_file" != "x/dev/null" &&
12620 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12621 echo "$as_me: updating cache $cache_file" >&6;}
12622 cat confcache >$cache_file
12623 else
12624 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12625 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12628 rm -f confcache
12630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12631 # Let make expand exec_prefix.
12632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12634 DEFS=-DHAVE_CONFIG_H
12636 ac_libobjs=
12637 ac_ltlibobjs=
12638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12639 # 1. Remove the extension, and $U if already installed.
12640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12641 ac_i=`echo "$ac_i" | sed "$ac_script"`
12642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12643 # will be set to the directory where LIBOBJS objects are built.
12644 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12645 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12646 done
12647 LIBOBJS=$ac_libobjs
12649 LTLIBOBJS=$ac_ltlibobjs
12653 : ${CONFIG_STATUS=./config.status}
12654 ac_clean_files_save=$ac_clean_files
12655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12656 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12657 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12658 cat >$CONFIG_STATUS <<_ACEOF
12659 #! $SHELL
12660 # Generated by $as_me.
12661 # Run this file to recreate the current configuration.
12662 # Compiler output produced by configure, useful for debugging
12663 # configure, is in config.log if it exists.
12665 debug=false
12666 ac_cs_recheck=false
12667 ac_cs_silent=false
12668 SHELL=\${CONFIG_SHELL-$SHELL}
12669 _ACEOF
12671 cat >>$CONFIG_STATUS <<\_ACEOF
12672 ## --------------------- ##
12673 ## M4sh Initialization. ##
12674 ## --------------------- ##
12676 # Be more Bourne compatible
12677 DUALCASE=1; export DUALCASE # for MKS sh
12678 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12679 emulate sh
12680 NULLCMD=:
12681 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12682 # is contrary to our usage. Disable this feature.
12683 alias -g '${1+"$@"}'='"$@"'
12684 setopt NO_GLOB_SUBST
12685 else
12686 case `(set -o) 2>/dev/null` in
12687 *posix*) set -o posix ;;
12688 esac
12695 # PATH needs CR
12696 # Avoid depending upon Character Ranges.
12697 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12698 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12699 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12700 as_cr_digits='0123456789'
12701 as_cr_alnum=$as_cr_Letters$as_cr_digits
12703 # The user is always right.
12704 if test "${PATH_SEPARATOR+set}" != set; then
12705 echo "#! /bin/sh" >conf$$.sh
12706 echo "exit 0" >>conf$$.sh
12707 chmod +x conf$$.sh
12708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12709 PATH_SEPARATOR=';'
12710 else
12711 PATH_SEPARATOR=:
12713 rm -f conf$$.sh
12716 # Support unset when possible.
12717 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12718 as_unset=unset
12719 else
12720 as_unset=false
12724 # IFS
12725 # We need space, tab and new line, in precisely that order. Quoting is
12726 # there to prevent editors from complaining about space-tab.
12727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12728 # splitting by setting IFS to empty value.)
12729 as_nl='
12731 IFS=" "" $as_nl"
12733 # Find who we are. Look in the path if we contain no directory separator.
12734 case $0 in
12735 *[\\/]* ) as_myself=$0 ;;
12736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12742 done
12743 IFS=$as_save_IFS
12746 esac
12747 # We did not find ourselves, most probably we were run as `sh COMMAND'
12748 # in which case we are not to be found in the path.
12749 if test "x$as_myself" = x; then
12750 as_myself=$0
12752 if test ! -f "$as_myself"; then
12753 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12754 { (exit 1); exit 1; }
12757 # Work around bugs in pre-3.0 UWIN ksh.
12758 for as_var in ENV MAIL MAILPATH
12759 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12760 done
12761 PS1='$ '
12762 PS2='> '
12763 PS4='+ '
12765 # NLS nuisances.
12766 for as_var in \
12767 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12768 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12769 LC_TELEPHONE LC_TIME
12771 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12772 eval $as_var=C; export $as_var
12773 else
12774 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12776 done
12778 # Required to use basename.
12779 if expr a : '\(a\)' >/dev/null 2>&1 &&
12780 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12781 as_expr=expr
12782 else
12783 as_expr=false
12786 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12787 as_basename=basename
12788 else
12789 as_basename=false
12793 # Name of the executable.
12794 as_me=`$as_basename -- "$0" ||
12795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12796 X"$0" : 'X\(//\)$' \| \
12797 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12798 echo X/"$0" |
12799 sed '/^.*\/\([^/][^/]*\)\/*$/{
12800 s//\1/
12803 /^X\/\(\/\/\)$/{
12804 s//\1/
12807 /^X\/\(\/\).*/{
12808 s//\1/
12811 s/.*/./; q'`
12813 # CDPATH.
12814 $as_unset CDPATH
12818 as_lineno_1=$LINENO
12819 as_lineno_2=$LINENO
12820 test "x$as_lineno_1" != "x$as_lineno_2" &&
12821 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12824 # uniformly replaced by the line number. The first 'sed' inserts a
12825 # line-number line after each line using $LINENO; the second 'sed'
12826 # does the real work. The second script uses 'N' to pair each
12827 # line-number line with the line containing $LINENO, and appends
12828 # trailing '-' during substitution so that $LINENO is not a special
12829 # case at line end.
12830 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12831 # scripts with optimization help from Paolo Bonzini. Blame Lee
12832 # E. McMahon (1931-1989) for sed's syntax. :-)
12833 sed -n '
12835 /[$]LINENO/=
12836 ' <$as_myself |
12837 sed '
12838 s/[$]LINENO.*/&-/
12839 t lineno
12841 :lineno
12843 :loop
12844 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12845 t loop
12846 s/-\n.*//
12847 ' >$as_me.lineno &&
12848 chmod +x "$as_me.lineno" ||
12849 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12850 { (exit 1); exit 1; }; }
12852 # Don't try to exec as it changes $[0], causing all sort of problems
12853 # (the dirname of $[0] is not the place where we might find the
12854 # original and so on. Autoconf is especially sensitive to this).
12855 . "./$as_me.lineno"
12856 # Exit status is that of the last command.
12857 exit
12861 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12862 as_dirname=dirname
12863 else
12864 as_dirname=false
12867 ECHO_C= ECHO_N= ECHO_T=
12868 case `echo -n x` in
12869 -n*)
12870 case `echo 'x\c'` in
12871 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12872 *) ECHO_C='\c';;
12873 esac;;
12875 ECHO_N='-n';;
12876 esac
12878 if expr a : '\(a\)' >/dev/null 2>&1 &&
12879 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12880 as_expr=expr
12881 else
12882 as_expr=false
12885 rm -f conf$$ conf$$.exe conf$$.file
12886 if test -d conf$$.dir; then
12887 rm -f conf$$.dir/conf$$.file
12888 else
12889 rm -f conf$$.dir
12890 mkdir conf$$.dir
12892 echo >conf$$.file
12893 if ln -s conf$$.file conf$$ 2>/dev/null; then
12894 as_ln_s='ln -s'
12895 # ... but there are two gotchas:
12896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12898 # In both cases, we have to default to `cp -p'.
12899 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12900 as_ln_s='cp -p'
12901 elif ln conf$$.file conf$$ 2>/dev/null; then
12902 as_ln_s=ln
12903 else
12904 as_ln_s='cp -p'
12906 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12907 rmdir conf$$.dir 2>/dev/null
12909 if mkdir -p . 2>/dev/null; then
12910 as_mkdir_p=:
12911 else
12912 test -d ./-p && rmdir ./-p
12913 as_mkdir_p=false
12916 if test -x / >/dev/null 2>&1; then
12917 as_test_x='test -x'
12918 else
12919 if ls -dL / >/dev/null 2>&1; then
12920 as_ls_L_option=L
12921 else
12922 as_ls_L_option=
12924 as_test_x='
12925 eval sh -c '\''
12926 if test -d "$1"; then
12927 test -d "$1/.";
12928 else
12929 case $1 in
12930 -*)set "./$1";;
12931 esac;
12932 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12933 ???[sx]*):;;*)false;;esac;fi
12934 '\'' sh
12937 as_executable_p=$as_test_x
12939 # Sed expression to map a string onto a valid CPP name.
12940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12942 # Sed expression to map a string onto a valid variable name.
12943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12946 exec 6>&1
12948 # Save the log message, to keep $[0] and so on meaningful, and to
12949 # report actual input values of CONFIG_FILES etc. instead of their
12950 # values after options handling.
12951 ac_log="
12952 This file was extended by $as_me, which was
12953 generated by GNU Autoconf 2.61. Invocation command line was
12955 CONFIG_FILES = $CONFIG_FILES
12956 CONFIG_HEADERS = $CONFIG_HEADERS
12957 CONFIG_LINKS = $CONFIG_LINKS
12958 CONFIG_COMMANDS = $CONFIG_COMMANDS
12959 $ $0 $@
12961 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12964 _ACEOF
12966 cat >>$CONFIG_STATUS <<_ACEOF
12967 # Files that config.status was made for.
12968 config_files="$ac_config_files"
12969 config_headers="$ac_config_headers"
12970 config_commands="$ac_config_commands"
12972 _ACEOF
12974 cat >>$CONFIG_STATUS <<\_ACEOF
12975 ac_cs_usage="\
12976 \`$as_me' instantiates files from templates according to the
12977 current configuration.
12979 Usage: $0 [OPTIONS] [FILE]...
12981 -h, --help print this help, then exit
12982 -V, --version print version number and configuration settings, then exit
12983 -q, --quiet do not print progress messages
12984 -d, --debug don't remove temporary files
12985 --recheck update $as_me by reconfiguring in the same conditions
12986 --file=FILE[:TEMPLATE]
12987 instantiate the configuration file FILE
12988 --header=FILE[:TEMPLATE]
12989 instantiate the configuration header FILE
12991 Configuration files:
12992 $config_files
12994 Configuration headers:
12995 $config_headers
12997 Configuration commands:
12998 $config_commands
13000 Report bugs to <bug-autoconf@gnu.org>."
13002 _ACEOF
13003 cat >>$CONFIG_STATUS <<_ACEOF
13004 ac_cs_version="\\
13005 config.status
13006 configured by $0, generated by GNU Autoconf 2.61,
13007 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13009 Copyright (C) 2006 Free Software Foundation, Inc.
13010 This config.status script is free software; the Free Software Foundation
13011 gives unlimited permission to copy, distribute and modify it."
13013 ac_pwd='$ac_pwd'
13014 srcdir='$srcdir'
13015 _ACEOF
13017 cat >>$CONFIG_STATUS <<\_ACEOF
13018 # If no file are specified by the user, then we need to provide default
13019 # value. By we need to know if files were specified by the user.
13020 ac_need_defaults=:
13021 while test $# != 0
13023 case $1 in
13024 --*=*)
13025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13027 ac_shift=:
13030 ac_option=$1
13031 ac_optarg=$2
13032 ac_shift=shift
13034 esac
13036 case $ac_option in
13037 # Handling of the options.
13038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13039 ac_cs_recheck=: ;;
13040 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13041 echo "$ac_cs_version"; exit ;;
13042 --debug | --debu | --deb | --de | --d | -d )
13043 debug=: ;;
13044 --file | --fil | --fi | --f )
13045 $ac_shift
13046 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13047 ac_need_defaults=false;;
13048 --header | --heade | --head | --hea )
13049 $ac_shift
13050 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13051 ac_need_defaults=false;;
13052 --he | --h)
13053 # Conflict between --help and --header
13054 { echo "$as_me: error: ambiguous option: $1
13055 Try \`$0 --help' for more information." >&2
13056 { (exit 1); exit 1; }; };;
13057 --help | --hel | -h )
13058 echo "$ac_cs_usage"; exit ;;
13059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13060 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13061 ac_cs_silent=: ;;
13063 # This is an error.
13064 -*) { echo "$as_me: error: unrecognized option: $1
13065 Try \`$0 --help' for more information." >&2
13066 { (exit 1); exit 1; }; } ;;
13068 *) ac_config_targets="$ac_config_targets $1"
13069 ac_need_defaults=false ;;
13071 esac
13072 shift
13073 done
13075 ac_configure_extra_args=
13077 if $ac_cs_silent; then
13078 exec 6>/dev/null
13079 ac_configure_extra_args="$ac_configure_extra_args --silent"
13082 _ACEOF
13083 cat >>$CONFIG_STATUS <<_ACEOF
13084 if \$ac_cs_recheck; then
13085 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13086 CONFIG_SHELL=$SHELL
13087 export CONFIG_SHELL
13088 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13091 _ACEOF
13092 cat >>$CONFIG_STATUS <<\_ACEOF
13093 exec 5>>config.log
13095 echo
13096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13097 ## Running $as_me. ##
13098 _ASBOX
13099 echo "$ac_log"
13100 } >&5
13102 _ACEOF
13103 cat >>$CONFIG_STATUS <<_ACEOF
13105 # INIT-COMMANDS
13108 aros_host_exe_suffix=${aros_host_exe_suffix}
13109 aros_tools_dir=${aros_tools_dir}
13110 aros_target_cpu=${aros_target_cpu}
13111 aros_target_arch=${aros_target_arch}
13112 aros_target_suffix=${aros_target_suffix}
13113 aros_target_nm_ln=${aros_target_nm_ln}
13114 aros_target_as_ln=${aros_target_as_ln}
13115 aros_target_ar_ln=${aros_target_ar_ln}
13116 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13117 aros_target_objdump_ln=${aros_target_objdump_ln}
13118 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13119 aros_target_strip_ln=${aros_target_strip_ln}
13122 aros_scripts_dir=${aros_scripts_dir}
13124 aros_tools_dir=${aros_tools_dir}
13127 _ACEOF
13129 cat >>$CONFIG_STATUS <<\_ACEOF
13131 # Handling of arguments.
13132 for ac_config_target in $ac_config_targets
13134 case $ac_config_target in
13135 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13136 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13137 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13138 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13139 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13140 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13141 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13142 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13143 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13144 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13145 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13146 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13147 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13148 "${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" ;;
13149 "${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" ;;
13150 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13151 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13152 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13156 { (exit 1); exit 1; }; };;
13157 esac
13158 done
13161 # If the user did not use the arguments to specify the items to instantiate,
13162 # then the envvar interface is used. Set only those that are not.
13163 # We use the long form for the default assignment because of an extremely
13164 # bizarre bug on SunOS 4.1.3.
13165 if $ac_need_defaults; then
13166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13171 # Have a temporary directory for convenience. Make it in the build tree
13172 # simply because there is no reason against having it here, and in addition,
13173 # creating and moving files from /tmp can sometimes cause problems.
13174 # Hook for its removal unless debugging.
13175 # Note that there is a small window in which the directory will not be cleaned:
13176 # after its creation but before its name has been assigned to `$tmp'.
13177 $debug ||
13179 tmp=
13180 trap 'exit_status=$?
13181 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13183 trap '{ (exit 1); exit 1; }' 1 2 13 15
13185 # Create a (secure) tmp directory for tmp files.
13188 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13189 test -n "$tmp" && test -d "$tmp"
13190 } ||
13192 tmp=./conf$$-$RANDOM
13193 (umask 077 && mkdir "$tmp")
13194 } ||
13196 echo "$me: cannot create a temporary directory in ." >&2
13197 { (exit 1); exit 1; }
13201 # Set up the sed scripts for CONFIG_FILES section.
13204 # No need to generate the scripts if there are no CONFIG_FILES.
13205 # This happens for instance when ./config.status config.h
13206 if test -n "$CONFIG_FILES"; then
13208 _ACEOF
13212 ac_delim='%!_!# '
13213 for ac_last_try in false false false false false :; do
13214 cat >conf$$subs.sed <<_ACEOF
13215 SHELL!$SHELL$ac_delim
13216 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13217 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13218 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13219 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13220 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13221 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13222 exec_prefix!$exec_prefix$ac_delim
13223 prefix!$prefix$ac_delim
13224 program_transform_name!$program_transform_name$ac_delim
13225 bindir!$bindir$ac_delim
13226 sbindir!$sbindir$ac_delim
13227 libexecdir!$libexecdir$ac_delim
13228 datarootdir!$datarootdir$ac_delim
13229 datadir!$datadir$ac_delim
13230 sysconfdir!$sysconfdir$ac_delim
13231 sharedstatedir!$sharedstatedir$ac_delim
13232 localstatedir!$localstatedir$ac_delim
13233 includedir!$includedir$ac_delim
13234 oldincludedir!$oldincludedir$ac_delim
13235 docdir!$docdir$ac_delim
13236 infodir!$infodir$ac_delim
13237 htmldir!$htmldir$ac_delim
13238 dvidir!$dvidir$ac_delim
13239 pdfdir!$pdfdir$ac_delim
13240 psdir!$psdir$ac_delim
13241 libdir!$libdir$ac_delim
13242 localedir!$localedir$ac_delim
13243 mandir!$mandir$ac_delim
13244 DEFS!$DEFS$ac_delim
13245 ECHO_C!$ECHO_C$ac_delim
13246 ECHO_N!$ECHO_N$ac_delim
13247 ECHO_T!$ECHO_T$ac_delim
13248 LIBS!$LIBS$ac_delim
13249 build_alias!$build_alias$ac_delim
13250 host_alias!$host_alias$ac_delim
13251 target_alias!$target_alias$ac_delim
13252 build!$build$ac_delim
13253 build_cpu!$build_cpu$ac_delim
13254 build_vendor!$build_vendor$ac_delim
13255 build_os!$build_os$ac_delim
13256 host!$host$ac_delim
13257 host_cpu!$host_cpu$ac_delim
13258 host_vendor!$host_vendor$ac_delim
13259 host_os!$host_os$ac_delim
13260 CC!$CC$ac_delim
13261 CFLAGS!$CFLAGS$ac_delim
13262 LDFLAGS!$LDFLAGS$ac_delim
13263 CPPFLAGS!$CPPFLAGS$ac_delim
13264 ac_ct_CC!$ac_ct_CC$ac_delim
13265 EXEEXT!$EXEEXT$ac_delim
13266 OBJEXT!$OBJEXT$ac_delim
13267 CPP!$CPP$ac_delim
13268 AWK!$AWK$ac_delim
13269 MMAKE!$MMAKE$ac_delim
13270 aros_host_ld!$aros_host_ld$ac_delim
13271 aros_host_aclocal!$aros_host_aclocal$ac_delim
13272 aros_host_autoconf!$aros_host_autoconf$ac_delim
13273 aros_host_autoheader!$aros_host_autoheader$ac_delim
13274 aros_host_automake!$aros_host_automake$ac_delim
13275 aros_host_ar!$aros_host_ar$ac_delim
13276 aros_host_ranlib!$aros_host_ranlib$ac_delim
13277 aros_host_strip!$aros_host_strip$ac_delim
13278 RM!$RM$ac_delim
13279 CP!$CP$ac_delim
13280 MV!$MV$ac_delim
13281 ECHO!$ECHO$ac_delim
13282 MKDIR!$MKDIR$ac_delim
13283 TOUCH!$TOUCH$ac_delim
13284 SORT!$SORT$ac_delim
13285 UNIQ!$UNIQ$ac_delim
13286 NOP!$NOP$ac_delim
13287 CAT!$CAT$ac_delim
13288 BISON!$BISON$ac_delim
13289 FLEX!$FLEX$ac_delim
13290 PNGTOPNM!$PNGTOPNM$ac_delim
13291 PPMTOILBM!$PPMTOILBM$ac_delim
13292 SED!$SED$ac_delim
13293 CHMOD!$CHMOD$ac_delim
13294 PYTHON!$PYTHON$ac_delim
13295 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13296 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13297 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13298 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13299 pythondir!$pythondir$ac_delim
13300 pkgpythondir!$pkgpythondir$ac_delim
13301 pyexecdir!$pyexecdir$ac_delim
13302 pkgpyexecdir!$pkgpyexecdir$ac_delim
13303 FOR!$FOR$ac_delim
13304 IF!$IF$ac_delim
13305 TEST!$TEST$ac_delim
13306 CMP!$CMP$ac_delim
13307 GREP!$GREP$ac_delim
13308 EGREP!$EGREP$ac_delim
13309 LIBOBJS!$LIBOBJS$ac_delim
13310 DISTCC!$DISTCC$ac_delim
13311 CCACHE!$CCACHE$ac_delim
13312 _ACEOF
13314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13315 break
13316 elif $ac_last_try; then
13317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13319 { (exit 1); exit 1; }; }
13320 else
13321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13323 done
13325 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13326 if test -n "$ac_eof"; then
13327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13328 ac_eof=`expr $ac_eof + 1`
13331 cat >>$CONFIG_STATUS <<_ACEOF
13332 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13334 _ACEOF
13335 sed '
13336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13337 s/^/s,@/; s/!/@,|#_!!_#|/
13340 s/'"$ac_delim"'$/,g/; t
13341 s/$/\\/; p
13342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13343 ' >>$CONFIG_STATUS <conf$$subs.sed
13344 rm -f conf$$subs.sed
13345 cat >>$CONFIG_STATUS <<_ACEOF
13346 CEOF$ac_eof
13347 _ACEOF
13350 ac_delim='%!_!# '
13351 for ac_last_try in false false false false false :; do
13352 cat >conf$$subs.sed <<_ACEOF
13353 aros_target_cc!$aros_target_cc$ac_delim
13354 aros_target_ld!$aros_target_ld$ac_delim
13355 aros_target_as_ln!$aros_target_as_ln$ac_delim
13356 aros_kernel_ld!$aros_kernel_ld$ac_delim
13357 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13358 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13359 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13360 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13361 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13362 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13363 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13364 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13365 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13366 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13367 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13368 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13369 host_cflags_iquote!$host_cflags_iquote$ac_delim
13370 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13371 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13372 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13373 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13374 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13375 XMKMF!$XMKMF$ac_delim
13376 SDL_CONFIG!$SDL_CONFIG$ac_delim
13377 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13378 SDL_LIBS!$SDL_LIBS$ac_delim
13379 aros_arch!$aros_arch$ac_delim
13380 aros_cpu!$aros_cpu$ac_delim
13381 aros_flavour!$aros_flavour$ac_delim
13382 aros_flavour_uc!$aros_flavour_uc$ac_delim
13383 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13384 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13385 SRCDIR!$SRCDIR$ac_delim
13386 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13387 aros_cc_pre!$aros_cc_pre$ac_delim
13388 aros_host_arch!$aros_host_arch$ac_delim
13389 aros_host_cpu!$aros_host_cpu$ac_delim
13390 aros_host_cc!$aros_host_cc$ac_delim
13391 aros_host_make!$aros_host_make$ac_delim
13392 aros_host_cflags!$aros_host_cflags$ac_delim
13393 aros_host_ldflags!$aros_host_ldflags$ac_delim
13394 aros_host_debug!$aros_host_debug$ac_delim
13395 aros_host_mkdep!$aros_host_mkdep$ac_delim
13396 aros_host_mkargs!$aros_host_mkargs$ac_delim
13397 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13398 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13399 aros_tools_dir!$aros_tools_dir$ac_delim
13400 aros_target_guitheme!$aros_target_guitheme$ac_delim
13401 aros_target_iconset!$aros_target_iconset$ac_delim
13402 aros_target_bootloader!$aros_target_bootloader$ac_delim
13403 aros_target_arch!$aros_target_arch$ac_delim
13404 aros_target_cpu!$aros_target_cpu$ac_delim
13405 aros_target_variant!$aros_target_variant$ac_delim
13406 aros_target_suffix!$aros_target_suffix$ac_delim
13407 aros_target_incl!$aros_target_incl$ac_delim
13408 aros_target_ar!$aros_target_ar$ac_delim
13409 aros_target_ranlib!$aros_target_ranlib$ac_delim
13410 aros_kernel_nm!$aros_kernel_nm$ac_delim
13411 orig_target_cc!$orig_target_cc$ac_delim
13412 aros_kernel_cc!$aros_kernel_cc$ac_delim
13413 aros_target_as!$aros_target_as$ac_delim
13414 orig_target_ld!$orig_target_ld$ac_delim
13415 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13416 aros_target_cc_path!$aros_target_cc_path$ac_delim
13417 aros_target_objdump!$aros_target_objdump$ac_delim
13418 aros_target_objcopy!$aros_target_objcopy$ac_delim
13419 aros_target_strip!$aros_target_strip$ac_delim
13420 aros_target_nm!$aros_target_nm$ac_delim
13421 aros_shared_default!$aros_shared_default$ac_delim
13422 aros_shared_ld!$aros_shared_ld$ac_delim
13423 aros_object_format!$aros_object_format$ac_delim
13424 aros_compiler_libs!$aros_compiler_libs$ac_delim
13425 aros_arch_libs!$aros_arch_libs$ac_delim
13426 aros_config_cflags!$aros_config_cflags$ac_delim
13427 aros_config_aflags!$aros_config_aflags$ac_delim
13428 aros_config_ldflags!$aros_config_ldflags$ac_delim
13429 aros_shared_cflags!$aros_shared_cflags$ac_delim
13430 aros_shared_aflags!$aros_shared_aflags$ac_delim
13431 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13432 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13433 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13434 aros_debug_cflags!$aros_debug_cflags$ac_delim
13435 aros_debug_aflags!$aros_debug_aflags$ac_delim
13436 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13437 aros_target_genmap!$aros_target_genmap$ac_delim
13438 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13439 x11_hidd_target!$x11_hidd_target$ac_delim
13440 sdl_hidd_target!$sdl_hidd_target$ac_delim
13441 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13442 aros_default_wbheight!$aros_default_wbheight$ac_delim
13443 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13444 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13445 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13446 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13447 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13448 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13449 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13450 _ACEOF
13452 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13453 break
13454 elif $ac_last_try; then
13455 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13456 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13457 { (exit 1); exit 1; }; }
13458 else
13459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13461 done
13463 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13464 if test -n "$ac_eof"; then
13465 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13466 ac_eof=`expr $ac_eof + 1`
13469 cat >>$CONFIG_STATUS <<_ACEOF
13470 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13472 _ACEOF
13473 sed '
13474 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13475 s/^/s,@/; s/!/@,|#_!!_#|/
13478 s/'"$ac_delim"'$/,g/; t
13479 s/$/\\/; p
13480 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13481 ' >>$CONFIG_STATUS <conf$$subs.sed
13482 rm -f conf$$subs.sed
13483 cat >>$CONFIG_STATUS <<_ACEOF
13484 CEOF$ac_eof
13485 _ACEOF
13488 ac_delim='%!_!# '
13489 for ac_last_try in false false false false false :; do
13490 cat >conf$$subs.sed <<_ACEOF
13491 aros_serial_debug!$aros_serial_debug$ac_delim
13492 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13493 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13494 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13495 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13496 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13497 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13498 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13499 ENABLE_X11!$ENABLE_X11$ac_delim
13500 aros_debug!$aros_debug$ac_delim
13501 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13502 aros_stack_debug!$aros_stack_debug$ac_delim
13503 aros_modules_debug!$aros_modules_debug$ac_delim
13504 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13505 gcc_target_cpu!$gcc_target_cpu$ac_delim
13506 LTLIBOBJS!$LTLIBOBJS$ac_delim
13507 _ACEOF
13509 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
13510 break
13511 elif $ac_last_try; then
13512 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13514 { (exit 1); exit 1; }; }
13515 else
13516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13518 done
13520 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13521 if test -n "$ac_eof"; then
13522 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13523 ac_eof=`expr $ac_eof + 1`
13526 cat >>$CONFIG_STATUS <<_ACEOF
13527 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13529 _ACEOF
13530 sed '
13531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13532 s/^/s,@/; s/!/@,|#_!!_#|/
13535 s/'"$ac_delim"'$/,g/; t
13536 s/$/\\/; p
13537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13538 ' >>$CONFIG_STATUS <conf$$subs.sed
13539 rm -f conf$$subs.sed
13540 cat >>$CONFIG_STATUS <<_ACEOF
13541 :end
13542 s/|#_!!_#|//g
13543 CEOF$ac_eof
13544 _ACEOF
13547 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13548 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13549 # trailing colons and then remove the whole line if VPATH becomes empty
13550 # (actually we leave an empty line to preserve line numbers).
13551 if test "x$srcdir" = x.; then
13552 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13553 s/:*\$(srcdir):*/:/
13554 s/:*\${srcdir}:*/:/
13555 s/:*@srcdir@:*/:/
13556 s/^\([^=]*=[ ]*\):*/\1/
13557 s/:*$//
13558 s/^[^=]*=[ ]*$//
13562 cat >>$CONFIG_STATUS <<\_ACEOF
13563 fi # test -n "$CONFIG_FILES"
13566 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13568 case $ac_tag in
13569 :[FHLC]) ac_mode=$ac_tag; continue;;
13570 esac
13571 case $ac_mode$ac_tag in
13572 :[FHL]*:*);;
13573 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13574 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13575 { (exit 1); exit 1; }; };;
13576 :[FH]-) ac_tag=-:-;;
13577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13578 esac
13579 ac_save_IFS=$IFS
13580 IFS=:
13581 set x $ac_tag
13582 IFS=$ac_save_IFS
13583 shift
13584 ac_file=$1
13585 shift
13587 case $ac_mode in
13588 :L) ac_source=$1;;
13589 :[FH])
13590 ac_file_inputs=
13591 for ac_f
13593 case $ac_f in
13594 -) ac_f="$tmp/stdin";;
13595 *) # Look for the file first in the build tree, then in the source tree
13596 # (if the path is not absolute). The absolute path cannot be DOS-style,
13597 # because $ac_f cannot contain `:'.
13598 test -f "$ac_f" ||
13599 case $ac_f in
13600 [\\/$]*) false;;
13601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13602 esac ||
13603 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13604 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13605 { (exit 1); exit 1; }; };;
13606 esac
13607 ac_file_inputs="$ac_file_inputs $ac_f"
13608 done
13610 # Let's still pretend it is `configure' which instantiates (i.e., don't
13611 # use $as_me), people would be surprised to read:
13612 # /* config.h. Generated by config.status. */
13613 configure_input="Generated from "`IFS=:
13614 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13615 if test x"$ac_file" != x-; then
13616 configure_input="$ac_file. $configure_input"
13617 { echo "$as_me:$LINENO: creating $ac_file" >&5
13618 echo "$as_me: creating $ac_file" >&6;}
13621 case $ac_tag in
13622 *:-:* | *:-) cat >"$tmp/stdin";;
13623 esac
13625 esac
13627 ac_dir=`$as_dirname -- "$ac_file" ||
13628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13629 X"$ac_file" : 'X\(//\)[^/]' \| \
13630 X"$ac_file" : 'X\(//\)$' \| \
13631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13632 echo X"$ac_file" |
13633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13634 s//\1/
13637 /^X\(\/\/\)[^/].*/{
13638 s//\1/
13641 /^X\(\/\/\)$/{
13642 s//\1/
13645 /^X\(\/\).*/{
13646 s//\1/
13649 s/.*/./; q'`
13650 { as_dir="$ac_dir"
13651 case $as_dir in #(
13652 -*) as_dir=./$as_dir;;
13653 esac
13654 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13655 as_dirs=
13656 while :; do
13657 case $as_dir in #(
13658 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13659 *) as_qdir=$as_dir;;
13660 esac
13661 as_dirs="'$as_qdir' $as_dirs"
13662 as_dir=`$as_dirname -- "$as_dir" ||
13663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13664 X"$as_dir" : 'X\(//\)[^/]' \| \
13665 X"$as_dir" : 'X\(//\)$' \| \
13666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13667 echo X"$as_dir" |
13668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13669 s//\1/
13672 /^X\(\/\/\)[^/].*/{
13673 s//\1/
13676 /^X\(\/\/\)$/{
13677 s//\1/
13680 /^X\(\/\).*/{
13681 s//\1/
13684 s/.*/./; q'`
13685 test -d "$as_dir" && break
13686 done
13687 test -z "$as_dirs" || eval "mkdir $as_dirs"
13688 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13690 { (exit 1); exit 1; }; }; }
13691 ac_builddir=.
13693 case "$ac_dir" in
13694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13697 # A ".." for each directory in $ac_dir_suffix.
13698 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13699 case $ac_top_builddir_sub in
13700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13702 esac ;;
13703 esac
13704 ac_abs_top_builddir=$ac_pwd
13705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13706 # for backward compatibility:
13707 ac_top_builddir=$ac_top_build_prefix
13709 case $srcdir in
13710 .) # We are building in place.
13711 ac_srcdir=.
13712 ac_top_srcdir=$ac_top_builddir_sub
13713 ac_abs_top_srcdir=$ac_pwd ;;
13714 [\\/]* | ?:[\\/]* ) # Absolute name.
13715 ac_srcdir=$srcdir$ac_dir_suffix;
13716 ac_top_srcdir=$srcdir
13717 ac_abs_top_srcdir=$srcdir ;;
13718 *) # Relative name.
13719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13720 ac_top_srcdir=$ac_top_build_prefix$srcdir
13721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13722 esac
13723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13726 case $ac_mode in
13729 # CONFIG_FILE
13732 _ACEOF
13734 cat >>$CONFIG_STATUS <<\_ACEOF
13735 # If the template does not know about datarootdir, expand it.
13736 # FIXME: This hack should be removed a few years after 2.60.
13737 ac_datarootdir_hack=; ac_datarootdir_seen=
13739 case `sed -n '/datarootdir/ {
13743 /@datadir@/p
13744 /@docdir@/p
13745 /@infodir@/p
13746 /@localedir@/p
13747 /@mandir@/p
13748 ' $ac_file_inputs` in
13749 *datarootdir*) ac_datarootdir_seen=yes;;
13750 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13751 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13752 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13753 _ACEOF
13754 cat >>$CONFIG_STATUS <<_ACEOF
13755 ac_datarootdir_hack='
13756 s&@datadir@&$datadir&g
13757 s&@docdir@&$docdir&g
13758 s&@infodir@&$infodir&g
13759 s&@localedir@&$localedir&g
13760 s&@mandir@&$mandir&g
13761 s&\\\${datarootdir}&$datarootdir&g' ;;
13762 esac
13763 _ACEOF
13765 # Neutralize VPATH when `$srcdir' = `.'.
13766 # Shell code in configure.ac might set extrasub.
13767 # FIXME: do we really want to maintain this feature?
13768 cat >>$CONFIG_STATUS <<_ACEOF
13769 sed "$ac_vpsub
13770 $extrasub
13771 _ACEOF
13772 cat >>$CONFIG_STATUS <<\_ACEOF
13774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13775 s&@configure_input@&$configure_input&;t t
13776 s&@top_builddir@&$ac_top_builddir_sub&;t t
13777 s&@srcdir@&$ac_srcdir&;t t
13778 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13779 s&@top_srcdir@&$ac_top_srcdir&;t t
13780 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13781 s&@builddir@&$ac_builddir&;t t
13782 s&@abs_builddir@&$ac_abs_builddir&;t t
13783 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13784 $ac_datarootdir_hack
13785 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13787 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13788 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13789 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13790 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13791 which seems to be undefined. Please make sure it is defined." >&5
13792 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13793 which seems to be undefined. Please make sure it is defined." >&2;}
13795 rm -f "$tmp/stdin"
13796 case $ac_file in
13797 -) cat "$tmp/out"; rm -f "$tmp/out";;
13798 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13799 esac
13803 # CONFIG_HEADER
13805 _ACEOF
13807 # Transform confdefs.h into a sed script `conftest.defines', that
13808 # substitutes the proper values into config.h.in to produce config.h.
13809 rm -f conftest.defines conftest.tail
13810 # First, append a space to every undef/define line, to ease matching.
13811 echo 's/$/ /' >conftest.defines
13812 # Then, protect against being on the right side of a sed subst, or in
13813 # an unquoted here document, in config.status. If some macros were
13814 # called several times there might be several #defines for the same
13815 # symbol, which is useless. But do not sort them, since the last
13816 # AC_DEFINE must be honored.
13817 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13818 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13819 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13820 # PARAMS is the parameter list in the macro definition--in most cases, it's
13821 # just an empty string.
13822 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13823 ac_dB='\\)[ (].*,\\1define\\2'
13824 ac_dC=' '
13825 ac_dD=' ,'
13827 uniq confdefs.h |
13828 sed -n '
13829 t rset
13830 :rset
13831 s/^[ ]*#[ ]*define[ ][ ]*//
13832 t ok
13835 s/[\\&,]/\\&/g
13836 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13837 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13838 ' >>conftest.defines
13840 # Remove the space that was appended to ease matching.
13841 # Then replace #undef with comments. This is necessary, for
13842 # example, in the case of _POSIX_SOURCE, which is predefined and required
13843 # on some systems where configure will not decide to define it.
13844 # (The regexp can be short, since the line contains either #define or #undef.)
13845 echo 's/ $//
13846 s,^[ #]*u.*,/* & */,' >>conftest.defines
13848 # Break up conftest.defines:
13849 ac_max_sed_lines=50
13851 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13852 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13853 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13854 # et cetera.
13855 ac_in='$ac_file_inputs'
13856 ac_out='"$tmp/out1"'
13857 ac_nxt='"$tmp/out2"'
13859 while :
13861 # Write a here document:
13862 cat >>$CONFIG_STATUS <<_ACEOF
13863 # First, check the format of the line:
13864 cat >"\$tmp/defines.sed" <<\\CEOF
13865 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13866 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13868 :def
13869 _ACEOF
13870 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13871 echo 'CEOF
13872 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13873 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13874 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13875 grep . conftest.tail >/dev/null || break
13876 rm -f conftest.defines
13877 mv conftest.tail conftest.defines
13878 done
13879 rm -f conftest.defines conftest.tail
13881 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13882 cat >>$CONFIG_STATUS <<\_ACEOF
13883 if test x"$ac_file" != x-; then
13884 echo "/* $configure_input */" >"$tmp/config.h"
13885 cat "$ac_result" >>"$tmp/config.h"
13886 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13887 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13888 echo "$as_me: $ac_file is unchanged" >&6;}
13889 else
13890 rm -f $ac_file
13891 mv "$tmp/config.h" $ac_file
13893 else
13894 echo "/* $configure_input */"
13895 cat "$ac_result"
13897 rm -f "$tmp/out12"
13900 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13901 echo "$as_me: executing $ac_file commands" >&6;}
13903 esac
13906 case $ac_file$ac_mode in
13907 "compiler_executable":C)
13908 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13909 mkdir -p $prefix
13910 prefix="${prefix}/${aros_target_cpu}-aros"
13911 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13913 echo ${prefix}
13914 echo ${prefix2}
13915 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13917 ln -sf ${prefix2}-gcc ${prefix}-gcc
13918 ln -sf ${prefix2}-ld ${prefix}-ld
13920 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
13921 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
13922 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
13923 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
13924 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
13925 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
13926 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
13928 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
13929 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
13930 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
13931 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
13932 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
13933 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
13934 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
13936 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
13937 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13939 esac
13940 done # for ac_tag
13943 { (exit 0); exit 0; }
13944 _ACEOF
13945 chmod +x $CONFIG_STATUS
13946 ac_clean_files=$ac_clean_files_save
13949 # configure is writing to config.log, and then calls config.status.
13950 # config.status does its own redirection, appending to config.log.
13951 # Unfortunately, on DOS this fails, as config.log is still kept open
13952 # by configure, so config.status won't be able to write to it; its
13953 # output is simply discarded. So we exec the FD to /dev/null,
13954 # effectively closing config.log, so it can be properly (re)opened and
13955 # appended to by config.status. When coming back to configure, we
13956 # need to make the FD available again.
13957 if test "$no_create" != yes; then
13958 ac_cs_success=:
13959 ac_config_status_args=
13960 test "$silent" = yes &&
13961 ac_config_status_args="$ac_config_status_args --quiet"
13962 exec 5>/dev/null
13963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13964 exec 5>>config.log
13965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13966 # would make configure fail if this is the last instruction.
13967 $ac_cs_success || { (exit 1); exit 1; }
13972 #XXX compatability...
13973 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13975 if test -n "$aros_shared_cflags" ; then
13976 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13977 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg