add -ffixed-r10 for arm targets
[AROS.git] / configure
blob7332d83b4da0bfb8eda0d539d2de0bda24e9a343
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_target_cxx
724 aros_kernel_rescomp
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
730 host_cflags_iquote
731 host_cflags_iquote_end
732 kernel_cflags_iquote
733 kernel_cflags_iquote_end
734 aros_cflags_iquote
735 aros_cflags_iquote_end
736 XMKMF
737 SDL_CONFIG
738 SDL_CFLAGS
739 SDL_LIBS
740 aros_arch
741 aros_cpu
742 aros_flavour
743 aros_flavour_uc
744 AROS_BUILDDIR
745 AROS_BUILDDIR_UNIX
746 SRCDIR
747 AROS_PORTSSRCDIR
748 aros_cc_pre
749 aros_host_arch
750 aros_host_cpu
751 aros_host_cc
752 aros_host_make
753 aros_host_cflags
754 aros_host_ldflags
755 aros_host_debug
756 aros_host_mkdep
757 aros_host_mkargs
758 aros_host_exe_suffix
759 aros_host_lib_suffix
760 aros_tools_dir
761 aros_target_guitheme
762 aros_target_iconset
763 aros_target_bootloader
764 aros_target_arch
765 aros_target_cpu
766 aros_target_variant
767 aros_target_suffix
768 aros_target_incl
769 aros_target_ar
770 aros_target_ranlib
771 aros_kernel_nm
772 orig_target_cc
773 aros_kernel_cc
774 aros_target_as
775 orig_target_ld
776 aros_target_cc_includes
777 aros_target_cc_path
778 aros_target_objdump
779 aros_target_objcopy
780 aros_target_strip
781 aros_target_nm
782 aros_shared_default
783 aros_shared_ld
784 aros_object_format
785 aros_compiler_libs
786 aros_arch_libs
787 aros_config_cflags
788 aros_config_aflags
789 aros_config_ldflags
790 aros_shared_cflags
791 aros_shared_aflags
792 aros_shared_ldflags
793 aros_kernel_cflags
794 aros_kernel_objcflags
795 aros_kernel_ldflags
796 aros_debug_cflags
797 aros_debug_aflags
798 aros_debug_ldflags
799 aros_paranoia_cflags
800 aros_target_genmap
801 aros_target_strip_flags
802 crosstools_target
803 x11_hidd_target
804 sdl_hidd_target
805 aros_default_wbwidth
806 aros_default_wbheight
807 aros_default_wbdepth
808 DO_XSHM_SUPPORT
809 DO_VIDMODE_SUPPORT
810 aros_host_x11_includes
811 aros_host_x11_libdirs
812 aros_host_sdl_cflags
813 aros_host_sdl_libs
814 aros_serial_debug
815 aros_palm_debug_hack
816 aros_nesting_supervisor
817 aros_ios_platform
818 aros_ios_version
819 aros_ios_sdk
820 ENABLE_DBUS
821 DBUS_CFLAGS
822 DBUS_LIBFLAGS
823 KERNEL_DBUS_KOBJ
824 KERNEL_DBUS_INCLUDES
825 ENABLE_X11
826 aros_debug
827 aros_mungwall_debug
828 aros_stack_debug
829 aros_modules_debug
830 ignore_undefined_symbols
831 gcc_target_cpu
832 LTLIBOBJS'
833 ac_subst_files=''
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
843 XMKMF'
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
950 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951 { (exit 1); exit 1; }; }
952 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
953 eval enable_$ac_feature=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
969 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
970 { (exit 1); exit 1; }; }
971 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
972 eval enable_$ac_feature=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1162 -with-* | --with-*)
1163 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid package name: $ac_package" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1169 eval with_$ac_package=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid package name: $ac_package" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1178 eval with_$ac_package=no ;;
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) { echo "$as_me: error: unrecognized option: $ac_option
1199 Try \`$0 --help' for more information." >&2
1200 { (exit 1); exit 1; }; }
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1208 { (exit 1); exit 1; }; }
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220 esac
1221 done
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 { echo "$as_me: error: missing argument to $ac_option" >&2
1226 { (exit 1); exit 1; }; }
1229 # Be sure to have absolute directory names.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1235 eval ac_val=\$$ac_var
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1241 { (exit 1); exit 1; }; }
1242 done
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1256 If a cross compiler is detected then cross compile mode will be used." >&2
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265 test "$silent" = yes && exec 6>/dev/null
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 { echo "$as_me: error: Working directory cannot be determined" >&2
1272 { (exit 1); exit 1; }; }
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 { echo "$as_me: error: pwd does not report name of working directory" >&2
1275 { (exit 1); exit 1; }; }
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$0" ||
1283 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$0" : 'X\(//\)[^/]' \| \
1285 X"$0" : 'X\(//\)$' \| \
1286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1287 echo X"$0" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1296 /^X\(\/\/\)$/{
1297 s//\1/
1300 /^X\(\/\).*/{
1301 s//\1/
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1309 else
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1315 { (exit 1); exit 1; }; }
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1320 { (exit 1); exit 1; }; }
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1340 # Report the --help message.
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures this package to adapt to many kinds of systems.
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1353 Defaults for the options are specified in brackets.
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1377 For better control, use the options below.
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1401 cat <<\_ACEOF
1403 X features:
1404 --x-includes=DIR X include files are in DIR
1405 --x-libraries=DIR X library files are in DIR
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 _ACEOF
1413 if test -n "$ac_init_help"; then
1415 cat <<\_ACEOF
1417 Optional Features:
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-build-type=TYPE
1421 Select the build type. Available types are:
1422 personal, nightly, snapshot, milestone, release. Do
1423 NOT use this option unless you know what you are
1424 doing! (default=personal)
1425 --enable-debug=list Enable different types of debug. Commas or
1426 whitespaces can be used to separate the items in the
1427 list. Available types of debug are: all, none,
1428 messages, stack, mungwall, modules, symbols. If no
1429 list is provided then "all" is assumed.
1430 (default=none)
1431 --enable-crosstools Build cross-compiler toolchains if necessary
1432 (default=no).
1433 --enable-distcc Use distcc as a front end to the compiler
1434 (default=no).
1435 --enable-ccache Use ccache as a front end to the compiler
1436 (default=no).
1437 --enable-target-variant=NAME
1438 Enable a specific target variant(default=none)
1439 --enable-includes=dir Alternative system include directory
1440 --enable-palm-debug-hack
1441 Enable palm debug output hack in palm native
1442 (default=no)
1443 --enable-nesting-supervisor
1444 Enable nesting supervisor support in unix
1445 (default=no)
1446 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1447 --enable-x11-shm use X11 shared memory (default=auto)
1448 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1449 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1450 --disable-sdltest Do not try to compile and run a test SDL program
1451 --enable-dbus Enable DBUS support via dbus.library (default=no)
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-gcc-version=VERSION
1457 Use gcc-VERSION for building AROS
1458 --with-optimization=FLAGS
1459 Use optimization flags FLAGS (default=-O2).
1460 --with-paranoia=FLAGS CC flags to enable paranoia
1461 --with-xcode=PATH Specify XCode path for iOS targets
1462 (default=/Developer).
1463 --with-ios-version=VERSION
1464 Specify minimum supported iOS version (default=2.0).
1465 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1466 --with-portssources=DIR Where to download sourcecode for external ports
1467 --with-bootloader=NAME Use a specific bootloader
1468 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1469 --with-theme=NAME Use a specific GUI Theme
1470 --with-resolution=XRESxYRESxDEPTH
1471 Default resolution of the initial WorkbenchScreen
1472 --with-serial-debug Enable serial debug output in native (default=no)
1473 --with-x use the X Window System
1474 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1475 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486 XMKMF Path to xmkmf, Makefile generator for X Window System
1488 Use these variables to override the choices made by `configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1491 _ACEOF
1492 ac_status=$?
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" || continue
1499 ac_builddir=.
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550 cat <<\_ACEOF
1551 configure
1552 generated by GNU Autoconf 2.61
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1565 It was created by $as_me, which was
1566 generated by GNU Autoconf 2.61. Invocation command line was
1568 $ $0 $@
1570 _ACEOF
1571 exec 5>>config.log
1573 cat <<_ASUNAME
1574 ## --------- ##
1575 ## Platform. ##
1576 ## --------- ##
1578 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1587 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1590 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1591 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1595 _ASUNAME
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 echo "PATH: $as_dir"
1603 done
1604 IFS=$as_save_IFS
1606 } >&5
1608 cat >&5 <<_ACEOF
1611 ## ----------- ##
1612 ## Core tests. ##
1613 ## ----------- ##
1615 _ACEOF
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_configure_args=
1624 ac_configure_args0=
1625 ac_configure_args1=
1626 ac_must_keep_next=false
1627 for ac_pass in 1 2
1629 for ac_arg
1631 case $ac_arg in
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 continue ;;
1636 *\'*)
1637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1638 esac
1639 case $ac_pass in
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
1644 ac_must_keep_next=false # Got value, back to normal.
1645 else
1646 case $ac_arg in
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 esac
1655 -* ) ac_must_keep_next=true ;;
1656 esac
1658 ac_configure_args="$ac_configure_args '$ac_arg'"
1660 esac
1661 done
1662 done
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log. We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1674 echo
1676 cat <<\_ASBOX
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1680 _ASBOX
1681 echo
1682 # The following way of writing the cache mishandles newlines in values,
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in #(
1687 *${as_nl}*)
1688 case $ac_var in #(
1689 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1690 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1691 esac
1692 case $ac_var in #(
1693 _ | IFS | as_nl) ;; #(
1694 *) $as_unset $ac_var ;;
1695 esac ;;
1696 esac
1697 done
1698 (set) 2>&1 |
1699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
1701 sed -n \
1702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 ;; #(
1706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1708 esac |
1709 sort
1711 echo
1713 cat <<\_ASBOX
1714 ## ----------------- ##
1715 ## Output variables. ##
1716 ## ----------------- ##
1717 _ASBOX
1718 echo
1719 for ac_var in $ac_subst_vars
1721 eval ac_val=\$$ac_var
1722 case $ac_val in
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 esac
1725 echo "$ac_var='\''$ac_val'\''"
1726 done | sort
1727 echo
1729 if test -n "$ac_subst_files"; then
1730 cat <<\_ASBOX
1731 ## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_files
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1747 if test -s confdefs.h; then
1748 cat <<\_ASBOX
1749 ## ----------- ##
1750 ## confdefs.h. ##
1751 ## ----------- ##
1752 _ASBOX
1753 echo
1754 cat confdefs.h
1755 echo
1757 test "$ac_signal" != 0 &&
1758 echo "$as_me: caught signal $ac_signal"
1759 echo "$as_me: exit $exit_status"
1760 } >&5
1761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763 exit $exit_status
1765 for ac_signal in 1 2 13 15; do
1766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1767 done
1768 ac_signal=0
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1773 # Predefined preprocessor variables.
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 _ACEOF
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 _ACEOF
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1787 _ACEOF
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_STRING "$PACKAGE_STRING"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 _ACEOF
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer explicitly selected file to automatically selected ones.
1802 if test -n "$CONFIG_SITE"; then
1803 set x "$CONFIG_SITE"
1804 elif test "x$prefix" != xNONE; then
1805 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1806 else
1807 set x "$ac_default_prefix/share/config.site" \
1808 "$ac_default_prefix/etc/config.site"
1810 shift
1811 for ac_site_file
1813 if test -r "$ac_site_file"; then
1814 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1815 echo "$as_me: loading site script $ac_site_file" >&6;}
1816 sed 's/^/| /' "$ac_site_file" >&5
1817 . "$ac_site_file"
1819 done
1821 if test -r "$cache_file"; then
1822 # Some versions of bash will fail to source /dev/null (special
1823 # files actually), so we avoid doing that.
1824 if test -f "$cache_file"; then
1825 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1826 echo "$as_me: loading cache $cache_file" >&6;}
1827 case $cache_file in
1828 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1829 *) . "./$cache_file";;
1830 esac
1832 else
1833 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1834 echo "$as_me: creating cache $cache_file" >&6;}
1835 >$cache_file
1838 # Check that the precious variables saved in the cache have kept the same
1839 # value.
1840 ac_cache_corrupted=false
1841 for ac_var in $ac_precious_vars; do
1842 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1843 eval ac_new_set=\$ac_env_${ac_var}_set
1844 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1845 eval ac_new_val=\$ac_env_${ac_var}_value
1846 case $ac_old_set,$ac_new_set in
1847 set,)
1848 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1850 ac_cache_corrupted=: ;;
1851 ,set)
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,);;
1857 if test "x$ac_old_val" != "x$ac_new_val"; then
1858 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1861 echo "$as_me: former value: $ac_old_val" >&2;}
1862 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1863 echo "$as_me: current value: $ac_new_val" >&2;}
1864 ac_cache_corrupted=:
1865 fi;;
1866 esac
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1869 case $ac_new_val in
1870 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 *) ac_arg=$ac_var=$ac_new_val ;;
1872 esac
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876 esac
1878 done
1879 if $ac_cache_corrupted; then
1880 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884 { (exit 1); exit 1; }; }
1903 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 ac_aux_dir=
1912 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1913 if test -f "$ac_dir/install-sh"; then
1914 ac_aux_dir=$ac_dir
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1916 break
1917 elif test -f "$ac_dir/install.sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1920 break
1921 elif test -f "$ac_dir/shtool"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1924 break
1926 done
1927 if test -z "$ac_aux_dir"; then
1928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943 # Check what host we are running on.
1944 # If a target is not suggested, we use this one.
1945 # Note that what we call a target, Autoconf calls a host.
1946 # Make sure we can run config.sub.
1947 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1948 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1949 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1950 { (exit 1); exit 1; }; }
1952 { echo "$as_me:$LINENO: checking build system type" >&5
1953 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1954 if test "${ac_cv_build+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 ac_build_alias=$build_alias
1958 test "x$ac_build_alias" = x &&
1959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1960 test "x$ac_build_alias" = x &&
1961 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1962 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1963 { (exit 1); exit 1; }; }
1964 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1965 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1966 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1967 { (exit 1); exit 1; }; }
1970 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1971 echo "${ECHO_T}$ac_cv_build" >&6; }
1972 case $ac_cv_build in
1973 *-*-*) ;;
1974 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1975 echo "$as_me: error: invalid value of canonical build" >&2;}
1976 { (exit 1); exit 1; }; };;
1977 esac
1978 build=$ac_cv_build
1979 ac_save_IFS=$IFS; IFS='-'
1980 set x $ac_cv_build
1981 shift
1982 build_cpu=$1
1983 build_vendor=$2
1984 shift; shift
1985 # Remember, the first character of IFS is used to create $*,
1986 # except with old shells:
1987 build_os=$*
1988 IFS=$ac_save_IFS
1989 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1992 { echo "$as_me:$LINENO: checking host system type" >&5
1993 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1994 if test "${ac_cv_host+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 if test "x$host_alias" = x; then
1998 ac_cv_host=$ac_cv_build
1999 else
2000 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2001 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2002 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2003 { (exit 1); exit 1; }; }
2007 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2008 echo "${ECHO_T}$ac_cv_host" >&6; }
2009 case $ac_cv_host in
2010 *-*-*) ;;
2011 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2012 echo "$as_me: error: invalid value of canonical host" >&2;}
2013 { (exit 1); exit 1; }; };;
2014 esac
2015 host=$ac_cv_host
2016 ac_save_IFS=$IFS; IFS='-'
2017 set x $ac_cv_host
2018 shift
2019 host_cpu=$1
2020 host_vendor=$2
2021 shift; shift
2022 # Remember, the first character of IFS is used to create $*,
2023 # except with old shells:
2024 host_os=$*
2025 IFS=$ac_save_IFS
2026 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2030 # The AROS target is slightly different to the normal GNU style
2031 # format. We don't have the middle part, and we reverse the order
2032 # of the $(CPU) and $(OS) bits.
2034 # Don't strip the version of the target yet, it might be
2035 # useful on some systems.
2037 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2038 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2040 if test "$target" = "NONE" ; then
2041 target=$host_os-$host_cpu
2042 cross_compile=no
2043 else
2044 if test "$target" = "" ; then
2045 target=$host_os-$host_cpu
2046 cross_compile=no
2047 else
2048 cross_compile=yes
2051 { echo "$as_me:$LINENO: result: $target" >&5
2052 echo "${ECHO_T}$target" >&6; }
2054 if test "$host_os" = "mingw32" ; then
2055 PWDCMD="pwd -W"
2058 #don't know where else to put this...
2059 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2060 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2061 AROS_BUILDDIR=`${PWDCMD-pwd}`
2062 AROS_BUILDDIR_UNIX=${PWD}
2063 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2064 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2066 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2067 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2068 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2069 SRCDIR=${srcpwd}
2070 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2071 echo "${ECHO_T}$SRCDIR" >&6; }
2073 # Parse the target field into something useful.
2075 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2076 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2079 aros_default_wbwidth=800
2080 aros_default_wbheight=600
2081 aros_default_wbdepth=4
2084 # The first step is to find the host binaries.
2085 # Check for a compiler.
2086 ac_ext=c
2087 ac_cpp='$CPP $CPPFLAGS'
2088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091 if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2093 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 break 2
2113 done
2114 done
2115 IFS=$as_save_IFS
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121 { echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6; }
2123 else
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2130 if test -z "$ac_cv_prog_CC"; then
2131 ac_ct_CC=$CC
2132 # Extract the first word of "gcc", so it can be a program name with args.
2133 set dummy gcc; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test -n "$ac_ct_CC"; then
2140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_ac_ct_CC="gcc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2153 done
2154 done
2155 IFS=$as_save_IFS
2159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160 if test -n "$ac_ct_CC"; then
2161 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162 echo "${ECHO_T}$ac_ct_CC" >&6; }
2163 else
2164 { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2168 if test "x$ac_ct_CC" = x; then
2169 CC=""
2170 else
2171 case $cross_compiling:$ac_tool_warned in
2172 yes:)
2173 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2174 whose name does not start with the host triplet. If you think this
2175 configuration is useful to you, please write to autoconf@gnu.org." >&5
2176 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2179 ac_tool_warned=yes ;;
2180 esac
2181 CC=$ac_ct_CC
2183 else
2184 CC="$ac_cv_prog_CC"
2187 if test -z "$CC"; then
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}cc; ac_word=$2
2191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_CC="${ac_tool_prefix}cc"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2
2210 done
2211 done
2212 IFS=$as_save_IFS
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 { echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6; }
2220 else
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2228 if test -z "$CC"; then
2229 # Extract the first word of "cc", so it can be a program name with args.
2230 set dummy cc; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 ac_prog_rejected=no
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2248 ac_prog_rejected=yes
2249 continue
2251 ac_cv_prog_CC="cc"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2255 done
2256 done
2257 IFS=$as_save_IFS
2259 if test $ac_prog_rejected = yes; then
2260 # We found a bogon in the path, so make sure we never use it.
2261 set dummy $ac_cv_prog_CC
2262 shift
2263 if test $# != 0; then
2264 # We chose a different compiler from the bogus one.
2265 # However, it has the same basename, so the bogon will be chosen
2266 # first if we set CC to just the basename; use the full file name.
2267 shift
2268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2273 CC=$ac_cv_prog_CC
2274 if test -n "$CC"; then
2275 { echo "$as_me:$LINENO: result: $CC" >&5
2276 echo "${ECHO_T}$CC" >&6; }
2277 else
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2286 for ac_prog in cl.exe
2288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2309 done
2310 done
2311 IFS=$as_save_IFS
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317 { echo "$as_me:$LINENO: result: $CC" >&5
2318 echo "${ECHO_T}$CC" >&6; }
2319 else
2320 { echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6; }
2325 test -n "$CC" && break
2326 done
2328 if test -z "$CC"; then
2329 ac_ct_CC=$CC
2330 for ac_prog in cl.exe
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if test -n "$ac_ct_CC"; then
2340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_ac_ct_CC="$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2353 done
2354 done
2355 IFS=$as_save_IFS
2359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2360 if test -n "$ac_ct_CC"; then
2361 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2362 echo "${ECHO_T}$ac_ct_CC" >&6; }
2363 else
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2369 test -n "$ac_ct_CC" && break
2370 done
2372 if test "x$ac_ct_CC" = x; then
2373 CC=""
2374 else
2375 case $cross_compiling:$ac_tool_warned in
2376 yes:)
2377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&5
2380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet. If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2383 ac_tool_warned=yes ;;
2384 esac
2385 CC=$ac_ct_CC
2392 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2393 See \`config.log' for more details." >&5
2394 echo "$as_me: error: no acceptable C compiler found in \$PATH
2395 See \`config.log' for more details." >&2;}
2396 { (exit 1); exit 1; }; }
2398 # Provide some information about the compiler.
2399 echo "$as_me:$LINENO: checking for C compiler version" >&5
2400 ac_compiler=`set X $ac_compile; echo $2`
2401 { (ac_try="$ac_compiler --version >&5"
2402 case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405 esac
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407 (eval "$ac_compiler --version >&5") 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }
2411 { (ac_try="$ac_compiler -v >&5"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compiler -v >&5") 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (ac_try="$ac_compiler -V >&5"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_compiler -V >&5") 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 main ()
2444 return 0;
2446 _ACEOF
2447 ac_clean_files_save=$ac_clean_files
2448 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2449 # Try to create an executable without -o first, disregard a.out.
2450 # It will help us diagnose broken compilers, and finding out an intuition
2451 # of exeext.
2452 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2453 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2454 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2456 # List of possible output files, starting from the most likely.
2457 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2458 # only as a last resort. b.out is created by i960 compilers.
2459 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2461 # The IRIX 6 linker writes into existing files which may not be
2462 # executable, retaining their permissions. Remove them first so a
2463 # subsequent execution test works.
2464 ac_rmfiles=
2465 for ac_file in $ac_files
2467 case $ac_file in
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2469 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2470 esac
2471 done
2472 rm -f $ac_rmfiles
2474 if { (ac_try="$ac_link_default"
2475 case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_link_default") 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; then
2484 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2485 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2486 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2487 # so that the user can short-circuit this test for compilers unknown to
2488 # Autoconf.
2489 for ac_file in $ac_files ''
2491 test -f "$ac_file" || continue
2492 case $ac_file in
2493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2495 [ab].out )
2496 # We found the default executable, but exeext='' is most
2497 # certainly right.
2498 break;;
2499 *.* )
2500 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2501 then :; else
2502 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504 # We set ac_cv_exeext here because the later test for it is not
2505 # safe: cross compilers may not add the suffix if given an `-o'
2506 # argument, so we may need to know it at that point already.
2507 # Even if this section looks crufty: it has the advantage of
2508 # actually working.
2509 break;;
2511 break;;
2512 esac
2513 done
2514 test "$ac_cv_exeext" = no && ac_cv_exeext=
2516 else
2517 ac_file=''
2520 { echo "$as_me:$LINENO: result: $ac_file" >&5
2521 echo "${ECHO_T}$ac_file" >&6; }
2522 if test -z "$ac_file"; then
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C compiler cannot create executables
2529 See \`config.log' for more details." >&2;}
2530 { (exit 77); exit 77; }; }
2533 ac_exeext=$ac_cv_exeext
2535 # Check that the compiler produces executables we can run. If not, either
2536 # the compiler is broken, or we cross compile.
2537 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2538 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2540 # If not cross compiling, check that we can run a simple program.
2541 if test "$cross_compiling" != yes; then
2542 if { ac_try='./$ac_file'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 cross_compiling=no
2553 else
2554 if test "$cross_compiling" = maybe; then
2555 cross_compiling=yes
2556 else
2557 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2558 If you meant to cross compile, use \`--host'.
2559 See \`config.log' for more details." >&5
2560 echo "$as_me: error: cannot run C compiled programs.
2561 If you meant to cross compile, use \`--host'.
2562 See \`config.log' for more details." >&2;}
2563 { (exit 1); exit 1; }; }
2567 { echo "$as_me:$LINENO: result: yes" >&5
2568 echo "${ECHO_T}yes" >&6; }
2570 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2571 ac_clean_files=$ac_clean_files_save
2572 # Check that the compiler produces executables we can run. If not, either
2573 # the compiler is broken, or we cross compile.
2574 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2575 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2576 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2577 echo "${ECHO_T}$cross_compiling" >&6; }
2579 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2580 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2581 if { (ac_try="$ac_link"
2582 case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_link") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
2591 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2592 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2593 # work properly (i.e., refer to `conftest.exe'), while it won't with
2594 # `rm'.
2595 for ac_file in conftest.exe conftest conftest.*; do
2596 test -f "$ac_file" || continue
2597 case $ac_file in
2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600 break;;
2601 * ) break;;
2602 esac
2603 done
2604 else
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2612 rm -f conftest$ac_cv_exeext
2613 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2614 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2616 rm -f conftest.$ac_ext
2617 EXEEXT=$ac_cv_exeext
2618 ac_exeext=$EXEEXT
2619 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2620 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2621 if test "${ac_cv_objext+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2632 main ()
2636 return 0;
2638 _ACEOF
2639 rm -f conftest.o conftest.obj
2640 if { (ac_try="$ac_compile"
2641 case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; then
2650 for ac_file in conftest.o conftest.obj conftest.*; do
2651 test -f "$ac_file" || continue;
2652 case $ac_file in
2653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2655 break;;
2656 esac
2657 done
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2662 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2671 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2672 echo "${ECHO_T}$ac_cv_objext" >&6; }
2673 OBJEXT=$ac_cv_objext
2674 ac_objext=$OBJEXT
2675 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2676 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2677 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2688 main ()
2690 #ifndef __GNUC__
2691 choke me
2692 #endif
2695 return 0;
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
2715 ac_compiler_gnu=yes
2716 else
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2720 ac_compiler_gnu=no
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2729 GCC=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2733 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_cc_g+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 ac_save_c_werror_flag=$ac_c_werror_flag
2738 ac_c_werror_flag=yes
2739 ac_cv_prog_cc_g=no
2740 CFLAGS="-g"
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2749 main ()
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (ac_try="$ac_compile"
2758 case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compile") 2>conftest.er1
2764 ac_status=$?
2765 grep -v '^ *+' conftest.er1 >conftest.err
2766 rm -f conftest.er1
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } && {
2770 test -z "$ac_c_werror_flag" ||
2771 test ! -s conftest.err
2772 } && test -s conftest.$ac_objext; then
2773 ac_cv_prog_cc_g=yes
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2778 CFLAGS=""
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2787 main ()
2791 return 0;
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (ac_try="$ac_compile"
2796 case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_compile") 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } && {
2808 test -z "$ac_c_werror_flag" ||
2809 test ! -s conftest.err
2810 } && test -s conftest.$ac_objext; then
2812 else
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2816 ac_c_werror_flag=$ac_save_c_werror_flag
2817 CFLAGS="-g"
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2826 main ()
2830 return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } && {
2847 test -z "$ac_c_werror_flag" ||
2848 test ! -s conftest.err
2849 } && test -s conftest.$ac_objext; then
2850 ac_cv_prog_cc_g=yes
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_c_werror_flag=$ac_save_c_werror_flag
2867 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2868 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2869 if test "$ac_test_CFLAGS" = set; then
2870 CFLAGS=$ac_save_CFLAGS
2871 elif test $ac_cv_prog_cc_g = yes; then
2872 if test "$GCC" = yes; then
2873 CFLAGS="-g -O2"
2874 else
2875 CFLAGS="-g"
2877 else
2878 if test "$GCC" = yes; then
2879 CFLAGS="-O2"
2880 else
2881 CFLAGS=
2884 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2885 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_cc_c89+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 ac_cv_prog_cc_c89=no
2890 ac_save_CC=$CC
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <stdarg.h>
2898 #include <stdio.h>
2899 #include <sys/types.h>
2900 #include <sys/stat.h>
2901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2902 struct buf { int x; };
2903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2904 static char *e (p, i)
2905 char **p;
2906 int i;
2908 return p[i];
2910 static char *f (char * (*g) (char **, int), char **p, ...)
2912 char *s;
2913 va_list v;
2914 va_start (v,p);
2915 s = g (p, va_arg (v,int));
2916 va_end (v);
2917 return s;
2920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2921 function prototypes and stuff, but not '\xHH' hex character constants.
2922 These don't provoke an error unfortunately, instead are silently treated
2923 as 'x'. The following induces an error, until -std is added to get
2924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2925 array size at least. It's necessary to write '\x00'==0 to get something
2926 that's true only with -std. */
2927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2930 inside strings and character constants. */
2931 #define FOO(x) 'x'
2932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2934 int test (int i, double x);
2935 struct s1 {int (*f) (int a);};
2936 struct s2 {int (*f) (double a);};
2937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2938 int argc;
2939 char **argv;
2941 main ()
2943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2945 return 0;
2947 _ACEOF
2948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2951 CC="$ac_save_CC $ac_arg"
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && {
2966 test -z "$ac_c_werror_flag" ||
2967 test ! -s conftest.err
2968 } && test -s conftest.$ac_objext; then
2969 ac_cv_prog_cc_c89=$ac_arg
2970 else
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f core conftest.err conftest.$ac_objext
2978 test "x$ac_cv_prog_cc_c89" != "xno" && break
2979 done
2980 rm -f conftest.$ac_ext
2981 CC=$ac_save_CC
2984 # AC_CACHE_VAL
2985 case "x$ac_cv_prog_cc_c89" in
2987 { echo "$as_me:$LINENO: result: none needed" >&5
2988 echo "${ECHO_T}none needed" >&6; } ;;
2989 xno)
2990 { echo "$as_me:$LINENO: result: unsupported" >&5
2991 echo "${ECHO_T}unsupported" >&6; } ;;
2993 CC="$CC $ac_cv_prog_cc_c89"
2994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2995 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2996 esac
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005 case $ac_cv_prog_cc_stdc in
3006 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3007 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3008 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_cc_c99+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 ac_cv_prog_cc_c99=no
3013 ac_save_CC=$CC
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <stdarg.h>
3021 #include <stdbool.h>
3022 #include <stdlib.h>
3023 #include <wchar.h>
3024 #include <stdio.h>
3026 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3027 #define debug(...) fprintf (stderr, __VA_ARGS__)
3028 #define showlist(...) puts (#__VA_ARGS__)
3029 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3030 static void
3031 test_varargs_macros (void)
3033 int x = 1234;
3034 int y = 5678;
3035 debug ("Flag");
3036 debug ("X = %d\n", x);
3037 showlist (The first, second, and third items.);
3038 report (x>y, "x is %d but y is %d", x, y);
3041 // Check long long types.
3042 #define BIG64 18446744073709551615ull
3043 #define BIG32 4294967295ul
3044 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3045 #if !BIG_OK
3046 your preprocessor is broken;
3047 #endif
3048 #if BIG_OK
3049 #else
3050 your preprocessor is broken;
3051 #endif
3052 static long long int bignum = -9223372036854775807LL;
3053 static unsigned long long int ubignum = BIG64;
3055 struct incomplete_array
3057 int datasize;
3058 double data[];
3061 struct named_init {
3062 int number;
3063 const wchar_t *name;
3064 double average;
3067 typedef const char *ccp;
3069 static inline int
3070 test_restrict (ccp restrict text)
3072 // See if C++-style comments work.
3073 // Iterate through items via the restricted pointer.
3074 // Also check for declarations in for loops.
3075 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3076 continue;
3077 return 0;
3080 // Check varargs and va_copy.
3081 static void
3082 test_varargs (const char *format, ...)
3084 va_list args;
3085 va_start (args, format);
3086 va_list args_copy;
3087 va_copy (args_copy, args);
3089 const char *str;
3090 int number;
3091 float fnumber;
3093 while (*format)
3095 switch (*format++)
3097 case 's': // string
3098 str = va_arg (args_copy, const char *);
3099 break;
3100 case 'd': // int
3101 number = va_arg (args_copy, int);
3102 break;
3103 case 'f': // float
3104 fnumber = va_arg (args_copy, double);
3105 break;
3106 default:
3107 break;
3110 va_end (args_copy);
3111 va_end (args);
3115 main ()
3118 // Check bool.
3119 _Bool success = false;
3121 // Check restrict.
3122 if (test_restrict ("String literal") == 0)
3123 success = true;
3124 char *restrict newvar = "Another string";
3126 // Check varargs.
3127 test_varargs ("s, d' f .", "string", 65, 34.234);
3128 test_varargs_macros ();
3130 // Check flexible array members.
3131 struct incomplete_array *ia =
3132 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3133 ia->datasize = 10;
3134 for (int i = 0; i < ia->datasize; ++i)
3135 ia->data[i] = i * 1.234;
3137 // Check named initializers.
3138 struct named_init ni = {
3139 .number = 34,
3140 .name = L"Test wide string",
3141 .average = 543.34343,
3144 ni.number = 58;
3146 int dynamic_array[ni.number];
3147 dynamic_array[ni.number - 1] = 543;
3149 // work around unused variable warnings
3150 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3151 || dynamic_array[ni.number - 1] != 543);
3154 return 0;
3156 _ACEOF
3157 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3159 CC="$ac_save_CC $ac_arg"
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } && {
3174 test -z "$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 } && test -s conftest.$ac_objext; then
3177 ac_cv_prog_cc_c99=$ac_arg
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3185 rm -f core conftest.err conftest.$ac_objext
3186 test "x$ac_cv_prog_cc_c99" != "xno" && break
3187 done
3188 rm -f conftest.$ac_ext
3189 CC=$ac_save_CC
3192 # AC_CACHE_VAL
3193 case "x$ac_cv_prog_cc_c99" in
3195 { echo "$as_me:$LINENO: result: none needed" >&5
3196 echo "${ECHO_T}none needed" >&6; } ;;
3197 xno)
3198 { echo "$as_me:$LINENO: result: unsupported" >&5
3199 echo "${ECHO_T}unsupported" >&6; } ;;
3201 CC="$CC $ac_cv_prog_cc_c99"
3202 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3204 esac
3205 if test "x$ac_cv_prog_cc_c99" != xno; then
3206 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3207 else
3208 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3209 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3210 if test "${ac_cv_prog_cc_c89+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 ac_cv_prog_cc_c89=no
3214 ac_save_CC=$CC
3215 cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3221 #include <stdarg.h>
3222 #include <stdio.h>
3223 #include <sys/types.h>
3224 #include <sys/stat.h>
3225 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3226 struct buf { int x; };
3227 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3228 static char *e (p, i)
3229 char **p;
3230 int i;
3232 return p[i];
3234 static char *f (char * (*g) (char **, int), char **p, ...)
3236 char *s;
3237 va_list v;
3238 va_start (v,p);
3239 s = g (p, va_arg (v,int));
3240 va_end (v);
3241 return s;
3244 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3245 function prototypes and stuff, but not '\xHH' hex character constants.
3246 These don't provoke an error unfortunately, instead are silently treated
3247 as 'x'. The following induces an error, until -std is added to get
3248 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3249 array size at least. It's necessary to write '\x00'==0 to get something
3250 that's true only with -std. */
3251 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3253 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3254 inside strings and character constants. */
3255 #define FOO(x) 'x'
3256 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3258 int test (int i, double x);
3259 struct s1 {int (*f) (int a);};
3260 struct s2 {int (*f) (double a);};
3261 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3262 int argc;
3263 char **argv;
3265 main ()
3267 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3269 return 0;
3271 _ACEOF
3272 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3273 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3275 CC="$ac_save_CC $ac_arg"
3276 rm -f conftest.$ac_objext
3277 if { (ac_try="$ac_compile"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 ac_cv_prog_cc_c89=$ac_arg
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f core conftest.err conftest.$ac_objext
3302 test "x$ac_cv_prog_cc_c89" != "xno" && break
3303 done
3304 rm -f conftest.$ac_ext
3305 CC=$ac_save_CC
3308 # AC_CACHE_VAL
3309 case "x$ac_cv_prog_cc_c89" in
3311 { echo "$as_me:$LINENO: result: none needed" >&5
3312 echo "${ECHO_T}none needed" >&6; } ;;
3313 xno)
3314 { echo "$as_me:$LINENO: result: unsupported" >&5
3315 echo "${ECHO_T}unsupported" >&6; } ;;
3317 CC="$CC $ac_cv_prog_cc_c89"
3318 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3319 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3320 esac
3321 if test "x$ac_cv_prog_cc_c89" != xno; then
3322 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3323 else
3324 ac_cv_prog_cc_stdc=no
3331 esac
3332 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3333 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3334 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 case $ac_cv_prog_cc_stdc in
3339 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3340 echo "${ECHO_T}unsupported" >&6; } ;;
3341 '') { echo "$as_me:$LINENO: result: none needed" >&5
3342 echo "${ECHO_T}none needed" >&6; } ;;
3343 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3345 esac
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3357 CPP=
3359 if test -z "$CPP"; then
3360 if test "${ac_cv_prog_CPP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 # Double quotes because CPP needs to be expanded
3364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386 Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null && {
3401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 }; then
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 # Broken: fails on valid input.
3410 continue
3413 rm -f conftest.err conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null && {
3438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 }; then
3441 # Broken: success on invalid input.
3442 continue
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3452 rm -f conftest.err conftest.$ac_ext
3454 done
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3458 break
3461 done
3462 ac_cv_prog_CPP=$CPP
3465 CPP=$ac_cv_prog_CPP
3466 else
3467 ac_cv_prog_CPP=$CPP
3469 { echo "$as_me:$LINENO: result: $CPP" >&5
3470 echo "${ECHO_T}$CPP" >&6; }
3471 ac_preproc_ok=false
3472 for ac_c_preproc_warn_flag in '' yes
3474 # Use a header file that comes with gcc, so configuring glibc
3475 # with a fresh cross-compiler works.
3476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477 # <limits.h> exists even on freestanding compilers.
3478 # On the NeXT, cc -E runs the code through the compiler's parser,
3479 # not just through cpp. "Syntax error" is here to catch this case.
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #ifdef __STDC__
3487 # include <limits.h>
3488 #else
3489 # include <assert.h>
3490 #endif
3491 Syntax error
3492 _ACEOF
3493 if { (ac_try="$ac_cpp conftest.$ac_ext"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev/null && {
3506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507 test ! -s conftest.err
3508 }; then
3510 else
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 # Broken: fails on valid input.
3515 continue
3518 rm -f conftest.err conftest.$ac_ext
3520 # OK, works on sane cases. Now check whether nonexistent headers
3521 # can be detected and how.
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <ac_nonexistent.h>
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null && {
3543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544 test ! -s conftest.err
3545 }; then
3546 # Broken: success on invalid input.
3547 continue
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 # Passes both tests.
3553 ac_preproc_ok=:
3554 break
3557 rm -f conftest.err conftest.$ac_ext
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3564 else
3565 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&5
3567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&2;}
3569 { (exit 1); exit 1; }; }
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 # Check for a compatible awk
3580 for ac_prog in gawk nawk
3582 # Extract the first word of "$ac_prog", so it can be a program name with args.
3583 set dummy $ac_prog; ac_word=$2
3584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3586 if test "${ac_cv_prog_AWK+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 if test -n "$AWK"; then
3590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_AWK="$ac_prog"
3600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3603 done
3604 done
3605 IFS=$as_save_IFS
3609 AWK=$ac_cv_prog_AWK
3610 if test -n "$AWK"; then
3611 { echo "$as_me:$LINENO: result: $AWK" >&5
3612 echo "${ECHO_T}$AWK" >&6; }
3613 else
3614 { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3619 test -n "$AWK" && break
3620 done
3622 if test "$AWK" = ""; then
3623 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3624 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3625 { (exit 1); exit 1; }; }
3627 # Extract the first word of "mmake", so it can be a program name with args.
3628 set dummy mmake; ac_word=$2
3629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3631 if test "${ac_cv_prog_MMAKE+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634 if test -n "$MMAKE"; then
3635 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_MMAKE="mmake "
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3648 done
3649 done
3650 IFS=$as_save_IFS
3654 MMAKE=$ac_cv_prog_MMAKE
3655 if test -n "$MMAKE"; then
3656 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3657 echo "${ECHO_T}$MMAKE" >&6; }
3658 else
3659 { echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6; }
3665 # Perform some default variable assignments. Note all of these will be
3666 # Regenerated from the script, so there is no need to cache them.
3668 aros_host_cc="$CC"
3669 if test "$GCC" = "yes"; then
3670 aros_gcc_ld=`$CC -print-prog-name=ld`
3671 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3672 set dummy `basename $aros_gcc_ld`; ac_word=$2
3673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3675 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 case $aros_host_ld in
3679 [\\/]* | ?:[\\/]*)
3680 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in `dirname $aros_gcc_ld`
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3690 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3699 esac
3701 aros_host_ld=$ac_cv_path_aros_host_ld
3702 if test -n "$aros_host_ld"; then
3703 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3704 echo "${ECHO_T}$aros_host_ld" >&6; }
3705 else
3706 { echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6; }
3712 if test "$aros_host_ld" = ""; then
3713 # Extract the first word of "ld", so it can be a program name with args.
3714 set dummy ld; ac_word=$2
3715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3717 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 case $aros_host_ld in
3721 [\\/]* | ?:[\\/]*)
3722 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3736 done
3737 done
3738 IFS=$as_save_IFS
3741 esac
3743 aros_host_ld=$ac_cv_path_aros_host_ld
3744 if test -n "$aros_host_ld"; then
3745 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3746 echo "${ECHO_T}$aros_host_ld" >&6; }
3747 else
3748 { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3754 if test "$aros_host_ld" = ""; then
3755 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3756 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3757 { (exit 1); exit 1; }; }
3759 aros_host_make="make"
3760 aros_host_cflags=$CFLAGS
3761 aros_host_ldflags=$LDFLAGS
3762 aros_host_debug="-g -O0"
3763 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3764 aros_host_mkargs="--no-print-directory"
3765 aros_host_incl="/usr/include"
3766 aros_host_exe_suffix="$EXEEXT"
3767 aros_host_lib_suffix=""
3769 for ac_prog in aclocal aclocal19 aclocal-1.9
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 if test -n "$aros_host_aclocal"; then
3779 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_aros_host_aclocal="$ac_prog"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3792 done
3793 done
3794 IFS=$as_save_IFS
3798 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3799 if test -n "$aros_host_aclocal"; then
3800 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3801 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3802 else
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3808 test -n "$aros_host_aclocal" && break
3809 done
3811 for ac_prog in autoconf autoconf259 autoconf253
3813 # Extract the first word of "$ac_prog", so it can be a program name with args.
3814 set dummy $ac_prog; ac_word=$2
3815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3817 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 if test -n "$aros_host_autoconf"; then
3821 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_prog_aros_host_autoconf="$ac_prog"
3831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3834 done
3835 done
3836 IFS=$as_save_IFS
3840 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3841 if test -n "$aros_host_autoconf"; then
3842 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3843 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3844 else
3845 { echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6; }
3850 test -n "$aros_host_autoconf" && break
3851 done
3853 for ac_prog in autoheader autoheader259 autoheader253
3855 # Extract the first word of "$ac_prog", so it can be a program name with args.
3856 set dummy $ac_prog; ac_word=$2
3857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3859 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 if test -n "$aros_host_autoheader"; then
3863 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_prog_aros_host_autoheader="$ac_prog"
3873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3876 done
3877 done
3878 IFS=$as_save_IFS
3882 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3883 if test -n "$aros_host_autoheader"; then
3884 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3885 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3886 else
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3892 test -n "$aros_host_autoheader" && break
3893 done
3895 for ac_prog in automake automake19 automake-1.9
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3901 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 if test -n "$aros_host_automake"; then
3905 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_aros_host_automake="$ac_prog"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3918 done
3919 done
3920 IFS=$as_save_IFS
3924 aros_host_automake=$ac_cv_prog_aros_host_automake
3925 if test -n "$aros_host_automake"; then
3926 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3927 echo "${ECHO_T}$aros_host_automake" >&6; }
3928 else
3929 { echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6; }
3934 test -n "$aros_host_automake" && break
3935 done
3938 if test "$aros_host_aclocal" = ""; then
3939 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3940 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3941 { (exit 1); exit 1; }; }
3943 if test "$aros_host_automake" = ""; then
3944 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3945 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3946 { (exit 1); exit 1; }; }
3949 case "$aros_host_cc" in
3950 *gcc*)
3951 aros_host_cc_pipe="-pipe"
3953 icc)
3954 aros_host_cc_pipe=""
3957 aros_host_cc_pipe=""
3959 esac
3961 aros_target_cc_includes=""
3963 # This is the main host configuration section. It is where the host
3964 # can change the values of any variables it needs to change. We do
3965 # not look at anything that compiles to the target yet, we'll get
3966 # to that later.
3968 case "$host_os" in
3969 aros*)
3970 aros_host_arch="aros"
3971 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3972 case "$host_cpu" in
3973 *i?86*)
3974 aros_host_cpu="i386"
3976 *x86_64*)
3977 aros_host_cpu="x86_64"
3979 *powerpc*)
3980 aros_host_cpu="ppc"
3983 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3984 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3985 aros_host_cpu="$host_cpu"
3987 esac
3990 linux*)
3991 aros_host_arch="linux"
3992 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3993 case "$host_cpu" in
3994 *i?86*)
3995 aros_host_cpu="i386"
3997 *x86_64*)
3998 aros_host_cpu="x86_64"
4000 *m68k*)
4001 aros_host_cpu="m68k"
4003 *powerpc*)
4004 aros_host_cpu="ppc"
4006 *arm*)
4007 aros_host_cpu="arm"
4010 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4011 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4012 aros_host_cpu="$host_cpu"
4014 esac
4017 freebsd*)
4018 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4019 aros_host_make="gmake"
4020 aros_host_arch="freebsd"
4021 aros_host_cpu="i386"
4023 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4026 case $host_os in
4027 freebsd[234]*)
4028 aros_object_format="elf_i386"
4032 aros_object_format="elf_i386_fbsd"
4034 esac
4038 darwin*)
4039 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4040 aros_host_arch="darwin"
4041 case "$host_cpu" in
4042 *i?86*)
4043 aros_host_cpu="i386"
4045 *x86_64*)
4046 aros_host_cpu="x86_64"
4048 *powerpc*)
4049 aros_host_cpu="ppc"
4052 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4053 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4054 aros_host_cpu="$host_cpu"
4056 esac
4058 aros_host_ldflags="$aros_host_ldflags -liconv"
4062 dragonfly*)
4063 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4064 aros_host_make="gmake"
4065 aros_host_arch="dragonfly"
4066 case $host_cpu in
4067 *i?86*)
4068 aros_host_cpu="i386"
4070 *amd64*)
4071 aros_host_cpu="x86_64"
4074 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4075 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4076 aros_host_cpu="$host_cpu"
4078 esac
4081 netbsd*)
4082 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4083 aros_host_make="gmake"
4084 aros_host_arch="netbsd"
4085 case "$host_cpu" in
4086 *i?86*)
4087 aros_host_cpu="i386"
4089 *m68k*)
4090 aros_host_cpu="m68k"
4093 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4094 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4095 aros_host_cpu="$host_cpu"
4097 esac
4098 aros_host_lib_suffix=".0.0"
4101 openbsd*)
4102 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4103 aros_host_make="gmake"
4104 aros_host_arch="openbsd"
4105 case "$host_cpu" in
4106 *i?86*)
4107 aros_host_cpu="i386"
4110 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4111 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4112 aros_host_cpu="$host_cpu"
4114 esac
4117 solaris*)
4118 aros_host_arch="solaris"
4119 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4120 case "$host_cpu" in
4121 *i?86*)
4122 aros_host_cpu="i386"
4124 *sparc*)
4125 aros_host_cpu="sparc"
4128 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4129 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4130 aros_host_cpu="$host_cpu"
4132 esac
4135 morphos*)
4136 aros_host_arch="morphos"
4137 aros_host_cpu="ppc"
4140 amiga*)
4141 aros_host_arch="amiga"
4142 SORT="/gg/bin/sort"
4143 TEST="/gg/bin/test"
4144 UNIQ="/gg/bin/uniq"
4145 FOR="for"
4146 TOUCH="/gg/bin/touch"
4147 case "$host_cpu" in
4148 *m68k*)
4149 aros_host_cpu="m68k"
4151 *powerpc*)
4152 aros_host_cpu="ppc"
4155 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4156 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4157 aros_host_cpu="$host_cpu"
4159 esac
4162 cygwin*)
4163 aros_host_arch="cygwin"
4164 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4165 case "$host_cpu" in
4166 *i?86*)
4167 aros_host_cpu="i386"
4170 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4171 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4172 aros_host_cpu="$host_cpu"
4174 esac
4177 mingw32*)
4178 aros_host_arch="mingw32"
4179 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4180 case "$host_cpu" in
4181 *i?86*)
4182 aros_host_cpu="i386"
4185 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4186 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4187 aros_host_cpu="$host_cpu"
4189 esac
4192 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4193 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4194 { (exit 1); exit 1; }; }
4196 esac
4198 # Extract the first word of "ar", so it can be a program name with args.
4199 set dummy ar; ac_word=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$aros_host_ar"; then
4206 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_aros_host_ar="ar cr"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 aros_host_ar=$ac_cv_prog_aros_host_ar
4226 if test -n "$aros_host_ar"; then
4227 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4228 echo "${ECHO_T}$aros_host_ar" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4235 if test "$aros_host_ar" = ""; then
4236 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4237 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4238 { (exit 1); exit 1; }; }
4240 # Extract the first word of "ranlib", so it can be a program name with args.
4241 set dummy ranlib; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -n "$aros_host_ranlib"; then
4248 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_aros_host_ranlib="ranlib "
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4263 IFS=$as_save_IFS
4267 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4268 if test -n "$aros_host_ranlib"; then
4269 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4270 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4271 else
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4277 if test "$aros_host_ranlib" = ""; then
4278 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4279 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4280 { (exit 1); exit 1; }; }
4282 # Extract the first word of "strip", so it can be a program name with args.
4283 set dummy strip; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$aros_host_strip"; then
4290 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_aros_host_strip="strip "
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 aros_host_strip=$ac_cv_prog_aros_host_strip
4310 if test -n "$aros_host_strip"; then
4311 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4312 echo "${ECHO_T}$aros_host_strip" >&6; }
4313 else
4314 { echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6; }
4319 if test "$aros_host_strip" = ""; then
4320 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4321 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4322 { (exit 1); exit 1; }; }
4325 # Extract the first word of "rm", so it can be a program name with args.
4326 set dummy rm; ac_word=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_RM+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$RM"; then
4333 ac_cv_prog_RM="$RM" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_RM="rm -rf"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4352 RM=$ac_cv_prog_RM
4353 if test -n "$RM"; then
4354 { echo "$as_me:$LINENO: result: $RM" >&5
4355 echo "${ECHO_T}$RM" >&6; }
4356 else
4357 { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4362 if test "$RM" = ""; then
4363 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4364 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4365 { (exit 1); exit 1; }; }
4367 # Extract the first word of "cp", so it can be a program name with args.
4368 set dummy cp; ac_word=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_prog_CP+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 if test -n "$CP"; then
4375 ac_cv_prog_CP="$CP" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_CP="cp "
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4388 done
4389 done
4390 IFS=$as_save_IFS
4394 CP=$ac_cv_prog_CP
4395 if test -n "$CP"; then
4396 { echo "$as_me:$LINENO: result: $CP" >&5
4397 echo "${ECHO_T}$CP" >&6; }
4398 else
4399 { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4404 if test "$CP" = ""; then
4405 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4406 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4407 { (exit 1); exit 1; }; }
4409 # Extract the first word of "mv", so it can be a program name with args.
4410 set dummy mv; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_prog_MV+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if test -n "$MV"; then
4417 ac_cv_prog_MV="$MV" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_MV="mv "
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4430 done
4431 done
4432 IFS=$as_save_IFS
4436 MV=$ac_cv_prog_MV
4437 if test -n "$MV"; then
4438 { echo "$as_me:$LINENO: result: $MV" >&5
4439 echo "${ECHO_T}$MV" >&6; }
4440 else
4441 { echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6; }
4446 if test "$MV" = ""; then
4447 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4448 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4449 { (exit 1); exit 1; }; }
4451 # Extract the first word of "echo", so it can be a program name with args.
4452 set dummy echo; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_ECHO+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test -n "$ECHO"; then
4459 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ECHO="echo "
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 ECHO=$ac_cv_prog_ECHO
4479 if test -n "$ECHO"; then
4480 { echo "$as_me:$LINENO: result: $ECHO" >&5
4481 echo "${ECHO_T}$ECHO" >&6; }
4482 else
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 if test "$ECHO" = ""; then
4489 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4490 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4491 { (exit 1); exit 1; }; }
4493 # Extract the first word of "mkdir", so it can be a program name with args.
4494 set dummy mkdir; ac_word=$2
4495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4497 if test "${ac_cv_prog_MKDIR+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 if test -n "$MKDIR"; then
4501 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_prog_MKDIR="mkdir -p"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4514 done
4515 done
4516 IFS=$as_save_IFS
4520 MKDIR=$ac_cv_prog_MKDIR
4521 if test -n "$MKDIR"; then
4522 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4523 echo "${ECHO_T}$MKDIR" >&6; }
4524 else
4525 { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4530 if test "$MKDIR" = ""; then
4531 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4532 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4533 { (exit 1); exit 1; }; }
4535 # Extract the first word of "touch", so it can be a program name with args.
4536 set dummy touch; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_prog_TOUCH+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 if test -n "$TOUCH"; then
4543 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_TOUCH="touch "
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4556 done
4557 done
4558 IFS=$as_save_IFS
4562 TOUCH=$ac_cv_prog_TOUCH
4563 if test -n "$TOUCH"; then
4564 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4565 echo "${ECHO_T}$TOUCH" >&6; }
4566 else
4567 { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4572 if test "$TOUCH" = ""; then
4573 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4574 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4575 { (exit 1); exit 1; }; }
4577 # Extract the first word of "sort", so it can be a program name with args.
4578 set dummy sort; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_SORT+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$SORT"; then
4585 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_SORT="sort "
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4598 done
4599 done
4600 IFS=$as_save_IFS
4604 SORT=$ac_cv_prog_SORT
4605 if test -n "$SORT"; then
4606 { echo "$as_me:$LINENO: result: $SORT" >&5
4607 echo "${ECHO_T}$SORT" >&6; }
4608 else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 if test "$SORT" = ""; then
4615 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4616 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4617 { (exit 1); exit 1; }; }
4619 # Extract the first word of "uniq", so it can be a program name with args.
4620 set dummy uniq; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_UNIQ+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -n "$UNIQ"; then
4627 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_UNIQ="uniq "
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 UNIQ=$ac_cv_prog_UNIQ
4647 if test -n "$UNIQ"; then
4648 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4649 echo "${ECHO_T}$UNIQ" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 if test "$UNIQ" = ""; then
4657 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4658 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4659 { (exit 1); exit 1; }; }
4661 # Extract the first word of "true", so it can be a program name with args.
4662 set dummy true; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_NOP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 if test -n "$NOP"; then
4669 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_NOP="true "
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4688 NOP=$ac_cv_prog_NOP
4689 if test -n "$NOP"; then
4690 { echo "$as_me:$LINENO: result: $NOP" >&5
4691 echo "${ECHO_T}$NOP" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 if test "$NOP" = ""; then
4699 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4700 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4701 { (exit 1); exit 1; }; }
4703 # Extract the first word of "cat", so it can be a program name with args.
4704 set dummy cat; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_CAT+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$CAT"; then
4711 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_CAT="cat "
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4726 IFS=$as_save_IFS
4730 CAT=$ac_cv_prog_CAT
4731 if test -n "$CAT"; then
4732 { echo "$as_me:$LINENO: result: $CAT" >&5
4733 echo "${ECHO_T}$CAT" >&6; }
4734 else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4740 if test "$CAT" = ""; then
4741 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4742 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4743 { (exit 1); exit 1; }; }
4745 # Extract the first word of "bison", so it can be a program name with args.
4746 set dummy bison; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_prog_BISON+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 if test -n "$BISON"; then
4753 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_BISON="bison "
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4772 BISON=$ac_cv_prog_BISON
4773 if test -n "$BISON"; then
4774 { echo "$as_me:$LINENO: result: $BISON" >&5
4775 echo "${ECHO_T}$BISON" >&6; }
4776 else
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 if test "$BISON" = ""; then
4783 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4784 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4785 { (exit 1); exit 1; }; }
4787 # Extract the first word of "flex", so it can be a program name with args.
4788 set dummy flex; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_prog_FLEX+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 if test -n "$FLEX"; then
4795 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_FLEX="flex "
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 FLEX=$ac_cv_prog_FLEX
4815 if test -n "$FLEX"; then
4816 { echo "$as_me:$LINENO: result: $FLEX" >&5
4817 echo "${ECHO_T}$FLEX" >&6; }
4818 else
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4824 if test "$FLEX" = ""; then
4825 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4826 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4827 { (exit 1); exit 1; }; }
4829 # Extract the first word of "pngtopnm", so it can be a program name with args.
4830 set dummy pngtopnm; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 if test -n "$PNGTOPNM"; then
4837 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_PNGTOPNM="pngtopnm "
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4850 done
4851 done
4852 IFS=$as_save_IFS
4856 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4857 if test -n "$PNGTOPNM"; then
4858 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4859 echo "${ECHO_T}$PNGTOPNM" >&6; }
4860 else
4861 { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4866 if test "$PNGTOPNM" = ""; then
4867 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4868 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4869 { (exit 1); exit 1; }; }
4871 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4872 set dummy ppmtoilbm; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 if test -n "$PPMTOILBM"; then
4879 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4894 IFS=$as_save_IFS
4898 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4899 if test -n "$PPMTOILBM"; then
4900 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4901 echo "${ECHO_T}$PPMTOILBM" >&6; }
4902 else
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4908 if test "$PPMTOILBM" = ""; then
4909 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4910 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4911 { (exit 1); exit 1; }; }
4913 # Extract the first word of "sed", so it can be a program name with args.
4914 set dummy sed; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_SED+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 if test -n "$SED"; then
4921 ac_cv_prog_SED="$SED" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_SED="sed "
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4934 done
4935 done
4936 IFS=$as_save_IFS
4940 SED=$ac_cv_prog_SED
4941 if test -n "$SED"; then
4942 { echo "$as_me:$LINENO: result: $SED" >&5
4943 echo "${ECHO_T}$SED" >&6; }
4944 else
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4950 if test "$SED" = ""; then
4951 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4952 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4953 { (exit 1); exit 1; }; }
4955 # Extract the first word of "chmod", so it can be a program name with args.
4956 set dummy chmod; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_prog_CHMOD+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 if test -n "$CHMOD"; then
4963 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_CHMOD="chmod "
4973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4982 CHMOD=$ac_cv_prog_CHMOD
4983 if test -n "$CHMOD"; then
4984 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4985 echo "${ECHO_T}$CHMOD" >&6; }
4986 else
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4992 if test "$CHMOD" = ""; then
4993 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4994 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4995 { (exit 1); exit 1; }; }
5002 if test -n "$PYTHON"; then
5003 # If the user set $PYTHON, use it and don't search something else.
5004 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5005 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5006 prog="import sys, string
5007 # split strings by '.' and convert to numeric. Append some zeros
5008 # because we need at least 4 digits for the hex conversion.
5009 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5010 minverhex = 0
5011 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5012 sys.exit(sys.hexversion < minverhex)"
5013 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5014 ($PYTHON -c "$prog") >&5 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; then
5018 { echo "$as_me:$LINENO: result: yes" >&5
5019 echo "${ECHO_T}yes" >&6; }
5020 else
5021 { { echo "$as_me:$LINENO: error: too old" >&5
5022 echo "$as_me: error: too old" >&2;}
5023 { (exit 1); exit 1; }; }
5026 am_display_PYTHON=$PYTHON
5027 else
5028 # Otherwise, try each interpreter until we find one that satisfies
5029 # VERSION.
5030 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5031 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5032 if test "${am_cv_pathless_PYTHON+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5036 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
5037 test "$am_cv_pathless_PYTHON" = none && break
5038 prog="import sys, string
5039 # split strings by '.' and convert to numeric. Append some zeros
5040 # because we need at least 4 digits for the hex conversion.
5041 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5042 minverhex = 0
5043 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5044 sys.exit(sys.hexversion < minverhex)"
5045 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5046 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; then
5050 break
5053 done
5055 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5056 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5057 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5058 if test "$am_cv_pathless_PYTHON" = none; then
5059 PYTHON=:
5060 else
5061 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5062 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5065 if test "${ac_cv_path_PYTHON+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 case $PYTHON in
5069 [\\/]* | ?:[\\/]*)
5070 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5084 done
5085 done
5086 IFS=$as_save_IFS
5089 esac
5091 PYTHON=$ac_cv_path_PYTHON
5092 if test -n "$PYTHON"; then
5093 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5094 echo "${ECHO_T}$PYTHON" >&6; }
5095 else
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5102 am_display_PYTHON=$am_cv_pathless_PYTHON
5106 if test "$PYTHON" = :; then
5107 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5108 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5109 { (exit 1); exit 1; }; }
5110 else
5113 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5114 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5115 if test "${am_cv_python_version+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5120 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5121 echo "${ECHO_T}$am_cv_python_version" >&6; }
5122 PYTHON_VERSION=$am_cv_python_version
5126 PYTHON_PREFIX='${prefix}'
5128 PYTHON_EXEC_PREFIX='${exec_prefix}'
5132 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5133 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5134 if test "${am_cv_python_platform+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5139 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5140 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5141 PYTHON_PLATFORM=$am_cv_python_platform
5146 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5147 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5148 if test "${am_cv_python_pythondir+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5152 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5154 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5155 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5156 pythondir=$am_cv_python_pythondir
5160 pkgpythondir=\${pythondir}/$PACKAGE
5163 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5164 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5165 if test "${am_cv_python_pyexecdir+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5169 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5171 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5172 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5173 pyexecdir=$am_cv_python_pyexecdir
5177 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5185 FOR=for
5187 IF=if
5189 TEST=test
5191 CMP=cmp
5195 # Check for some includes for the X11 HIDD and the kernel
5198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5200 if test "${ac_cv_path_GREP+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 # Extract the first word of "grep ggrep" to use in msg output
5204 if test -z "$GREP"; then
5205 set dummy grep ggrep; ac_prog_name=$2
5206 if test "${ac_cv_path_GREP+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209 ac_path_GREP_found=false
5210 # Loop through the user's path and test for each of PROGNAME-LIST
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_prog in grep ggrep; do
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5220 # Check for GNU ac_path_GREP and select it if it is found.
5221 # Check for GNU $ac_path_GREP
5222 case `"$ac_path_GREP" --version 2>&1` in
5223 *GNU*)
5224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5226 ac_count=0
5227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5228 while :
5230 cat "conftest.in" "conftest.in" >"conftest.tmp"
5231 mv "conftest.tmp" "conftest.in"
5232 cp "conftest.in" "conftest.nl"
5233 echo 'GREP' >> "conftest.nl"
5234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236 ac_count=`expr $ac_count + 1`
5237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5238 # Best one so far, save it but keep looking for a better one
5239 ac_cv_path_GREP="$ac_path_GREP"
5240 ac_path_GREP_max=$ac_count
5242 # 10*(2^10) chars as input seems more than enough
5243 test $ac_count -gt 10 && break
5244 done
5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 esac
5249 $ac_path_GREP_found && break 3
5250 done
5251 done
5253 done
5254 IFS=$as_save_IFS
5259 GREP="$ac_cv_path_GREP"
5260 if test -z "$GREP"; then
5261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5263 { (exit 1); exit 1; }; }
5266 else
5267 ac_cv_path_GREP=$GREP
5272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5274 GREP="$ac_cv_path_GREP"
5277 { echo "$as_me:$LINENO: checking for egrep" >&5
5278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_EGREP+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5283 then ac_cv_path_EGREP="$GREP -E"
5284 else
5285 # Extract the first word of "egrep" to use in msg output
5286 if test -z "$EGREP"; then
5287 set dummy egrep; ac_prog_name=$2
5288 if test "${ac_cv_path_EGREP+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 ac_path_EGREP_found=false
5292 # Loop through the user's path and test for each of PROGNAME-LIST
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_prog in egrep; do
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5302 # Check for GNU ac_path_EGREP and select it if it is found.
5303 # Check for GNU $ac_path_EGREP
5304 case `"$ac_path_EGREP" --version 2>&1` in
5305 *GNU*)
5306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5308 ac_count=0
5309 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5310 while :
5312 cat "conftest.in" "conftest.in" >"conftest.tmp"
5313 mv "conftest.tmp" "conftest.in"
5314 cp "conftest.in" "conftest.nl"
5315 echo 'EGREP' >> "conftest.nl"
5316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5318 ac_count=`expr $ac_count + 1`
5319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5320 # Best one so far, save it but keep looking for a better one
5321 ac_cv_path_EGREP="$ac_path_EGREP"
5322 ac_path_EGREP_max=$ac_count
5324 # 10*(2^10) chars as input seems more than enough
5325 test $ac_count -gt 10 && break
5326 done
5327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328 esac
5331 $ac_path_EGREP_found && break 3
5332 done
5333 done
5335 done
5336 IFS=$as_save_IFS
5341 EGREP="$ac_cv_path_EGREP"
5342 if test -z "$EGREP"; then
5343 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5345 { (exit 1); exit 1; }; }
5348 else
5349 ac_cv_path_EGREP=$EGREP
5355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5357 EGREP="$ac_cv_path_EGREP"
5360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5362 if test "${ac_cv_header_stdc+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <stdlib.h>
5372 #include <stdarg.h>
5373 #include <string.h>
5374 #include <float.h>
5377 main ()
5381 return 0;
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (ac_try="$ac_compile"
5386 case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_compile") 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && {
5398 test -z "$ac_c_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest.$ac_objext; then
5401 ac_cv_header_stdc=yes
5402 else
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ac_cv_header_stdc=no
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 if test $ac_cv_header_stdc = yes; then
5412 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
5421 _ACEOF
5422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5423 $EGREP "memchr" >/dev/null 2>&1; then
5425 else
5426 ac_cv_header_stdc=no
5428 rm -f -r conftest*
5432 if test $ac_cv_header_stdc = yes; then
5433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 #include <stdlib.h>
5442 _ACEOF
5443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5444 $EGREP "free" >/dev/null 2>&1; then
5446 else
5447 ac_cv_header_stdc=no
5449 rm -f -r conftest*
5453 if test $ac_cv_header_stdc = yes; then
5454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5455 if test "$cross_compiling" = yes; then
5457 else
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <ctype.h>
5465 #include <stdlib.h>
5466 #if ((' ' & 0x0FF) == 0x020)
5467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5469 #else
5470 # define ISLOWER(c) \
5471 (('a' <= (c) && (c) <= 'i') \
5472 || ('j' <= (c) && (c) <= 'r') \
5473 || ('s' <= (c) && (c) <= 'z'))
5474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5475 #endif
5477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5479 main ()
5481 int i;
5482 for (i = 0; i < 256; i++)
5483 if (XOR (islower (i), ISLOWER (i))
5484 || toupper (i) != TOUPPER (i))
5485 return 2;
5486 return 0;
5488 _ACEOF
5489 rm -f conftest$ac_exeext
5490 if { (ac_try="$ac_link"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_link") 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5500 { (case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_try") 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5510 else
5511 echo "$as_me: program exited with status $ac_status" >&5
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ( exit $ac_status )
5516 ac_cv_header_stdc=no
5518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5526 if test $ac_cv_header_stdc = yes; then
5528 cat >>confdefs.h <<\_ACEOF
5529 #define STDC_HEADERS 1
5530 _ACEOF
5534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5545 inttypes.h stdint.h unistd.h
5547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5561 #include <$ac_header>
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5565 case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568 esac
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
5580 eval "$as_ac_Header=yes"
5581 else
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 eval "$as_ac_Header=no"
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 ac_res=`eval echo '${'$as_ac_Header'}'`
5591 { echo "$as_me:$LINENO: result: $ac_res" >&5
5592 echo "${ECHO_T}$ac_res" >&6; }
5593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5594 cat >>confdefs.h <<_ACEOF
5595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5596 _ACEOF
5600 done
5612 for ac_header in sys/ipc.h sys/shm.h \
5613 sys/mmap.h sys/mman.h sysexits.h \
5614 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 ac_res=`eval echo '${'$as_ac_Header'}'`
5625 { echo "$as_me:$LINENO: result: $ac_res" >&5
5626 echo "${ECHO_T}$ac_res" >&6; }
5627 else
5628 # Is the header compilable?
5629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 $ac_includes_default
5638 #include <$ac_header>
5639 _ACEOF
5640 rm -f conftest.$ac_objext
5641 if { (ac_try="$ac_compile"
5642 case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645 esac
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compile") 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } && {
5654 test -z "$ac_c_werror_flag" ||
5655 test ! -s conftest.err
5656 } && test -s conftest.$ac_objext; then
5657 ac_header_compiler=yes
5658 else
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 ac_header_compiler=no
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5667 echo "${ECHO_T}$ac_header_compiler" >&6; }
5669 # Is the header present?
5670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <$ac_header>
5679 _ACEOF
5680 if { (ac_try="$ac_cpp conftest.$ac_ext"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } >/dev/null && {
5693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 }; then
5696 ac_header_preproc=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 ac_header_preproc=no
5704 rm -f conftest.err conftest.$ac_ext
5705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5706 echo "${ECHO_T}$ac_header_preproc" >&6; }
5708 # So? What about this header?
5709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5710 yes:no: )
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5715 ac_header_preproc=yes
5717 no:yes:* )
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5732 esac
5733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 eval "$as_ac_Header=\$ac_header_preproc"
5740 ac_res=`eval echo '${'$as_ac_Header'}'`
5741 { echo "$as_me:$LINENO: result: $ac_res" >&5
5742 echo "${ECHO_T}$ac_res" >&6; }
5745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5746 cat >>confdefs.h <<_ACEOF
5747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 _ACEOF
5752 done
5756 for ac_header in sys/mount.h
5758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 #include <sys/param.h>
5772 #include <$ac_header>
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (ac_try="$ac_compile"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_compile") 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } && {
5788 test -z "$ac_c_werror_flag" ||
5789 test ! -s conftest.err
5790 } && test -s conftest.$ac_objext; then
5791 eval "$as_ac_Header=yes"
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 eval "$as_ac_Header=no"
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 ac_res=`eval echo '${'$as_ac_Header'}'`
5802 { echo "$as_me:$LINENO: result: $ac_res" >&5
5803 echo "${ECHO_T}$ac_res" >&6; }
5804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5805 cat >>confdefs.h <<_ACEOF
5806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5807 _ACEOF
5811 done
5819 ac_header_dirent=no
5820 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5821 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5822 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5823 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #include <sys/types.h>
5834 #include <$ac_hdr>
5837 main ()
5839 if ((DIR *) 0)
5840 return 0;
5842 return 0;
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest.$ac_objext; then
5862 eval "$as_ac_Header=yes"
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 eval "$as_ac_Header=no"
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 ac_res=`eval echo '${'$as_ac_Header'}'`
5873 { echo "$as_me:$LINENO: result: $ac_res" >&5
5874 echo "${ECHO_T}$ac_res" >&6; }
5875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5876 cat >>confdefs.h <<_ACEOF
5877 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5878 _ACEOF
5880 ac_header_dirent=$ac_hdr; break
5883 done
5884 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5885 if test $ac_header_dirent = dirent.h; then
5886 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5887 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5888 if test "${ac_cv_search_opendir+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 ac_func_search_save_LIBS=$LIBS
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5899 /* Override any GCC internal prototype to avoid an error.
5900 Use char because int might match the return type of a GCC
5901 builtin and then its argument prototype would still apply. */
5902 #ifdef __cplusplus
5903 extern "C"
5904 #endif
5905 char opendir ();
5907 main ()
5909 return opendir ();
5911 return 0;
5913 _ACEOF
5914 for ac_lib in '' dir; do
5915 if test -z "$ac_lib"; then
5916 ac_res="none required"
5917 else
5918 ac_res=-l$ac_lib
5919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922 if { (ac_try="$ac_link"
5923 case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_link") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && {
5935 test -z "$ac_c_werror_flag" ||
5936 test ! -s conftest.err
5937 } && test -s conftest$ac_exeext &&
5938 $as_test_x conftest$ac_exeext; then
5939 ac_cv_search_opendir=$ac_res
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5948 conftest$ac_exeext
5949 if test "${ac_cv_search_opendir+set}" = set; then
5950 break
5952 done
5953 if test "${ac_cv_search_opendir+set}" = set; then
5955 else
5956 ac_cv_search_opendir=no
5958 rm conftest.$ac_ext
5959 LIBS=$ac_func_search_save_LIBS
5961 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5962 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5963 ac_res=$ac_cv_search_opendir
5964 if test "$ac_res" != no; then
5965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5969 else
5970 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5971 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5972 if test "${ac_cv_search_opendir+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 ac_func_search_save_LIBS=$LIBS
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5983 /* Override any GCC internal prototype to avoid an error.
5984 Use char because int might match the return type of a GCC
5985 builtin and then its argument prototype would still apply. */
5986 #ifdef __cplusplus
5987 extern "C"
5988 #endif
5989 char opendir ();
5991 main ()
5993 return opendir ();
5995 return 0;
5997 _ACEOF
5998 for ac_lib in '' x; do
5999 if test -z "$ac_lib"; then
6000 ac_res="none required"
6001 else
6002 ac_res=-l$ac_lib
6003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (ac_try="$ac_link"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_link") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest$ac_exeext &&
6022 $as_test_x conftest$ac_exeext; then
6023 ac_cv_search_opendir=$ac_res
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6032 conftest$ac_exeext
6033 if test "${ac_cv_search_opendir+set}" = set; then
6034 break
6036 done
6037 if test "${ac_cv_search_opendir+set}" = set; then
6039 else
6040 ac_cv_search_opendir=no
6042 rm conftest.$ac_ext
6043 LIBS=$ac_func_search_save_LIBS
6045 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6046 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6047 ac_res=$ac_cv_search_opendir
6048 if test "$ac_res" != no; then
6049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6055 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6056 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6057 if test "${ac_cv_header_stat_broken+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 #include <sys/types.h>
6067 #include <sys/stat.h>
6069 #if defined S_ISBLK && defined S_IFDIR
6070 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6071 #endif
6073 #if defined S_ISBLK && defined S_IFCHR
6074 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6075 #endif
6077 #if defined S_ISLNK && defined S_IFREG
6078 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6079 #endif
6081 #if defined S_ISSOCK && defined S_IFREG
6082 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6083 #endif
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6103 ac_cv_header_stat_broken=no
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_cv_header_stat_broken=yes
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6114 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6115 if test $ac_cv_header_stat_broken = yes; then
6117 cat >>confdefs.h <<\_ACEOF
6118 #define STAT_MACROS_BROKEN 1
6119 _ACEOF
6123 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6124 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6125 if test "${ac_cv_header_stdc+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <stdlib.h>
6135 #include <stdarg.h>
6136 #include <string.h>
6137 #include <float.h>
6140 main ()
6144 return 0;
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (ac_try="$ac_compile"
6149 case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compile") 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_c_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest.$ac_objext; then
6164 ac_cv_header_stdc=yes
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_cv_header_stdc=no
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 if test $ac_cv_header_stdc = yes; then
6175 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
6184 _ACEOF
6185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186 $EGREP "memchr" >/dev/null 2>&1; then
6188 else
6189 ac_cv_header_stdc=no
6191 rm -f -r conftest*
6195 if test $ac_cv_header_stdc = yes; then
6196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h. */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 #include <stdlib.h>
6205 _ACEOF
6206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207 $EGREP "free" >/dev/null 2>&1; then
6209 else
6210 ac_cv_header_stdc=no
6212 rm -f -r conftest*
6216 if test $ac_cv_header_stdc = yes; then
6217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6218 if test "$cross_compiling" = yes; then
6220 else
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <ctype.h>
6228 #include <stdlib.h>
6229 #if ((' ' & 0x0FF) == 0x020)
6230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6232 #else
6233 # define ISLOWER(c) \
6234 (('a' <= (c) && (c) <= 'i') \
6235 || ('j' <= (c) && (c) <= 'r') \
6236 || ('s' <= (c) && (c) <= 'z'))
6237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6238 #endif
6240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6242 main ()
6244 int i;
6245 for (i = 0; i < 256; i++)
6246 if (XOR (islower (i), ISLOWER (i))
6247 || toupper (i) != TOUPPER (i))
6248 return 2;
6249 return 0;
6251 _ACEOF
6252 rm -f conftest$ac_exeext
6253 if { (ac_try="$ac_link"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_link") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6263 { (case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_try") 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6273 else
6274 echo "$as_me: program exited with status $ac_status" >&5
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ( exit $ac_status )
6279 ac_cv_header_stdc=no
6281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6287 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6288 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6289 if test $ac_cv_header_stdc = yes; then
6291 cat >>confdefs.h <<\_ACEOF
6292 #define STDC_HEADERS 1
6293 _ACEOF
6297 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6298 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6299 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #include <sys/types.h>
6309 #include <sys/wait.h>
6310 #ifndef WEXITSTATUS
6311 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6312 #endif
6313 #ifndef WIFEXITED
6314 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6315 #endif
6318 main ()
6320 int s;
6321 wait (&s);
6322 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6324 return 0;
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compile") 2>conftest.er1
6335 ac_status=$?
6336 grep -v '^ *+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && {
6341 test -z "$ac_c_werror_flag" ||
6342 test ! -s conftest.err
6343 } && test -s conftest.$ac_objext; then
6344 ac_cv_header_sys_wait_h=yes
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_cv_header_sys_wait_h=no
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6355 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6356 if test $ac_cv_header_sys_wait_h = yes; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_SYS_WAIT_H 1
6360 _ACEOF
6364 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6365 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6366 if test "${ac_cv_header_time+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #include <sys/types.h>
6376 #include <sys/time.h>
6377 #include <time.h>
6380 main ()
6382 if ((struct tm *) 0)
6383 return 0;
6385 return 0;
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (ac_try="$ac_compile"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_compile") 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && {
6402 test -z "$ac_c_werror_flag" ||
6403 test ! -s conftest.err
6404 } && test -s conftest.$ac_objext; then
6405 ac_cv_header_time=yes
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_cv_header_time=no
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6416 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6417 if test $ac_cv_header_time = yes; then
6419 cat >>confdefs.h <<\_ACEOF
6420 #define TIME_WITH_SYS_TIME 1
6421 _ACEOF
6425 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6426 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6427 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6438 main ()
6440 static struct stat ac_aggr;
6441 if (ac_aggr.st_blksize)
6442 return 0;
6444 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6449 case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_compile") 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest.$ac_objext; then
6464 ac_cv_member_struct_stat_st_blksize=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6477 main ()
6479 static struct stat ac_aggr;
6480 if (sizeof ac_aggr.st_blksize)
6481 return 0;
6483 return 0;
6485 _ACEOF
6486 rm -f conftest.$ac_objext
6487 if { (ac_try="$ac_compile"
6488 case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_compile") 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest.$ac_objext; then
6503 ac_cv_member_struct_stat_st_blksize=yes
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_cv_member_struct_stat_st_blksize=no
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6517 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6518 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6520 cat >>confdefs.h <<_ACEOF
6521 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6522 _ACEOF
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_ST_BLKSIZE 1
6527 _ACEOF
6532 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6533 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6534 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 $ac_includes_default
6545 main ()
6547 static struct stat ac_aggr;
6548 if (ac_aggr.st_blocks)
6549 return 0;
6551 return 0;
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6556 case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559 esac
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_compile") 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
6571 ac_cv_member_struct_stat_st_blocks=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6584 main ()
6586 static struct stat ac_aggr;
6587 if (sizeof ac_aggr.st_blocks)
6588 return 0;
6590 return 0;
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (ac_try="$ac_compile"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_compile") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest.$ac_objext; then
6610 ac_cv_member_struct_stat_st_blocks=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_cv_member_struct_stat_st_blocks=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6624 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6625 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6627 cat >>confdefs.h <<_ACEOF
6628 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6629 _ACEOF
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_ST_BLOCKS 1
6634 _ACEOF
6636 else
6637 case " $LIBOBJS " in
6638 *" fileblocks.$ac_objext "* ) ;;
6639 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6641 esac
6646 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6647 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6648 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 $ac_includes_default
6659 main ()
6661 static struct stat ac_aggr;
6662 if (ac_aggr.st_rdev)
6663 return 0;
6665 return 0;
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (ac_try="$ac_compile"
6670 case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_compile") 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest.$ac_objext; then
6685 ac_cv_member_struct_stat_st_rdev=yes
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6698 main ()
6700 static struct stat ac_aggr;
6701 if (sizeof ac_aggr.st_rdev)
6702 return 0;
6704 return 0;
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 ac_cv_member_struct_stat_st_rdev=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_member_struct_stat_st_rdev=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6738 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6739 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_STRUCT_STAT_ST_RDEV 1
6743 _ACEOF
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_ST_RDEV 1
6748 _ACEOF
6753 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6754 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6755 if test "${ac_cv_struct_tm+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <sys/types.h>
6765 #include <time.h>
6768 main ()
6770 struct tm tm;
6771 int *p = &tm.tm_sec;
6772 return !p;
6774 return 0;
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (ac_try="$ac_compile"
6779 case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_cv_struct_tm=time.h
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 ac_cv_struct_tm=sys/time.h
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6805 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6806 if test $ac_cv_struct_tm = sys/time.h; then
6808 cat >>confdefs.h <<\_ACEOF
6809 #define TM_IN_SYS_TIME 1
6810 _ACEOF
6814 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6815 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6816 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/types.h>
6826 #include <$ac_cv_struct_tm>
6830 main ()
6832 static struct tm ac_aggr;
6833 if (ac_aggr.tm_zone)
6834 return 0;
6836 return 0;
6838 _ACEOF
6839 rm -f conftest.$ac_objext
6840 if { (ac_try="$ac_compile"
6841 case "(($ac_try" in
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6844 esac
6845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6846 (eval "$ac_compile") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest.$ac_objext; then
6856 ac_cv_member_struct_tm_tm_zone=yes
6857 else
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 #include <sys/types.h>
6868 #include <$ac_cv_struct_tm>
6872 main ()
6874 static struct tm ac_aggr;
6875 if (sizeof ac_aggr.tm_zone)
6876 return 0;
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_member_struct_tm_tm_zone=yes
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_member_struct_tm_tm_zone=no
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6912 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6913 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6915 cat >>confdefs.h <<_ACEOF
6916 #define HAVE_STRUCT_TM_TM_ZONE 1
6917 _ACEOF
6922 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_TM_ZONE 1
6926 _ACEOF
6928 else
6929 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6930 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6931 if test "${ac_cv_have_decl_tzname+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 #include <time.h>
6943 main ()
6945 #ifndef tzname
6946 (void) tzname;
6947 #endif
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6955 case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958 esac
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_compile") 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && {
6967 test -z "$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 } && test -s conftest.$ac_objext; then
6970 ac_cv_have_decl_tzname=yes
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_have_decl_tzname=no
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6981 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6982 if test $ac_cv_have_decl_tzname = yes; then
6984 cat >>confdefs.h <<_ACEOF
6985 #define HAVE_DECL_TZNAME 1
6986 _ACEOF
6989 else
6990 cat >>confdefs.h <<_ACEOF
6991 #define HAVE_DECL_TZNAME 0
6992 _ACEOF
6998 { echo "$as_me:$LINENO: checking for tzname" >&5
6999 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7000 if test "${ac_cv_var_tzname+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 #include <time.h>
7010 #if !HAVE_DECL_TZNAME
7011 extern char *tzname[];
7012 #endif
7015 main ()
7017 return tzname[0][0];
7019 return 0;
7021 _ACEOF
7022 rm -f conftest.$ac_objext conftest$ac_exeext
7023 if { (ac_try="$ac_link"
7024 case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027 esac
7028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7029 (eval "$ac_link") 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && {
7036 test -z "$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 } && test -s conftest$ac_exeext &&
7039 $as_test_x conftest$ac_exeext; then
7040 ac_cv_var_tzname=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_var_tzname=no
7048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7049 conftest$ac_exeext conftest.$ac_ext
7051 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7052 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7053 if test $ac_cv_var_tzname = yes; then
7055 cat >>confdefs.h <<\_ACEOF
7056 #define HAVE_TZNAME 1
7057 _ACEOF
7062 { echo "$as_me:$LINENO: checking for off_t" >&5
7063 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7064 if test "${ac_cv_type_off_t+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 $ac_includes_default
7074 typedef off_t ac__type_new_;
7076 main ()
7078 if ((ac__type_new_ *) 0)
7079 return 0;
7080 if (sizeof (ac__type_new_))
7081 return 0;
7083 return 0;
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7088 case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7094 ac_status=$?
7095 grep -v '^ *+' conftest.er1 >conftest.err
7096 rm -f conftest.er1
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.$ac_objext; then
7103 ac_cv_type_off_t=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_cv_type_off_t=no
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7114 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7115 if test $ac_cv_type_off_t = yes; then
7117 else
7119 cat >>confdefs.h <<_ACEOF
7120 #define off_t long int
7121 _ACEOF
7125 { echo "$as_me:$LINENO: checking for pid_t" >&5
7126 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7127 if test "${ac_cv_type_pid_t+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 $ac_includes_default
7137 typedef pid_t ac__type_new_;
7139 main ()
7141 if ((ac__type_new_ *) 0)
7142 return 0;
7143 if (sizeof (ac__type_new_))
7144 return 0;
7146 return 0;
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (ac_try="$ac_compile"
7151 case "(($ac_try" in
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7154 esac
7155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_compile") 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } && {
7163 test -z "$ac_c_werror_flag" ||
7164 test ! -s conftest.err
7165 } && test -s conftest.$ac_objext; then
7166 ac_cv_type_pid_t=yes
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 ac_cv_type_pid_t=no
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7177 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7178 if test $ac_cv_type_pid_t = yes; then
7180 else
7182 cat >>confdefs.h <<_ACEOF
7183 #define pid_t int
7184 _ACEOF
7188 { echo "$as_me:$LINENO: checking for size_t" >&5
7189 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7190 if test "${ac_cv_type_size_t+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7200 typedef size_t ac__type_new_;
7202 main ()
7204 if ((ac__type_new_ *) 0)
7205 return 0;
7206 if (sizeof (ac__type_new_))
7207 return 0;
7209 return 0;
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 ac_cv_type_size_t=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 ac_cv_type_size_t=no
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7240 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7241 if test $ac_cv_type_size_t = yes; then
7243 else
7245 cat >>confdefs.h <<_ACEOF
7246 #define size_t unsigned int
7247 _ACEOF
7251 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7252 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7253 if test "${ac_cv_type_uid_t+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 #include <sys/types.h>
7264 _ACEOF
7265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266 $EGREP "uid_t" >/dev/null 2>&1; then
7267 ac_cv_type_uid_t=yes
7268 else
7269 ac_cv_type_uid_t=no
7271 rm -f -r conftest*
7274 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7275 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7276 if test $ac_cv_type_uid_t = no; then
7278 cat >>confdefs.h <<\_ACEOF
7279 #define uid_t int
7280 _ACEOF
7283 cat >>confdefs.h <<\_ACEOF
7284 #define gid_t int
7285 _ACEOF
7290 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7291 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7292 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7303 main ()
7305 static struct tm ac_aggr;
7306 if (ac_aggr.tm_gmtoff)
7307 return 0;
7309 return 0;
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
7329 ac_cv_member_struct_tm_tm_gmtoff=yes
7330 else
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7342 main ()
7344 static struct tm ac_aggr;
7345 if (sizeof ac_aggr.tm_gmtoff)
7346 return 0;
7348 return 0;
7350 _ACEOF
7351 rm -f conftest.$ac_objext
7352 if { (ac_try="$ac_compile"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_compile") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.$ac_objext; then
7368 ac_cv_member_struct_tm_tm_gmtoff=yes
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_cv_member_struct_tm_tm_gmtoff=no
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7382 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7383 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7385 cat >>confdefs.h <<_ACEOF
7386 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7387 _ACEOF
7393 # Look for some functions
7408 for ac_func in getpagesize kqueue statfs statvfs \
7409 clone kse_create rfork_thread thr_create sa_register \
7410 getcontext makecontext setcontext sigaltstack swapcontext
7412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7426 #define $ac_func innocuous_$ac_func
7428 /* System header to define __stub macros and hopefully few prototypes,
7429 which can conflict with char $ac_func (); below.
7430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7431 <limits.h> exists even on freestanding compilers. */
7433 #ifdef __STDC__
7434 # include <limits.h>
7435 #else
7436 # include <assert.h>
7437 #endif
7439 #undef $ac_func
7441 /* Override any GCC internal prototype to avoid an error.
7442 Use char because int might match the return type of a GCC
7443 builtin and then its argument prototype would still apply. */
7444 #ifdef __cplusplus
7445 extern "C"
7446 #endif
7447 char $ac_func ();
7448 /* The GNU C library defines this for functions which it implements
7449 to always fail with ENOSYS. Some functions are actually named
7450 something starting with __ and the normal name is an alias. */
7451 #if defined __stub_$ac_func || defined __stub___$ac_func
7452 choke me
7453 #endif
7456 main ()
7458 return $ac_func ();
7460 return 0;
7462 _ACEOF
7463 rm -f conftest.$ac_objext conftest$ac_exeext
7464 if { (ac_try="$ac_link"
7465 case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468 esac
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_link") 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest$ac_exeext &&
7480 $as_test_x conftest$ac_exeext; then
7481 eval "$as_ac_var=yes"
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 eval "$as_ac_var=no"
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7490 conftest$ac_exeext conftest.$ac_ext
7492 ac_res=`eval echo '${'$as_ac_var'}'`
7493 { echo "$as_me:$LINENO: result: $ac_res" >&5
7494 echo "${ECHO_T}$ac_res" >&6; }
7495 if test `eval echo '${'$as_ac_var'}'` = yes; then
7496 cat >>confdefs.h <<_ACEOF
7497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7498 _ACEOF
7501 done
7506 for ac_header in stdlib.h unistd.h
7508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 ac_res=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 else
7519 # Is the header compilable?
7520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7529 #include <$ac_header>
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 ac_header_compiler=yes
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 ac_header_compiler=no
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7558 echo "${ECHO_T}$ac_header_compiler" >&6; }
7560 # Is the header present?
7561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <$ac_header>
7570 _ACEOF
7571 if { (ac_try="$ac_cpp conftest.$ac_ext"
7572 case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575 esac
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } >/dev/null && {
7584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7585 test ! -s conftest.err
7586 }; then
7587 ac_header_preproc=yes
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_header_preproc=no
7595 rm -f conftest.err conftest.$ac_ext
7596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7597 echo "${ECHO_T}$ac_header_preproc" >&6; }
7599 # So? What about this header?
7600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7601 yes:no: )
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7606 ac_header_preproc=yes
7608 no:yes:* )
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7623 esac
7624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 eval "$as_ac_Header=\$ac_header_preproc"
7631 ac_res=`eval echo '${'$as_ac_Header'}'`
7632 { echo "$as_me:$LINENO: result: $ac_res" >&5
7633 echo "${ECHO_T}$ac_res" >&6; }
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637 cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7639 _ACEOF
7643 done
7646 for ac_func in getpagesize
7648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7662 #define $ac_func innocuous_$ac_func
7664 /* System header to define __stub macros and hopefully few prototypes,
7665 which can conflict with char $ac_func (); below.
7666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667 <limits.h> exists even on freestanding compilers. */
7669 #ifdef __STDC__
7670 # include <limits.h>
7671 #else
7672 # include <assert.h>
7673 #endif
7675 #undef $ac_func
7677 /* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7680 #ifdef __cplusplus
7681 extern "C"
7682 #endif
7683 char $ac_func ();
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined __stub_$ac_func || defined __stub___$ac_func
7688 choke me
7689 #endif
7692 main ()
7694 return $ac_func ();
7696 return 0;
7698 _ACEOF
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (ac_try="$ac_link"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_link") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest$ac_exeext &&
7716 $as_test_x conftest$ac_exeext; then
7717 eval "$as_ac_var=yes"
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 eval "$as_ac_var=no"
7725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7726 conftest$ac_exeext conftest.$ac_ext
7728 ac_res=`eval echo '${'$as_ac_var'}'`
7729 { echo "$as_me:$LINENO: result: $ac_res" >&5
7730 echo "${ECHO_T}$ac_res" >&6; }
7731 if test `eval echo '${'$as_ac_var'}'` = yes; then
7732 cat >>confdefs.h <<_ACEOF
7733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7734 _ACEOF
7737 done
7739 { echo "$as_me:$LINENO: checking for working mmap" >&5
7740 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7741 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 if test "$cross_compiling" = yes; then
7745 ac_cv_func_mmap_fixed_mapped=no
7746 else
7747 cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h. */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 $ac_includes_default
7754 /* malloc might have been renamed as rpl_malloc. */
7755 #undef malloc
7757 /* Thanks to Mike Haertel and Jim Avera for this test.
7758 Here is a matrix of mmap possibilities:
7759 mmap private not fixed
7760 mmap private fixed at somewhere currently unmapped
7761 mmap private fixed at somewhere already mapped
7762 mmap shared not fixed
7763 mmap shared fixed at somewhere currently unmapped
7764 mmap shared fixed at somewhere already mapped
7765 For private mappings, we should verify that changes cannot be read()
7766 back from the file, nor mmap's back from the file at a different
7767 address. (There have been systems where private was not correctly
7768 implemented like the infamous i386 svr4.0, and systems where the
7769 VM page cache was not coherent with the file system buffer cache
7770 like early versions of FreeBSD and possibly contemporary NetBSD.)
7771 For shared mappings, we should conversely verify that changes get
7772 propagated back to all the places they're supposed to be.
7774 Grep wants private fixed already mapped.
7775 The main things grep needs to know about mmap are:
7776 * does it exist and is it safe to write into the mmap'd area
7777 * how to use it (BSD variants) */
7779 #include <fcntl.h>
7780 #include <sys/mman.h>
7782 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7783 char *malloc ();
7784 #endif
7786 /* This mess was copied from the GNU getpagesize.h. */
7787 #ifndef HAVE_GETPAGESIZE
7788 /* Assume that all systems that can run configure have sys/param.h. */
7789 # ifndef HAVE_SYS_PARAM_H
7790 # define HAVE_SYS_PARAM_H 1
7791 # endif
7793 # ifdef _SC_PAGESIZE
7794 # define getpagesize() sysconf(_SC_PAGESIZE)
7795 # else /* no _SC_PAGESIZE */
7796 # ifdef HAVE_SYS_PARAM_H
7797 # include <sys/param.h>
7798 # ifdef EXEC_PAGESIZE
7799 # define getpagesize() EXEC_PAGESIZE
7800 # else /* no EXEC_PAGESIZE */
7801 # ifdef NBPG
7802 # define getpagesize() NBPG * CLSIZE
7803 # ifndef CLSIZE
7804 # define CLSIZE 1
7805 # endif /* no CLSIZE */
7806 # else /* no NBPG */
7807 # ifdef NBPC
7808 # define getpagesize() NBPC
7809 # else /* no NBPC */
7810 # ifdef PAGESIZE
7811 # define getpagesize() PAGESIZE
7812 # endif /* PAGESIZE */
7813 # endif /* no NBPC */
7814 # endif /* no NBPG */
7815 # endif /* no EXEC_PAGESIZE */
7816 # else /* no HAVE_SYS_PARAM_H */
7817 # define getpagesize() 8192 /* punt totally */
7818 # endif /* no HAVE_SYS_PARAM_H */
7819 # endif /* no _SC_PAGESIZE */
7821 #endif /* no HAVE_GETPAGESIZE */
7824 main ()
7826 char *data, *data2, *data3;
7827 int i, pagesize;
7828 int fd;
7830 pagesize = getpagesize ();
7832 /* First, make a file with some known garbage in it. */
7833 data = (char *) malloc (pagesize);
7834 if (!data)
7835 return 1;
7836 for (i = 0; i < pagesize; ++i)
7837 *(data + i) = rand ();
7838 umask (0);
7839 fd = creat ("conftest.mmap", 0600);
7840 if (fd < 0)
7841 return 1;
7842 if (write (fd, data, pagesize) != pagesize)
7843 return 1;
7844 close (fd);
7846 /* Next, try to mmap the file at a fixed address which already has
7847 something else allocated at it. If we can, also make sure that
7848 we see the same garbage. */
7849 fd = open ("conftest.mmap", O_RDWR);
7850 if (fd < 0)
7851 return 1;
7852 data2 = (char *) malloc (2 * pagesize);
7853 if (!data2)
7854 return 1;
7855 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7856 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7857 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7858 return 1;
7859 for (i = 0; i < pagesize; ++i)
7860 if (*(data + i) != *(data2 + i))
7861 return 1;
7863 /* Finally, make sure that changes to the mapped area do not
7864 percolate back to the file as seen by read(). (This is a bug on
7865 some variants of i386 svr4.0.) */
7866 for (i = 0; i < pagesize; ++i)
7867 *(data2 + i) = *(data2 + i) + 1;
7868 data3 = (char *) malloc (pagesize);
7869 if (!data3)
7870 return 1;
7871 if (read (fd, data3, pagesize) != pagesize)
7872 return 1;
7873 for (i = 0; i < pagesize; ++i)
7874 if (*(data + i) != *(data3 + i))
7875 return 1;
7876 close (fd);
7877 return 0;
7879 _ACEOF
7880 rm -f conftest$ac_exeext
7881 if { (ac_try="$ac_link"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_link") 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7891 { (case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_try") 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_func_mmap_fixed_mapped=yes
7901 else
7902 echo "$as_me: program exited with status $ac_status" >&5
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ( exit $ac_status )
7907 ac_cv_func_mmap_fixed_mapped=no
7909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7914 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7915 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7916 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7918 cat >>confdefs.h <<\_ACEOF
7919 #define HAVE_MMAP 1
7920 _ACEOF
7923 rm -f conftest.mmap
7928 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7929 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7930 aros_config_ldflags=""
7932 aros_shared_default=yes
7934 aros_shared_cflags="-fPIC"
7935 aros_shared_aflags=""
7936 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7937 aros_kernel_ldflags="-Wl,-rpath,./lib"
7939 aros_target_ar_flags="cr"
7940 aros_target_nm_flags="-C -ul"
7941 aros_target_strip_flags="--strip-unneeded -R.comment"
7943 aros_compiler_libs=
7944 aros_arch_libs=
7946 aros_target_genmap="-Wl,-Map -Xlinker"
7948 # Native flavour stuff
7949 aros_serial_debug="0"
7951 # Palm native flavour stuff
7952 aros_palm_debug_hack="0"
7954 # Unix flavour stuff
7955 aros_nesting_supervisor="0"
7957 # Collect-aros stuff: "-ius" to ignore undefined symbols
7958 ignore_undefined_symbols=""
7960 #-----------------------------------------------------------------------------
7963 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7964 # it switched on by default, and we use the host compiler, so it compiles AROS
7965 # code with this enabled resulting in link failures as we don't have support
7966 # for it.
7968 # We use two methods to disable it. For the host compiler (used to compile
7969 # some hosted modules), we test to see if the compiler supports stack
7970 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7971 # work on all platforms.
7973 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7974 # (this is done unconditionally, as it should have no effect on compilers
7975 # without the stack protection feature). This may be specific to the way that
7976 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7977 # strong enough to disable it in a generic way though, so we'll live with it
7978 # until another vendor ships GCC with it enabled in a different way, and deal
7979 # with it then.
7982 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7983 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7984 save_cflags="$CFLAGS"
7985 CFLAGS="$CFLAGS -fno-stack-protector"
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7994 main ()
7998 return 0;
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 use_no_stack_protector="yes"
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 use_no_stack_protector="no"
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8028 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8029 if test "x-$use_no_stack_protector" = "x-yes" ; then
8030 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8032 CFLAGS="$save_cflags"
8034 #-----------------------------------------------------------------------------
8036 # Disable pointer-signedness warnings if the compiler recognises the option
8037 # (this only works for the host compiler at the moment)
8039 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8040 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8041 save_cflags="$CFLAGS"
8042 CFLAGS="$CFLAGS -Wno-pointer-sign"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8051 main ()
8055 return 0;
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8060 case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && {
8072 test -z "$ac_c_werror_flag" ||
8073 test ! -s conftest.err
8074 } && test -s conftest.$ac_objext; then
8075 use_no_sign_warning="yes"
8076 else
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8080 use_no_sign_warning="no"
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8085 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8086 if test "x-$use_no_sign_warning" = "x-yes" ; then
8087 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8089 CFLAGS="$save_cflags"
8091 #-----------------------------------------------------------------------------
8093 { echo "$as_me:$LINENO: checking for type of build" >&5
8094 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8095 # Check whether --enable-build_type was given.
8096 if test "${enable_build_type+set}" = set; then
8097 enableval=$enable_build_type; build_type=$enableval
8098 else
8099 build_type="personal"
8103 if test "$build_type" = "nightly"; then
8104 build_type_string="NIGHTLY"
8105 elif test "$build_type" = "snapshot"; then
8106 build_type_string="SNAPSHOT"
8107 elif test "$build_type" = "milestone"; then
8108 build_type_string="MILESTONE"
8109 elif test "$build_type" = "release"; then
8110 build_type_string="RELEASE"
8111 else
8112 build_type_string="PERSONAL"
8113 build_type="personal"
8116 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8118 { echo "$as_me:$LINENO: result: $build_type" >&5
8119 echo "${ECHO_T}$build_type" >&6; }
8121 #-----------------------------------------------------------------------------
8122 all_debug_types="messages stack modules mungwall symbols"
8124 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8125 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8126 # Check whether --enable-debug was given.
8127 if test "${enable_debug+set}" = set; then
8128 enableval=$enable_debug; debug="$enableval"
8129 else
8130 debug=""
8134 if test "$debug" = "" -o "$debug" = "no"; then
8135 debug="none"
8136 elif test "$debug" = "yes"; then
8137 debug="all"
8140 if test "$debug" = "all" ; then
8141 debug="messages stack modules symbols"
8142 for d in $all_debug_types; do
8143 export aros_${d}_debug="1"
8144 done
8145 else
8146 for d in $all_debug_types; do
8147 export aros_${d}_debug="0"
8148 done
8151 if test "$debug" != "none"; then
8152 debug=`echo $debug | sed s/,/\ /g`
8153 for d in $debug; do
8154 found="0"
8155 for d2 in $all_debug_types; do
8156 if test "$d2" = "$d"; then
8157 found="1"
8158 break
8160 done
8161 if test "$found" = "0"; then
8162 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8163 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8164 { (exit 1); exit 1; }; }
8166 export aros_${d}_debug="1"
8167 done
8168 aros_debug="yes"
8170 { echo "$as_me:$LINENO: result: $debug" >&5
8171 echo "${ECHO_T}$debug" >&6; }
8173 if test "$aros_messages_debug" = "1"; then
8174 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8175 else
8176 aros_messages_debug=""
8178 if test "$aros_symbols_debug" = "1"; then
8179 aros_symbols_debug="-g"
8180 else
8181 aros_symbols_debug=""
8184 # These are the flags to pass when compiling debugged programs
8185 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8186 aros_debug_aflags=""
8187 aros_debug_ldflags="$aros_symbols_debug"
8189 aros_crosstools="no"
8191 #-----------------------------------------------------------------------------
8192 # Checking if we should build crosstools..
8193 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8194 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8195 # Check whether --enable-crosstools was given.
8196 if test "${enable_crosstools+set}" = set; then
8197 enableval=$enable_crosstools; crosstools="$enableval"
8198 else
8199 crosstools="no"
8202 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8203 { echo "$as_me:$LINENO: result: yes" >&5
8204 echo "${ECHO_T}yes" >&6; }
8205 aros_crosstools="yes"
8206 else
8207 { echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6; }
8211 #-----------------------------------------------------------------------------
8212 # Checking for distcc and ccache.
8214 # Always apply the transforms in this particular order. Basically you should
8215 # always run 'ccache distcc compiler' in that order for the best performance.
8217 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8218 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8219 # Check whether --enable-distcc was given.
8220 if test "${enable_distcc+set}" = set; then
8221 enableval=$enable_distcc; distcc="$enableval"
8222 else
8223 distcc="no"
8226 if test "$distcc" != "" -a "$distcc" != "no"; then
8227 # AC_CHECK_PROG will print out the result in this case
8228 # Extract the first word of "distcc", so it can be a program name with args.
8229 set dummy distcc; ac_word=$2
8230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8232 if test "${ac_cv_path_DISTCC+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235 case $DISTCC in
8236 [\\/]* | ?:[\\/]*)
8237 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8251 done
8252 done
8253 IFS=$as_save_IFS
8255 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8257 esac
8259 DISTCC=$ac_cv_path_DISTCC
8260 if test -n "$DISTCC"; then
8261 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8262 echo "${ECHO_T}$DISTCC" >&6; }
8263 else
8264 { echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6; }
8269 else
8270 { echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6; }
8274 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8275 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8276 # Check whether --enable-ccache was given.
8277 if test "${enable_ccache+set}" = set; then
8278 enableval=$enable_ccache; ccache="$enableval"
8279 else
8280 ccache="no"
8283 if test "$ccache" != "" -a "$ccache" != "no"; then
8284 # AC_CHECK_PROG will print out the result in this case
8285 # Extract the first word of "ccache", so it can be a program name with args.
8286 set dummy ccache; ac_word=$2
8287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8289 if test "${ac_cv_prog_CCACHE+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 if test -n "$CCACHE"; then
8293 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_prog_CCACHE="ccache"
8303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8312 CCACHE=$ac_cv_prog_CCACHE
8313 if test -n "$CCACHE"; then
8314 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8315 echo "${ECHO_T}$CCACHE" >&6; }
8316 else
8317 { echo "$as_me:$LINENO: result: no" >&5
8318 echo "${ECHO_T}no" >&6; }
8322 else
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8327 #-----------------------------------------------------------------------------
8328 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8329 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8331 # Check whether --with-gcc-version was given.
8332 if test "${with_gcc_version+set}" = set; then
8333 withval=$with_gcc_version; target_tool_version="$withval"
8334 else
8335 target_tool_version="default"
8338 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8339 echo "${ECHO_T}$target_tool_version" >&6; }
8341 #-----------------------------------------------------------------------------
8342 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8343 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8345 # Check whether --with-optimization was given.
8346 if test "${with_optimization+set}" = set; then
8347 withval=$with_optimization; optimization="$withval"
8348 else
8349 optimization="unknown"
8352 if test "$optimization" = "unknown"; then
8353 if test "$debug" != "none"; then
8354 optimization="-O0"
8355 else
8356 optimization="-O2"
8359 aros_config_cflags="$aros_config_cflags $optimization"
8360 { echo "$as_me:$LINENO: result: $optimization" >&5
8361 echo "${ECHO_T}$optimization" >&6; }
8363 #-----------------------------------------------------------------------------
8364 { echo "$as_me:$LINENO: checking what paranoia flags to use" >&5
8365 echo $ECHO_N "checking what paranoia flags to use... $ECHO_C" >&6; }
8367 # Check whether --with-paranoia was given.
8368 if test "${with_paranoia+set}" = set; then
8369 withval=$with_paranoia; paranoia_flags="$withval"
8370 else
8371 paranoia_flags="default"
8374 if test "$paranoia_flags" = "default"; then
8375 paranoia_flags=""
8376 else if test "$paranoia_flags" = "yes"; then
8377 paranoia_flags="-Wall -W -Werror"
8378 fi fi
8379 { echo "$as_me:$LINENO: result: $paranoia_flags" >&5
8380 echo "${ECHO_T}$paranoia_flags" >&6; }
8381 aros_paranoia_cflags="$paranoia_flags"
8383 #-----------------------------------------------------------------------------
8384 if test "$target_os" = "ios"; then
8386 { echo "$as_me:$LINENO: checking XCode path" >&5
8387 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8389 # Check whether --with-xcode-path was given.
8390 if test "${with_xcode_path+set}" = set; then
8391 withval=$with_xcode_path; aros_xcode_path="$withval"
8392 else
8393 aros_xcode_path="/Developer"
8396 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8397 echo "${ECHO_T}$aros_xcode_path" >&6; }
8399 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8400 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8402 # Check whether --with-ios-version was given.
8403 if test "${with_ios_version+set}" = set; then
8404 withval=$with_ios_version; aros_ios_version="$withval"
8405 else
8406 aros_ios_version="2.0"
8409 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8410 echo "${ECHO_T}$aros_ios_version" >&6; }
8412 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8413 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8415 # Check whether --with-ios-sdk was given.
8416 if test "${with_ios_sdk+set}" = set; then
8417 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8418 else
8419 aros_ios_sdk="4.1"
8422 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8423 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8427 #-----------------------------------------------------------------------------
8428 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8429 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8430 # Check whether --enable-target_variant was given.
8431 if test "${enable_target_variant+set}" = set; then
8432 enableval=$enable_target_variant; target_variant=$enableval
8433 else
8434 target_variant="none"
8437 if test "$target_variant" = "none"; then
8438 aros_target_variant=""
8439 aros_target_suffix=""
8440 else
8441 aros_target_variant="$target_variant"
8442 aros_target_suffix="-$target_variant"
8444 { echo "$as_me:$LINENO: result: $enableval" >&5
8445 echo "${ECHO_T}$enableval" >&6; }
8447 target_bootloader="none"
8449 #-----------------------------------------------------------------------------
8450 # This is the target configuration switch.
8451 case "$target_os" in
8452 linux*)
8453 aros_target_arch="linux"
8454 case "$target_cpu" in
8455 *m68k*)
8456 aros_target_cpu="m68k"
8457 aros_object_format="m68kelf"
8458 aros_flavour="emulcompat"
8459 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8460 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8461 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8462 gcc_target_cpu="mc68000"
8464 *i?86*)
8465 aros_target_cpu="i386"
8466 aros_object_format="elf_i386"
8467 aros_flavour="emulation"
8468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8469 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8470 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8471 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8472 aros_config_ldflags="-m32 -march=i486"
8473 aros_kernel_ldflags="-melf_i386"
8474 aros_default_wbdepth=8
8475 gcc_target_cpu="i386"
8477 *x86_64*)
8478 aros_target_cpu="x86_64"
8479 aros_object_format="elf_x86_64"
8480 aros_flavour="emulation"
8481 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8482 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8483 aros_default_wbdepth=8
8484 gcc_target_cpu="x86_64"
8486 *powerpc*)
8487 aros_target_cpu="ppc"
8488 aros_object_format="elf32ppc"
8489 aros_flavour="emulation"
8490 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8491 aros_default_wbdepth=8
8492 gcc_target_cpu="ppc"
8494 # TODO
8495 # Same as powerpc, but I need this for the nightly build to work again.
8496 # Actually, the nightly should be made working with powerpc target.
8497 # That just was too much work for the moment, another week or two.
8498 *ppc*)
8499 aros_target_cpu="ppc"
8500 aros_object_format="elf32ppc"
8501 aros_flavour="emulation"
8502 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8503 aros_default_wbdepth=8
8504 gcc_target_cpu="ppc"
8506 *arm*)
8507 aros_target_cpu="arm"
8508 aros_object_format="armelf_linux_eabi"
8509 aros_flavour="emulation"
8510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8511 gcc_target_cpu="arm"
8512 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8513 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8516 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8517 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8518 { (exit 1); exit 1; }; }
8520 esac
8524 aros_target_arch="pc"
8525 aros_shared_default="no"
8526 target_bootloader="grub2"
8527 case "$target_cpu" in
8528 *i?86*)
8529 aros_target_cpu="i386"
8532 if test "$aros_object_format" = "" ; then
8533 aros_object_format="elf_i386"
8535 aros_flavour="standalone"
8536 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8537 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8538 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8539 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8540 aros_config_ldflags="-m32 -march=i486"
8541 aros_kernel_ldflags="-melf_i386"
8542 aros_default_wbwidth=640
8543 aros_default_wbheight=480
8544 gcc_target_cpu="i386"
8546 *x86_64*)
8547 aros_target_cpu="x86_64"
8548 aros_serial_debug=1
8549 if test "$aros_object_format" = "" ; then
8550 aros_object_format="elf_x86_64"
8552 aros_flavour="standalone"
8553 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8554 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8555 aros_kernel_ldflags=""
8556 aros_default_wbwidth=640
8557 aros_default_wbheight=480
8558 gcc_target_cpu="x86_64"
8561 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8562 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8563 { (exit 1); exit 1; }; }
8565 esac
8568 prep)
8569 aros_target_arch="prep"
8570 aros_shared_default="no"
8571 aros_target_cpu="ppc"
8572 aros_object_format="elf32ppc"
8573 aros_flavour="ppcnative"
8574 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8575 aros_kernel_ldflags=""
8576 aros_default_wbwidth=640
8577 aros_default_wbheight=480
8578 gcc_target_cpu="ppc"
8581 freebsd*)
8582 aros_target_arch="freebsd"
8583 aros_target_cpu="i386"
8584 aros_flavour="emulation"
8585 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8586 gcc_target_cpu="i386"
8588 aros_target_strip_flags="-x"
8591 darwin*)
8592 aros_target_arch="darwin"
8593 aros_flavour="emulation"
8594 case "$target_cpu" in
8595 *i?86*)
8596 aros_target_cpu="i386"
8597 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8598 aros_kernel_cflags="$aros_kernel_cflags -m32"
8599 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8600 aros_default_wbdepth=8
8601 gcc_target_cpu="i386"
8602 aros_object_format="elf_i386"
8603 aros_target_strip_flags="-x"
8604 aros_target_cc="i386-aros-gcc"
8605 aros_target_cxx="i386-aros-g++"
8606 aros_target_ld="i386-aros-ld"
8607 aros_target_as="i386-aros-as"
8608 aros_target_ar="i386-aros-ar"
8609 aros_target_ranlib="i386-aros-ranlib"
8610 aros_target_nm="i386-aros-nm"
8611 aros_target_strip="i386-aros-strip"
8612 aros_target_objcopy="i386-aros-objcopy"
8613 aros_target_objdump="i386-aros-objdump"
8614 target_tool_prefix="i686-apple-darwin10-"
8616 *x86_64*)
8617 aros_target_cpu="x86_64"
8618 aros_object_format="elf_x86_64"
8619 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8620 aros_kernel_cflags="$aros_kernel_cflags -m64"
8621 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8622 aros_default_wbdepth=8
8623 gcc_target_cpu="x86_64"
8624 aros_target_cc="x86_64-aros-gcc"
8625 aros_target_cxx="x86_64-aros-g++"
8626 aros_target_ld="x86_64-aros-ld"
8627 aros_target_as="x86_64-aros-as"
8628 aros_target_ar="x86_64-aros-ar"
8629 aros_target_ranlib="x86_64-aros-ranlib"
8630 aros_target_nm="x86_64-aros-nm"
8631 aros_target_strip="x86_64-aros-strip"
8632 aros_target_objcopy="x86_64-aros-objcopy"
8633 aros_target_objdump="x86_64-aros-objdump"
8634 target_tool_prefix="i686-apple-darwin10-"
8636 *ppc*)
8637 aros_target_cpu="ppc"
8638 aros_object_format="elf32_ppc"
8639 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8640 aros_default_wbdepth=8
8641 gcc_target_cpu="ppc"
8642 aros_target_cc="ppc-aros-gcc"
8643 aros_target_cxx="ppc-aros-g++"
8644 aros_target_ld="ppc-aros-ld"
8645 aros_target_as="ppc-aros-as"
8646 aros_target_ar="ppc-aros-ar"
8647 aros_target_ranlib="ppc-aros-ranlib"
8648 aros_target_nm="ppc-aros-nm"
8649 aros_target_strip="ppc-aros-strip"
8650 aros_target_objcopy="ppc-aros-objcopy"
8651 aros_target_objdump="ppc-aros-objdump"
8652 target_tool_prefix="powerpc-apple-darwin10-"
8655 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8656 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8657 { (exit 1); exit 1; }; }
8659 esac
8662 ios*)
8663 aros_target_arch="ios"
8664 aros_flavour="emulation"
8665 # This is here because it may depend on iOS or SDK version
8666 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8667 case "$target_cpu" in
8668 *i?86*)
8669 aros_ios_platform="iPhoneSimulator"
8670 aros_target_cpu="i386"
8671 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8672 aros_default_wbdepth=8
8673 gcc_target_cpu="i386"
8674 aros_object_format="elf_i386"
8675 aros_target_strip_flags="-x"
8676 aros_target_cc="i386-aros-gcc"
8677 aros_target_cxx="i386-aros-g++"
8678 aros_target_ld="i386-aros-ld"
8679 aros_target_as="i386-aros-as"
8680 aros_target_ar="i386-aros-ar"
8681 aros_target_ranlib="i386-aros-ranlib"
8682 aros_target_nm="i386-aros-nm"
8683 aros_target_strip="i386-aros-strip"
8684 aros_target_objcopy="i386-aros-objcopy"
8685 aros_target_objdump="i386-aros-objdump"
8686 target_tool_prefix="i686-apple-darwin10-"
8687 target_tool_flags="-m32"
8689 *arm*)
8690 aros_ios_platform="iPhoneOS"
8691 aros_target_cpu="arm"
8692 aros_object_format="armelf_linux_eabi"
8693 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8694 aros_config_cflags="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8695 aros_config_aflags="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8696 aros_arch_libs="-laeabi"
8697 aros_default_wbdepth=8
8698 gcc_target_cpu="arm"
8699 aros_kernel_ld="ld -arch armv6"
8700 aros_target_cc="arm-aros-gcc"
8701 aros_target_cxx="arm-aros-g++"
8702 aros_target_ld="arm-aros-ld"
8703 aros_target_as="arm-aros-as"
8704 aros_target_ar="arm-aros-ar"
8705 aros_target_ranlib="arm-aros-ranlib"
8706 aros_target_nm="arm-aros-nm"
8707 aros_target_strip="arm-aros-strip"
8708 aros_target_objcopy="arm-aros-objcopy"
8709 aros_target_objdump="arm-aros-objdump"
8710 target_tool_prefix="arm-apple-darwin10-"
8711 aros_default_wbwidth=320
8712 aros_default_wbheight=480
8713 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8716 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8717 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8718 { (exit 1); exit 1; }; }
8720 esac
8721 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8722 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
8725 dragonfly*)
8726 aros_target_arch="dragonfly"
8727 aros_flavour="emulation"
8728 case "$target_cpu" in
8729 *i?86*)
8730 aros_target_cpu="i386"
8731 aros_object_format="elf_i386"
8732 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8734 *x86_64*)
8735 aros_target_cpu="x86_64"
8736 aros_object_format="elf_x86_64"
8737 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8740 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8741 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8742 { (exit 1); exit 1; }; }
8744 esac
8747 netbsd*)
8748 aros_target_arch="netbsd"
8749 case "$target_cpu" in
8750 *m68k*)
8751 aros_target_cpu="m68k"
8752 aros_object_format="m68kelf"
8753 aros_flavour="emulcompat"
8754 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8755 gcc_target_cpu="mc68000"
8757 *i?86*)
8758 aros_target_cpu="i386"
8759 aros_object_format="elf_i386"
8760 aros_flavour="emulation"
8761 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8762 aros_default_wbdepth=8
8763 gcc_target_cpu="i386"
8766 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8767 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8768 { (exit 1); exit 1; }; }
8770 esac
8771 aros_target_genmap="-Wl,-M -Xlinker >"
8772 aros_flavour="emulation"
8773 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8776 openbsd*)
8777 aros_target_arch="openbsd"
8778 case "$target_cpu" in
8779 *i?86*)
8780 aros_target_cpu="i386"
8781 aros_object_format="elf_i386"
8782 aros_flavour="emulation"
8783 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8784 gcc_target_cpu="i386"
8787 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8788 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8789 { (exit 1); exit 1; }; }
8791 esac
8792 aros_target_genmap="-Wl,-M -Xlinker >"
8793 aros_target_nm_flags="-u"
8794 aros_flavour="emulation"
8797 solaris*)
8798 aros_target_arch="solaris"
8799 case "$target_cpu" in
8800 *i?86*)
8801 aros_target_cpu="i386"
8802 aros_object_format="elf_i386"
8803 aros_flavour="emulation"
8804 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8805 aros_default_wbdepth=8
8806 gcc_target_cpu="i386"
8808 *sparc*)
8809 aros_target_cpu="sparc"
8810 aros_object_format="elf_sparc"
8811 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8812 gcc_target_cpu="sparc"
8815 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8816 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8817 { (exit 1); exit 1; }; }
8819 esac
8820 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8821 aros_flavour="emulation"
8824 morphos*)
8825 aros_target_arch="morphos"
8826 aros_shared_default="no"
8827 aros_target_cpu="ppc"
8828 aros_object_format="elf_ppc"
8829 aros_flavour="nativecompat"
8830 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8831 gcc_target_cpu="ppc"
8834 sam440)
8835 aros_target_arch="sam440"
8836 aros_shared_default="no"
8837 aros_target_cpu="ppc"
8838 aros_object_format="elf32ppc"
8839 aros_flavour="ppcnative"
8840 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8841 aros_kernel_ldflags=""
8842 aros_default_wbwidth=1024
8843 aros_default_wbheight=768
8844 aros_default_wbdepth=24
8845 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8846 gcc_target_cpu="powerpc"
8849 efika)
8850 aros_target_arch="efika"
8851 aros_shared_default="no"
8852 aros_target_cpu="arm"
8853 aros_object_format="armelf_linux_eabi"
8854 aros_flavour="standalone"
8855 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8856 aros_kernel_ldflags=""
8857 aros_default_wbwidth=1024
8858 aros_default_wbheight=600
8859 aros_arch_libs="-laeabi"
8860 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8861 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8864 chrp)
8865 aros_target_arch="chrp"
8866 aros_shared_default="no"
8867 aros_target_cpu="ppc"
8868 aros_object_format="elf32ppc"
8869 aros_flavour="ppcnative"
8870 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8871 aros_kernel_ldflags=""
8872 aros_default_wbwidth=640
8873 aros_default_wbheight=480
8874 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8875 gcc_target_cpu="powerpc"
8876 case "$aros_target_variant" in
8877 efika)
8878 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8880 esac
8883 amiga*)
8884 aros_target_arch="amiga"
8885 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8886 aros_shared_default="no"
8888 case "$target_cpu" in
8889 *m68k-eabi)
8890 aros_target_cpu="m68k"
8891 aros_object_format="m68kelf"
8892 aros_flavour="standalone"
8893 gcc_target_cpu="mc68000"
8894 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8895 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8896 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8897 target_tool_prefix="m68k-elf-"
8898 aros_target_nostdlib_ldflags="" # We always need -lgcc
8899 aros_target_strip_flags="-R.comment"
8901 *m68k*)
8902 aros_target_cpu="m68k"
8903 aros_object_format="m68kelf"
8904 aros_flavour="standcompat"
8905 gcc_target_cpu="mc68000"
8906 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8907 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8908 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8909 target_tool_prefix="m68k-elf-"
8910 aros_target_nostdlib_ldflags="" # We always need -lgcc
8911 aros_target_strip_flags="-R.comment"
8913 *ppc*)
8914 aros_cpu="ppc"
8915 aros_flavour="native"
8916 gcc_target_cpu="ppc"
8919 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8920 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8921 { (exit 1); exit 1; }; }
8923 esac
8926 mingw*)
8927 aros_target_arch="mingw32"
8928 aros_shared_default="no"
8929 aros_flavour="emulation"
8930 aros_shared_cflags=""
8931 need_dlopen="no"
8932 rescomp="windres"
8933 case "$target_cpu" in
8934 *i?86*)
8935 aros_target_cpu="i386"
8936 aros_object_format="elf_i386"
8937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8938 aros_default_wbdepth=8
8939 gcc_target_cpu="i386"
8940 aros_target_cc="i386-aros-gcc"
8941 aros_target_cxx="i386-aros-g++"
8942 aros_target_ld="i386-aros-ld"
8943 aros_target_as="i386-aros-as"
8944 aros_target_ar="i386-aros-ar"
8945 aros_target_ranlib="i386-aros-ranlib"
8946 aros_target_nm="i386-aros-nm"
8947 aros_target_strip="i386-aros-strip"
8948 aros_target_objcopy="i386-aros-objcopy"
8949 aros_target_objdump="i386-aros-objdump"
8950 target_tool_prefix="i386-mingw32-"
8952 *x86_64*)
8953 aros_target_cpu="x86_64"
8954 aros_object_format="elf_x86_64"
8955 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8956 aros_default_wbdepth=8
8957 gcc_target_cpu="x86_64"
8958 aros_target_cc="x86_64-aros-gcc"
8959 aros_target_cxx="x86_64-aros-g++"
8960 aros_target_ld="x86_64-aros-ld"
8961 aros_target_as="x86_64-aros-as"
8962 aros_target_ar="x86_64-aros-ar"
8963 aros_target_ranlib="x86_64-aros-ranlib"
8964 aros_target_nm="x86_64-aros-nm"
8965 aros_target_strip="x86_64-aros-strip"
8966 aros_target_objcopy="x86_64-aros-objcopy"
8967 aros_target_objdump="x86_64-aros-objdump"
8968 target_tool_prefix="x86_64-w64-mingw32-"
8970 *arm*)
8971 aros_target_cpu="arm"
8972 aros_object_format="armelf_linux_eabi"
8973 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8974 aros_arch_libs="-laeabi"
8975 aros_default_wbdepth=8
8976 gcc_target_cpu="arm"
8977 aros_target_cc="arm-aros-gcc"
8978 aros_target_cxx="arm-aros-g++"
8979 aros_target_ld="arm-aros-ld"
8980 aros_target_as="arm-aros-as"
8981 aros_target_ar="arm-aros-ar"
8982 aros_target_ranlib="arm-aros-ranlib"
8983 aros_target_nm="arm-aros-nm"
8984 aros_target_strip="arm-aros-strip"
8985 aros_target_objcopy="arm-aros-objcopy"
8986 aros_target_objdump="arm-aros-objdump"
8987 target_tool_prefix="arm-mingw32ce-"
8988 aros_default_wbwidth=160
8989 aros_default_wbheight=160
8992 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8993 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8994 { (exit 1); exit 1; }; }
8996 esac
8997 if test $host_os = "cygwin"; then
8998 aros_kernel_cflags="-mno-cygwin"
9001 pp*)
9002 aros_target_arch="pp"
9003 aros_shared_default="no"
9004 case "$target_cpu" in
9005 *m68k*)
9006 aros_target_cpu="m68k"
9007 aros_object_format="m68kelf"
9008 aros_flavour="palmnative"
9009 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9010 aros_default_wbwidth=160
9011 aros_default_wbheight=160
9012 aros_default_wbdepth=1
9013 aros_target_ar_flags="cru"
9014 aros_compiler_libs="-lgcc1"
9015 aros_shared_default=no
9016 aros_shared_cflags="-fpic"
9017 aros_shared_aflags=""
9018 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9019 aros_kernel_ldflags="-Wl,-rpath,./lib"
9020 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9021 aros_debug_aflags=""
9022 aros_debug_ldflags="$aros_symbols_debug"
9023 aros_mungwall_debug="0"
9024 aros_modules_debug="0"
9025 gcc_target_cpu="mc68000"
9026 ignore_undefined_symbols="-ius"
9029 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9030 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9031 { (exit 1); exit 1; }; }
9033 esac
9036 mac*)
9037 aros_target_arch="mac"
9038 aros_shared_default="no"
9039 case "$target_cpu" in
9040 *m68k*)
9041 aros_target_cpu="m68k"
9042 aros_object_format="m68kelf"
9043 aros_flavour="mac68knative"
9044 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9045 aros_default_wbwidth=512
9046 aros_default_wbheight=384
9047 aros_default_wbdepth=8
9048 aros_target_ar_flags="cru"
9049 aros_compiler_libs="-lgcc1"
9050 aros_shared_default=no
9051 aros_shared_cflags="-fpic"
9052 aros_shared_aflags=""
9053 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9054 aros_kernel_ldflags="-Wl,-rpath,./lib"
9055 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9056 aros_debug_aflags=""
9057 aros_debug_ldflags="$aros_symbols_debug"
9058 aros_mungwall_debug="0"
9059 aros_modules_debug="0"
9060 gcc_target_cpu="mc68000"
9061 ignore_undefined_symbols="-ius"
9064 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9065 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9066 { (exit 1); exit 1; }; }
9068 esac
9072 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9073 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9074 { (exit 1); exit 1; }; }
9076 esac
9078 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9079 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9081 # Check whether --with-portssources was given.
9082 if test "${with_portssources+set}" = set; then
9083 withval=$with_portssources; with_portssrcdir=$withval
9084 else
9085 with_portssrcdir="default"
9088 if test "$with_portssrcdir" = "default"; then
9089 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9090 else
9091 AROS_PORTSSRCDIR="$with_portssrcdir"
9093 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9094 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9096 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9097 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9099 # Check whether --with-bootloader was given.
9100 if test "${with_bootloader+set}" = set; then
9101 withval=$with_bootloader; target_bootloader=$withval
9102 else
9103 target_bootloader=$target_bootloader
9106 if test "$target_bootloader" = "none"; then
9107 aros_target_bootloader=""
9108 else
9109 aros_target_bootloader="$target_bootloader"
9111 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9112 echo "${ECHO_T}$target_bootloader" >&6; }
9114 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9115 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9117 # Check whether --with-iconset was given.
9118 if test "${with_iconset+set}" = set; then
9119 withval=$with_iconset; target_iconset=$withval
9120 else
9121 target_iconset="default"
9124 if test "$target_iconset" = "default"; then
9125 aros_target_iconset="Gorilla"
9126 target_iconset="default (Gorilla)"
9127 else
9128 aros_target_iconset="$target_iconset"
9130 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9131 echo "${ECHO_T}$target_iconset" >&6; }
9133 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9134 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9136 # Check whether --with-theme was given.
9137 if test "${with_theme+set}" = set; then
9138 withval=$with_theme; target_guitheme=$withval
9139 else
9140 target_guitheme="default"
9143 if test "$target_guitheme" = "default"; then
9144 aros_target_guitheme="Ice"
9145 else
9146 aros_target_guitheme="$target_guitheme"
9148 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9149 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9151 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9152 # for target code)
9153 cross_compiling=no
9154 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9155 cross_compiling=yes
9157 if test "$aros_host_cpu" == "x86_64" ; then
9158 if test "$aros_target_cpu" == "i386" ; then
9159 if test "$aros_target_arch" != "mingw32"; then
9160 cross_compiling=no
9165 # Set prefix for target compiler etc. if we're cross-compiling
9166 # (should possibly be earlier but needs to be after AC_PROG_CC)
9167 if test "$cross_compiling" = "yes" ; then
9168 if test "$target_tool_prefix" = ""; then
9169 target_tool_prefix=${target_cpu}-elf-
9171 CC=${target_tool_prefix}gcc
9172 if test "$target_tool_version" != "default"; then
9173 CC="$CC-$target_tool_version"
9175 # Extract the first word of "$CC", so it can be a program name with args.
9176 set dummy $CC; ac_word=$2
9177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9179 if test "${ac_cv_path_CC+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 case $CC in
9183 [\\/]* | ?:[\\/]*)
9184 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9190 IFS=$as_save_IFS
9191 test -z "$as_dir" && as_dir=.
9192 for ac_exec_ext in '' $ac_executable_extensions; do
9193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9194 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 break 2
9198 done
9199 done
9200 IFS=$as_save_IFS
9203 esac
9205 CC=$ac_cv_path_CC
9206 if test -n "$CC"; then
9207 { echo "$as_me:$LINENO: result: $CC" >&5
9208 echo "${ECHO_T}$CC" >&6; }
9209 else
9210 { echo "$as_me:$LINENO: result: no" >&5
9211 echo "${ECHO_T}no" >&6; }
9215 if test "$CC" = ""; then
9216 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9217 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9218 { (exit 1); exit 1; }; }
9221 CC="$CC $target_tool_flags"
9223 #-----------------------------------------------------------------------------
9225 # Disable pointer-signedness warnings if the compiler recognises the option
9227 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9228 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9229 save_cflags="$CFLAGS"
9230 CFLAGS="$CFLAGS -Wno-pointer-sign"
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9239 main ()
9243 return 0;
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (ac_try="$ac_compile"
9248 case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
9263 use_no_sign_warning="yes"
9264 else
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9268 use_no_sign_warning="no"
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9273 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9274 if test "x-$use_no_sign_warning" = "x-yes" ; then
9275 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9277 CFLAGS="$save_cflags"
9279 #-----------------------------------------------------------------------------
9281 # Find all the tools we need to compile. This could be cross-compiling
9282 # though! If that is the case we use the GNU form of the target and
9283 # simply add this to the front of the binary name. This is rather simple,
9284 # but it should work under most circumstances.
9286 # The default tools are to use the same as the host, but only if the
9287 # host and target CPU are the same. With GCC this is normally enough.
9290 aros_cc_pre=""
9291 aros_shared_ld="$aros_host_ld"
9293 aros_target_mkdep="$aros_host_mkdep"
9294 aros_target_incl_def="$aros_host_incl"
9296 aros_kernel_cc="$CC"
9298 # The default tools executables to be linked to.
9299 if test "$aros_target_cc" != ""; then
9300 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9301 set dummy $aros_target_cc; ac_word=$2
9302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9304 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307 case $aros_target_cc in
9308 [\\/]* | ?:[\\/]*)
9309 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 for as_dir in $PATH
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9319 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9323 done
9324 done
9325 IFS=$as_save_IFS
9328 esac
9330 aros_target_cc=$ac_cv_path_aros_target_cc
9331 if test -n "$aros_target_cc"; then
9332 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9333 echo "${ECHO_T}$aros_target_cc" >&6; }
9334 else
9335 { echo "$as_me:$LINENO: result: no" >&5
9336 echo "${ECHO_T}no" >&6; }
9340 if test "$aros_target_cc" = ""; then
9341 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9342 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9343 { (exit 1); exit 1; }; }
9346 if test "$aros_target_ld" != ""; then
9347 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9348 set dummy $aros_target_ld; ac_word=$2
9349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9351 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 case $aros_target_ld in
9355 [\\/]* | ?:[\\/]*)
9356 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360 for as_dir in $PATH
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9366 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9370 done
9371 done
9372 IFS=$as_save_IFS
9375 esac
9377 aros_target_ld=$ac_cv_path_aros_target_ld
9378 if test -n "$aros_target_ld"; then
9379 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9380 echo "${ECHO_T}$aros_target_ld" >&6; }
9381 else
9382 { echo "$as_me:$LINENO: result: no" >&5
9383 echo "${ECHO_T}no" >&6; }
9387 if test "$aros_target_ld" = ""; then
9388 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9389 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9390 { (exit 1); exit 1; }; }
9394 if test "$crosstools" != "yes"; then
9396 if test "$aros_target_as" = ""; then
9397 if test "$cross_compiling" = "yes" ; then
9398 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9399 set dummy ${target_tool_prefix}as; ac_word=$2
9400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9402 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 case $aros_target_as_ln in
9406 [\\/]* | ?:[\\/]*)
9407 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9417 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 break 2
9421 done
9422 done
9423 IFS=$as_save_IFS
9426 esac
9428 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9429 if test -n "$aros_target_as_ln"; then
9430 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9431 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9432 else
9433 { echo "$as_me:$LINENO: result: no" >&5
9434 echo "${ECHO_T}no" >&6; }
9438 else
9439 if test "$GCC" = "yes"; then
9440 aros_gcc_as=`$CC -print-prog-name=as`
9441 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9442 set dummy `basename $aros_gcc_as`; ac_word=$2
9443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9445 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448 case $aros_target_as_ln in
9449 [\\/]* | ?:[\\/]*)
9450 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454 for as_dir in `dirname $aros_gcc_as`
9456 IFS=$as_save_IFS
9457 test -z "$as_dir" && as_dir=.
9458 for ac_exec_ext in '' $ac_executable_extensions; do
9459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9460 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9462 break 2
9464 done
9465 done
9466 IFS=$as_save_IFS
9469 esac
9471 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9472 if test -n "$aros_target_as_ln"; then
9473 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9474 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9475 else
9476 { echo "$as_me:$LINENO: result: no" >&5
9477 echo "${ECHO_T}no" >&6; }
9482 if test "$aros_target_as_ln" = ""; then
9483 # Extract the first word of "as", so it can be a program name with args.
9484 set dummy as; ac_word=$2
9485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9487 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 case $aros_target_as_ln in
9491 [\\/]* | ?:[\\/]*)
9492 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in $PATH
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 break 2
9506 done
9507 done
9508 IFS=$as_save_IFS
9511 esac
9513 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9514 if test -n "$aros_target_as_ln"; then
9515 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9516 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9517 else
9518 { echo "$as_me:$LINENO: result: no" >&5
9519 echo "${ECHO_T}no" >&6; }
9525 else
9526 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9527 set dummy $aros_target_as; ac_word=$2
9528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9530 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 case $aros_target_as_ln in
9534 [\\/]* | ?:[\\/]*)
9535 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9549 done
9550 done
9551 IFS=$as_save_IFS
9554 esac
9556 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9557 if test -n "$aros_target_as_ln"; then
9558 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9559 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9560 else
9561 { echo "$as_me:$LINENO: result: no" >&5
9562 echo "${ECHO_T}no" >&6; }
9568 if test "$aros_target_as_ln" = ""; then
9569 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9570 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9571 { (exit 1); exit 1; }; }
9574 if test "$aros_kernel_ld" = ""; then
9575 if test "$cross_compiling" = "yes" ; then
9576 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9577 set dummy ${target_tool_prefix}ld; ac_word=$2
9578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9580 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583 case $aros_kernel_ld in
9584 [\\/]* | ?:[\\/]*)
9585 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9599 done
9600 done
9601 IFS=$as_save_IFS
9604 esac
9606 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9607 if test -n "$aros_kernel_ld"; then
9608 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9609 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9610 else
9611 { echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6; }
9616 else
9617 if test "$GCC" = "yes"; then
9618 aros_gcc_ld=`$CC -print-prog-name=ld`
9619 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9620 set dummy `basename $aros_gcc_ld`; ac_word=$2
9621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9623 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626 case $aros_kernel_ld in
9627 [\\/]* | ?:[\\/]*)
9628 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in `dirname $aros_gcc_ld`
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9638 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9642 done
9643 done
9644 IFS=$as_save_IFS
9647 esac
9649 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9650 if test -n "$aros_kernel_ld"; then
9651 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9652 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9653 else
9654 { echo "$as_me:$LINENO: result: no" >&5
9655 echo "${ECHO_T}no" >&6; }
9660 if test "$aros_kernel_ld" = ""; then
9661 # Extract the first word of "ld", so it can be a program name with args.
9662 set dummy ld; ac_word=$2
9663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9665 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 case $aros_kernel_ld in
9669 [\\/]* | ?:[\\/]*)
9670 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9680 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9684 done
9685 done
9686 IFS=$as_save_IFS
9689 esac
9691 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9692 if test -n "$aros_kernel_ld"; then
9693 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9694 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9695 else
9696 { echo "$as_me:$LINENO: result: no" >&5
9697 echo "${ECHO_T}no" >&6; }
9703 else
9704 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9705 set dummy $aros_kernel_ld; ac_word=$2
9706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9708 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 case $aros_kernel_ld in
9712 [\\/]* | ?:[\\/]*)
9713 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9723 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 break 2
9727 done
9728 done
9729 IFS=$as_save_IFS
9732 esac
9734 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9735 if test -n "$aros_kernel_ld"; then
9736 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9737 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9738 else
9739 { echo "$as_me:$LINENO: result: no" >&5
9740 echo "${ECHO_T}no" >&6; }
9746 if test "$aros_kernel_ld" = ""; then
9747 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9748 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9749 { (exit 1); exit 1; }; }
9752 if test "$aros_target_ar" = ""; then
9753 if test "$cross_compiling" = "yes" ; then
9754 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9755 set dummy ${target_tool_prefix}ar; ac_word=$2
9756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9758 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761 case $aros_target_ar_ln in
9762 [\\/]* | ?:[\\/]*)
9763 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9777 done
9778 done
9779 IFS=$as_save_IFS
9782 esac
9784 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9785 if test -n "$aros_target_ar_ln"; then
9786 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9787 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9788 else
9789 { echo "$as_me:$LINENO: result: no" >&5
9790 echo "${ECHO_T}no" >&6; }
9794 else
9795 if test "$GCC" = "yes"; then
9796 aros_gcc_ar=`$CC -print-prog-name=ar`
9797 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9798 set dummy `basename $aros_gcc_ar`; ac_word=$2
9799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9801 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804 case $aros_target_ar_ln in
9805 [\\/]* | ?:[\\/]*)
9806 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810 for as_dir in `dirname $aros_gcc_ar`
9812 IFS=$as_save_IFS
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9816 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9818 break 2
9820 done
9821 done
9822 IFS=$as_save_IFS
9825 esac
9827 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9828 if test -n "$aros_target_ar_ln"; then
9829 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9830 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9831 else
9832 { echo "$as_me:$LINENO: result: no" >&5
9833 echo "${ECHO_T}no" >&6; }
9838 if test "$aros_target_ar_ln" = ""; then
9839 # Extract the first word of "ar", so it can be a program name with args.
9840 set dummy ar; ac_word=$2
9841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9843 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 case $aros_target_ar_ln in
9847 [\\/]* | ?:[\\/]*)
9848 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9862 done
9863 done
9864 IFS=$as_save_IFS
9867 esac
9869 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9870 if test -n "$aros_target_ar_ln"; then
9871 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9872 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9873 else
9874 { echo "$as_me:$LINENO: result: no" >&5
9875 echo "${ECHO_T}no" >&6; }
9881 else
9882 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9883 set dummy $aros_target_ar; ac_word=$2
9884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9886 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 case $aros_target_ar_ln in
9890 [\\/]* | ?:[\\/]*)
9891 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9905 done
9906 done
9907 IFS=$as_save_IFS
9910 esac
9912 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9913 if test -n "$aros_target_ar_ln"; then
9914 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9915 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9916 else
9917 { echo "$as_me:$LINENO: result: no" >&5
9918 echo "${ECHO_T}no" >&6; }
9924 if test "$aros_target_ar_ln" = ""; then
9925 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9926 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9927 { (exit 1); exit 1; }; }
9930 if test "$aros_target_nm" = ""; then
9931 if test "$cross_compiling" = "yes" ; then
9932 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9933 set dummy ${target_tool_prefix}nm; ac_word=$2
9934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9936 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 case $aros_target_nm_ln in
9940 [\\/]* | ?:[\\/]*)
9941 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in $PATH
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9955 done
9956 done
9957 IFS=$as_save_IFS
9960 esac
9962 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9963 if test -n "$aros_target_nm_ln"; then
9964 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9965 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9966 else
9967 { echo "$as_me:$LINENO: result: no" >&5
9968 echo "${ECHO_T}no" >&6; }
9972 else
9973 if test "$GCC" = "yes"; then
9974 aros_gcc_nm=`$CC -print-prog-name=nm`
9975 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9976 set dummy `basename $aros_gcc_nm`; ac_word=$2
9977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9979 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 case $aros_target_nm_ln in
9983 [\\/]* | ?:[\\/]*)
9984 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in `dirname $aros_gcc_nm`
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9998 done
9999 done
10000 IFS=$as_save_IFS
10003 esac
10005 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10006 if test -n "$aros_target_nm_ln"; then
10007 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10008 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10009 else
10010 { echo "$as_me:$LINENO: result: no" >&5
10011 echo "${ECHO_T}no" >&6; }
10016 if test "$aros_target_nm_ln" = ""; then
10017 # Extract the first word of "nm", so it can be a program name with args.
10018 set dummy nm; ac_word=$2
10019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10021 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 case $aros_target_nm_ln in
10025 [\\/]* | ?:[\\/]*)
10026 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10042 IFS=$as_save_IFS
10045 esac
10047 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10048 if test -n "$aros_target_nm_ln"; then
10049 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10050 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10051 else
10052 { echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6; }
10059 else
10060 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10061 set dummy $aros_target_nm; ac_word=$2
10062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10064 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067 case $aros_target_nm_ln in
10068 [\\/]* | ?:[\\/]*)
10069 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 break 2
10083 done
10084 done
10085 IFS=$as_save_IFS
10088 esac
10090 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10091 if test -n "$aros_target_nm_ln"; then
10092 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10093 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10094 else
10095 { echo "$as_me:$LINENO: result: no" >&5
10096 echo "${ECHO_T}no" >&6; }
10102 if test "$aros_target_nm_ln" = ""; then
10103 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10104 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10105 { (exit 1); exit 1; }; }
10108 if test "$aros_target_objcopy" = ""; then
10109 if test "$cross_compiling" = "yes" ; then
10110 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10111 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10114 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 else
10117 case $aros_target_objcopy_ln in
10118 [\\/]* | ?:[\\/]*)
10119 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10129 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10133 done
10134 done
10135 IFS=$as_save_IFS
10138 esac
10140 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10141 if test -n "$aros_target_objcopy_ln"; then
10142 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10143 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10144 else
10145 { echo "$as_me:$LINENO: result: no" >&5
10146 echo "${ECHO_T}no" >&6; }
10150 else
10151 if test "$GCC" = "yes"; then
10152 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10153 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10154 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10157 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160 case $aros_target_objcopy_ln in
10161 [\\/]* | ?:[\\/]*)
10162 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in `dirname $aros_gcc_objcopy`
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10172 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 break 2
10176 done
10177 done
10178 IFS=$as_save_IFS
10181 esac
10183 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10184 if test -n "$aros_target_objcopy_ln"; then
10185 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10186 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10187 else
10188 { echo "$as_me:$LINENO: result: no" >&5
10189 echo "${ECHO_T}no" >&6; }
10194 if test "$aros_target_objcopy_ln" = ""; then
10195 # Extract the first word of "objcopy", so it can be a program name with args.
10196 set dummy objcopy; ac_word=$2
10197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10199 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 case $aros_target_objcopy_ln in
10203 [\\/]* | ?:[\\/]*)
10204 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10218 done
10219 done
10220 IFS=$as_save_IFS
10223 esac
10225 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10226 if test -n "$aros_target_objcopy_ln"; then
10227 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10228 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10229 else
10230 { echo "$as_me:$LINENO: result: no" >&5
10231 echo "${ECHO_T}no" >&6; }
10237 else
10238 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10239 set dummy $aros_target_objcopy; ac_word=$2
10240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10242 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245 case $aros_target_objcopy_ln in
10246 [\\/]* | ?:[\\/]*)
10247 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10261 done
10262 done
10263 IFS=$as_save_IFS
10266 esac
10268 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10269 if test -n "$aros_target_objcopy_ln"; then
10270 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10271 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10272 else
10273 { echo "$as_me:$LINENO: result: no" >&5
10274 echo "${ECHO_T}no" >&6; }
10280 if test "$aros_target_objcopy_ln" = ""; then
10281 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10282 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10283 { (exit 1); exit 1; }; }
10286 if test "$aros_target_objdump" = ""; then
10287 if test "$cross_compiling" = "yes" ; then
10288 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10289 set dummy ${target_tool_prefix}objdump; ac_word=$2
10290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10292 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 case $aros_target_objdump_ln in
10296 [\\/]* | ?:[\\/]*)
10297 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10307 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 break 2
10311 done
10312 done
10313 IFS=$as_save_IFS
10316 esac
10318 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10319 if test -n "$aros_target_objdump_ln"; then
10320 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10321 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10322 else
10323 { echo "$as_me:$LINENO: result: no" >&5
10324 echo "${ECHO_T}no" >&6; }
10328 else
10329 if test "$GCC" = "yes"; then
10330 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10331 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10332 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10335 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 case $aros_target_objdump_ln in
10339 [\\/]* | ?:[\\/]*)
10340 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in `dirname $aros_gcc_objdump`
10346 IFS=$as_save_IFS
10347 test -z "$as_dir" && as_dir=.
10348 for ac_exec_ext in '' $ac_executable_extensions; do
10349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10350 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 break 2
10354 done
10355 done
10356 IFS=$as_save_IFS
10359 esac
10361 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10362 if test -n "$aros_target_objdump_ln"; then
10363 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10364 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10365 else
10366 { echo "$as_me:$LINENO: result: no" >&5
10367 echo "${ECHO_T}no" >&6; }
10372 if test "$aros_target_objdump_ln" = ""; then
10373 # Extract the first word of "objdump", so it can be a program name with args.
10374 set dummy objdump; ac_word=$2
10375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10377 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 case $aros_target_objdump_ln in
10381 [\\/]* | ?:[\\/]*)
10382 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10396 done
10397 done
10398 IFS=$as_save_IFS
10401 esac
10403 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10404 if test -n "$aros_target_objdump_ln"; then
10405 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10406 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10407 else
10408 { echo "$as_me:$LINENO: result: no" >&5
10409 echo "${ECHO_T}no" >&6; }
10415 else
10416 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10417 set dummy $aros_target_objdump; ac_word=$2
10418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10420 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 case $aros_target_objdump_ln in
10424 [\\/]* | ?:[\\/]*)
10425 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10435 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10439 done
10440 done
10441 IFS=$as_save_IFS
10444 esac
10446 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10447 if test -n "$aros_target_objdump_ln"; then
10448 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10449 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10450 else
10451 { echo "$as_me:$LINENO: result: no" >&5
10452 echo "${ECHO_T}no" >&6; }
10458 if test "$aros_target_objdump_ln" = ""; then
10459 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10460 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10461 { (exit 1); exit 1; }; }
10464 if test "$aros_target_ranlib" = ""; then
10465 if test "$cross_compiling" = "yes" ; then
10466 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10467 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10470 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 case $aros_target_ranlib_ln in
10474 [\\/]* | ?:[\\/]*)
10475 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10489 done
10490 done
10491 IFS=$as_save_IFS
10494 esac
10496 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10497 if test -n "$aros_target_ranlib_ln"; then
10498 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10499 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10500 else
10501 { echo "$as_me:$LINENO: result: no" >&5
10502 echo "${ECHO_T}no" >&6; }
10506 else
10507 if test "$GCC" = "yes"; then
10508 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10509 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10510 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10513 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516 case $aros_target_ranlib_ln in
10517 [\\/]* | ?:[\\/]*)
10518 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in `dirname $aros_gcc_ranlib`
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
10526 for ac_exec_ext in '' $ac_executable_extensions; do
10527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10528 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 break 2
10532 done
10533 done
10534 IFS=$as_save_IFS
10537 esac
10539 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10540 if test -n "$aros_target_ranlib_ln"; then
10541 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10542 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10543 else
10544 { echo "$as_me:$LINENO: result: no" >&5
10545 echo "${ECHO_T}no" >&6; }
10550 if test "$aros_target_ranlib_ln" = ""; then
10551 # Extract the first word of "ranlib", so it can be a program name with args.
10552 set dummy ranlib; ac_word=$2
10553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10555 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558 case $aros_target_ranlib_ln in
10559 [\\/]* | ?:[\\/]*)
10560 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10570 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10574 done
10575 done
10576 IFS=$as_save_IFS
10579 esac
10581 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10582 if test -n "$aros_target_ranlib_ln"; then
10583 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10584 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10585 else
10586 { echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6; }
10593 else
10594 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10595 set dummy $aros_target_ranlib; ac_word=$2
10596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10598 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601 case $aros_target_ranlib_ln in
10602 [\\/]* | ?:[\\/]*)
10603 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607 for as_dir in $PATH
10609 IFS=$as_save_IFS
10610 test -z "$as_dir" && as_dir=.
10611 for ac_exec_ext in '' $ac_executable_extensions; do
10612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10613 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10615 break 2
10617 done
10618 done
10619 IFS=$as_save_IFS
10622 esac
10624 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10625 if test -n "$aros_target_ranlib_ln"; then
10626 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10627 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10628 else
10629 { echo "$as_me:$LINENO: result: no" >&5
10630 echo "${ECHO_T}no" >&6; }
10636 if test "$aros_target_ranlib_ln" = ""; then
10637 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10638 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10639 { (exit 1); exit 1; }; }
10642 if test "$aros_target_strip" = ""; then
10643 if test "$cross_compiling" = "yes" ; then
10644 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10645 set dummy ${target_tool_prefix}strip; ac_word=$2
10646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10648 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651 case $aros_target_strip_ln in
10652 [\\/]* | ?:[\\/]*)
10653 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 break 2
10667 done
10668 done
10669 IFS=$as_save_IFS
10672 esac
10674 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10675 if test -n "$aros_target_strip_ln"; then
10676 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10677 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10678 else
10679 { echo "$as_me:$LINENO: result: no" >&5
10680 echo "${ECHO_T}no" >&6; }
10684 else
10685 if test "$GCC" = "yes"; then
10686 aros_gcc_strip=`$CC -print-prog-name=strip`
10687 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10688 set dummy `basename $aros_gcc_strip`; ac_word=$2
10689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10691 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 case $aros_target_strip_ln in
10695 [\\/]* | ?:[\\/]*)
10696 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in `dirname $aros_gcc_strip`
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10706 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10710 done
10711 done
10712 IFS=$as_save_IFS
10715 esac
10717 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10718 if test -n "$aros_target_strip_ln"; then
10719 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10720 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10721 else
10722 { echo "$as_me:$LINENO: result: no" >&5
10723 echo "${ECHO_T}no" >&6; }
10728 if test "$aros_target_strip_ln" = ""; then
10729 # Extract the first word of "strip", so it can be a program name with args.
10730 set dummy strip; ac_word=$2
10731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10733 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 case $aros_target_strip_ln in
10737 [\\/]* | ?:[\\/]*)
10738 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10752 done
10753 done
10754 IFS=$as_save_IFS
10757 esac
10759 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10760 if test -n "$aros_target_strip_ln"; then
10761 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10762 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10763 else
10764 { echo "$as_me:$LINENO: result: no" >&5
10765 echo "${ECHO_T}no" >&6; }
10771 else
10772 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10773 set dummy $aros_target_strip; ac_word=$2
10774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10776 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779 case $aros_target_strip_ln in
10780 [\\/]* | ?:[\\/]*)
10781 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10791 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10795 done
10796 done
10797 IFS=$as_save_IFS
10800 esac
10802 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10803 if test -n "$aros_target_strip_ln"; then
10804 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10805 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10806 else
10807 { echo "$as_me:$LINENO: result: no" >&5
10808 echo "${ECHO_T}no" >&6; }
10814 if test "$aros_target_strip_ln" = ""; then
10815 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10816 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10817 { (exit 1); exit 1; }; }
10819 if test "$aros_target_cxx" != ""; then
10820 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10821 set dummy $aros_target_cxx; ac_word=$2
10822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10824 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827 case $aros_target_cxx in
10828 [\\/]* | ?:[\\/]*)
10829 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10843 done
10844 done
10845 IFS=$as_save_IFS
10848 esac
10850 aros_target_cxx=$ac_cv_path_aros_target_cxx
10851 if test -n "$aros_target_cxx"; then
10852 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
10853 echo "${ECHO_T}$aros_target_cxx" >&6; }
10854 else
10855 { echo "$as_me:$LINENO: result: no" >&5
10856 echo "${ECHO_T}no" >&6; }
10860 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
10861 # AROS_REQUIRED(c++,$aros_target_cxx)
10863 else
10864 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10865 aros_target_cxx=""
10868 # Build crosstools if we have no C++ - temporary thing
10869 if test "$aros_target_cxx" = ""; then
10870 crosstools_target=tools-crosstools
10873 if test "$rescomp" != ""; then
10874 if test "$cross_compiling" = "yes" ; then
10875 rescomp=${target_tool_prefix}${rescomp}
10877 # Extract the first word of "$rescomp", so it can be a program name with args.
10878 set dummy $rescomp; ac_word=$2
10879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10881 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884 case $aros_kernel_rescomp in
10885 [\\/]* | ?:[\\/]*)
10886 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10892 IFS=$as_save_IFS
10893 test -z "$as_dir" && as_dir=.
10894 for ac_exec_ext in '' $ac_executable_extensions; do
10895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10896 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 break 2
10900 done
10901 done
10902 IFS=$as_save_IFS
10905 esac
10907 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10908 if test -n "$aros_kernel_rescomp"; then
10909 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10910 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10911 else
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10917 if test "$aros_kernel_rescomp" = ""; then
10918 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10919 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10920 { (exit 1); exit 1; }; }
10924 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10925 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10926 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10927 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10928 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10929 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10930 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10932 # aros_cc_pre is a variable that is added to the front of the compiler name
10933 # in the generated aros-gcc shell script. We need this to enable the cache
10934 # to work across cleaned builds. Also, support DISTCC using the correct
10935 # environment variable.
10938 if test "x${DISTCC}" != "x" ; then
10939 if test "x${CCACHE}" != "x" ; then
10940 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10941 else
10942 aros_cc_pre="${DISTCC} "
10944 else
10945 if test "x${CCACHE}" != "x" ; then
10946 aros_cc_pre="${CCACHE} "
10950 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10952 aros_target_nostdinc_cflags=-nostdinc
10954 aros_target_nostartup_ldflags=-nostartfiles
10956 aros_target_nix_ldflags=-nix
10958 aros_target_detach_ldflags=-detach
10960 aros_target_nostdlib_ldflags=-nostdlib
10963 # Target tools
10964 if test "$aros_target_cc" = ""; then
10965 orig_target_cc=$aros_kernel_cc
10966 else
10967 orig_target_cc=$aros_target_cc
10969 if test "$aros_target_ld" = ""; then
10970 orig_target_ld=$aros_kernel_ld
10971 else
10972 orig_target_ld=$aros_target_ld
10974 if test "$GCC" = "yes"; then
10975 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10977 aros_target_cc="${prefix}-gcc"
10978 aros_target_as="${prefix}-as"
10979 aros_target_ld="${prefix}-ld"
10980 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10981 aros_target_objcopy=${prefix}-objcopy
10982 aros_target_objdump=${prefix}-objdump
10983 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10984 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10985 aros_kernel_nm="${prefix}-nm"
10986 aros_target_strip=${prefix}-strip
10988 # Find the system include path. We can suggest that an alternative is
10989 # used if we don't get it correct. The default is to use /usr/include.
10990 # Which is set in the aros_target_incl_def variable.
10992 # Check whether --enable-includes was given.
10993 if test "${enable_includes+set}" = set; then
10994 enableval=$enable_includes; aros_target_incl=$enable_includes
10995 else
10996 aros_target_incl=$aros_target_incl_def
11000 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11001 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
11002 if test "$aros_target_cc_includes" = "" ; then
11003 #try to guess where the directory is
11004 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11005 if ! test -d $aros_target_cc_includes; then
11006 #the directory doesn't exist, we need to do some more work
11007 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11009 #these are the headers we're looling for
11010 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11011 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11012 zutil.h"
11014 dirs=
11015 for h in $headers; do
11016 #which other headers each of the above headers needs?
11017 deps=$(echo "#include <$h>" | \
11018 $aros_host_cc -E -M - 2>/dev/null | \
11019 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11021 #copy all the needed headers to a directory beneath gendir
11022 for d in $deps; do
11023 h=$(basename $d)
11024 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11025 sed -n "s,^.*/include\(/.*\),\1,p")
11026 ! test -d $dir && mkdir -p $dir
11027 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11028 done
11029 done
11032 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11033 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11036 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11037 # On GCC >= 4.0 -iquote should be used
11040 save_cc="$CC"
11041 save_cflags="$CFLAGS"
11042 CFLAGS="-iquote."
11043 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11044 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11053 main ()
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
11077 has_iquote="yes"
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 has_iquote="no"
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11087 echo "${ECHO_T}$has_iquote" >&6; }
11088 if test "x-$has_iquote" = "x-yes" ; then
11089 host_cflags_iquote=-iquote
11090 host_cflags_iquote_end=
11091 else
11092 host_cflags_iquote=-I
11093 host_cflags_iquote_end=-I-
11095 kernel_cflags_iquote=$host_cflags_iquote
11096 kernel_cflags_iquote_end=$host_cflags_iquote_end
11097 if test "x-$cross_compiling" = "x-yes"; then
11098 CC="$aros_kernel_cc"
11099 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11100 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h. */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11109 main ()
11113 return 0;
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest.$ac_objext; then
11133 use_no_stack_protector="yes"
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 use_no_stack_protector="no"
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11143 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11144 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11145 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11154 main ()
11158 return 0;
11160 _ACEOF
11161 rm -f conftest.$ac_objext
11162 if { (ac_try="$ac_compile"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && {
11175 test -z "$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 } && test -s conftest.$ac_objext; then
11178 has_iquote="yes"
11179 else
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 has_iquote="no"
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11188 echo "${ECHO_T}$has_iquote" >&6; }
11189 if test "x-$has_iquote" = "x-yes" ; then
11190 kernel_cflags_iquote=-iquote
11191 kernel_cflags_iquote_end=
11192 else
11193 kernel_cflags_iquote=-I
11194 kernel_cflags_iquote_end=-I-
11197 aros_cflags_iquote=$kernel_cflags_iquote
11198 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11199 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11200 CC="$orig_target_cc"
11201 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11202 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11211 main ()
11215 return 0;
11217 _ACEOF
11218 rm -f conftest.$ac_objext
11219 if { (ac_try="$ac_compile"
11220 case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_compile") 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest.$ac_objext; then
11235 has_iquote="yes"
11236 else
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 has_iquote="no"
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11245 echo "${ECHO_T}$has_iquote" >&6; }
11246 if test "x-$has_iquote" = "x-yes" ; then
11247 aros_cflags_iquote=-iquote
11248 aros_cflags_iquote_end=
11249 else
11250 aros_cflags_iquote=-I
11251 aros_cflags_iquote_end=-I-
11254 if test "x-$use_no_stack_protector" = "x-yes" ; then
11255 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11258 #-----------------------------------------------------------------------------
11260 # Check if we can explicitly choose older version of symbol hashing
11262 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11263 CC="$aros_kernel_cc"
11264 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11265 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11274 main ()
11278 return 0;
11280 _ACEOF
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (ac_try="$ac_link"
11283 case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_link") 2>conftest.er1
11289 ac_status=$?
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && {
11295 test -z "$ac_c_werror_flag" ||
11296 test ! -s conftest.err
11297 } && test -s conftest$ac_exeext &&
11298 $as_test_x conftest$ac_exeext; then
11299 use_hash_style="yes"
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 use_hash_style="no"
11307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11308 conftest$ac_exeext conftest.$ac_ext
11309 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11310 echo "${ECHO_T}$use_hash_style" >&6; }
11311 if test "x-$use_hash_style" = "x-yes" ; then
11312 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11314 CC="$save_cc"
11315 CFLAGS="$save_cflags"
11325 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11326 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11328 # Check whether --with-resolution was given.
11329 if test "${with_resolution+set}" = set; then
11330 withval=$with_resolution; resolution=$withval
11331 else
11332 resolution=none
11335 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11336 if test "$resolution" = "yes" ; then
11337 resolution="none"
11339 if test "$resolution" = "no" ; then
11340 resolution="none"
11342 if test "$resolution" != "none" ; then
11343 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11344 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11345 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11347 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11348 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11349 aros_cv_default_wbwidth=$aros_default_wbwidth
11350 aros_cv_default_wbheight=$aros_default_wbheight
11351 aros_cv_default_wbdepth=$aros_default_wbdepth
11353 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11354 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11356 # Check whether --with-serial-debug was given.
11357 if test "${with_serial_debug+set}" = set; then
11358 withval=$with_serial_debug; serial_debug=$withval
11359 else
11360 serial_debug=none
11363 if test "$aros_serial_debug" = 0 ; then
11364 serial_debug_forced=""
11365 if test "$serial_debug" = "yes" ; then
11366 serial_debug="2"
11368 if test "$serial_debug" = "no" ; then
11369 serial_debug="none"
11371 else
11372 serial_debug_forced="(forced)"
11373 serial_debug=$aros_serial_debug
11375 if test "$serial_debug" != "none" ; then
11376 aros_serial_debug=$serial_debug
11377 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11378 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11379 else
11380 { echo "$as_me:$LINENO: result: no" >&5
11381 echo "${ECHO_T}no" >&6; }
11384 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11385 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11386 # Check whether --enable-palm_debug_hack was given.
11387 if test "${enable_palm_debug_hack+set}" = set; then
11388 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11389 else
11390 palm_debug_hack="no"
11393 if test "$palm_debug_hack" = "yes" ; then
11394 aros_palm_debug_hack="1"
11396 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11397 echo "${ECHO_T}$palm_debug_hack" >&6; }
11400 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11401 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11402 # Check whether --enable-nesting_supervisor was given.
11403 if test "${enable_nesting_supervisor+set}" = set; then
11404 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11405 else
11406 nesting_supervisor="no"
11409 if test "$nesting_supervisor" = "yes" ; then
11410 aros_nesting_supervisor="1"
11412 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11413 echo "${ECHO_T}$nesting_supervisor" >&6; }
11416 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11418 if test "x-$need_dlopen" != "x-no" ; then
11419 { echo "$as_me:$LINENO: checking for dlopen" >&5
11420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11421 if test "${ac_cv_func_dlopen+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 else
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define dlopen innocuous_dlopen
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char dlopen (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11439 #ifdef __STDC__
11440 # include <limits.h>
11441 #else
11442 # include <assert.h>
11443 #endif
11445 #undef dlopen
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char dlopen ();
11454 /* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457 #if defined __stub_dlopen || defined __stub___dlopen
11458 choke me
11459 #endif
11462 main ()
11464 return dlopen ();
11466 return 0;
11468 _ACEOF
11469 rm -f conftest.$ac_objext conftest$ac_exeext
11470 if { (ac_try="$ac_link"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_link") 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } && {
11483 test -z "$ac_c_werror_flag" ||
11484 test ! -s conftest.err
11485 } && test -s conftest$ac_exeext &&
11486 $as_test_x conftest$ac_exeext; then
11487 ac_cv_func_dlopen=yes
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_cv_func_dlopen=no
11495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11496 conftest$ac_exeext conftest.$ac_ext
11498 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11499 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11500 if test $ac_cv_func_dlopen = yes; then
11501 have_dl="yes"
11502 else
11503 have_dl="no"
11506 if test "x-$have_dl" = "x-no" ; then
11507 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11508 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11509 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 ac_check_lib_save_LIBS=$LIBS
11513 LIBS="-ldl $LIBS"
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char dlopen ();
11529 main ()
11531 return dlopen ();
11533 return 0;
11535 _ACEOF
11536 rm -f conftest.$ac_objext conftest$ac_exeext
11537 if { (ac_try="$ac_link"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_link") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext &&
11553 $as_test_x conftest$ac_exeext; then
11554 ac_cv_lib_dl_dlopen=yes
11555 else
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_cv_lib_dl_dlopen=no
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563 conftest$ac_exeext conftest.$ac_ext
11564 LIBS=$ac_check_lib_save_LIBS
11566 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11567 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11568 if test $ac_cv_lib_dl_dlopen = yes; then
11569 have_dl="yes"
11570 aros_host_ldflags="$aros_host_ldflags -ldl"
11571 else
11572 have_dl="no"
11576 if test "x-$have_dl" = "x-no" ; then
11577 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11578 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11579 { (exit 1); exit 1; }; }
11584 # Check whether --enable-x11_hidd was given.
11585 if test "${enable_x11_hidd+set}" = set; then
11586 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11587 else
11588 x11_hidd="auto"
11591 case "x-$x11_hidd" in
11592 x-yes|x-no|x-auto) ;;
11593 *) x11_hidd="auto" ;;
11594 esac
11596 ENABLE_X11=0
11598 if test "x-$x11_hidd" != "x-no" ; then
11600 { echo "$as_me:$LINENO: checking for X" >&5
11601 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11604 # Check whether --with-x was given.
11605 if test "${with_x+set}" = set; then
11606 withval=$with_x;
11609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11610 if test "x$with_x" = xno; then
11611 # The user explicitly disabled X.
11612 have_x=disabled
11613 else
11614 case $x_includes,$x_libraries in #(
11615 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11616 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11617 { (exit 1); exit 1; }; };; #(
11618 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 # One or both of the vars are not set, and there is no cached value.
11622 ac_x_includes=no ac_x_libraries=no
11623 rm -f -r conftest.dir
11624 if mkdir conftest.dir; then
11625 cd conftest.dir
11626 cat >Imakefile <<'_ACEOF'
11627 incroot:
11628 @echo incroot='${INCROOT}'
11629 usrlibdir:
11630 @echo usrlibdir='${USRLIBDIR}'
11631 libdir:
11632 @echo libdir='${LIBDIR}'
11633 _ACEOF
11634 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11636 for ac_var in incroot usrlibdir libdir; do
11637 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11638 done
11639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11640 for ac_extension in a so sl dylib la dll; do
11641 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11642 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11643 ac_im_usrlibdir=$ac_im_libdir; break
11645 done
11646 # Screen out bogus values from the imake configuration. They are
11647 # bogus both because they are the default anyway, and because
11648 # using them would break gcc on systems where it needs fixed includes.
11649 case $ac_im_incroot in
11650 /usr/include) ac_x_includes= ;;
11651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11652 esac
11653 case $ac_im_usrlibdir in
11654 /usr/lib | /lib) ;;
11655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11656 esac
11658 cd ..
11659 rm -f -r conftest.dir
11662 # Standard set of common directories for X headers.
11663 # Check X11 before X11Rn because it is often a symlink to the current release.
11664 ac_x_header_dirs='
11665 /usr/X11/include
11666 /usr/X11R6/include
11667 /usr/X11R5/include
11668 /usr/X11R4/include
11670 /usr/include/X11
11671 /usr/include/X11R6
11672 /usr/include/X11R5
11673 /usr/include/X11R4
11675 /usr/local/X11/include
11676 /usr/local/X11R6/include
11677 /usr/local/X11R5/include
11678 /usr/local/X11R4/include
11680 /usr/local/include/X11
11681 /usr/local/include/X11R6
11682 /usr/local/include/X11R5
11683 /usr/local/include/X11R4
11685 /usr/X386/include
11686 /usr/x386/include
11687 /usr/XFree86/include/X11
11689 /usr/include
11690 /usr/local/include
11691 /usr/unsupported/include
11692 /usr/athena/include
11693 /usr/local/x11r5/include
11694 /usr/lpp/Xamples/include
11696 /usr/openwin/include
11697 /usr/openwin/share/include'
11699 if test "$ac_x_includes" = no; then
11700 # Guess where to find include files, by looking for Xlib.h.
11701 # First, try using that file with no special directory specified.
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <X11/Xlib.h>
11709 _ACEOF
11710 if { (ac_try="$ac_cpp conftest.$ac_ext"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } >/dev/null && {
11723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11724 test ! -s conftest.err
11725 }; then
11726 # We can compile using X headers with no special include directory.
11727 ac_x_includes=
11728 else
11729 echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 for ac_dir in $ac_x_header_dirs; do
11733 if test -r "$ac_dir/X11/Xlib.h"; then
11734 ac_x_includes=$ac_dir
11735 break
11737 done
11740 rm -f conftest.err conftest.$ac_ext
11741 fi # $ac_x_includes = no
11743 if test "$ac_x_libraries" = no; then
11744 # Check for the libraries.
11745 # See if we find them without any special options.
11746 # Don't add to $LIBS permanently.
11747 ac_save_LIBS=$LIBS
11748 LIBS="-lX11 $LIBS"
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h. */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 #include <X11/Xlib.h>
11757 main ()
11759 XrmInitialize ()
11761 return 0;
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (ac_try="$ac_link"
11766 case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_link") 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } && {
11778 test -z "$ac_c_werror_flag" ||
11779 test ! -s conftest.err
11780 } && test -s conftest$ac_exeext &&
11781 $as_test_x conftest$ac_exeext; then
11782 LIBS=$ac_save_LIBS
11783 # We can link X programs with no special library path.
11784 ac_x_libraries=
11785 else
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 LIBS=$ac_save_LIBS
11790 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11792 # Don't even attempt the hair of trying to link an X program!
11793 for ac_extension in a so sl dylib la dll; do
11794 if test -r "$ac_dir/libX11.$ac_extension"; then
11795 ac_x_libraries=$ac_dir
11796 break 2
11798 done
11799 done
11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803 conftest$ac_exeext conftest.$ac_ext
11804 fi # $ac_x_libraries = no
11806 case $ac_x_includes,$ac_x_libraries in #(
11807 no,* | *,no | *\'*)
11808 # Didn't find X, or a directory has "'" in its name.
11809 ac_cv_have_x="have_x=no";; #(
11811 # Record where we found X for the cache.
11812 ac_cv_have_x="have_x=yes\
11813 ac_x_includes='$ac_x_includes'\
11814 ac_x_libraries='$ac_x_libraries'"
11815 esac
11817 ;; #(
11818 *) have_x=yes;;
11819 esac
11820 eval "$ac_cv_have_x"
11821 fi # $with_x != no
11823 if test "$have_x" != yes; then
11824 { echo "$as_me:$LINENO: result: $have_x" >&5
11825 echo "${ECHO_T}$have_x" >&6; }
11826 no_x=yes
11827 else
11828 # If each of the values was on the command line, it overrides each guess.
11829 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11830 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11831 # Update the cache value to reflect the command line values.
11832 ac_cv_have_x="have_x=yes\
11833 ac_x_includes='$x_includes'\
11834 ac_x_libraries='$x_libraries'"
11835 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11836 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11840 x_cflags=
11841 for path in $x_libraries
11843 x_cflags="$x_cflags -L$path"
11844 done
11846 for path in $x_includes
11848 x_cflags="$x_cflags -I$path"
11849 done
11851 if test "x-$no_x" = "x-yes" ; then
11853 if test "x-$x11_hidd" != "x-auto" ; then
11854 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11855 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11856 { (exit 1); exit 1; }; }
11859 else
11860 x11_hidd_target=kernel-x11gfx-kobj
11861 ENABLE_X11=1
11863 # Check whether --enable-x11_shm was given.
11864 if test "${enable_x11_shm+set}" = set; then
11865 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11866 else
11867 x11_hidd_shm="auto"
11870 case "x-$x11_hidd_shm" in
11871 x-yes|x-no|x-auto) ;;
11872 *) x11_hidd_shm="auto" ;;
11873 esac
11875 have_xshm=no
11877 if test "x-$x11_hidd_shm" != "x-no" ; then
11880 for ac_header in sys/ipc.h
11882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 ac_res=`eval echo '${'$as_ac_Header'}'`
11890 { echo "$as_me:$LINENO: result: $ac_res" >&5
11891 echo "${ECHO_T}$ac_res" >&6; }
11892 else
11893 # Is the header compilable?
11894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 #include <$ac_header>
11904 _ACEOF
11905 rm -f conftest.$ac_objext
11906 if { (ac_try="$ac_compile"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_compile") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } && {
11919 test -z "$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 } && test -s conftest.$ac_objext; then
11922 ac_header_compiler=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_header_compiler=no
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11932 echo "${ECHO_T}$ac_header_compiler" >&6; }
11934 # Is the header present?
11935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11937 cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h. */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 #include <$ac_header>
11944 _ACEOF
11945 if { (ac_try="$ac_cpp conftest.$ac_ext"
11946 case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } >/dev/null && {
11958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 }; then
11961 ac_header_preproc=yes
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_header_preproc=no
11969 rm -f conftest.err conftest.$ac_ext
11970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11971 echo "${ECHO_T}$ac_header_preproc" >&6; }
11973 # So? What about this header?
11974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11975 yes:no: )
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11980 ac_header_preproc=yes
11982 no:yes:* )
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11997 esac
11998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 eval "$as_ac_Header=\$ac_header_preproc"
12005 ac_res=`eval echo '${'$as_ac_Header'}'`
12006 { echo "$as_me:$LINENO: result: $ac_res" >&5
12007 echo "${ECHO_T}$ac_res" >&6; }
12010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12011 cat >>confdefs.h <<_ACEOF
12012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12013 _ACEOF
12017 done
12020 for ac_header in sys/shm.h
12022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 ac_res=`eval echo '${'$as_ac_Header'}'`
12030 { echo "$as_me:$LINENO: result: $ac_res" >&5
12031 echo "${ECHO_T}$ac_res" >&6; }
12032 else
12033 # Is the header compilable?
12034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 $ac_includes_default
12043 #include <$ac_header>
12044 _ACEOF
12045 rm -f conftest.$ac_objext
12046 if { (ac_try="$ac_compile"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_compile") 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest.$ac_objext; then
12062 ac_header_compiler=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_header_compiler=no
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12072 echo "${ECHO_T}$ac_header_compiler" >&6; }
12074 # Is the header present?
12075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <$ac_header>
12084 _ACEOF
12085 if { (ac_try="$ac_cpp conftest.$ac_ext"
12086 case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089 esac
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } >/dev/null && {
12098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 }; then
12101 ac_header_preproc=yes
12102 else
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 ac_header_preproc=no
12109 rm -f conftest.err conftest.$ac_ext
12110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111 echo "${ECHO_T}$ac_header_preproc" >&6; }
12113 # So? What about this header?
12114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12115 yes:no: )
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12120 ac_header_preproc=yes
12122 no:yes:* )
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12137 esac
12138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 eval "$as_ac_Header=\$ac_header_preproc"
12145 ac_res=`eval echo '${'$as_ac_Header'}'`
12146 { echo "$as_me:$LINENO: result: $ac_res" >&5
12147 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12153 _ACEOF
12157 done
12160 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12162 save_cflags="$CFLAGS"
12163 CFLAGS="$CFLAGS $x_cflags"
12164 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12165 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12166 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lXext $LIBS"
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char XShmQueryExtension ();
12186 main ()
12188 return XShmQueryExtension ();
12190 return 0;
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && {
12207 test -z "$ac_c_werror_flag" ||
12208 test ! -s conftest.err
12209 } && test -s conftest$ac_exeext &&
12210 $as_test_x conftest$ac_exeext; then
12211 ac_cv_lib_Xext_XShmQueryExtension=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_cv_lib_Xext_XShmQueryExtension=no
12219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12224 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12225 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12226 have_xshm=yes
12229 CFLAGS="$save_cflags"
12233 if test "x-$have_xshm" = "x-yes" ; then
12234 DO_XSHM_SUPPORT="1"
12235 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12236 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12237 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12238 { (exit 1); exit 1; }; }
12239 else
12240 DO_XSHM_SUPPORT="0"
12244 # Check whether --enable-x11_vidmode was given.
12245 if test "${enable_x11_vidmode+set}" = set; then
12246 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12247 else
12248 x11_hidd_vidmode="auto"
12251 case "x-$x11_hidd_vidmode" in
12252 x-yes|x-no|x-auto) ;;
12253 *) x11_hidd_vidmode="auto" ;;
12254 esac
12256 have_vidmode=no
12258 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12260 save_cflags="$CFLAGS"
12261 CFLAGS="$CFLAGS $x_cflags"
12262 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12263 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lXxf86vm $LIBS"
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char XF86VidModeQueryExtension ();
12284 main ()
12286 return XF86VidModeQueryExtension ();
12288 return 0;
12290 _ACEOF
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && {
12305 test -z "$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 } && test -s conftest$ac_exeext &&
12308 $as_test_x conftest$ac_exeext; then
12309 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12322 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12323 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12324 have_vidmode=yes
12327 CFLAGS="$save_cflags"
12330 if test "x-$have_vidmode" = "x-yes" ; then
12331 DO_VIDMODE_SUPPORT="1"
12332 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12333 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12334 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12335 { (exit 1); exit 1; }; }
12336 else
12337 DO_VIDMODE_SUPPORT="0"
12341 aros_host_x11_includes=$x_includes
12342 aros_host_x11_libdirs=$x_libraries
12346 # Check whether --enable-sdl_hidd was given.
12347 if test "${enable_sdl_hidd+set}" = set; then
12348 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12349 else
12350 sdl_hidd="auto"
12353 case "x-$sdl_hidd" in
12354 x-yes|x-no|x-auto) ;;
12355 *) sdl_hidd="auto" ;;
12356 esac
12358 if test "x-$sdl_hidd" != "x-no" ; then
12361 # Check whether --with-sdl-prefix was given.
12362 if test "${with_sdl_prefix+set}" = set; then
12363 withval=$with_sdl_prefix; sdl_prefix="$withval"
12364 else
12365 sdl_prefix=""
12369 # Check whether --with-sdl-exec-prefix was given.
12370 if test "${with_sdl_exec_prefix+set}" = set; then
12371 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12372 else
12373 sdl_exec_prefix=""
12376 # Check whether --enable-sdltest was given.
12377 if test "${enable_sdltest+set}" = set; then
12378 enableval=$enable_sdltest;
12379 else
12380 enable_sdltest=yes
12384 if test x$sdl_exec_prefix != x ; then
12385 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12386 if test x${SDL_CONFIG+set} != xset ; then
12387 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12390 if test x$sdl_prefix != x ; then
12391 sdl_args="$sdl_args --prefix=$sdl_prefix"
12392 if test x${SDL_CONFIG+set} != xset ; then
12393 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12397 if test "x$prefix" != xNONE; then
12398 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12400 # Extract the first word of "sdl-config", so it can be a program name with args.
12401 set dummy sdl-config; ac_word=$2
12402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12404 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407 case $SDL_CONFIG in
12408 [\\/]* | ?:[\\/]*)
12409 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12423 done
12424 done
12425 IFS=$as_save_IFS
12427 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12429 esac
12431 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12432 if test -n "$SDL_CONFIG"; then
12433 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12434 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12435 else
12436 { echo "$as_me:$LINENO: result: no" >&5
12437 echo "${ECHO_T}no" >&6; }
12441 min_sdl_version=1.2.10
12442 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12443 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12444 no_sdl=""
12445 if test "$SDL_CONFIG" = "no" ; then
12446 no_sdl=yes
12447 else
12448 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12449 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12451 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12453 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12454 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12455 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12456 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12457 if test "x$enable_sdltest" = "xyes" ; then
12458 ac_save_CFLAGS="$CFLAGS"
12459 ac_save_CXXFLAGS="$CXXFLAGS"
12460 ac_save_LIBS="$LIBS"
12461 CFLAGS="$CFLAGS $SDL_CFLAGS"
12462 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12463 LIBS="$LIBS $SDL_LIBS"
12464 rm -f conf.sdltest
12465 if test "$cross_compiling" = yes; then
12466 echo $ac_n "cross compiling; assumed OK... $ac_c"
12467 else
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 #include <stdio.h>
12476 #include <stdlib.h>
12477 #include <string.h>
12478 #include "SDL.h"
12480 char*
12481 my_strdup (char *str)
12483 char *new_str;
12485 if (str)
12487 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12488 strcpy (new_str, str);
12490 else
12491 new_str = NULL;
12493 return new_str;
12496 int main (int argc, char *argv[])
12498 int major, minor, micro;
12499 char *tmp_version;
12501 /* This hangs on some systems (?)
12502 system ("touch conf.sdltest");
12504 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12506 /* HP/UX 9 (%@#!) writes to sscanf strings */
12507 tmp_version = my_strdup("$min_sdl_version");
12508 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12509 printf("%s, bad version string\n", "$min_sdl_version");
12510 exit(1);
12513 if (($sdl_major_version > major) ||
12514 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12515 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12517 return 0;
12519 else
12521 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12522 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12523 printf("*** best to upgrade to the required version.\n");
12524 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12525 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12526 printf("*** config.cache before re-running configure\n");
12527 return 1;
12532 _ACEOF
12533 rm -f conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_link") 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12554 else
12555 echo "$as_me: program exited with status $ac_status" >&5
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ( exit $ac_status )
12560 no_sdl=yes
12562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12566 CFLAGS="$ac_save_CFLAGS"
12567 CXXFLAGS="$ac_save_CXXFLAGS"
12568 LIBS="$ac_save_LIBS"
12571 if test "x$no_sdl" = x ; then
12572 { echo "$as_me:$LINENO: result: yes" >&5
12573 echo "${ECHO_T}yes" >&6; }
12574 have_sdl="yes"
12575 else
12576 { echo "$as_me:$LINENO: result: no" >&5
12577 echo "${ECHO_T}no" >&6; }
12578 if test "$SDL_CONFIG" = "no" ; then
12579 echo "*** The sdl-config script installed by SDL could not be found"
12580 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12581 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12582 echo "*** full path to sdl-config."
12583 else
12584 if test -f conf.sdltest ; then
12586 else
12587 echo "*** Could not run SDL test program, checking why..."
12588 CFLAGS="$CFLAGS $SDL_CFLAGS"
12589 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12590 LIBS="$LIBS $SDL_LIBS"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 #include <stdio.h>
12599 #include "SDL.h"
12601 int main(int argc, char *argv[])
12602 { return 0; }
12603 #undef main
12604 #define main K_and_R_C_main
12607 main ()
12609 return 0;
12611 return 0;
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_link") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest$ac_exeext &&
12631 $as_test_x conftest$ac_exeext; then
12632 echo "*** The test program compiled, but did not run. This usually means"
12633 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12634 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12635 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12636 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12637 echo "*** is required on your system"
12638 echo "***"
12639 echo "*** If you have an old version installed, it is best to remove it, although"
12640 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 echo "*** The test program failed to compile or link. See the file config.log for the"
12646 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12647 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12648 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12652 conftest$ac_exeext conftest.$ac_ext
12653 CFLAGS="$ac_save_CFLAGS"
12654 CXXFLAGS="$ac_save_CXXFLAGS"
12655 LIBS="$ac_save_LIBS"
12658 SDL_CFLAGS=""
12659 SDL_LIBS=""
12660 have_sdl="no"
12664 rm -f conf.sdltest
12667 if test "x-$have_sdl" != "x-yes" ; then
12669 if test "x-$sdl_hidd" != "x-auto" ; then
12670 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12671 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12672 { (exit 1); exit 1; }; }
12675 else
12676 sdl_hidd_target=kernel-hidd-sdl
12677 aros_host_sdl_cflags=SDL_CFLAGS
12678 aros_host_sdl_libs=SDL_LIBS
12685 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12686 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12687 # Check whether --enable-dbus was given.
12688 if test "${enable_dbus+set}" = set; then
12689 enableval=$enable_dbus; dbus="yes"
12690 else
12691 dbus="no"
12694 if test "$dbus" = "yes" ; then
12695 ENABLE_DBUS=1
12696 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12697 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12698 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12699 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12700 else
12701 ENABLE_DBUS=0
12703 { echo "$as_me:$LINENO: result: $dbus" >&5
12704 echo "${ECHO_T}$dbus" >&6; }
12708 # Generic
12718 # Host related
12741 # Target Related
12793 # Graphics Related
12808 # Native version related
12811 # Palm native version related
12814 # Unix/Hosted version related
12817 # Apple iOS related
12822 # DBUS related
12829 #X11 related
12832 # Debug related
12838 # Collect-aros stuff: "-ius" to ignore undefined symbols
12841 # C compiler related
12844 case "$aros_flavour" in
12845 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12846 aros_flavour="emulation" ;;
12847 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12848 aros_flavour="emulation" ;;
12849 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12850 aros_flavour="standalone";;
12851 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12852 aros_flavour="standalone";;
12853 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12854 aros_flavour="native" ;;
12855 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12856 aros_flavour="native" ;;
12857 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12858 aros_flavour="linklib" ;;
12859 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12860 aros_flavour="palmnative" ;;
12861 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12862 aros_flavour="mac68knative" ;;
12863 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12864 aros_flavour="ppcnative" ;;
12865 esac
12867 if test ! -d ${aros_inc_dir} ; then
12868 ${MKDIR} ${aros_inc_dir}
12870 if test ! -d ${aros_geninc_dir} ; then
12871 ${MKDIR} ${aros_geninc_dir}
12873 if test ! -d ${aros_hostcfg_dir} ; then
12874 ${MKDIR} ${aros_hostcfg_dir}
12876 if test ! -d ${aros_targetcfg_dir} ; then
12877 ${MKDIR} ${aros_targetcfg_dir}
12879 if test ! -d ${aros_tools_dir} ; then
12880 ${MKDIR} ${aros_tools_dir}
12882 if test ! -d ${aros_scripts_dir} ; then
12883 ${MKDIR} ${aros_scripts_dir}
12886 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12889 ac_config_commands="$ac_config_commands compiler_executable"
12891 ac_config_commands="$ac_config_commands genshared_executable"
12893 ac_config_commands="$ac_config_commands genmf_executable"
12896 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"
12899 cat >confcache <<\_ACEOF
12900 # This file is a shell script that caches the results of configure
12901 # tests run on this system so they can be shared between configure
12902 # scripts and configure runs, see configure's option --config-cache.
12903 # It is not useful on other systems. If it contains results you don't
12904 # want to keep, you may remove or edit it.
12906 # config.status only pays attention to the cache file if you give it
12907 # the --recheck option to rerun configure.
12909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12911 # following values.
12913 _ACEOF
12915 # The following way of writing the cache mishandles newlines in values,
12916 # but we know of no workaround that is simple, portable, and efficient.
12917 # So, we kill variables containing newlines.
12918 # Ultrix sh set writes to stderr and can't be redirected directly,
12919 # and sets the high bit in the cache file unless we assign to the vars.
12921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12922 eval ac_val=\$$ac_var
12923 case $ac_val in #(
12924 *${as_nl}*)
12925 case $ac_var in #(
12926 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12927 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12928 esac
12929 case $ac_var in #(
12930 _ | IFS | as_nl) ;; #(
12931 *) $as_unset $ac_var ;;
12932 esac ;;
12933 esac
12934 done
12936 (set) 2>&1 |
12937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12938 *${as_nl}ac_space=\ *)
12939 # `set' does not quote correctly, so add quotes (double-quote
12940 # substitution turns \\\\ into \\, and sed turns \\ into \).
12941 sed -n \
12942 "s/'/'\\\\''/g;
12943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12944 ;; #(
12946 # `set' quotes correctly as required by POSIX, so do not add quotes.
12947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12949 esac |
12950 sort
12952 sed '
12953 /^ac_cv_env_/b end
12954 t clear
12955 :clear
12956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12957 t end
12958 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12959 :end' >>confcache
12960 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12961 if test -w "$cache_file"; then
12962 test "x$cache_file" != "x/dev/null" &&
12963 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12964 echo "$as_me: updating cache $cache_file" >&6;}
12965 cat confcache >$cache_file
12966 else
12967 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12968 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12971 rm -f confcache
12973 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12974 # Let make expand exec_prefix.
12975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12977 DEFS=-DHAVE_CONFIG_H
12979 ac_libobjs=
12980 ac_ltlibobjs=
12981 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12982 # 1. Remove the extension, and $U if already installed.
12983 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12984 ac_i=`echo "$ac_i" | sed "$ac_script"`
12985 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12986 # will be set to the directory where LIBOBJS objects are built.
12987 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12988 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12989 done
12990 LIBOBJS=$ac_libobjs
12992 LTLIBOBJS=$ac_ltlibobjs
12996 : ${CONFIG_STATUS=./config.status}
12997 ac_clean_files_save=$ac_clean_files
12998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12999 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13000 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13001 cat >$CONFIG_STATUS <<_ACEOF
13002 #! $SHELL
13003 # Generated by $as_me.
13004 # Run this file to recreate the current configuration.
13005 # Compiler output produced by configure, useful for debugging
13006 # configure, is in config.log if it exists.
13008 debug=false
13009 ac_cs_recheck=false
13010 ac_cs_silent=false
13011 SHELL=\${CONFIG_SHELL-$SHELL}
13012 _ACEOF
13014 cat >>$CONFIG_STATUS <<\_ACEOF
13015 ## --------------------- ##
13016 ## M4sh Initialization. ##
13017 ## --------------------- ##
13019 # Be more Bourne compatible
13020 DUALCASE=1; export DUALCASE # for MKS sh
13021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13022 emulate sh
13023 NULLCMD=:
13024 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13025 # is contrary to our usage. Disable this feature.
13026 alias -g '${1+"$@"}'='"$@"'
13027 setopt NO_GLOB_SUBST
13028 else
13029 case `(set -o) 2>/dev/null` in
13030 *posix*) set -o posix ;;
13031 esac
13038 # PATH needs CR
13039 # Avoid depending upon Character Ranges.
13040 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13041 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13042 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13043 as_cr_digits='0123456789'
13044 as_cr_alnum=$as_cr_Letters$as_cr_digits
13046 # The user is always right.
13047 if test "${PATH_SEPARATOR+set}" != set; then
13048 echo "#! /bin/sh" >conf$$.sh
13049 echo "exit 0" >>conf$$.sh
13050 chmod +x conf$$.sh
13051 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13052 PATH_SEPARATOR=';'
13053 else
13054 PATH_SEPARATOR=:
13056 rm -f conf$$.sh
13059 # Support unset when possible.
13060 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13061 as_unset=unset
13062 else
13063 as_unset=false
13067 # IFS
13068 # We need space, tab and new line, in precisely that order. Quoting is
13069 # there to prevent editors from complaining about space-tab.
13070 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13071 # splitting by setting IFS to empty value.)
13072 as_nl='
13074 IFS=" "" $as_nl"
13076 # Find who we are. Look in the path if we contain no directory separator.
13077 case $0 in
13078 *[\\/]* ) as_myself=$0 ;;
13079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
13084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13085 done
13086 IFS=$as_save_IFS
13089 esac
13090 # We did not find ourselves, most probably we were run as `sh COMMAND'
13091 # in which case we are not to be found in the path.
13092 if test "x$as_myself" = x; then
13093 as_myself=$0
13095 if test ! -f "$as_myself"; then
13096 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13097 { (exit 1); exit 1; }
13100 # Work around bugs in pre-3.0 UWIN ksh.
13101 for as_var in ENV MAIL MAILPATH
13102 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13103 done
13104 PS1='$ '
13105 PS2='> '
13106 PS4='+ '
13108 # NLS nuisances.
13109 for as_var in \
13110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13112 LC_TELEPHONE LC_TIME
13114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13115 eval $as_var=C; export $as_var
13116 else
13117 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13119 done
13121 # Required to use basename.
13122 if expr a : '\(a\)' >/dev/null 2>&1 &&
13123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13124 as_expr=expr
13125 else
13126 as_expr=false
13129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13130 as_basename=basename
13131 else
13132 as_basename=false
13136 # Name of the executable.
13137 as_me=`$as_basename -- "$0" ||
13138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13139 X"$0" : 'X\(//\)$' \| \
13140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13141 echo X/"$0" |
13142 sed '/^.*\/\([^/][^/]*\)\/*$/{
13143 s//\1/
13146 /^X\/\(\/\/\)$/{
13147 s//\1/
13150 /^X\/\(\/\).*/{
13151 s//\1/
13154 s/.*/./; q'`
13156 # CDPATH.
13157 $as_unset CDPATH
13161 as_lineno_1=$LINENO
13162 as_lineno_2=$LINENO
13163 test "x$as_lineno_1" != "x$as_lineno_2" &&
13164 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13166 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13167 # uniformly replaced by the line number. The first 'sed' inserts a
13168 # line-number line after each line using $LINENO; the second 'sed'
13169 # does the real work. The second script uses 'N' to pair each
13170 # line-number line with the line containing $LINENO, and appends
13171 # trailing '-' during substitution so that $LINENO is not a special
13172 # case at line end.
13173 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13174 # scripts with optimization help from Paolo Bonzini. Blame Lee
13175 # E. McMahon (1931-1989) for sed's syntax. :-)
13176 sed -n '
13178 /[$]LINENO/=
13179 ' <$as_myself |
13180 sed '
13181 s/[$]LINENO.*/&-/
13182 t lineno
13184 :lineno
13186 :loop
13187 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13188 t loop
13189 s/-\n.*//
13190 ' >$as_me.lineno &&
13191 chmod +x "$as_me.lineno" ||
13192 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13193 { (exit 1); exit 1; }; }
13195 # Don't try to exec as it changes $[0], causing all sort of problems
13196 # (the dirname of $[0] is not the place where we might find the
13197 # original and so on. Autoconf is especially sensitive to this).
13198 . "./$as_me.lineno"
13199 # Exit status is that of the last command.
13200 exit
13204 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13205 as_dirname=dirname
13206 else
13207 as_dirname=false
13210 ECHO_C= ECHO_N= ECHO_T=
13211 case `echo -n x` in
13212 -n*)
13213 case `echo 'x\c'` in
13214 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13215 *) ECHO_C='\c';;
13216 esac;;
13218 ECHO_N='-n';;
13219 esac
13221 if expr a : '\(a\)' >/dev/null 2>&1 &&
13222 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13223 as_expr=expr
13224 else
13225 as_expr=false
13228 rm -f conf$$ conf$$.exe conf$$.file
13229 if test -d conf$$.dir; then
13230 rm -f conf$$.dir/conf$$.file
13231 else
13232 rm -f conf$$.dir
13233 mkdir conf$$.dir
13235 echo >conf$$.file
13236 if ln -s conf$$.file conf$$ 2>/dev/null; then
13237 as_ln_s='ln -s'
13238 # ... but there are two gotchas:
13239 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13240 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13241 # In both cases, we have to default to `cp -p'.
13242 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13243 as_ln_s='cp -p'
13244 elif ln conf$$.file conf$$ 2>/dev/null; then
13245 as_ln_s=ln
13246 else
13247 as_ln_s='cp -p'
13249 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13250 rmdir conf$$.dir 2>/dev/null
13252 if mkdir -p . 2>/dev/null; then
13253 as_mkdir_p=:
13254 else
13255 test -d ./-p && rmdir ./-p
13256 as_mkdir_p=false
13259 if test -x / >/dev/null 2>&1; then
13260 as_test_x='test -x'
13261 else
13262 if ls -dL / >/dev/null 2>&1; then
13263 as_ls_L_option=L
13264 else
13265 as_ls_L_option=
13267 as_test_x='
13268 eval sh -c '\''
13269 if test -d "$1"; then
13270 test -d "$1/.";
13271 else
13272 case $1 in
13273 -*)set "./$1";;
13274 esac;
13275 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13276 ???[sx]*):;;*)false;;esac;fi
13277 '\'' sh
13280 as_executable_p=$as_test_x
13282 # Sed expression to map a string onto a valid CPP name.
13283 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13285 # Sed expression to map a string onto a valid variable name.
13286 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13289 exec 6>&1
13291 # Save the log message, to keep $[0] and so on meaningful, and to
13292 # report actual input values of CONFIG_FILES etc. instead of their
13293 # values after options handling.
13294 ac_log="
13295 This file was extended by $as_me, which was
13296 generated by GNU Autoconf 2.61. Invocation command line was
13298 CONFIG_FILES = $CONFIG_FILES
13299 CONFIG_HEADERS = $CONFIG_HEADERS
13300 CONFIG_LINKS = $CONFIG_LINKS
13301 CONFIG_COMMANDS = $CONFIG_COMMANDS
13302 $ $0 $@
13304 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13307 _ACEOF
13309 cat >>$CONFIG_STATUS <<_ACEOF
13310 # Files that config.status was made for.
13311 config_files="$ac_config_files"
13312 config_headers="$ac_config_headers"
13313 config_commands="$ac_config_commands"
13315 _ACEOF
13317 cat >>$CONFIG_STATUS <<\_ACEOF
13318 ac_cs_usage="\
13319 \`$as_me' instantiates files from templates according to the
13320 current configuration.
13322 Usage: $0 [OPTIONS] [FILE]...
13324 -h, --help print this help, then exit
13325 -V, --version print version number and configuration settings, then exit
13326 -q, --quiet do not print progress messages
13327 -d, --debug don't remove temporary files
13328 --recheck update $as_me by reconfiguring in the same conditions
13329 --file=FILE[:TEMPLATE]
13330 instantiate the configuration file FILE
13331 --header=FILE[:TEMPLATE]
13332 instantiate the configuration header FILE
13334 Configuration files:
13335 $config_files
13337 Configuration headers:
13338 $config_headers
13340 Configuration commands:
13341 $config_commands
13343 Report bugs to <bug-autoconf@gnu.org>."
13345 _ACEOF
13346 cat >>$CONFIG_STATUS <<_ACEOF
13347 ac_cs_version="\\
13348 config.status
13349 configured by $0, generated by GNU Autoconf 2.61,
13350 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13352 Copyright (C) 2006 Free Software Foundation, Inc.
13353 This config.status script is free software; the Free Software Foundation
13354 gives unlimited permission to copy, distribute and modify it."
13356 ac_pwd='$ac_pwd'
13357 srcdir='$srcdir'
13358 _ACEOF
13360 cat >>$CONFIG_STATUS <<\_ACEOF
13361 # If no file are specified by the user, then we need to provide default
13362 # value. By we need to know if files were specified by the user.
13363 ac_need_defaults=:
13364 while test $# != 0
13366 case $1 in
13367 --*=*)
13368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13370 ac_shift=:
13373 ac_option=$1
13374 ac_optarg=$2
13375 ac_shift=shift
13377 esac
13379 case $ac_option in
13380 # Handling of the options.
13381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13382 ac_cs_recheck=: ;;
13383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13384 echo "$ac_cs_version"; exit ;;
13385 --debug | --debu | --deb | --de | --d | -d )
13386 debug=: ;;
13387 --file | --fil | --fi | --f )
13388 $ac_shift
13389 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13390 ac_need_defaults=false;;
13391 --header | --heade | --head | --hea )
13392 $ac_shift
13393 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13394 ac_need_defaults=false;;
13395 --he | --h)
13396 # Conflict between --help and --header
13397 { echo "$as_me: error: ambiguous option: $1
13398 Try \`$0 --help' for more information." >&2
13399 { (exit 1); exit 1; }; };;
13400 --help | --hel | -h )
13401 echo "$ac_cs_usage"; exit ;;
13402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13404 ac_cs_silent=: ;;
13406 # This is an error.
13407 -*) { echo "$as_me: error: unrecognized option: $1
13408 Try \`$0 --help' for more information." >&2
13409 { (exit 1); exit 1; }; } ;;
13411 *) ac_config_targets="$ac_config_targets $1"
13412 ac_need_defaults=false ;;
13414 esac
13415 shift
13416 done
13418 ac_configure_extra_args=
13420 if $ac_cs_silent; then
13421 exec 6>/dev/null
13422 ac_configure_extra_args="$ac_configure_extra_args --silent"
13425 _ACEOF
13426 cat >>$CONFIG_STATUS <<_ACEOF
13427 if \$ac_cs_recheck; then
13428 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13429 CONFIG_SHELL=$SHELL
13430 export CONFIG_SHELL
13431 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13434 _ACEOF
13435 cat >>$CONFIG_STATUS <<\_ACEOF
13436 exec 5>>config.log
13438 echo
13439 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13440 ## Running $as_me. ##
13441 _ASBOX
13442 echo "$ac_log"
13443 } >&5
13445 _ACEOF
13446 cat >>$CONFIG_STATUS <<_ACEOF
13448 # INIT-COMMANDS
13451 aros_host_exe_suffix=${aros_host_exe_suffix}
13452 aros_tools_dir=${aros_tools_dir}
13453 aros_target_cpu=${aros_target_cpu}
13454 aros_target_arch=${aros_target_arch}
13455 aros_target_suffix=${aros_target_suffix}
13456 aros_target_nm_ln=${aros_target_nm_ln}
13457 aros_target_as_ln=${aros_target_as_ln}
13458 aros_target_ar_ln=${aros_target_ar_ln}
13459 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13460 aros_target_objdump_ln=${aros_target_objdump_ln}
13461 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13462 aros_target_strip_ln=${aros_target_strip_ln}
13465 aros_scripts_dir=${aros_scripts_dir}
13467 aros_tools_dir=${aros_tools_dir}
13470 _ACEOF
13472 cat >>$CONFIG_STATUS <<\_ACEOF
13474 # Handling of arguments.
13475 for ac_config_target in $ac_config_targets
13477 case $ac_config_target in
13478 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13479 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13480 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13481 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13482 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13483 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13484 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13485 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13486 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13487 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13488 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13489 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13490 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13491 "${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" ;;
13492 "${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" ;;
13493 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13494 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13495 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13497 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13498 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13499 { (exit 1); exit 1; }; };;
13500 esac
13501 done
13504 # If the user did not use the arguments to specify the items to instantiate,
13505 # then the envvar interface is used. Set only those that are not.
13506 # We use the long form for the default assignment because of an extremely
13507 # bizarre bug on SunOS 4.1.3.
13508 if $ac_need_defaults; then
13509 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13510 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13511 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13514 # Have a temporary directory for convenience. Make it in the build tree
13515 # simply because there is no reason against having it here, and in addition,
13516 # creating and moving files from /tmp can sometimes cause problems.
13517 # Hook for its removal unless debugging.
13518 # Note that there is a small window in which the directory will not be cleaned:
13519 # after its creation but before its name has been assigned to `$tmp'.
13520 $debug ||
13522 tmp=
13523 trap 'exit_status=$?
13524 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13526 trap '{ (exit 1); exit 1; }' 1 2 13 15
13528 # Create a (secure) tmp directory for tmp files.
13531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13532 test -n "$tmp" && test -d "$tmp"
13533 } ||
13535 tmp=./conf$$-$RANDOM
13536 (umask 077 && mkdir "$tmp")
13537 } ||
13539 echo "$me: cannot create a temporary directory in ." >&2
13540 { (exit 1); exit 1; }
13544 # Set up the sed scripts for CONFIG_FILES section.
13547 # No need to generate the scripts if there are no CONFIG_FILES.
13548 # This happens for instance when ./config.status config.h
13549 if test -n "$CONFIG_FILES"; then
13551 _ACEOF
13555 ac_delim='%!_!# '
13556 for ac_last_try in false false false false false :; do
13557 cat >conf$$subs.sed <<_ACEOF
13558 SHELL!$SHELL$ac_delim
13559 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13560 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13561 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13562 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13563 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13564 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13565 exec_prefix!$exec_prefix$ac_delim
13566 prefix!$prefix$ac_delim
13567 program_transform_name!$program_transform_name$ac_delim
13568 bindir!$bindir$ac_delim
13569 sbindir!$sbindir$ac_delim
13570 libexecdir!$libexecdir$ac_delim
13571 datarootdir!$datarootdir$ac_delim
13572 datadir!$datadir$ac_delim
13573 sysconfdir!$sysconfdir$ac_delim
13574 sharedstatedir!$sharedstatedir$ac_delim
13575 localstatedir!$localstatedir$ac_delim
13576 includedir!$includedir$ac_delim
13577 oldincludedir!$oldincludedir$ac_delim
13578 docdir!$docdir$ac_delim
13579 infodir!$infodir$ac_delim
13580 htmldir!$htmldir$ac_delim
13581 dvidir!$dvidir$ac_delim
13582 pdfdir!$pdfdir$ac_delim
13583 psdir!$psdir$ac_delim
13584 libdir!$libdir$ac_delim
13585 localedir!$localedir$ac_delim
13586 mandir!$mandir$ac_delim
13587 DEFS!$DEFS$ac_delim
13588 ECHO_C!$ECHO_C$ac_delim
13589 ECHO_N!$ECHO_N$ac_delim
13590 ECHO_T!$ECHO_T$ac_delim
13591 LIBS!$LIBS$ac_delim
13592 build_alias!$build_alias$ac_delim
13593 host_alias!$host_alias$ac_delim
13594 target_alias!$target_alias$ac_delim
13595 build!$build$ac_delim
13596 build_cpu!$build_cpu$ac_delim
13597 build_vendor!$build_vendor$ac_delim
13598 build_os!$build_os$ac_delim
13599 host!$host$ac_delim
13600 host_cpu!$host_cpu$ac_delim
13601 host_vendor!$host_vendor$ac_delim
13602 host_os!$host_os$ac_delim
13603 CC!$CC$ac_delim
13604 CFLAGS!$CFLAGS$ac_delim
13605 LDFLAGS!$LDFLAGS$ac_delim
13606 CPPFLAGS!$CPPFLAGS$ac_delim
13607 ac_ct_CC!$ac_ct_CC$ac_delim
13608 EXEEXT!$EXEEXT$ac_delim
13609 OBJEXT!$OBJEXT$ac_delim
13610 CPP!$CPP$ac_delim
13611 AWK!$AWK$ac_delim
13612 MMAKE!$MMAKE$ac_delim
13613 aros_host_ld!$aros_host_ld$ac_delim
13614 aros_host_aclocal!$aros_host_aclocal$ac_delim
13615 aros_host_autoconf!$aros_host_autoconf$ac_delim
13616 aros_host_autoheader!$aros_host_autoheader$ac_delim
13617 aros_host_automake!$aros_host_automake$ac_delim
13618 aros_host_ar!$aros_host_ar$ac_delim
13619 aros_host_ranlib!$aros_host_ranlib$ac_delim
13620 aros_host_strip!$aros_host_strip$ac_delim
13621 RM!$RM$ac_delim
13622 CP!$CP$ac_delim
13623 MV!$MV$ac_delim
13624 ECHO!$ECHO$ac_delim
13625 MKDIR!$MKDIR$ac_delim
13626 TOUCH!$TOUCH$ac_delim
13627 SORT!$SORT$ac_delim
13628 UNIQ!$UNIQ$ac_delim
13629 NOP!$NOP$ac_delim
13630 CAT!$CAT$ac_delim
13631 BISON!$BISON$ac_delim
13632 FLEX!$FLEX$ac_delim
13633 PNGTOPNM!$PNGTOPNM$ac_delim
13634 PPMTOILBM!$PPMTOILBM$ac_delim
13635 SED!$SED$ac_delim
13636 CHMOD!$CHMOD$ac_delim
13637 PYTHON!$PYTHON$ac_delim
13638 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13639 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13640 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13641 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13642 pythondir!$pythondir$ac_delim
13643 pkgpythondir!$pkgpythondir$ac_delim
13644 pyexecdir!$pyexecdir$ac_delim
13645 pkgpyexecdir!$pkgpyexecdir$ac_delim
13646 FOR!$FOR$ac_delim
13647 IF!$IF$ac_delim
13648 TEST!$TEST$ac_delim
13649 CMP!$CMP$ac_delim
13650 GREP!$GREP$ac_delim
13651 EGREP!$EGREP$ac_delim
13652 LIBOBJS!$LIBOBJS$ac_delim
13653 DISTCC!$DISTCC$ac_delim
13654 CCACHE!$CCACHE$ac_delim
13655 _ACEOF
13657 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13658 break
13659 elif $ac_last_try; then
13660 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13661 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13662 { (exit 1); exit 1; }; }
13663 else
13664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13666 done
13668 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13669 if test -n "$ac_eof"; then
13670 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13671 ac_eof=`expr $ac_eof + 1`
13674 cat >>$CONFIG_STATUS <<_ACEOF
13675 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13677 _ACEOF
13678 sed '
13679 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13680 s/^/s,@/; s/!/@,|#_!!_#|/
13683 s/'"$ac_delim"'$/,g/; t
13684 s/$/\\/; p
13685 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13686 ' >>$CONFIG_STATUS <conf$$subs.sed
13687 rm -f conf$$subs.sed
13688 cat >>$CONFIG_STATUS <<_ACEOF
13689 CEOF$ac_eof
13690 _ACEOF
13693 ac_delim='%!_!# '
13694 for ac_last_try in false false false false false :; do
13695 cat >conf$$subs.sed <<_ACEOF
13696 aros_target_cc!$aros_target_cc$ac_delim
13697 aros_target_ld!$aros_target_ld$ac_delim
13698 aros_target_as_ln!$aros_target_as_ln$ac_delim
13699 aros_kernel_ld!$aros_kernel_ld$ac_delim
13700 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13701 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13702 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13703 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13704 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13705 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13706 aros_target_cxx!$aros_target_cxx$ac_delim
13707 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13708 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13709 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13710 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13711 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13712 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13713 host_cflags_iquote!$host_cflags_iquote$ac_delim
13714 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13715 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13716 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13717 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13718 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13719 XMKMF!$XMKMF$ac_delim
13720 SDL_CONFIG!$SDL_CONFIG$ac_delim
13721 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13722 SDL_LIBS!$SDL_LIBS$ac_delim
13723 aros_arch!$aros_arch$ac_delim
13724 aros_cpu!$aros_cpu$ac_delim
13725 aros_flavour!$aros_flavour$ac_delim
13726 aros_flavour_uc!$aros_flavour_uc$ac_delim
13727 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13728 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13729 SRCDIR!$SRCDIR$ac_delim
13730 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13731 aros_cc_pre!$aros_cc_pre$ac_delim
13732 aros_host_arch!$aros_host_arch$ac_delim
13733 aros_host_cpu!$aros_host_cpu$ac_delim
13734 aros_host_cc!$aros_host_cc$ac_delim
13735 aros_host_make!$aros_host_make$ac_delim
13736 aros_host_cflags!$aros_host_cflags$ac_delim
13737 aros_host_ldflags!$aros_host_ldflags$ac_delim
13738 aros_host_debug!$aros_host_debug$ac_delim
13739 aros_host_mkdep!$aros_host_mkdep$ac_delim
13740 aros_host_mkargs!$aros_host_mkargs$ac_delim
13741 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13742 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13743 aros_tools_dir!$aros_tools_dir$ac_delim
13744 aros_target_guitheme!$aros_target_guitheme$ac_delim
13745 aros_target_iconset!$aros_target_iconset$ac_delim
13746 aros_target_bootloader!$aros_target_bootloader$ac_delim
13747 aros_target_arch!$aros_target_arch$ac_delim
13748 aros_target_cpu!$aros_target_cpu$ac_delim
13749 aros_target_variant!$aros_target_variant$ac_delim
13750 aros_target_suffix!$aros_target_suffix$ac_delim
13751 aros_target_incl!$aros_target_incl$ac_delim
13752 aros_target_ar!$aros_target_ar$ac_delim
13753 aros_target_ranlib!$aros_target_ranlib$ac_delim
13754 aros_kernel_nm!$aros_kernel_nm$ac_delim
13755 orig_target_cc!$orig_target_cc$ac_delim
13756 aros_kernel_cc!$aros_kernel_cc$ac_delim
13757 aros_target_as!$aros_target_as$ac_delim
13758 orig_target_ld!$orig_target_ld$ac_delim
13759 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13760 aros_target_cc_path!$aros_target_cc_path$ac_delim
13761 aros_target_objdump!$aros_target_objdump$ac_delim
13762 aros_target_objcopy!$aros_target_objcopy$ac_delim
13763 aros_target_strip!$aros_target_strip$ac_delim
13764 aros_target_nm!$aros_target_nm$ac_delim
13765 aros_shared_default!$aros_shared_default$ac_delim
13766 aros_shared_ld!$aros_shared_ld$ac_delim
13767 aros_object_format!$aros_object_format$ac_delim
13768 aros_compiler_libs!$aros_compiler_libs$ac_delim
13769 aros_arch_libs!$aros_arch_libs$ac_delim
13770 aros_config_cflags!$aros_config_cflags$ac_delim
13771 aros_config_aflags!$aros_config_aflags$ac_delim
13772 aros_config_ldflags!$aros_config_ldflags$ac_delim
13773 aros_shared_cflags!$aros_shared_cflags$ac_delim
13774 aros_shared_aflags!$aros_shared_aflags$ac_delim
13775 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13776 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13777 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13778 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13779 aros_debug_cflags!$aros_debug_cflags$ac_delim
13780 aros_debug_aflags!$aros_debug_aflags$ac_delim
13781 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13782 aros_paranoia_cflags!$aros_paranoia_cflags$ac_delim
13783 aros_target_genmap!$aros_target_genmap$ac_delim
13784 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13785 crosstools_target!$crosstools_target$ac_delim
13786 x11_hidd_target!$x11_hidd_target$ac_delim
13787 sdl_hidd_target!$sdl_hidd_target$ac_delim
13788 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13789 aros_default_wbheight!$aros_default_wbheight$ac_delim
13790 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13791 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13792 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13793 _ACEOF
13795 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13796 break
13797 elif $ac_last_try; then
13798 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13799 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13800 { (exit 1); exit 1; }; }
13801 else
13802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13804 done
13806 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13807 if test -n "$ac_eof"; then
13808 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13809 ac_eof=`expr $ac_eof + 1`
13812 cat >>$CONFIG_STATUS <<_ACEOF
13813 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13815 _ACEOF
13816 sed '
13817 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13818 s/^/s,@/; s/!/@,|#_!!_#|/
13821 s/'"$ac_delim"'$/,g/; t
13822 s/$/\\/; p
13823 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13824 ' >>$CONFIG_STATUS <conf$$subs.sed
13825 rm -f conf$$subs.sed
13826 cat >>$CONFIG_STATUS <<_ACEOF
13827 CEOF$ac_eof
13828 _ACEOF
13831 ac_delim='%!_!# '
13832 for ac_last_try in false false false false false :; do
13833 cat >conf$$subs.sed <<_ACEOF
13834 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13835 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13836 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13837 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13838 aros_serial_debug!$aros_serial_debug$ac_delim
13839 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13840 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13841 aros_ios_platform!$aros_ios_platform$ac_delim
13842 aros_ios_version!$aros_ios_version$ac_delim
13843 aros_ios_sdk!$aros_ios_sdk$ac_delim
13844 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13845 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13846 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13847 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13848 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13849 ENABLE_X11!$ENABLE_X11$ac_delim
13850 aros_debug!$aros_debug$ac_delim
13851 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13852 aros_stack_debug!$aros_stack_debug$ac_delim
13853 aros_modules_debug!$aros_modules_debug$ac_delim
13854 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13855 gcc_target_cpu!$gcc_target_cpu$ac_delim
13856 LTLIBOBJS!$LTLIBOBJS$ac_delim
13857 _ACEOF
13859 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
13860 break
13861 elif $ac_last_try; then
13862 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13863 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13864 { (exit 1); exit 1; }; }
13865 else
13866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13868 done
13870 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13871 if test -n "$ac_eof"; then
13872 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13873 ac_eof=`expr $ac_eof + 1`
13876 cat >>$CONFIG_STATUS <<_ACEOF
13877 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13879 _ACEOF
13880 sed '
13881 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13882 s/^/s,@/; s/!/@,|#_!!_#|/
13885 s/'"$ac_delim"'$/,g/; t
13886 s/$/\\/; p
13887 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13888 ' >>$CONFIG_STATUS <conf$$subs.sed
13889 rm -f conf$$subs.sed
13890 cat >>$CONFIG_STATUS <<_ACEOF
13891 :end
13892 s/|#_!!_#|//g
13893 CEOF$ac_eof
13894 _ACEOF
13897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13899 # trailing colons and then remove the whole line if VPATH becomes empty
13900 # (actually we leave an empty line to preserve line numbers).
13901 if test "x$srcdir" = x.; then
13902 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13903 s/:*\$(srcdir):*/:/
13904 s/:*\${srcdir}:*/:/
13905 s/:*@srcdir@:*/:/
13906 s/^\([^=]*=[ ]*\):*/\1/
13907 s/:*$//
13908 s/^[^=]*=[ ]*$//
13912 cat >>$CONFIG_STATUS <<\_ACEOF
13913 fi # test -n "$CONFIG_FILES"
13916 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13918 case $ac_tag in
13919 :[FHLC]) ac_mode=$ac_tag; continue;;
13920 esac
13921 case $ac_mode$ac_tag in
13922 :[FHL]*:*);;
13923 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13924 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13925 { (exit 1); exit 1; }; };;
13926 :[FH]-) ac_tag=-:-;;
13927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13928 esac
13929 ac_save_IFS=$IFS
13930 IFS=:
13931 set x $ac_tag
13932 IFS=$ac_save_IFS
13933 shift
13934 ac_file=$1
13935 shift
13937 case $ac_mode in
13938 :L) ac_source=$1;;
13939 :[FH])
13940 ac_file_inputs=
13941 for ac_f
13943 case $ac_f in
13944 -) ac_f="$tmp/stdin";;
13945 *) # Look for the file first in the build tree, then in the source tree
13946 # (if the path is not absolute). The absolute path cannot be DOS-style,
13947 # because $ac_f cannot contain `:'.
13948 test -f "$ac_f" ||
13949 case $ac_f in
13950 [\\/$]*) false;;
13951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13952 esac ||
13953 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13954 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13955 { (exit 1); exit 1; }; };;
13956 esac
13957 ac_file_inputs="$ac_file_inputs $ac_f"
13958 done
13960 # Let's still pretend it is `configure' which instantiates (i.e., don't
13961 # use $as_me), people would be surprised to read:
13962 # /* config.h. Generated by config.status. */
13963 configure_input="Generated from "`IFS=:
13964 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13965 if test x"$ac_file" != x-; then
13966 configure_input="$ac_file. $configure_input"
13967 { echo "$as_me:$LINENO: creating $ac_file" >&5
13968 echo "$as_me: creating $ac_file" >&6;}
13971 case $ac_tag in
13972 *:-:* | *:-) cat >"$tmp/stdin";;
13973 esac
13975 esac
13977 ac_dir=`$as_dirname -- "$ac_file" ||
13978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13979 X"$ac_file" : 'X\(//\)[^/]' \| \
13980 X"$ac_file" : 'X\(//\)$' \| \
13981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13982 echo X"$ac_file" |
13983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13984 s//\1/
13987 /^X\(\/\/\)[^/].*/{
13988 s//\1/
13991 /^X\(\/\/\)$/{
13992 s//\1/
13995 /^X\(\/\).*/{
13996 s//\1/
13999 s/.*/./; q'`
14000 { as_dir="$ac_dir"
14001 case $as_dir in #(
14002 -*) as_dir=./$as_dir;;
14003 esac
14004 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14005 as_dirs=
14006 while :; do
14007 case $as_dir in #(
14008 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14009 *) as_qdir=$as_dir;;
14010 esac
14011 as_dirs="'$as_qdir' $as_dirs"
14012 as_dir=`$as_dirname -- "$as_dir" ||
14013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14014 X"$as_dir" : 'X\(//\)[^/]' \| \
14015 X"$as_dir" : 'X\(//\)$' \| \
14016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14017 echo X"$as_dir" |
14018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14019 s//\1/
14022 /^X\(\/\/\)[^/].*/{
14023 s//\1/
14026 /^X\(\/\/\)$/{
14027 s//\1/
14030 /^X\(\/\).*/{
14031 s//\1/
14034 s/.*/./; q'`
14035 test -d "$as_dir" && break
14036 done
14037 test -z "$as_dirs" || eval "mkdir $as_dirs"
14038 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14039 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14040 { (exit 1); exit 1; }; }; }
14041 ac_builddir=.
14043 case "$ac_dir" in
14044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14047 # A ".." for each directory in $ac_dir_suffix.
14048 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14049 case $ac_top_builddir_sub in
14050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14052 esac ;;
14053 esac
14054 ac_abs_top_builddir=$ac_pwd
14055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14056 # for backward compatibility:
14057 ac_top_builddir=$ac_top_build_prefix
14059 case $srcdir in
14060 .) # We are building in place.
14061 ac_srcdir=.
14062 ac_top_srcdir=$ac_top_builddir_sub
14063 ac_abs_top_srcdir=$ac_pwd ;;
14064 [\\/]* | ?:[\\/]* ) # Absolute name.
14065 ac_srcdir=$srcdir$ac_dir_suffix;
14066 ac_top_srcdir=$srcdir
14067 ac_abs_top_srcdir=$srcdir ;;
14068 *) # Relative name.
14069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14070 ac_top_srcdir=$ac_top_build_prefix$srcdir
14071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14072 esac
14073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14076 case $ac_mode in
14079 # CONFIG_FILE
14082 _ACEOF
14084 cat >>$CONFIG_STATUS <<\_ACEOF
14085 # If the template does not know about datarootdir, expand it.
14086 # FIXME: This hack should be removed a few years after 2.60.
14087 ac_datarootdir_hack=; ac_datarootdir_seen=
14089 case `sed -n '/datarootdir/ {
14093 /@datadir@/p
14094 /@docdir@/p
14095 /@infodir@/p
14096 /@localedir@/p
14097 /@mandir@/p
14098 ' $ac_file_inputs` in
14099 *datarootdir*) ac_datarootdir_seen=yes;;
14100 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14101 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14102 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14103 _ACEOF
14104 cat >>$CONFIG_STATUS <<_ACEOF
14105 ac_datarootdir_hack='
14106 s&@datadir@&$datadir&g
14107 s&@docdir@&$docdir&g
14108 s&@infodir@&$infodir&g
14109 s&@localedir@&$localedir&g
14110 s&@mandir@&$mandir&g
14111 s&\\\${datarootdir}&$datarootdir&g' ;;
14112 esac
14113 _ACEOF
14115 # Neutralize VPATH when `$srcdir' = `.'.
14116 # Shell code in configure.ac might set extrasub.
14117 # FIXME: do we really want to maintain this feature?
14118 cat >>$CONFIG_STATUS <<_ACEOF
14119 sed "$ac_vpsub
14120 $extrasub
14121 _ACEOF
14122 cat >>$CONFIG_STATUS <<\_ACEOF
14124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14125 s&@configure_input@&$configure_input&;t t
14126 s&@top_builddir@&$ac_top_builddir_sub&;t t
14127 s&@srcdir@&$ac_srcdir&;t t
14128 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14129 s&@top_srcdir@&$ac_top_srcdir&;t t
14130 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14131 s&@builddir@&$ac_builddir&;t t
14132 s&@abs_builddir@&$ac_abs_builddir&;t t
14133 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14134 $ac_datarootdir_hack
14135 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
14137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14138 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14140 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14141 which seems to be undefined. Please make sure it is defined." >&5
14142 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14143 which seems to be undefined. Please make sure it is defined." >&2;}
14145 rm -f "$tmp/stdin"
14146 case $ac_file in
14147 -) cat "$tmp/out"; rm -f "$tmp/out";;
14148 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14149 esac
14153 # CONFIG_HEADER
14155 _ACEOF
14157 # Transform confdefs.h into a sed script `conftest.defines', that
14158 # substitutes the proper values into config.h.in to produce config.h.
14159 rm -f conftest.defines conftest.tail
14160 # First, append a space to every undef/define line, to ease matching.
14161 echo 's/$/ /' >conftest.defines
14162 # Then, protect against being on the right side of a sed subst, or in
14163 # an unquoted here document, in config.status. If some macros were
14164 # called several times there might be several #defines for the same
14165 # symbol, which is useless. But do not sort them, since the last
14166 # AC_DEFINE must be honored.
14167 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14168 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14169 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14170 # PARAMS is the parameter list in the macro definition--in most cases, it's
14171 # just an empty string.
14172 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14173 ac_dB='\\)[ (].*,\\1define\\2'
14174 ac_dC=' '
14175 ac_dD=' ,'
14177 uniq confdefs.h |
14178 sed -n '
14179 t rset
14180 :rset
14181 s/^[ ]*#[ ]*define[ ][ ]*//
14182 t ok
14185 s/[\\&,]/\\&/g
14186 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14187 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14188 ' >>conftest.defines
14190 # Remove the space that was appended to ease matching.
14191 # Then replace #undef with comments. This is necessary, for
14192 # example, in the case of _POSIX_SOURCE, which is predefined and required
14193 # on some systems where configure will not decide to define it.
14194 # (The regexp can be short, since the line contains either #define or #undef.)
14195 echo 's/ $//
14196 s,^[ #]*u.*,/* & */,' >>conftest.defines
14198 # Break up conftest.defines:
14199 ac_max_sed_lines=50
14201 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14202 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14203 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14204 # et cetera.
14205 ac_in='$ac_file_inputs'
14206 ac_out='"$tmp/out1"'
14207 ac_nxt='"$tmp/out2"'
14209 while :
14211 # Write a here document:
14212 cat >>$CONFIG_STATUS <<_ACEOF
14213 # First, check the format of the line:
14214 cat >"\$tmp/defines.sed" <<\\CEOF
14215 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14216 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14218 :def
14219 _ACEOF
14220 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14221 echo 'CEOF
14222 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14223 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14224 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14225 grep . conftest.tail >/dev/null || break
14226 rm -f conftest.defines
14227 mv conftest.tail conftest.defines
14228 done
14229 rm -f conftest.defines conftest.tail
14231 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14232 cat >>$CONFIG_STATUS <<\_ACEOF
14233 if test x"$ac_file" != x-; then
14234 echo "/* $configure_input */" >"$tmp/config.h"
14235 cat "$ac_result" >>"$tmp/config.h"
14236 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14237 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14238 echo "$as_me: $ac_file is unchanged" >&6;}
14239 else
14240 rm -f $ac_file
14241 mv "$tmp/config.h" $ac_file
14243 else
14244 echo "/* $configure_input */"
14245 cat "$ac_result"
14247 rm -f "$tmp/out12"
14250 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14251 echo "$as_me: executing $ac_file commands" >&6;}
14253 esac
14256 case $ac_file$ac_mode in
14257 "compiler_executable":C)
14258 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14259 mkdir -p $prefix
14260 prefix="${prefix}/${aros_target_cpu}-aros"
14261 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14263 echo ${prefix}
14264 echo ${prefix2}
14265 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14267 ln -sf ${prefix2}-gcc ${prefix}-gcc
14268 ln -sf ${prefix2}-ld ${prefix}-ld
14270 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14271 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14272 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14273 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14274 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14275 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14276 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14278 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14279 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14280 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14281 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14282 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14283 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14284 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14286 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14287 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14289 esac
14290 done # for ac_tag
14293 { (exit 0); exit 0; }
14294 _ACEOF
14295 chmod +x $CONFIG_STATUS
14296 ac_clean_files=$ac_clean_files_save
14299 # configure is writing to config.log, and then calls config.status.
14300 # config.status does its own redirection, appending to config.log.
14301 # Unfortunately, on DOS this fails, as config.log is still kept open
14302 # by configure, so config.status won't be able to write to it; its
14303 # output is simply discarded. So we exec the FD to /dev/null,
14304 # effectively closing config.log, so it can be properly (re)opened and
14305 # appended to by config.status. When coming back to configure, we
14306 # need to make the FD available again.
14307 if test "$no_create" != yes; then
14308 ac_cs_success=:
14309 ac_config_status_args=
14310 test "$silent" = yes &&
14311 ac_config_status_args="$ac_config_status_args --quiet"
14312 exec 5>/dev/null
14313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14314 exec 5>>config.log
14315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14316 # would make configure fail if this is the last instruction.
14317 $ac_cs_success || { (exit 1); exit 1; }
14322 #XXX compatability...
14323 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14325 if test -n "$aros_shared_cflags" ; then
14326 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14327 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg