amiga-m68k: More work on the gcc 4.5.1 thunking
[AROS.git] / configure
blob3a6ca0c8f6a8cddc40de9ad92d7ce5122ca44647
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_target_genmap
800 aros_target_strip_flags
801 crosstools_target
802 x11_hidd_target
803 sdl_hidd_target
804 aros_default_wbwidth
805 aros_default_wbheight
806 aros_default_wbdepth
807 DO_XSHM_SUPPORT
808 DO_VIDMODE_SUPPORT
809 aros_host_x11_includes
810 aros_host_x11_libdirs
811 aros_host_sdl_cflags
812 aros_host_sdl_libs
813 aros_serial_debug
814 aros_palm_debug_hack
815 aros_nesting_supervisor
816 aros_ios_platform
817 aros_ios_version
818 aros_ios_sdk
819 ENABLE_DBUS
820 DBUS_CFLAGS
821 DBUS_LIBFLAGS
822 KERNEL_DBUS_KOBJ
823 KERNEL_DBUS_INCLUDES
824 ENABLE_X11
825 aros_debug
826 aros_mungwall_debug
827 aros_stack_debug
828 aros_modules_debug
829 ignore_undefined_symbols
830 gcc_target_cpu
831 LTLIBOBJS'
832 ac_subst_files=''
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
842 XMKMF'
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
949 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950 { (exit 1); exit 1; }; }
951 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
952 eval enable_$ac_feature=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
964 -enable-* | --enable-*)
965 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
968 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
969 { (exit 1); exit 1; }; }
970 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
971 eval enable_$ac_feature=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1161 -with-* | --with-*)
1162 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1168 eval with_$ac_package=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid package name: $ac_package" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1177 eval with_$ac_package=no ;;
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) { echo "$as_me: error: unrecognized option: $ac_option
1198 Try \`$0 --help' for more information." >&2
1199 { (exit 1); exit 1; }; }
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1207 { (exit 1); exit 1; }; }
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 esac
1220 done
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 { echo "$as_me: error: missing argument to $ac_option" >&2
1225 { (exit 1); exit 1; }; }
1228 # Be sure to have absolute directory names.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1240 { (exit 1); exit 1; }; }
1241 done
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1255 If a cross compiler is detected then cross compile mode will be used." >&2
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 { echo "$as_me: error: Working directory cannot be determined" >&2
1271 { (exit 1); exit 1; }; }
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 { echo "$as_me: error: pwd does not report name of working directory" >&2
1274 { (exit 1); exit 1; }; }
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$0" ||
1282 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$0" : 'X\(//\)[^/]' \| \
1284 X"$0" : 'X\(//\)$' \| \
1285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1286 echo X"$0" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1295 /^X\(\/\/\)$/{
1296 s//\1/
1299 /^X\(\/\).*/{
1300 s//\1/
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1308 else
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1314 { (exit 1); exit 1; }; }
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1319 { (exit 1); exit 1; }; }
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures this package to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1400 cat <<\_ACEOF
1402 X features:
1403 --x-includes=DIR X include files are in DIR
1404 --x-libraries=DIR X library files are in DIR
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1412 if test -n "$ac_init_help"; then
1414 cat <<\_ACEOF
1416 Optional Features:
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-build-type=TYPE
1420 Select the build type. Available types are:
1421 personal, nightly, snapshot, milestone, release. Do
1422 NOT use this option unless you know what you are
1423 doing! (default=personal)
1424 --enable-debug=list Enable different types of debug. Commas or
1425 whitespaces can be used to separate the items in the
1426 list. Available types of debug are: all, none,
1427 messages, stack, mungwall, modules, symbols. If no
1428 list is provided then "all" is assumed.
1429 (default=none)
1430 --enable-crosstools Build cross-compiler toolchains if necessary
1431 (default=no).
1432 --enable-distcc Use distcc as a front end to the compiler
1433 (default=no).
1434 --enable-ccache Use ccache as a front end to the compiler
1435 (default=no).
1436 --enable-target-variant=NAME
1437 Enable a specific target variant(default=none)
1438 --enable-includes=dir Alternative system include directory
1439 --enable-palm-debug-hack
1440 Enable palm debug output hack in palm native
1441 (default=no)
1442 --enable-nesting-supervisor
1443 Enable nesting supervisor support in unix
1444 (default=no)
1445 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1446 --enable-x11-shm use X11 shared memory (default=auto)
1447 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1448 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1449 --disable-sdltest Do not try to compile and run a test SDL program
1450 --enable-dbus Enable DBUS support via dbus.library (default=no)
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-gcc-version=VERSION
1456 Use gcc-VERSION for building AROS
1457 --with-optimization=FLAGS
1458 Use optimization flags FLAGS (default=-O2).
1459 --with-xcode=PATH Specify XCode path for iOS targets
1460 (default=/Developer).
1461 --with-ios-version=VERSION
1462 Specify minimum supported iOS version (default=2.0).
1463 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1464 --with-portssources=DIR Where to download sourcecode for external ports
1465 --with-bootloader=NAME Use a specific bootloader
1466 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1467 --with-theme=NAME Use a specific GUI Theme
1468 --with-resolution=XRESxYRESxDEPTH
1469 Default resolution of the initial WorkbenchScreen
1470 --with-serial-debug Enable serial debug output in native (default=no)
1471 --with-x use the X Window System
1472 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1473 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CPP C preprocessor
1484 XMKMF Path to xmkmf, Makefile generator for X Window System
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 _ACEOF
1490 ac_status=$?
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" || continue
1497 ac_builddir=.
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 configure
1550 generated by GNU Autoconf 2.61
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1559 cat >config.log <<_ACEOF
1560 This file contains any messages produced by compilers while
1561 running configure, to aid debugging if configure makes a mistake.
1563 It was created by $as_me, which was
1564 generated by GNU Autoconf 2.61. Invocation command line was
1566 $ $0 $@
1568 _ACEOF
1569 exec 5>>config.log
1571 cat <<_ASUNAME
1572 ## --------- ##
1573 ## Platform. ##
1574 ## --------- ##
1576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1585 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1586 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1588 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1589 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1590 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1591 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1593 _ASUNAME
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 echo "PATH: $as_dir"
1601 done
1602 IFS=$as_save_IFS
1604 } >&5
1606 cat >&5 <<_ACEOF
1609 ## ----------- ##
1610 ## Core tests. ##
1611 ## ----------- ##
1613 _ACEOF
1616 # Keep a trace of the command line.
1617 # Strip out --no-create and --no-recursion so they do not pile up.
1618 # Strip out --silent because we don't want to record it for future runs.
1619 # Also quote any args containing shell meta-characters.
1620 # Make two passes to allow for proper duplicate-argument suppression.
1621 ac_configure_args=
1622 ac_configure_args0=
1623 ac_configure_args1=
1624 ac_must_keep_next=false
1625 for ac_pass in 1 2
1627 for ac_arg
1629 case $ac_arg in
1630 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632 | -silent | --silent | --silen | --sile | --sil)
1633 continue ;;
1634 *\'*)
1635 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1636 esac
1637 case $ac_pass in
1638 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1640 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1641 if test $ac_must_keep_next = true; then
1642 ac_must_keep_next=false # Got value, back to normal.
1643 else
1644 case $ac_arg in
1645 *=* | --config-cache | -C | -disable-* | --disable-* \
1646 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1647 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1648 | -with-* | --with-* | -without-* | --without-* | --x)
1649 case "$ac_configure_args0 " in
1650 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651 esac
1653 -* ) ac_must_keep_next=true ;;
1654 esac
1656 ac_configure_args="$ac_configure_args '$ac_arg'"
1658 esac
1659 done
1660 done
1661 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1664 # When interrupted or exit'd, cleanup temporary files, and complete
1665 # config.log. We remove comments because anyway the quotes in there
1666 # would cause problems or look ugly.
1667 # WARNING: Use '\'' to represent an apostrophe within the trap.
1668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1669 trap 'exit_status=$?
1670 # Save into config.log some information that might help in debugging.
1672 echo
1674 cat <<\_ASBOX
1675 ## ---------------- ##
1676 ## Cache variables. ##
1677 ## ---------------- ##
1678 _ASBOX
1679 echo
1680 # The following way of writing the cache mishandles newlines in values,
1682 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1683 eval ac_val=\$$ac_var
1684 case $ac_val in #(
1685 *${as_nl}*)
1686 case $ac_var in #(
1687 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1688 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1689 esac
1690 case $ac_var in #(
1691 _ | IFS | as_nl) ;; #(
1692 *) $as_unset $ac_var ;;
1693 esac ;;
1694 esac
1695 done
1696 (set) 2>&1 |
1697 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698 *${as_nl}ac_space=\ *)
1699 sed -n \
1700 "s/'\''/'\''\\\\'\'''\''/g;
1701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702 ;; #(
1704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 esac |
1707 sort
1709 echo
1711 cat <<\_ASBOX
1712 ## ----------------- ##
1713 ## Output variables. ##
1714 ## ----------------- ##
1715 _ASBOX
1716 echo
1717 for ac_var in $ac_subst_vars
1719 eval ac_val=\$$ac_var
1720 case $ac_val in
1721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 esac
1723 echo "$ac_var='\''$ac_val'\''"
1724 done | sort
1725 echo
1727 if test -n "$ac_subst_files"; then
1728 cat <<\_ASBOX
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_files
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1745 if test -s confdefs.h; then
1746 cat <<\_ASBOX
1747 ## ----------- ##
1748 ## confdefs.h. ##
1749 ## ----------- ##
1750 _ASBOX
1751 echo
1752 cat confdefs.h
1753 echo
1755 test "$ac_signal" != 0 &&
1756 echo "$as_me: caught signal $ac_signal"
1757 echo "$as_me: exit $exit_status"
1758 } >&5
1759 rm -f core *.core core.conftest.* &&
1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761 exit $exit_status
1763 for ac_signal in 1 2 13 15; do
1764 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 done
1766 ac_signal=0
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1771 # Predefined preprocessor variables.
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 _ACEOF
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 _ACEOF
1798 # Let the site file select an alternate cache file if it wants to.
1799 # Prefer explicitly selected file to automatically selected ones.
1800 if test -n "$CONFIG_SITE"; then
1801 set x "$CONFIG_SITE"
1802 elif test "x$prefix" != xNONE; then
1803 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1804 else
1805 set x "$ac_default_prefix/share/config.site" \
1806 "$ac_default_prefix/etc/config.site"
1808 shift
1809 for ac_site_file
1811 if test -r "$ac_site_file"; then
1812 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1813 echo "$as_me: loading site script $ac_site_file" >&6;}
1814 sed 's/^/| /' "$ac_site_file" >&5
1815 . "$ac_site_file"
1817 done
1819 if test -r "$cache_file"; then
1820 # Some versions of bash will fail to source /dev/null (special
1821 # files actually), so we avoid doing that.
1822 if test -f "$cache_file"; then
1823 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1824 echo "$as_me: loading cache $cache_file" >&6;}
1825 case $cache_file in
1826 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827 *) . "./$cache_file";;
1828 esac
1830 else
1831 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1832 echo "$as_me: creating cache $cache_file" >&6;}
1833 >$cache_file
1836 # Check that the precious variables saved in the cache have kept the same
1837 # value.
1838 ac_cache_corrupted=false
1839 for ac_var in $ac_precious_vars; do
1840 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841 eval ac_new_set=\$ac_env_${ac_var}_set
1842 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843 eval ac_new_val=\$ac_env_${ac_var}_value
1844 case $ac_old_set,$ac_new_set in
1845 set,)
1846 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1847 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1849 ,set)
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1853 ,);;
1855 if test "x$ac_old_val" != "x$ac_new_val"; then
1856 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1857 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1858 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1859 echo "$as_me: former value: $ac_old_val" >&2;}
1860 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1861 echo "$as_me: current value: $ac_new_val" >&2;}
1862 ac_cache_corrupted=:
1863 fi;;
1864 esac
1865 # Pass precious variables to config.status.
1866 if test "$ac_new_set" = set; then
1867 case $ac_new_val in
1868 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 *) ac_arg=$ac_var=$ac_new_val ;;
1870 esac
1871 case " $ac_configure_args " in
1872 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1873 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874 esac
1876 done
1877 if $ac_cache_corrupted; then
1878 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1879 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1880 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1881 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1882 { (exit 1); exit 1; }; }
1901 ac_ext=c
1902 ac_cpp='$CPP $CPPFLAGS'
1903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909 ac_aux_dir=
1910 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1911 if test -f "$ac_dir/install-sh"; then
1912 ac_aux_dir=$ac_dir
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1914 break
1915 elif test -f "$ac_dir/install.sh"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1918 break
1919 elif test -f "$ac_dir/shtool"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1922 break
1924 done
1925 if test -z "$ac_aux_dir"; then
1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941 # Check what host we are running on.
1942 # If a target is not suggested, we use this one.
1943 # Note that what we call a target, Autoconf calls a host.
1944 # Make sure we can run config.sub.
1945 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1946 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1947 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1948 { (exit 1); exit 1; }; }
1950 { echo "$as_me:$LINENO: checking build system type" >&5
1951 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1952 if test "${ac_cv_build+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955 ac_build_alias=$build_alias
1956 test "x$ac_build_alias" = x &&
1957 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1958 test "x$ac_build_alias" = x &&
1959 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1960 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1961 { (exit 1); exit 1; }; }
1962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1963 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1964 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1965 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1969 echo "${ECHO_T}$ac_cv_build" >&6; }
1970 case $ac_cv_build in
1971 *-*-*) ;;
1972 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1973 echo "$as_me: error: invalid value of canonical build" >&2;}
1974 { (exit 1); exit 1; }; };;
1975 esac
1976 build=$ac_cv_build
1977 ac_save_IFS=$IFS; IFS='-'
1978 set x $ac_cv_build
1979 shift
1980 build_cpu=$1
1981 build_vendor=$2
1982 shift; shift
1983 # Remember, the first character of IFS is used to create $*,
1984 # except with old shells:
1985 build_os=$*
1986 IFS=$ac_save_IFS
1987 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1990 { echo "$as_me:$LINENO: checking host system type" >&5
1991 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1992 if test "${ac_cv_host+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995 if test "x$host_alias" = x; then
1996 ac_cv_host=$ac_cv_build
1997 else
1998 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2001 { (exit 1); exit 1; }; }
2005 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2006 echo "${ECHO_T}$ac_cv_host" >&6; }
2007 case $ac_cv_host in
2008 *-*-*) ;;
2009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2010 echo "$as_me: error: invalid value of canonical host" >&2;}
2011 { (exit 1); exit 1; }; };;
2012 esac
2013 host=$ac_cv_host
2014 ac_save_IFS=$IFS; IFS='-'
2015 set x $ac_cv_host
2016 shift
2017 host_cpu=$1
2018 host_vendor=$2
2019 shift; shift
2020 # Remember, the first character of IFS is used to create $*,
2021 # except with old shells:
2022 host_os=$*
2023 IFS=$ac_save_IFS
2024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2028 # The AROS target is slightly different to the normal GNU style
2029 # format. We don't have the middle part, and we reverse the order
2030 # of the $(CPU) and $(OS) bits.
2032 # Don't strip the version of the target yet, it might be
2033 # useful on some systems.
2035 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2036 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2038 if test "$target" = "NONE" ; then
2039 target=$host_os-$host_cpu
2040 cross_compile=no
2041 else
2042 if test "$target" = "" ; then
2043 target=$host_os-$host_cpu
2044 cross_compile=no
2045 else
2046 cross_compile=yes
2049 { echo "$as_me:$LINENO: result: $target" >&5
2050 echo "${ECHO_T}$target" >&6; }
2052 if test "$host_os" = "mingw32" ; then
2053 PWDCMD="pwd -W"
2056 #don't know where else to put this...
2057 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2058 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2059 AROS_BUILDDIR=`${PWDCMD-pwd}`
2060 AROS_BUILDDIR_UNIX=${PWD}
2061 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2062 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2064 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2065 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2066 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2067 SRCDIR=${srcpwd}
2068 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2069 echo "${ECHO_T}$SRCDIR" >&6; }
2071 # Parse the target field into something useful.
2073 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2074 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2077 aros_default_wbwidth=800
2078 aros_default_wbheight=600
2079 aros_default_wbdepth=4
2082 # The first step is to find the host binaries.
2083 # Check for a compiler.
2084 ac_ext=c
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089 if test -n "$ac_tool_prefix"; then
2090 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2111 done
2112 done
2113 IFS=$as_save_IFS
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119 { echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6; }
2121 else
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2128 if test -z "$ac_cv_prog_CC"; then
2129 ac_ct_CC=$CC
2130 # Extract the first word of "gcc", so it can be a program name with args.
2131 set dummy gcc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 if test -n "$ac_ct_CC"; then
2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_ac_ct_CC="gcc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2151 done
2152 done
2153 IFS=$as_save_IFS
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6; }
2161 else
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2166 if test "x$ac_ct_CC" = x; then
2167 CC=""
2168 else
2169 case $cross_compiling:$ac_tool_warned in
2170 yes:)
2171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2172 whose name does not start with the host triplet. If you think this
2173 configuration is useful to you, please write to autoconf@gnu.org." >&5
2174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet. If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2177 ac_tool_warned=yes ;;
2178 esac
2179 CC=$ac_ct_CC
2181 else
2182 CC="$ac_cv_prog_CC"
2185 if test -z "$CC"; then
2186 if test -n "$ac_tool_prefix"; then
2187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}cc; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 if test -n "$CC"; then
2195 ac_cv_prog_CC="$CC" # Let the user override the test.
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_CC="${ac_tool_prefix}cc"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 break 2
2208 done
2209 done
2210 IFS=$as_save_IFS
2214 CC=$ac_cv_prog_CC
2215 if test -n "$CC"; then
2216 { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2218 else
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2226 if test -z "$CC"; then
2227 # Extract the first word of "cc", so it can be a program name with args.
2228 set dummy cc; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 ac_prog_rejected=no
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2246 ac_prog_rejected=yes
2247 continue
2249 ac_cv_prog_CC="cc"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2253 done
2254 done
2255 IFS=$as_save_IFS
2257 if test $ac_prog_rejected = yes; then
2258 # We found a bogon in the path, so make sure we never use it.
2259 set dummy $ac_cv_prog_CC
2260 shift
2261 if test $# != 0; then
2262 # We chose a different compiler from the bogus one.
2263 # However, it has the same basename, so the bogon will be chosen
2264 # first if we set CC to just the basename; use the full file name.
2265 shift
2266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2271 CC=$ac_cv_prog_CC
2272 if test -n "$CC"; then
2273 { echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6; }
2275 else
2276 { echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6; }
2282 if test -z "$CC"; then
2283 if test -n "$ac_tool_prefix"; then
2284 for ac_prog in cl.exe
2286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2307 done
2308 done
2309 IFS=$as_save_IFS
2313 CC=$ac_cv_prog_CC
2314 if test -n "$CC"; then
2315 { echo "$as_me:$LINENO: result: $CC" >&5
2316 echo "${ECHO_T}$CC" >&6; }
2317 else
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2323 test -n "$CC" && break
2324 done
2326 if test -z "$CC"; then
2327 ac_ct_CC=$CC
2328 for ac_prog in cl.exe
2330 # Extract the first word of "$ac_prog", so it can be a program name with args.
2331 set dummy $ac_prog; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_ac_ct_CC="$ac_prog"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2351 done
2352 done
2353 IFS=$as_save_IFS
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 echo "${ECHO_T}$ac_ct_CC" >&6; }
2361 else
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2367 test -n "$ac_ct_CC" && break
2368 done
2370 if test "x$ac_ct_CC" = x; then
2371 CC=""
2372 else
2373 case $cross_compiling:$ac_tool_warned in
2374 yes:)
2375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2376 whose name does not start with the host triplet. If you think this
2377 configuration is useful to you, please write to autoconf@gnu.org." >&5
2378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet. If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2381 ac_tool_warned=yes ;;
2382 esac
2383 CC=$ac_ct_CC
2390 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: no acceptable C compiler found in \$PATH
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2396 # Provide some information about the compiler.
2397 echo "$as_me:$LINENO: checking for C compiler version" >&5
2398 ac_compiler=`set X $ac_compile; echo $2`
2399 { (ac_try="$ac_compiler --version >&5"
2400 case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compiler --version >&5") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }
2409 { (ac_try="$ac_compiler -v >&5"
2410 case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413 esac
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_compiler -v >&5") 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }
2419 { (ac_try="$ac_compiler -V >&5"
2420 case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compiler -V >&5") 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }
2430 cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h. */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2438 main ()
2442 return 0;
2444 _ACEOF
2445 ac_clean_files_save=$ac_clean_files
2446 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2447 # Try to create an executable without -o first, disregard a.out.
2448 # It will help us diagnose broken compilers, and finding out an intuition
2449 # of exeext.
2450 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2451 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2452 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2454 # List of possible output files, starting from the most likely.
2455 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2456 # only as a last resort. b.out is created by i960 compilers.
2457 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2459 # The IRIX 6 linker writes into existing files which may not be
2460 # executable, retaining their permissions. Remove them first so a
2461 # subsequent execution test works.
2462 ac_rmfiles=
2463 for ac_file in $ac_files
2465 case $ac_file in
2466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2467 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2468 esac
2469 done
2470 rm -f $ac_rmfiles
2472 if { (ac_try="$ac_link_default"
2473 case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_link_default") 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2485 # so that the user can short-circuit this test for compilers unknown to
2486 # Autoconf.
2487 for ac_file in $ac_files ''
2489 test -f "$ac_file" || continue
2490 case $ac_file in
2491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2493 [ab].out )
2494 # We found the default executable, but exeext='' is most
2495 # certainly right.
2496 break;;
2497 *.* )
2498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2499 then :; else
2500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 # We set ac_cv_exeext here because the later test for it is not
2503 # safe: cross compilers may not add the suffix if given an `-o'
2504 # argument, so we may need to know it at that point already.
2505 # Even if this section looks crufty: it has the advantage of
2506 # actually working.
2507 break;;
2509 break;;
2510 esac
2511 done
2512 test "$ac_cv_exeext" = no && ac_cv_exeext=
2514 else
2515 ac_file=''
2518 { echo "$as_me:$LINENO: result: $ac_file" >&5
2519 echo "${ECHO_T}$ac_file" >&6; }
2520 if test -z "$ac_file"; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&2;}
2528 { (exit 77); exit 77; }; }
2531 ac_exeext=$ac_cv_exeext
2533 # Check that the compiler produces executables we can run. If not, either
2534 # the compiler is broken, or we cross compile.
2535 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2536 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2537 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2538 # If not cross compiling, check that we can run a simple program.
2539 if test "$cross_compiling" != yes; then
2540 if { ac_try='./$ac_file'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 cross_compiling=no
2551 else
2552 if test "$cross_compiling" = maybe; then
2553 cross_compiling=yes
2554 else
2555 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556 If you meant to cross compile, use \`--host'.
2557 See \`config.log' for more details." >&5
2558 echo "$as_me: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2565 { echo "$as_me:$LINENO: result: yes" >&5
2566 echo "${ECHO_T}yes" >&6; }
2568 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2569 ac_clean_files=$ac_clean_files_save
2570 # Check that the compiler produces executables we can run. If not, either
2571 # the compiler is broken, or we cross compile.
2572 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2574 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575 echo "${ECHO_T}$cross_compiling" >&6; }
2577 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2579 if { (ac_try="$ac_link"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_link") 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; then
2589 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2590 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2591 # work properly (i.e., refer to `conftest.exe'), while it won't with
2592 # `rm'.
2593 for ac_file in conftest.exe conftest conftest.*; do
2594 test -f "$ac_file" || continue
2595 case $ac_file in
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2597 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2598 break;;
2599 * ) break;;
2600 esac
2601 done
2602 else
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2610 rm -f conftest$ac_cv_exeext
2611 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2612 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2614 rm -f conftest.$ac_ext
2615 EXEEXT=$ac_cv_exeext
2616 ac_exeext=$EXEEXT
2617 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2618 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2619 if test "${ac_cv_objext+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2630 main ()
2634 return 0;
2636 _ACEOF
2637 rm -f conftest.o conftest.obj
2638 if { (ac_try="$ac_compile"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_compile") 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 for ac_file in conftest.o conftest.obj conftest.*; do
2649 test -f "$ac_file" || continue;
2650 case $ac_file in
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2653 break;;
2654 esac
2655 done
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2663 See \`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
2667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2669 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2670 echo "${ECHO_T}$ac_cv_objext" >&6; }
2671 OBJEXT=$ac_cv_objext
2672 ac_objext=$OBJEXT
2673 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2674 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 main ()
2688 #ifndef __GNUC__
2689 choke me
2690 #endif
2693 return 0;
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2713 ac_compiler_gnu=yes
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 ac_compiler_gnu=no
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2725 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2726 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2727 GCC=`test $ac_compiler_gnu = yes && echo yes`
2728 ac_test_CFLAGS=${CFLAGS+set}
2729 ac_save_CFLAGS=$CFLAGS
2730 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2731 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_cc_g+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 ac_save_c_werror_flag=$ac_c_werror_flag
2736 ac_c_werror_flag=yes
2737 ac_cv_prog_cc_g=no
2738 CFLAGS="-g"
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h. */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2747 main ()
2751 return 0;
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (ac_try="$ac_compile"
2756 case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compile") 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } && {
2768 test -z "$ac_c_werror_flag" ||
2769 test ! -s conftest.err
2770 } && test -s conftest.$ac_objext; then
2771 ac_cv_prog_cc_g=yes
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2776 CFLAGS=""
2777 cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h. */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2785 main ()
2789 return 0;
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (ac_try="$ac_compile"
2794 case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_compile") 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } && {
2806 test -z "$ac_c_werror_flag" ||
2807 test ! -s conftest.err
2808 } && test -s conftest.$ac_objext; then
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 ac_c_werror_flag=$ac_save_c_werror_flag
2815 CFLAGS="-g"
2816 cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h. */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2824 main ()
2828 return 0;
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2848 ac_cv_prog_cc_g=yes
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 ac_c_werror_flag=$ac_save_c_werror_flag
2865 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2866 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2867 if test "$ac_test_CFLAGS" = set; then
2868 CFLAGS=$ac_save_CFLAGS
2869 elif test $ac_cv_prog_cc_g = yes; then
2870 if test "$GCC" = yes; then
2871 CFLAGS="-g -O2"
2872 else
2873 CFLAGS="-g"
2875 else
2876 if test "$GCC" = yes; then
2877 CFLAGS="-O2"
2878 else
2879 CFLAGS=
2882 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2883 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_cc_c89+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 ac_cv_prog_cc_c89=no
2888 ac_save_CC=$CC
2889 cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h. */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2895 #include <stdarg.h>
2896 #include <stdio.h>
2897 #include <sys/types.h>
2898 #include <sys/stat.h>
2899 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2900 struct buf { int x; };
2901 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2902 static char *e (p, i)
2903 char **p;
2904 int i;
2906 return p[i];
2908 static char *f (char * (*g) (char **, int), char **p, ...)
2910 char *s;
2911 va_list v;
2912 va_start (v,p);
2913 s = g (p, va_arg (v,int));
2914 va_end (v);
2915 return s;
2918 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2919 function prototypes and stuff, but not '\xHH' hex character constants.
2920 These don't provoke an error unfortunately, instead are silently treated
2921 as 'x'. The following induces an error, until -std is added to get
2922 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2923 array size at least. It's necessary to write '\x00'==0 to get something
2924 that's true only with -std. */
2925 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2927 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2928 inside strings and character constants. */
2929 #define FOO(x) 'x'
2930 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2932 int test (int i, double x);
2933 struct s1 {int (*f) (int a);};
2934 struct s2 {int (*f) (double a);};
2935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2936 int argc;
2937 char **argv;
2939 main ()
2941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2943 return 0;
2945 _ACEOF
2946 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2947 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2949 CC="$ac_save_CC $ac_arg"
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && {
2964 test -z "$ac_c_werror_flag" ||
2965 test ! -s conftest.err
2966 } && test -s conftest.$ac_objext; then
2967 ac_cv_prog_cc_c89=$ac_arg
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f core conftest.err conftest.$ac_objext
2976 test "x$ac_cv_prog_cc_c89" != "xno" && break
2977 done
2978 rm -f conftest.$ac_ext
2979 CC=$ac_save_CC
2982 # AC_CACHE_VAL
2983 case "x$ac_cv_prog_cc_c89" in
2985 { echo "$as_me:$LINENO: result: none needed" >&5
2986 echo "${ECHO_T}none needed" >&6; } ;;
2987 xno)
2988 { echo "$as_me:$LINENO: result: unsupported" >&5
2989 echo "${ECHO_T}unsupported" >&6; } ;;
2991 CC="$CC $ac_cv_prog_cc_c89"
2992 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2993 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2994 esac
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 case $ac_cv_prog_cc_stdc in
3004 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3005 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3006 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_cc_c99+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 ac_cv_prog_cc_c99=no
3011 ac_save_CC=$CC
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018 #include <stdarg.h>
3019 #include <stdbool.h>
3020 #include <stdlib.h>
3021 #include <wchar.h>
3022 #include <stdio.h>
3024 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3025 #define debug(...) fprintf (stderr, __VA_ARGS__)
3026 #define showlist(...) puts (#__VA_ARGS__)
3027 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3028 static void
3029 test_varargs_macros (void)
3031 int x = 1234;
3032 int y = 5678;
3033 debug ("Flag");
3034 debug ("X = %d\n", x);
3035 showlist (The first, second, and third items.);
3036 report (x>y, "x is %d but y is %d", x, y);
3039 // Check long long types.
3040 #define BIG64 18446744073709551615ull
3041 #define BIG32 4294967295ul
3042 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3043 #if !BIG_OK
3044 your preprocessor is broken;
3045 #endif
3046 #if BIG_OK
3047 #else
3048 your preprocessor is broken;
3049 #endif
3050 static long long int bignum = -9223372036854775807LL;
3051 static unsigned long long int ubignum = BIG64;
3053 struct incomplete_array
3055 int datasize;
3056 double data[];
3059 struct named_init {
3060 int number;
3061 const wchar_t *name;
3062 double average;
3065 typedef const char *ccp;
3067 static inline int
3068 test_restrict (ccp restrict text)
3070 // See if C++-style comments work.
3071 // Iterate through items via the restricted pointer.
3072 // Also check for declarations in for loops.
3073 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3074 continue;
3075 return 0;
3078 // Check varargs and va_copy.
3079 static void
3080 test_varargs (const char *format, ...)
3082 va_list args;
3083 va_start (args, format);
3084 va_list args_copy;
3085 va_copy (args_copy, args);
3087 const char *str;
3088 int number;
3089 float fnumber;
3091 while (*format)
3093 switch (*format++)
3095 case 's': // string
3096 str = va_arg (args_copy, const char *);
3097 break;
3098 case 'd': // int
3099 number = va_arg (args_copy, int);
3100 break;
3101 case 'f': // float
3102 fnumber = va_arg (args_copy, double);
3103 break;
3104 default:
3105 break;
3108 va_end (args_copy);
3109 va_end (args);
3113 main ()
3116 // Check bool.
3117 _Bool success = false;
3119 // Check restrict.
3120 if (test_restrict ("String literal") == 0)
3121 success = true;
3122 char *restrict newvar = "Another string";
3124 // Check varargs.
3125 test_varargs ("s, d' f .", "string", 65, 34.234);
3126 test_varargs_macros ();
3128 // Check flexible array members.
3129 struct incomplete_array *ia =
3130 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3131 ia->datasize = 10;
3132 for (int i = 0; i < ia->datasize; ++i)
3133 ia->data[i] = i * 1.234;
3135 // Check named initializers.
3136 struct named_init ni = {
3137 .number = 34,
3138 .name = L"Test wide string",
3139 .average = 543.34343,
3142 ni.number = 58;
3144 int dynamic_array[ni.number];
3145 dynamic_array[ni.number - 1] = 543;
3147 // work around unused variable warnings
3148 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3149 || dynamic_array[ni.number - 1] != 543);
3152 return 0;
3154 _ACEOF
3155 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3157 CC="$ac_save_CC $ac_arg"
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_cv_prog_cc_c99=$ac_arg
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext
3184 test "x$ac_cv_prog_cc_c99" != "xno" && break
3185 done
3186 rm -f conftest.$ac_ext
3187 CC=$ac_save_CC
3190 # AC_CACHE_VAL
3191 case "x$ac_cv_prog_cc_c99" in
3193 { echo "$as_me:$LINENO: result: none needed" >&5
3194 echo "${ECHO_T}none needed" >&6; } ;;
3195 xno)
3196 { echo "$as_me:$LINENO: result: unsupported" >&5
3197 echo "${ECHO_T}unsupported" >&6; } ;;
3199 CC="$CC $ac_cv_prog_cc_c99"
3200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3202 esac
3203 if test "x$ac_cv_prog_cc_c99" != xno; then
3204 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3205 else
3206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_c89+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 ac_cv_prog_cc_c89=no
3212 ac_save_CC=$CC
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <stdarg.h>
3220 #include <stdio.h>
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3227 char **p;
3228 int i;
3230 return p[i];
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3234 char *s;
3235 va_list v;
3236 va_start (v,p);
3237 s = g (p, va_arg (v,int));
3238 va_end (v);
3239 return s;
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
3245 as 'x'. The following induces an error, until -std is added to get
3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
3248 that's true only with -std. */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3253 #define FOO(x) 'x'
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260 int argc;
3261 char **argv;
3263 main ()
3265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3267 return 0;
3269 _ACEOF
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 CC="$ac_save_CC $ac_arg"
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
3291 ac_cv_prog_cc_c89=$ac_arg
3292 else
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3299 rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3301 done
3302 rm -f conftest.$ac_ext
3303 CC=$ac_save_CC
3306 # AC_CACHE_VAL
3307 case "x$ac_cv_prog_cc_c89" in
3309 { echo "$as_me:$LINENO: result: none needed" >&5
3310 echo "${ECHO_T}none needed" >&6; } ;;
3311 xno)
3312 { echo "$as_me:$LINENO: result: unsupported" >&5
3313 echo "${ECHO_T}unsupported" >&6; } ;;
3315 CC="$CC $ac_cv_prog_cc_c89"
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3318 esac
3319 if test "x$ac_cv_prog_cc_c89" != xno; then
3320 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3321 else
3322 ac_cv_prog_cc_stdc=no
3329 esac
3330 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3331 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 case $ac_cv_prog_cc_stdc in
3337 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3339 '') { echo "$as_me:$LINENO: result: none needed" >&5
3340 echo "${ECHO_T}none needed" >&6; } ;;
3341 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3343 esac
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3353 # On Suns, sometimes $CPP names a directory.
3354 if test -n "$CPP" && test -d "$CPP"; then
3355 CPP=
3357 if test -z "$CPP"; then
3358 if test "${ac_cv_prog_CPP+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 # Double quotes because CPP needs to be expanded
3362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364 ac_preproc_ok=false
3365 for ac_c_preproc_warn_flag in '' yes
3367 # Use a header file that comes with gcc, so configuring glibc
3368 # with a fresh cross-compiler works.
3369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3370 # <limits.h> exists even on freestanding compilers.
3371 # On the NeXT, cc -E runs the code through the compiler's parser,
3372 # not just through cpp. "Syntax error" is here to catch this case.
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #ifdef __STDC__
3380 # include <limits.h>
3381 #else
3382 # include <assert.h>
3383 #endif
3384 Syntax error
3385 _ACEOF
3386 if { (ac_try="$ac_cpp conftest.$ac_ext"
3387 case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null && {
3399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 }; then
3403 else
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 # Broken: fails on valid input.
3408 continue
3411 rm -f conftest.err conftest.$ac_ext
3413 # OK, works on sane cases. Now check whether nonexistent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <ac_nonexistent.h>
3422 _ACEOF
3423 if { (ac_try="$ac_cpp conftest.$ac_ext"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } >/dev/null && {
3436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 }; then
3439 # Broken: success on invalid input.
3440 continue
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 # Passes both tests.
3446 ac_preproc_ok=:
3447 break
3450 rm -f conftest.err conftest.$ac_ext
3452 done
3453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3454 rm -f conftest.err conftest.$ac_ext
3455 if $ac_preproc_ok; then
3456 break
3459 done
3460 ac_cv_prog_CPP=$CPP
3463 CPP=$ac_cv_prog_CPP
3464 else
3465 ac_cv_prog_CPP=$CPP
3467 { echo "$as_me:$LINENO: result: $CPP" >&5
3468 echo "${ECHO_T}$CPP" >&6; }
3469 ac_preproc_ok=false
3470 for ac_c_preproc_warn_flag in '' yes
3472 # Use a header file that comes with gcc, so configuring glibc
3473 # with a fresh cross-compiler works.
3474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475 # <limits.h> exists even on freestanding compilers.
3476 # On the NeXT, cc -E runs the code through the compiler's parser,
3477 # not just through cpp. "Syntax error" is here to catch this case.
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #ifdef __STDC__
3485 # include <limits.h>
3486 #else
3487 # include <assert.h>
3488 #endif
3489 Syntax error
3490 _ACEOF
3491 if { (ac_try="$ac_cpp conftest.$ac_ext"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } >/dev/null && {
3504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3506 }; then
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 # Broken: fails on valid input.
3513 continue
3516 rm -f conftest.err conftest.$ac_ext
3518 # OK, works on sane cases. Now check whether nonexistent headers
3519 # can be detected and how.
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <ac_nonexistent.h>
3527 _ACEOF
3528 if { (ac_try="$ac_cpp conftest.$ac_ext"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } >/dev/null && {
3541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3542 test ! -s conftest.err
3543 }; then
3544 # Broken: success on invalid input.
3545 continue
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 # Passes both tests.
3551 ac_preproc_ok=:
3552 break
3555 rm -f conftest.err conftest.$ac_ext
3557 done
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3562 else
3563 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&5
3565 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&2;}
3567 { (exit 1); exit 1; }; }
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 # Check for a compatible awk
3578 for ac_prog in gawk nawk
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_AWK+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -n "$AWK"; then
3588 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_AWK="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 AWK=$ac_cv_prog_AWK
3608 if test -n "$AWK"; then
3609 { echo "$as_me:$LINENO: result: $AWK" >&5
3610 echo "${ECHO_T}$AWK" >&6; }
3611 else
3612 { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3617 test -n "$AWK" && break
3618 done
3620 if test "$AWK" = ""; then
3621 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3622 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3623 { (exit 1); exit 1; }; }
3625 # Extract the first word of "mmake", so it can be a program name with args.
3626 set dummy mmake; ac_word=$2
3627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3629 if test "${ac_cv_prog_MMAKE+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632 if test -n "$MMAKE"; then
3633 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_MMAKE="mmake "
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3646 done
3647 done
3648 IFS=$as_save_IFS
3652 MMAKE=$ac_cv_prog_MMAKE
3653 if test -n "$MMAKE"; then
3654 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3655 echo "${ECHO_T}$MMAKE" >&6; }
3656 else
3657 { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3663 # Perform some default variable assignments. Note all of these will be
3664 # Regenerated from the script, so there is no need to cache them.
3666 aros_host_cc="$CC"
3667 if test "$GCC" = "yes"; then
3668 aros_gcc_ld=`$CC -print-prog-name=ld`
3669 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3670 set dummy `basename $aros_gcc_ld`; ac_word=$2
3671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 case $aros_host_ld in
3677 [\\/]* | ?:[\\/]*)
3678 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in `dirname $aros_gcc_ld`
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2
3692 done
3693 done
3694 IFS=$as_save_IFS
3697 esac
3699 aros_host_ld=$ac_cv_path_aros_host_ld
3700 if test -n "$aros_host_ld"; then
3701 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3702 echo "${ECHO_T}$aros_host_ld" >&6; }
3703 else
3704 { echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6; }
3710 if test "$aros_host_ld" = ""; then
3711 # Extract the first word of "ld", so it can be a program name with args.
3712 set dummy ld; ac_word=$2
3713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3715 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 case $aros_host_ld in
3719 [\\/]* | ?:[\\/]*)
3720 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3734 done
3735 done
3736 IFS=$as_save_IFS
3739 esac
3741 aros_host_ld=$ac_cv_path_aros_host_ld
3742 if test -n "$aros_host_ld"; then
3743 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3744 echo "${ECHO_T}$aros_host_ld" >&6; }
3745 else
3746 { echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6; }
3752 if test "$aros_host_ld" = ""; then
3753 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3754 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3755 { (exit 1); exit 1; }; }
3757 aros_host_make="make"
3758 aros_host_cflags=$CFLAGS
3759 aros_host_ldflags=$LDFLAGS
3760 aros_host_debug="-g -O0"
3761 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3762 aros_host_mkargs="--no-print-directory"
3763 aros_host_incl="/usr/include"
3764 aros_host_exe_suffix="$EXEEXT"
3765 aros_host_lib_suffix=""
3767 for ac_prog in aclocal aclocal19 aclocal-1.9
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy $ac_prog; ac_word=$2
3771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3773 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 if test -n "$aros_host_aclocal"; then
3777 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_aros_host_aclocal="$ac_prog"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3790 done
3791 done
3792 IFS=$as_save_IFS
3796 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3797 if test -n "$aros_host_aclocal"; then
3798 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3799 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3800 else
3801 { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3806 test -n "$aros_host_aclocal" && break
3807 done
3809 for ac_prog in autoconf autoconf259 autoconf253
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3815 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 if test -n "$aros_host_autoconf"; then
3819 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_aros_host_autoconf="$ac_prog"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3832 done
3833 done
3834 IFS=$as_save_IFS
3838 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3839 if test -n "$aros_host_autoconf"; then
3840 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3841 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3842 else
3843 { echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6; }
3848 test -n "$aros_host_autoconf" && break
3849 done
3851 for ac_prog in autoheader autoheader259 autoheader253
3853 # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy $ac_prog; ac_word=$2
3855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3857 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 if test -n "$aros_host_autoheader"; then
3861 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_aros_host_autoheader="$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3876 IFS=$as_save_IFS
3880 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3881 if test -n "$aros_host_autoheader"; then
3882 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3883 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3884 else
3885 { echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6; }
3890 test -n "$aros_host_autoheader" && break
3891 done
3893 for ac_prog in automake automake19 automake-1.9
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy $ac_prog; ac_word=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 if test -n "$aros_host_automake"; then
3903 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 ac_cv_prog_aros_host_automake="$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3916 done
3917 done
3918 IFS=$as_save_IFS
3922 aros_host_automake=$ac_cv_prog_aros_host_automake
3923 if test -n "$aros_host_automake"; then
3924 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3925 echo "${ECHO_T}$aros_host_automake" >&6; }
3926 else
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3932 test -n "$aros_host_automake" && break
3933 done
3936 if test "$aros_host_aclocal" = ""; then
3937 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3938 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3939 { (exit 1); exit 1; }; }
3941 if test "$aros_host_automake" = ""; then
3942 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3943 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3944 { (exit 1); exit 1; }; }
3947 case "$aros_host_cc" in
3948 *gcc*)
3949 aros_host_cc_pipe="-pipe"
3951 icc)
3952 aros_host_cc_pipe=""
3955 aros_host_cc_pipe=""
3957 esac
3959 aros_target_cc_includes=""
3961 # This is the main host configuration section. It is where the host
3962 # can change the values of any variables it needs to change. We do
3963 # not look at anything that compiles to the target yet, we'll get
3964 # to that later.
3966 case "$host_os" in
3967 aros*)
3968 aros_host_arch="aros"
3969 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3970 case "$host_cpu" in
3971 *i?86*)
3972 aros_host_cpu="i386"
3974 *x86_64*)
3975 aros_host_cpu="x86_64"
3977 *powerpc*)
3978 aros_host_cpu="ppc"
3981 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3982 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3983 aros_host_cpu="$host_cpu"
3985 esac
3988 linux*)
3989 aros_host_arch="linux"
3990 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3991 case "$host_cpu" in
3992 *i?86*)
3993 aros_host_cpu="i386"
3995 *x86_64*)
3996 aros_host_cpu="x86_64"
3998 *m68k*)
3999 aros_host_cpu="m68k"
4001 *powerpc*)
4002 aros_host_cpu="ppc"
4004 *arm*)
4005 aros_host_cpu="arm"
4008 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4009 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4010 aros_host_cpu="$host_cpu"
4012 esac
4015 freebsd*)
4016 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4017 aros_host_make="gmake"
4018 aros_host_arch="freebsd"
4019 aros_host_cpu="i386"
4021 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4024 case $host_os in
4025 freebsd[234]*)
4026 aros_object_format="elf_i386"
4030 aros_object_format="elf_i386_fbsd"
4032 esac
4036 darwin*)
4037 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4038 aros_host_arch="darwin"
4039 case "$host_cpu" in
4040 *i?86*)
4041 aros_host_cpu="i386"
4043 *x86_64*)
4044 aros_host_cpu="x86_64"
4046 *powerpc*)
4047 aros_host_cpu="ppc"
4050 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4051 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4052 aros_host_cpu="$host_cpu"
4054 esac
4056 aros_host_ldflags="$aros_host_ldflags -liconv"
4060 dragonfly*)
4061 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4062 aros_host_make="gmake"
4063 aros_host_arch="dragonfly"
4064 case $host_cpu in
4065 *i?86*)
4066 aros_host_cpu="i386"
4068 *amd64*)
4069 aros_host_cpu="x86_64"
4072 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4073 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4074 aros_host_cpu="$host_cpu"
4076 esac
4079 netbsd*)
4080 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4081 aros_host_make="gmake"
4082 aros_host_arch="netbsd"
4083 case "$host_cpu" in
4084 *i?86*)
4085 aros_host_cpu="i386"
4087 *m68k*)
4088 aros_host_cpu="m68k"
4091 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4092 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4093 aros_host_cpu="$host_cpu"
4095 esac
4096 aros_host_lib_suffix=".0.0"
4099 openbsd*)
4100 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4101 aros_host_make="gmake"
4102 aros_host_arch="openbsd"
4103 case "$host_cpu" in
4104 *i?86*)
4105 aros_host_cpu="i386"
4108 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4109 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4110 aros_host_cpu="$host_cpu"
4112 esac
4115 solaris*)
4116 aros_host_arch="solaris"
4117 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4118 case "$host_cpu" in
4119 *i?86*)
4120 aros_host_cpu="i386"
4122 *sparc*)
4123 aros_host_cpu="sparc"
4126 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4127 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4128 aros_host_cpu="$host_cpu"
4130 esac
4133 morphos*)
4134 aros_host_arch="morphos"
4135 aros_host_cpu="ppc"
4138 amiga*)
4139 aros_host_arch="amiga"
4140 SORT="/gg/bin/sort"
4141 TEST="/gg/bin/test"
4142 UNIQ="/gg/bin/uniq"
4143 FOR="for"
4144 TOUCH="/gg/bin/touch"
4145 case "$host_cpu" in
4146 *m68k*)
4147 aros_host_cpu="m68k"
4149 *powerpc*)
4150 aros_host_cpu="ppc"
4153 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4154 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4155 aros_host_cpu="$host_cpu"
4157 esac
4160 cygwin*)
4161 aros_host_arch="cygwin"
4162 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4163 case "$host_cpu" in
4164 *i?86*)
4165 aros_host_cpu="i386"
4168 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4169 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4170 aros_host_cpu="$host_cpu"
4172 esac
4175 mingw32*)
4176 aros_host_arch="mingw32"
4177 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4178 case "$host_cpu" in
4179 *i?86*)
4180 aros_host_cpu="i386"
4183 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4184 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4185 aros_host_cpu="$host_cpu"
4187 esac
4190 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4191 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4192 { (exit 1); exit 1; }; }
4194 esac
4196 # Extract the first word of "ar", so it can be a program name with args.
4197 set dummy ar; ac_word=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 if test -n "$aros_host_ar"; then
4204 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_aros_host_ar="ar cr"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 aros_host_ar=$ac_cv_prog_aros_host_ar
4224 if test -n "$aros_host_ar"; then
4225 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4226 echo "${ECHO_T}$aros_host_ar" >&6; }
4227 else
4228 { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4233 if test "$aros_host_ar" = ""; then
4234 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4235 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4236 { (exit 1); exit 1; }; }
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib; ac_word=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if test -n "$aros_host_ranlib"; then
4246 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_aros_host_ranlib="ranlib "
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4266 if test -n "$aros_host_ranlib"; then
4267 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4268 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4269 else
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4275 if test "$aros_host_ranlib" = ""; then
4276 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4277 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4278 { (exit 1); exit 1; }; }
4280 # Extract the first word of "strip", so it can be a program name with args.
4281 set dummy strip; ac_word=$2
4282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4284 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 if test -n "$aros_host_strip"; then
4288 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_aros_host_strip="strip "
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4303 IFS=$as_save_IFS
4307 aros_host_strip=$ac_cv_prog_aros_host_strip
4308 if test -n "$aros_host_strip"; then
4309 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4310 echo "${ECHO_T}$aros_host_strip" >&6; }
4311 else
4312 { echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6; }
4317 if test "$aros_host_strip" = ""; then
4318 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4319 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4320 { (exit 1); exit 1; }; }
4323 # Extract the first word of "rm", so it can be a program name with args.
4324 set dummy rm; ac_word=$2
4325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4327 if test "${ac_cv_prog_RM+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 if test -n "$RM"; then
4331 ac_cv_prog_RM="$RM" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_RM="rm -rf"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4344 done
4345 done
4346 IFS=$as_save_IFS
4350 RM=$ac_cv_prog_RM
4351 if test -n "$RM"; then
4352 { echo "$as_me:$LINENO: result: $RM" >&5
4353 echo "${ECHO_T}$RM" >&6; }
4354 else
4355 { echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6; }
4360 if test "$RM" = ""; then
4361 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4362 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4363 { (exit 1); exit 1; }; }
4365 # Extract the first word of "cp", so it can be a program name with args.
4366 set dummy cp; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_prog_CP+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 if test -n "$CP"; then
4373 ac_cv_prog_CP="$CP" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_prog_CP="cp "
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4386 done
4387 done
4388 IFS=$as_save_IFS
4392 CP=$ac_cv_prog_CP
4393 if test -n "$CP"; then
4394 { echo "$as_me:$LINENO: result: $CP" >&5
4395 echo "${ECHO_T}$CP" >&6; }
4396 else
4397 { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4402 if test "$CP" = ""; then
4403 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4404 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4405 { (exit 1); exit 1; }; }
4407 # Extract the first word of "mv", so it can be a program name with args.
4408 set dummy mv; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_MV+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 if test -n "$MV"; then
4415 ac_cv_prog_MV="$MV" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_MV="mv "
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4428 done
4429 done
4430 IFS=$as_save_IFS
4434 MV=$ac_cv_prog_MV
4435 if test -n "$MV"; then
4436 { echo "$as_me:$LINENO: result: $MV" >&5
4437 echo "${ECHO_T}$MV" >&6; }
4438 else
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 if test "$MV" = ""; then
4445 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4446 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4447 { (exit 1); exit 1; }; }
4449 # Extract the first word of "echo", so it can be a program name with args.
4450 set dummy echo; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_ECHO+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 if test -n "$ECHO"; then
4457 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_ECHO="echo "
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4470 done
4471 done
4472 IFS=$as_save_IFS
4476 ECHO=$ac_cv_prog_ECHO
4477 if test -n "$ECHO"; then
4478 { echo "$as_me:$LINENO: result: $ECHO" >&5
4479 echo "${ECHO_T}$ECHO" >&6; }
4480 else
4481 { echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; }
4486 if test "$ECHO" = ""; then
4487 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4488 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4489 { (exit 1); exit 1; }; }
4491 # Extract the first word of "mkdir", so it can be a program name with args.
4492 set dummy mkdir; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_MKDIR+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 if test -n "$MKDIR"; then
4499 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_MKDIR="mkdir -p"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4512 done
4513 done
4514 IFS=$as_save_IFS
4518 MKDIR=$ac_cv_prog_MKDIR
4519 if test -n "$MKDIR"; then
4520 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4521 echo "${ECHO_T}$MKDIR" >&6; }
4522 else
4523 { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4528 if test "$MKDIR" = ""; then
4529 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4530 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4531 { (exit 1); exit 1; }; }
4533 # Extract the first word of "touch", so it can be a program name with args.
4534 set dummy touch; ac_word=$2
4535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537 if test "${ac_cv_prog_TOUCH+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 if test -n "$TOUCH"; then
4541 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_TOUCH="touch "
4551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4554 done
4555 done
4556 IFS=$as_save_IFS
4560 TOUCH=$ac_cv_prog_TOUCH
4561 if test -n "$TOUCH"; then
4562 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4563 echo "${ECHO_T}$TOUCH" >&6; }
4564 else
4565 { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4570 if test "$TOUCH" = ""; then
4571 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4572 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4573 { (exit 1); exit 1; }; }
4575 # Extract the first word of "sort", so it can be a program name with args.
4576 set dummy sort; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_SORT+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582 if test -n "$SORT"; then
4583 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_SORT="sort "
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4596 done
4597 done
4598 IFS=$as_save_IFS
4602 SORT=$ac_cv_prog_SORT
4603 if test -n "$SORT"; then
4604 { echo "$as_me:$LINENO: result: $SORT" >&5
4605 echo "${ECHO_T}$SORT" >&6; }
4606 else
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4612 if test "$SORT" = ""; then
4613 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4614 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4615 { (exit 1); exit 1; }; }
4617 # Extract the first word of "uniq", so it can be a program name with args.
4618 set dummy uniq; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_UNIQ+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 if test -n "$UNIQ"; then
4625 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_UNIQ="uniq "
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4640 IFS=$as_save_IFS
4644 UNIQ=$ac_cv_prog_UNIQ
4645 if test -n "$UNIQ"; then
4646 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4647 echo "${ECHO_T}$UNIQ" >&6; }
4648 else
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4654 if test "$UNIQ" = ""; then
4655 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4656 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4657 { (exit 1); exit 1; }; }
4659 # Extract the first word of "true", so it can be a program name with args.
4660 set dummy true; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_NOP+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 if test -n "$NOP"; then
4667 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_NOP="true "
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 NOP=$ac_cv_prog_NOP
4687 if test -n "$NOP"; then
4688 { echo "$as_me:$LINENO: result: $NOP" >&5
4689 echo "${ECHO_T}$NOP" >&6; }
4690 else
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 if test "$NOP" = ""; then
4697 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4698 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4699 { (exit 1); exit 1; }; }
4701 # Extract the first word of "cat", so it can be a program name with args.
4702 set dummy cat; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_prog_CAT+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708 if test -n "$CAT"; then
4709 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718 ac_cv_prog_CAT="cat "
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4722 done
4723 done
4724 IFS=$as_save_IFS
4728 CAT=$ac_cv_prog_CAT
4729 if test -n "$CAT"; then
4730 { echo "$as_me:$LINENO: result: $CAT" >&5
4731 echo "${ECHO_T}$CAT" >&6; }
4732 else
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4738 if test "$CAT" = ""; then
4739 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4740 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4741 { (exit 1); exit 1; }; }
4743 # Extract the first word of "bison", so it can be a program name with args.
4744 set dummy bison; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_BISON+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 if test -n "$BISON"; then
4751 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_BISON="bison "
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4770 BISON=$ac_cv_prog_BISON
4771 if test -n "$BISON"; then
4772 { echo "$as_me:$LINENO: result: $BISON" >&5
4773 echo "${ECHO_T}$BISON" >&6; }
4774 else
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4780 if test "$BISON" = ""; then
4781 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4782 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4783 { (exit 1); exit 1; }; }
4785 # Extract the first word of "flex", so it can be a program name with args.
4786 set dummy flex; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_prog_FLEX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 if test -n "$FLEX"; then
4793 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_prog_FLEX="flex "
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4806 done
4807 done
4808 IFS=$as_save_IFS
4812 FLEX=$ac_cv_prog_FLEX
4813 if test -n "$FLEX"; then
4814 { echo "$as_me:$LINENO: result: $FLEX" >&5
4815 echo "${ECHO_T}$FLEX" >&6; }
4816 else
4817 { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4822 if test "$FLEX" = ""; then
4823 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4824 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4825 { (exit 1); exit 1; }; }
4827 # Extract the first word of "pngtopnm", so it can be a program name with args.
4828 set dummy pngtopnm; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 if test -n "$PNGTOPNM"; then
4835 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_PNGTOPNM="pngtopnm "
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4855 if test -n "$PNGTOPNM"; then
4856 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4857 echo "${ECHO_T}$PNGTOPNM" >&6; }
4858 else
4859 { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4864 if test "$PNGTOPNM" = ""; then
4865 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4866 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4867 { (exit 1); exit 1; }; }
4869 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4870 set dummy ppmtoilbm; ac_word=$2
4871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4873 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 if test -n "$PPMTOILBM"; then
4877 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4890 done
4891 done
4892 IFS=$as_save_IFS
4896 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4897 if test -n "$PPMTOILBM"; then
4898 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4899 echo "${ECHO_T}$PPMTOILBM" >&6; }
4900 else
4901 { echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6; }
4906 if test "$PPMTOILBM" = ""; then
4907 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4908 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4909 { (exit 1); exit 1; }; }
4911 # Extract the first word of "sed", so it can be a program name with args.
4912 set dummy sed; ac_word=$2
4913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4915 if test "${ac_cv_prog_SED+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918 if test -n "$SED"; then
4919 ac_cv_prog_SED="$SED" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_SED="sed "
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4934 IFS=$as_save_IFS
4938 SED=$ac_cv_prog_SED
4939 if test -n "$SED"; then
4940 { echo "$as_me:$LINENO: result: $SED" >&5
4941 echo "${ECHO_T}$SED" >&6; }
4942 else
4943 { echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6; }
4948 if test "$SED" = ""; then
4949 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4950 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4951 { (exit 1); exit 1; }; }
4953 # Extract the first word of "chmod", so it can be a program name with args.
4954 set dummy chmod; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_CHMOD+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 if test -n "$CHMOD"; then
4961 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_CHMOD="chmod "
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4974 done
4975 done
4976 IFS=$as_save_IFS
4980 CHMOD=$ac_cv_prog_CHMOD
4981 if test -n "$CHMOD"; then
4982 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4983 echo "${ECHO_T}$CHMOD" >&6; }
4984 else
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4990 if test "$CHMOD" = ""; then
4991 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4992 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4993 { (exit 1); exit 1; }; }
5000 if test -n "$PYTHON"; then
5001 # If the user set $PYTHON, use it and don't search something else.
5002 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5003 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5004 prog="import sys, string
5005 # split strings by '.' and convert to numeric. Append some zeros
5006 # because we need at least 4 digits for the hex conversion.
5007 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5008 minverhex = 0
5009 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5010 sys.exit(sys.hexversion < minverhex)"
5011 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5012 ($PYTHON -c "$prog") >&5 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; then
5016 { echo "$as_me:$LINENO: result: yes" >&5
5017 echo "${ECHO_T}yes" >&6; }
5018 else
5019 { { echo "$as_me:$LINENO: error: too old" >&5
5020 echo "$as_me: error: too old" >&2;}
5021 { (exit 1); exit 1; }; }
5024 am_display_PYTHON=$PYTHON
5025 else
5026 # Otherwise, try each interpreter until we find one that satisfies
5027 # VERSION.
5028 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5029 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5030 if test "${am_cv_pathless_PYTHON+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5034 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
5035 test "$am_cv_pathless_PYTHON" = none && break
5036 prog="import sys, string
5037 # split strings by '.' and convert to numeric. Append some zeros
5038 # because we need at least 4 digits for the hex conversion.
5039 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5040 minverhex = 0
5041 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5042 sys.exit(sys.hexversion < minverhex)"
5043 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5044 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; then
5048 break
5051 done
5053 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5054 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5055 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5056 if test "$am_cv_pathless_PYTHON" = none; then
5057 PYTHON=:
5058 else
5059 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5060 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_PYTHON+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 case $PYTHON in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5087 esac
5089 PYTHON=$ac_cv_path_PYTHON
5090 if test -n "$PYTHON"; then
5091 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5092 echo "${ECHO_T}$PYTHON" >&6; }
5093 else
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5100 am_display_PYTHON=$am_cv_pathless_PYTHON
5104 if test "$PYTHON" = :; then
5105 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5106 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5107 { (exit 1); exit 1; }; }
5108 else
5111 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5112 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5113 if test "${am_cv_python_version+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5118 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5119 echo "${ECHO_T}$am_cv_python_version" >&6; }
5120 PYTHON_VERSION=$am_cv_python_version
5124 PYTHON_PREFIX='${prefix}'
5126 PYTHON_EXEC_PREFIX='${exec_prefix}'
5130 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5131 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5132 if test "${am_cv_python_platform+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5137 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5138 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5139 PYTHON_PLATFORM=$am_cv_python_platform
5144 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5145 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5146 if test "${am_cv_python_pythondir+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5150 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5152 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5153 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5154 pythondir=$am_cv_python_pythondir
5158 pkgpythondir=\${pythondir}/$PACKAGE
5161 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5162 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5163 if test "${am_cv_python_pyexecdir+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5167 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5169 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5170 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5171 pyexecdir=$am_cv_python_pyexecdir
5175 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5183 FOR=for
5185 IF=if
5187 TEST=test
5189 CMP=cmp
5193 # Check for some includes for the X11 HIDD and the kernel
5196 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5197 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5198 if test "${ac_cv_path_GREP+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 # Extract the first word of "grep ggrep" to use in msg output
5202 if test -z "$GREP"; then
5203 set dummy grep ggrep; ac_prog_name=$2
5204 if test "${ac_cv_path_GREP+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 ac_path_GREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in grep ggrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5217 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5218 # Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220 case `"$ac_path_GREP" --version 2>&1` in
5221 *GNU*)
5222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5224 ac_count=0
5225 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5226 while :
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 echo 'GREP' >> "conftest.nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 ac_count=`expr $ac_count + 1`
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP="$ac_path_GREP"
5238 ac_path_GREP_max=$ac_count
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244 esac
5247 $ac_path_GREP_found && break 3
5248 done
5249 done
5251 done
5252 IFS=$as_save_IFS
5257 GREP="$ac_cv_path_GREP"
5258 if test -z "$GREP"; then
5259 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5260 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5261 { (exit 1); exit 1; }; }
5264 else
5265 ac_cv_path_GREP=$GREP
5270 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5271 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5272 GREP="$ac_cv_path_GREP"
5275 { echo "$as_me:$LINENO: checking for egrep" >&5
5276 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5277 if test "${ac_cv_path_EGREP+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5281 then ac_cv_path_EGREP="$GREP -E"
5282 else
5283 # Extract the first word of "egrep" to use in msg output
5284 if test -z "$EGREP"; then
5285 set dummy egrep; ac_prog_name=$2
5286 if test "${ac_cv_path_EGREP+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5303 *GNU*)
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5306 ac_count=0
5307 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5308 while :
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316 ac_count=`expr $ac_count + 1`
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5324 done
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5326 esac
5329 $ac_path_EGREP_found && break 3
5330 done
5331 done
5333 done
5334 IFS=$as_save_IFS
5339 EGREP="$ac_cv_path_EGREP"
5340 if test -z "$EGREP"; then
5341 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5342 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5343 { (exit 1); exit 1; }; }
5346 else
5347 ac_cv_path_EGREP=$EGREP
5353 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5354 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5355 EGREP="$ac_cv_path_EGREP"
5358 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5360 if test "${ac_cv_header_stdc+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 #include <stdlib.h>
5370 #include <stdarg.h>
5371 #include <string.h>
5372 #include <float.h>
5375 main ()
5379 return 0;
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_cv_header_stdc=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_cv_header_stdc=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 if test $ac_cv_header_stdc = yes; then
5410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <string.h>
5419 _ACEOF
5420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5421 $EGREP "memchr" >/dev/null 2>&1; then
5423 else
5424 ac_cv_header_stdc=no
5426 rm -f -r conftest*
5430 if test $ac_cv_header_stdc = yes; then
5431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <stdlib.h>
5440 _ACEOF
5441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5442 $EGREP "free" >/dev/null 2>&1; then
5444 else
5445 ac_cv_header_stdc=no
5447 rm -f -r conftest*
5451 if test $ac_cv_header_stdc = yes; then
5452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5453 if test "$cross_compiling" = yes; then
5455 else
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <ctype.h>
5463 #include <stdlib.h>
5464 #if ((' ' & 0x0FF) == 0x020)
5465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5467 #else
5468 # define ISLOWER(c) \
5469 (('a' <= (c) && (c) <= 'i') \
5470 || ('j' <= (c) && (c) <= 'r') \
5471 || ('s' <= (c) && (c) <= 'z'))
5472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5473 #endif
5475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5477 main ()
5479 int i;
5480 for (i = 0; i < 256; i++)
5481 if (XOR (islower (i), ISLOWER (i))
5482 || toupper (i) != TOUPPER (i))
5483 return 2;
5484 return 0;
5486 _ACEOF
5487 rm -f conftest$ac_exeext
5488 if { (ac_try="$ac_link"
5489 case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_link") 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5498 { (case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_try") 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5508 else
5509 echo "$as_me: program exited with status $ac_status" >&5
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 ( exit $ac_status )
5514 ac_cv_header_stdc=no
5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5523 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5524 if test $ac_cv_header_stdc = yes; then
5526 cat >>confdefs.h <<\_ACEOF
5527 #define STDC_HEADERS 1
5528 _ACEOF
5532 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5542 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5543 inttypes.h stdint.h unistd.h
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 $ac_includes_default
5559 #include <$ac_header>
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5563 case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_c_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5578 eval "$as_ac_Header=yes"
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 eval "$as_ac_Header=no"
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 ac_res=`eval echo '${'$as_ac_Header'}'`
5589 { echo "$as_me:$LINENO: result: $ac_res" >&5
5590 echo "${ECHO_T}$ac_res" >&6; }
5591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5592 cat >>confdefs.h <<_ACEOF
5593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5594 _ACEOF
5598 done
5610 for ac_header in sys/ipc.h sys/shm.h \
5611 sys/mmap.h sys/mman.h sysexits.h \
5612 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 ac_res=`eval echo '${'$as_ac_Header'}'`
5623 { echo "$as_me:$LINENO: result: $ac_res" >&5
5624 echo "${ECHO_T}$ac_res" >&6; }
5625 else
5626 # Is the header compilable?
5627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 $ac_includes_default
5636 #include <$ac_header>
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (ac_try="$ac_compile"
5640 case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5655 ac_header_compiler=yes
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_header_compiler=no
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5665 echo "${ECHO_T}$ac_header_compiler" >&6; }
5667 # Is the header present?
5668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <$ac_header>
5677 _ACEOF
5678 if { (ac_try="$ac_cpp conftest.$ac_ext"
5679 case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } >/dev/null && {
5691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 }; then
5694 ac_header_preproc=yes
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5699 ac_header_preproc=no
5702 rm -f conftest.err conftest.$ac_ext
5703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5704 echo "${ECHO_T}$ac_header_preproc" >&6; }
5706 # So? What about this header?
5707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5708 yes:no: )
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5713 ac_header_preproc=yes
5715 no:yes:* )
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5730 esac
5731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 eval "$as_ac_Header=\$ac_header_preproc"
5738 ac_res=`eval echo '${'$as_ac_Header'}'`
5739 { echo "$as_me:$LINENO: result: $ac_res" >&5
5740 echo "${ECHO_T}$ac_res" >&6; }
5743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5744 cat >>confdefs.h <<_ACEOF
5745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5746 _ACEOF
5750 done
5754 for ac_header in sys/mount.h
5756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <sys/param.h>
5770 #include <$ac_header>
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 eval "$as_ac_Header=yes"
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 eval "$as_ac_Header=no"
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 ac_res=`eval echo '${'$as_ac_Header'}'`
5800 { echo "$as_me:$LINENO: result: $ac_res" >&5
5801 echo "${ECHO_T}$ac_res" >&6; }
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 _ACEOF
5809 done
5817 ac_header_dirent=no
5818 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5819 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5820 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5821 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #include <sys/types.h>
5832 #include <$ac_hdr>
5835 main ()
5837 if ((DIR *) 0)
5838 return 0;
5840 return 0;
5842 _ACEOF
5843 rm -f conftest.$ac_objext
5844 if { (ac_try="$ac_compile"
5845 case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848 esac
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.$ac_objext; then
5860 eval "$as_ac_Header=yes"
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 eval "$as_ac_Header=no"
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 ac_res=`eval echo '${'$as_ac_Header'}'`
5871 { echo "$as_me:$LINENO: result: $ac_res" >&5
5872 echo "${ECHO_T}$ac_res" >&6; }
5873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5874 cat >>confdefs.h <<_ACEOF
5875 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5876 _ACEOF
5878 ac_header_dirent=$ac_hdr; break
5881 done
5882 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5883 if test $ac_header_dirent = dirent.h; then
5884 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5885 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5886 if test "${ac_cv_search_opendir+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 ac_func_search_save_LIBS=$LIBS
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5900 #ifdef __cplusplus
5901 extern "C"
5902 #endif
5903 char opendir ();
5905 main ()
5907 return opendir ();
5909 return 0;
5911 _ACEOF
5912 for ac_lib in '' dir; do
5913 if test -z "$ac_lib"; then
5914 ac_res="none required"
5915 else
5916 ac_res=-l$ac_lib
5917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_link") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest$ac_exeext &&
5936 $as_test_x conftest$ac_exeext; then
5937 ac_cv_search_opendir=$ac_res
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5946 conftest$ac_exeext
5947 if test "${ac_cv_search_opendir+set}" = set; then
5948 break
5950 done
5951 if test "${ac_cv_search_opendir+set}" = set; then
5953 else
5954 ac_cv_search_opendir=no
5956 rm conftest.$ac_ext
5957 LIBS=$ac_func_search_save_LIBS
5959 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5960 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5961 ac_res=$ac_cv_search_opendir
5962 if test "$ac_res" != no; then
5963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5967 else
5968 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5969 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5970 if test "${ac_cv_search_opendir+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 ac_func_search_save_LIBS=$LIBS
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5981 /* Override any GCC internal prototype to avoid an error.
5982 Use char because int might match the return type of a GCC
5983 builtin and then its argument prototype would still apply. */
5984 #ifdef __cplusplus
5985 extern "C"
5986 #endif
5987 char opendir ();
5989 main ()
5991 return opendir ();
5993 return 0;
5995 _ACEOF
5996 for ac_lib in '' x; do
5997 if test -z "$ac_lib"; then
5998 ac_res="none required"
5999 else
6000 ac_res=-l$ac_lib
6001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (ac_try="$ac_link"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_link") 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest$ac_exeext &&
6020 $as_test_x conftest$ac_exeext; then
6021 ac_cv_search_opendir=$ac_res
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030 conftest$ac_exeext
6031 if test "${ac_cv_search_opendir+set}" = set; then
6032 break
6034 done
6035 if test "${ac_cv_search_opendir+set}" = set; then
6037 else
6038 ac_cv_search_opendir=no
6040 rm conftest.$ac_ext
6041 LIBS=$ac_func_search_save_LIBS
6043 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6044 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6045 ac_res=$ac_cv_search_opendir
6046 if test "$ac_res" != no; then
6047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6053 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6054 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6055 if test "${ac_cv_header_stat_broken+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 #include <sys/types.h>
6065 #include <sys/stat.h>
6067 #if defined S_ISBLK && defined S_IFDIR
6068 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6069 #endif
6071 #if defined S_ISBLK && defined S_IFCHR
6072 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6073 #endif
6075 #if defined S_ISLNK && defined S_IFREG
6076 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6077 #endif
6079 #if defined S_ISSOCK && defined S_IFREG
6080 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6081 #endif
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (ac_try="$ac_compile"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_compile") 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } && {
6098 test -z "$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 } && test -s conftest.$ac_objext; then
6101 ac_cv_header_stat_broken=no
6102 else
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 ac_cv_header_stat_broken=yes
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6112 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6113 if test $ac_cv_header_stat_broken = yes; then
6115 cat >>confdefs.h <<\_ACEOF
6116 #define STAT_MACROS_BROKEN 1
6117 _ACEOF
6121 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6123 if test "${ac_cv_header_stdc+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <stdlib.h>
6133 #include <stdarg.h>
6134 #include <string.h>
6135 #include <float.h>
6138 main ()
6142 return 0;
6144 _ACEOF
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6147 case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && {
6159 test -z "$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6161 } && test -s conftest.$ac_objext; then
6162 ac_cv_header_stdc=yes
6163 else
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 ac_cv_header_stdc=no
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 if test $ac_cv_header_stdc = yes; then
6173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <string.h>
6182 _ACEOF
6183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6184 $EGREP "memchr" >/dev/null 2>&1; then
6186 else
6187 ac_cv_header_stdc=no
6189 rm -f -r conftest*
6193 if test $ac_cv_header_stdc = yes; then
6194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 #include <stdlib.h>
6203 _ACEOF
6204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6205 $EGREP "free" >/dev/null 2>&1; then
6207 else
6208 ac_cv_header_stdc=no
6210 rm -f -r conftest*
6214 if test $ac_cv_header_stdc = yes; then
6215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6216 if test "$cross_compiling" = yes; then
6218 else
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <ctype.h>
6226 #include <stdlib.h>
6227 #if ((' ' & 0x0FF) == 0x020)
6228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6230 #else
6231 # define ISLOWER(c) \
6232 (('a' <= (c) && (c) <= 'i') \
6233 || ('j' <= (c) && (c) <= 'r') \
6234 || ('s' <= (c) && (c) <= 'z'))
6235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6236 #endif
6238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6240 main ()
6242 int i;
6243 for (i = 0; i < 256; i++)
6244 if (XOR (islower (i), ISLOWER (i))
6245 || toupper (i) != TOUPPER (i))
6246 return 2;
6247 return 0;
6249 _ACEOF
6250 rm -f conftest$ac_exeext
6251 if { (ac_try="$ac_link"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_link") 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6261 { (case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264 esac
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_try") 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6271 else
6272 echo "$as_me: program exited with status $ac_status" >&5
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ( exit $ac_status )
6277 ac_cv_header_stdc=no
6279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6285 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6286 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6287 if test $ac_cv_header_stdc = yes; then
6289 cat >>confdefs.h <<\_ACEOF
6290 #define STDC_HEADERS 1
6291 _ACEOF
6295 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6296 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6297 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <sys/types.h>
6307 #include <sys/wait.h>
6308 #ifndef WEXITSTATUS
6309 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6310 #endif
6311 #ifndef WIFEXITED
6312 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6313 #endif
6316 main ()
6318 int s;
6319 wait (&s);
6320 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6322 return 0;
6324 _ACEOF
6325 rm -f conftest.$ac_objext
6326 if { (ac_try="$ac_compile"
6327 case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330 esac
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest.$ac_objext; then
6342 ac_cv_header_sys_wait_h=yes
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 ac_cv_header_sys_wait_h=no
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6353 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6354 if test $ac_cv_header_sys_wait_h = yes; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define HAVE_SYS_WAIT_H 1
6358 _ACEOF
6362 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6363 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6364 if test "${ac_cv_header_time+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367 cat >conftest.$ac_ext <<_ACEOF
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <sys/types.h>
6374 #include <sys/time.h>
6375 #include <time.h>
6378 main ()
6380 if ((struct tm *) 0)
6381 return 0;
6383 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (ac_try="$ac_compile"
6388 case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compile") 2>conftest.er1
6394 ac_status=$?
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.$ac_objext; then
6403 ac_cv_header_time=yes
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 ac_cv_header_time=no
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6414 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6415 if test $ac_cv_header_time = yes; then
6417 cat >>confdefs.h <<\_ACEOF
6418 #define TIME_WITH_SYS_TIME 1
6419 _ACEOF
6423 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6424 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6425 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6436 main ()
6438 static struct stat ac_aggr;
6439 if (ac_aggr.st_blksize)
6440 return 0;
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 ac_cv_member_struct_stat_st_blksize=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6475 main ()
6477 static struct stat ac_aggr;
6478 if (sizeof ac_aggr.st_blksize)
6479 return 0;
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest.$ac_objext; then
6501 ac_cv_member_struct_stat_st_blksize=yes
6502 else
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_cv_member_struct_stat_st_blksize=no
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6516 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6518 cat >>confdefs.h <<_ACEOF
6519 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6520 _ACEOF
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_ST_BLKSIZE 1
6525 _ACEOF
6530 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6531 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6532 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6543 main ()
6545 static struct stat ac_aggr;
6546 if (ac_aggr.st_blocks)
6547 return 0;
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_member_struct_stat_st_blocks=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 $ac_includes_default
6582 main ()
6584 static struct stat ac_aggr;
6585 if (sizeof ac_aggr.st_blocks)
6586 return 0;
6588 return 0;
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.$ac_objext; then
6608 ac_cv_member_struct_stat_st_blocks=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_cv_member_struct_stat_st_blocks=no
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6622 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6623 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6625 cat >>confdefs.h <<_ACEOF
6626 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6627 _ACEOF
6630 cat >>confdefs.h <<\_ACEOF
6631 #define HAVE_ST_BLOCKS 1
6632 _ACEOF
6634 else
6635 case " $LIBOBJS " in
6636 *" fileblocks.$ac_objext "* ) ;;
6637 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6639 esac
6644 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6645 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6646 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 $ac_includes_default
6657 main ()
6659 static struct stat ac_aggr;
6660 if (ac_aggr.st_rdev)
6661 return 0;
6663 return 0;
6665 _ACEOF
6666 rm -f conftest.$ac_objext
6667 if { (ac_try="$ac_compile"
6668 case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 ac_cv_member_struct_stat_st_rdev=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 $ac_includes_default
6696 main ()
6698 static struct stat ac_aggr;
6699 if (sizeof ac_aggr.st_rdev)
6700 return 0;
6702 return 0;
6704 _ACEOF
6705 rm -f conftest.$ac_objext
6706 if { (ac_try="$ac_compile"
6707 case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710 esac
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 ac_cv_member_struct_stat_st_rdev=yes
6723 else
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 ac_cv_member_struct_stat_st_rdev=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6736 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6737 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6739 cat >>confdefs.h <<_ACEOF
6740 #define HAVE_STRUCT_STAT_ST_RDEV 1
6741 _ACEOF
6744 cat >>confdefs.h <<\_ACEOF
6745 #define HAVE_ST_RDEV 1
6746 _ACEOF
6751 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6752 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6753 if test "${ac_cv_struct_tm+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 #include <sys/types.h>
6763 #include <time.h>
6766 main ()
6768 struct tm tm;
6769 int *p = &tm.tm_sec;
6770 return !p;
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (ac_try="$ac_compile"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_compile") 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 } && test -s conftest.$ac_objext; then
6792 ac_cv_struct_tm=time.h
6793 else
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 ac_cv_struct_tm=sys/time.h
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6803 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6804 if test $ac_cv_struct_tm = sys/time.h; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define TM_IN_SYS_TIME 1
6808 _ACEOF
6812 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6813 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6814 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h. */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 #include <sys/types.h>
6824 #include <$ac_cv_struct_tm>
6828 main ()
6830 static struct tm ac_aggr;
6831 if (ac_aggr.tm_zone)
6832 return 0;
6834 return 0;
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6839 case "(($ac_try" in
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6842 esac
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_compile") 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest.$ac_objext; then
6854 ac_cv_member_struct_tm_tm_zone=yes
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #include <sys/types.h>
6866 #include <$ac_cv_struct_tm>
6870 main ()
6872 static struct tm ac_aggr;
6873 if (sizeof ac_aggr.tm_zone)
6874 return 0;
6876 return 0;
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (ac_try="$ac_compile"
6881 case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884 esac
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_compile") 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && {
6893 test -z "$ac_c_werror_flag" ||
6894 test ! -s conftest.err
6895 } && test -s conftest.$ac_objext; then
6896 ac_cv_member_struct_tm_tm_zone=yes
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_member_struct_tm_tm_zone=no
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6911 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6913 cat >>confdefs.h <<_ACEOF
6914 #define HAVE_STRUCT_TM_TM_ZONE 1
6915 _ACEOF
6920 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_TM_ZONE 1
6924 _ACEOF
6926 else
6927 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6928 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6929 if test "${ac_cv_have_decl_tzname+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <time.h>
6941 main ()
6943 #ifndef tzname
6944 (void) tzname;
6945 #endif
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (ac_try="$ac_compile"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_have_decl_tzname=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 ac_cv_have_decl_tzname=no
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6979 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6980 if test $ac_cv_have_decl_tzname = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define HAVE_DECL_TZNAME 1
6984 _ACEOF
6987 else
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_DECL_TZNAME 0
6990 _ACEOF
6996 { echo "$as_me:$LINENO: checking for tzname" >&5
6997 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6998 if test "${ac_cv_var_tzname+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <time.h>
7008 #if !HAVE_DECL_TZNAME
7009 extern char *tzname[];
7010 #endif
7013 main ()
7015 return tzname[0][0];
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (ac_try="$ac_link"
7022 case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7025 esac
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_link") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest$ac_exeext &&
7037 $as_test_x conftest$ac_exeext; then
7038 ac_cv_var_tzname=yes
7039 else
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 ac_cv_var_tzname=no
7046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7047 conftest$ac_exeext conftest.$ac_ext
7049 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7050 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7051 if test $ac_cv_var_tzname = yes; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE_TZNAME 1
7055 _ACEOF
7060 { echo "$as_me:$LINENO: checking for off_t" >&5
7061 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7062 if test "${ac_cv_type_off_t+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 $ac_includes_default
7072 typedef off_t ac__type_new_;
7074 main ()
7076 if ((ac__type_new_ *) 0)
7077 return 0;
7078 if (sizeof (ac__type_new_))
7079 return 0;
7081 return 0;
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (ac_try="$ac_compile"
7086 case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_compile") 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } && {
7098 test -z "$ac_c_werror_flag" ||
7099 test ! -s conftest.err
7100 } && test -s conftest.$ac_objext; then
7101 ac_cv_type_off_t=yes
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7106 ac_cv_type_off_t=no
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7112 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7113 if test $ac_cv_type_off_t = yes; then
7115 else
7117 cat >>confdefs.h <<_ACEOF
7118 #define off_t long int
7119 _ACEOF
7123 { echo "$as_me:$LINENO: checking for pid_t" >&5
7124 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7125 if test "${ac_cv_type_pid_t+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 $ac_includes_default
7135 typedef pid_t ac__type_new_;
7137 main ()
7139 if ((ac__type_new_ *) 0)
7140 return 0;
7141 if (sizeof (ac__type_new_))
7142 return 0;
7144 return 0;
7146 _ACEOF
7147 rm -f conftest.$ac_objext
7148 if { (ac_try="$ac_compile"
7149 case "(($ac_try" in
7150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7151 *) ac_try_echo=$ac_try;;
7152 esac
7153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7154 (eval "$ac_compile") 2>conftest.er1
7155 ac_status=$?
7156 grep -v '^ *+' conftest.er1 >conftest.err
7157 rm -f conftest.er1
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } && {
7161 test -z "$ac_c_werror_flag" ||
7162 test ! -s conftest.err
7163 } && test -s conftest.$ac_objext; then
7164 ac_cv_type_pid_t=yes
7165 else
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 ac_cv_type_pid_t=no
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7175 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7176 if test $ac_cv_type_pid_t = yes; then
7178 else
7180 cat >>confdefs.h <<_ACEOF
7181 #define pid_t int
7182 _ACEOF
7186 { echo "$as_me:$LINENO: checking for size_t" >&5
7187 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7188 if test "${ac_cv_type_size_t+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 $ac_includes_default
7198 typedef size_t ac__type_new_;
7200 main ()
7202 if ((ac__type_new_ *) 0)
7203 return 0;
7204 if (sizeof (ac__type_new_))
7205 return 0;
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 ac_cv_type_size_t=yes
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7232 ac_cv_type_size_t=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7238 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7239 if test $ac_cv_type_size_t = yes; then
7241 else
7243 cat >>confdefs.h <<_ACEOF
7244 #define size_t unsigned int
7245 _ACEOF
7249 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7250 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7251 if test "${ac_cv_type_uid_t+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #include <sys/types.h>
7262 _ACEOF
7263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7264 $EGREP "uid_t" >/dev/null 2>&1; then
7265 ac_cv_type_uid_t=yes
7266 else
7267 ac_cv_type_uid_t=no
7269 rm -f -r conftest*
7272 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7273 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7274 if test $ac_cv_type_uid_t = no; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define uid_t int
7278 _ACEOF
7281 cat >>confdefs.h <<\_ACEOF
7282 #define gid_t int
7283 _ACEOF
7288 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7289 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7290 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 $ac_includes_default
7301 main ()
7303 static struct tm ac_aggr;
7304 if (ac_aggr.tm_gmtoff)
7305 return 0;
7307 return 0;
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7327 ac_cv_member_struct_tm_tm_gmtoff=yes
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7340 main ()
7342 static struct tm ac_aggr;
7343 if (sizeof ac_aggr.tm_gmtoff)
7344 return 0;
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7351 case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354 esac
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_member_struct_tm_tm_gmtoff=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_cv_member_struct_tm_tm_gmtoff=no
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7380 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7381 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7385 _ACEOF
7391 # Look for some functions
7406 for ac_func in getpagesize kqueue statfs statvfs \
7407 clone kse_create rfork_thread thr_create sa_register \
7408 getcontext makecontext setcontext sigaltstack swapcontext
7410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7424 #define $ac_func innocuous_$ac_func
7426 /* System header to define __stub macros and hopefully few prototypes,
7427 which can conflict with char $ac_func (); below.
7428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7429 <limits.h> exists even on freestanding compilers. */
7431 #ifdef __STDC__
7432 # include <limits.h>
7433 #else
7434 # include <assert.h>
7435 #endif
7437 #undef $ac_func
7439 /* Override any GCC internal prototype to avoid an error.
7440 Use char because int might match the return type of a GCC
7441 builtin and then its argument prototype would still apply. */
7442 #ifdef __cplusplus
7443 extern "C"
7444 #endif
7445 char $ac_func ();
7446 /* The GNU C library defines this for functions which it implements
7447 to always fail with ENOSYS. Some functions are actually named
7448 something starting with __ and the normal name is an alias. */
7449 #if defined __stub_$ac_func || defined __stub___$ac_func
7450 choke me
7451 #endif
7454 main ()
7456 return $ac_func ();
7458 return 0;
7460 _ACEOF
7461 rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7463 case "(($ac_try" in
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7466 esac
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_link") 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest$ac_exeext &&
7478 $as_test_x conftest$ac_exeext; then
7479 eval "$as_ac_var=yes"
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 eval "$as_ac_var=no"
7487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7488 conftest$ac_exeext conftest.$ac_ext
7490 ac_res=`eval echo '${'$as_ac_var'}'`
7491 { echo "$as_me:$LINENO: result: $ac_res" >&5
7492 echo "${ECHO_T}$ac_res" >&6; }
7493 if test `eval echo '${'$as_ac_var'}'` = yes; then
7494 cat >>confdefs.h <<_ACEOF
7495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7496 _ACEOF
7499 done
7504 for ac_header in stdlib.h unistd.h
7506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_res=`eval echo '${'$as_ac_Header'}'`
7514 { echo "$as_me:$LINENO: result: $ac_res" >&5
7515 echo "${ECHO_T}$ac_res" >&6; }
7516 else
7517 # Is the header compilable?
7518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7527 #include <$ac_header>
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7546 ac_header_compiler=yes
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_header_compiler=no
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7556 echo "${ECHO_T}$ac_header_compiler" >&6; }
7558 # Is the header present?
7559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7561 cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h. */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567 #include <$ac_header>
7568 _ACEOF
7569 if { (ac_try="$ac_cpp conftest.$ac_ext"
7570 case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573 esac
7574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } >/dev/null && {
7582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7583 test ! -s conftest.err
7584 }; then
7585 ac_header_preproc=yes
7586 else
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_header_preproc=no
7593 rm -f conftest.err conftest.$ac_ext
7594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7595 echo "${ECHO_T}$ac_header_preproc" >&6; }
7597 # So? What about this header?
7598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7599 yes:no: )
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7604 ac_header_preproc=yes
7606 no:yes:* )
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7621 esac
7622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 eval "$as_ac_Header=\$ac_header_preproc"
7629 ac_res=`eval echo '${'$as_ac_Header'}'`
7630 { echo "$as_me:$LINENO: result: $ac_res" >&5
7631 echo "${ECHO_T}$ac_res" >&6; }
7634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7635 cat >>confdefs.h <<_ACEOF
7636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7637 _ACEOF
7641 done
7644 for ac_func in getpagesize
7646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7660 #define $ac_func innocuous_$ac_func
7662 /* System header to define __stub macros and hopefully few prototypes,
7663 which can conflict with char $ac_func (); below.
7664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 <limits.h> exists even on freestanding compilers. */
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7673 #undef $ac_func
7675 /* Override any GCC internal prototype to avoid an error.
7676 Use char because int might match the return type of a GCC
7677 builtin and then its argument prototype would still apply. */
7678 #ifdef __cplusplus
7679 extern "C"
7680 #endif
7681 char $ac_func ();
7682 /* The GNU C library defines this for functions which it implements
7683 to always fail with ENOSYS. Some functions are actually named
7684 something starting with __ and the normal name is an alias. */
7685 #if defined __stub_$ac_func || defined __stub___$ac_func
7686 choke me
7687 #endif
7690 main ()
7692 return $ac_func ();
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (ac_try="$ac_link"
7699 case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_link") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest$ac_exeext &&
7714 $as_test_x conftest$ac_exeext; then
7715 eval "$as_ac_var=yes"
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 eval "$as_ac_var=no"
7723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7724 conftest$ac_exeext conftest.$ac_ext
7726 ac_res=`eval echo '${'$as_ac_var'}'`
7727 { echo "$as_me:$LINENO: result: $ac_res" >&5
7728 echo "${ECHO_T}$ac_res" >&6; }
7729 if test `eval echo '${'$as_ac_var'}'` = yes; then
7730 cat >>confdefs.h <<_ACEOF
7731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7732 _ACEOF
7735 done
7737 { echo "$as_me:$LINENO: checking for working mmap" >&5
7738 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7739 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 if test "$cross_compiling" = yes; then
7743 ac_cv_func_mmap_fixed_mapped=no
7744 else
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 $ac_includes_default
7752 /* malloc might have been renamed as rpl_malloc. */
7753 #undef malloc
7755 /* Thanks to Mike Haertel and Jim Avera for this test.
7756 Here is a matrix of mmap possibilities:
7757 mmap private not fixed
7758 mmap private fixed at somewhere currently unmapped
7759 mmap private fixed at somewhere already mapped
7760 mmap shared not fixed
7761 mmap shared fixed at somewhere currently unmapped
7762 mmap shared fixed at somewhere already mapped
7763 For private mappings, we should verify that changes cannot be read()
7764 back from the file, nor mmap's back from the file at a different
7765 address. (There have been systems where private was not correctly
7766 implemented like the infamous i386 svr4.0, and systems where the
7767 VM page cache was not coherent with the file system buffer cache
7768 like early versions of FreeBSD and possibly contemporary NetBSD.)
7769 For shared mappings, we should conversely verify that changes get
7770 propagated back to all the places they're supposed to be.
7772 Grep wants private fixed already mapped.
7773 The main things grep needs to know about mmap are:
7774 * does it exist and is it safe to write into the mmap'd area
7775 * how to use it (BSD variants) */
7777 #include <fcntl.h>
7778 #include <sys/mman.h>
7780 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7781 char *malloc ();
7782 #endif
7784 /* This mess was copied from the GNU getpagesize.h. */
7785 #ifndef HAVE_GETPAGESIZE
7786 /* Assume that all systems that can run configure have sys/param.h. */
7787 # ifndef HAVE_SYS_PARAM_H
7788 # define HAVE_SYS_PARAM_H 1
7789 # endif
7791 # ifdef _SC_PAGESIZE
7792 # define getpagesize() sysconf(_SC_PAGESIZE)
7793 # else /* no _SC_PAGESIZE */
7794 # ifdef HAVE_SYS_PARAM_H
7795 # include <sys/param.h>
7796 # ifdef EXEC_PAGESIZE
7797 # define getpagesize() EXEC_PAGESIZE
7798 # else /* no EXEC_PAGESIZE */
7799 # ifdef NBPG
7800 # define getpagesize() NBPG * CLSIZE
7801 # ifndef CLSIZE
7802 # define CLSIZE 1
7803 # endif /* no CLSIZE */
7804 # else /* no NBPG */
7805 # ifdef NBPC
7806 # define getpagesize() NBPC
7807 # else /* no NBPC */
7808 # ifdef PAGESIZE
7809 # define getpagesize() PAGESIZE
7810 # endif /* PAGESIZE */
7811 # endif /* no NBPC */
7812 # endif /* no NBPG */
7813 # endif /* no EXEC_PAGESIZE */
7814 # else /* no HAVE_SYS_PARAM_H */
7815 # define getpagesize() 8192 /* punt totally */
7816 # endif /* no HAVE_SYS_PARAM_H */
7817 # endif /* no _SC_PAGESIZE */
7819 #endif /* no HAVE_GETPAGESIZE */
7822 main ()
7824 char *data, *data2, *data3;
7825 int i, pagesize;
7826 int fd;
7828 pagesize = getpagesize ();
7830 /* First, make a file with some known garbage in it. */
7831 data = (char *) malloc (pagesize);
7832 if (!data)
7833 return 1;
7834 for (i = 0; i < pagesize; ++i)
7835 *(data + i) = rand ();
7836 umask (0);
7837 fd = creat ("conftest.mmap", 0600);
7838 if (fd < 0)
7839 return 1;
7840 if (write (fd, data, pagesize) != pagesize)
7841 return 1;
7842 close (fd);
7844 /* Next, try to mmap the file at a fixed address which already has
7845 something else allocated at it. If we can, also make sure that
7846 we see the same garbage. */
7847 fd = open ("conftest.mmap", O_RDWR);
7848 if (fd < 0)
7849 return 1;
7850 data2 = (char *) malloc (2 * pagesize);
7851 if (!data2)
7852 return 1;
7853 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7854 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7855 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7856 return 1;
7857 for (i = 0; i < pagesize; ++i)
7858 if (*(data + i) != *(data2 + i))
7859 return 1;
7861 /* Finally, make sure that changes to the mapped area do not
7862 percolate back to the file as seen by read(). (This is a bug on
7863 some variants of i386 svr4.0.) */
7864 for (i = 0; i < pagesize; ++i)
7865 *(data2 + i) = *(data2 + i) + 1;
7866 data3 = (char *) malloc (pagesize);
7867 if (!data3)
7868 return 1;
7869 if (read (fd, data3, pagesize) != pagesize)
7870 return 1;
7871 for (i = 0; i < pagesize; ++i)
7872 if (*(data + i) != *(data3 + i))
7873 return 1;
7874 close (fd);
7875 return 0;
7877 _ACEOF
7878 rm -f conftest$ac_exeext
7879 if { (ac_try="$ac_link"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7889 { (case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_try") 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_func_mmap_fixed_mapped=yes
7899 else
7900 echo "$as_me: program exited with status $ac_status" >&5
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ( exit $ac_status )
7905 ac_cv_func_mmap_fixed_mapped=no
7907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7912 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7913 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7914 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_MMAP 1
7918 _ACEOF
7921 rm -f conftest.mmap
7926 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7927 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7928 aros_config_ldflags=""
7930 aros_shared_default=yes
7932 aros_shared_cflags="-fPIC"
7933 aros_shared_aflags=""
7934 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7935 aros_kernel_ldflags="-Wl,-rpath,./lib"
7937 aros_target_ar_flags="cr"
7938 aros_target_nm_flags="-C -ul"
7939 aros_target_strip_flags="--strip-unneeded -R.comment"
7941 aros_compiler_libs=
7942 aros_arch_libs=
7944 aros_target_genmap="-Wl,-Map -Xlinker"
7946 # Native flavour stuff
7947 aros_serial_debug="0"
7949 # Palm native flavour stuff
7950 aros_palm_debug_hack="0"
7952 # Unix flavour stuff
7953 aros_nesting_supervisor="0"
7955 # Collect-aros stuff: "-ius" to ignore undefined symbols
7956 ignore_undefined_symbols=""
7958 #-----------------------------------------------------------------------------
7961 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7962 # it switched on by default, and we use the host compiler, so it compiles AROS
7963 # code with this enabled resulting in link failures as we don't have support
7964 # for it.
7966 # We use two methods to disable it. For the host compiler (used to compile
7967 # some hosted modules), we test to see if the compiler supports stack
7968 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7969 # work on all platforms.
7971 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7972 # (this is done unconditionally, as it should have no effect on compilers
7973 # without the stack protection feature). This may be specific to the way that
7974 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7975 # strong enough to disable it in a generic way though, so we'll live with it
7976 # until another vendor ships GCC with it enabled in a different way, and deal
7977 # with it then.
7980 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7981 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7982 save_cflags="$CFLAGS"
7983 CFLAGS="$CFLAGS -fno-stack-protector"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7992 main ()
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 use_no_stack_protector="yes"
8017 else
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 use_no_stack_protector="no"
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8026 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8027 if test "x-$use_no_stack_protector" = "x-yes" ; then
8028 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8030 CFLAGS="$save_cflags"
8032 #-----------------------------------------------------------------------------
8034 # Disable pointer-signedness warnings if the compiler recognises the option
8035 # (this only works for the host compiler at the moment)
8037 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8038 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8039 save_cflags="$CFLAGS"
8040 CFLAGS="$CFLAGS -Wno-pointer-sign"
8041 cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h. */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8049 main ()
8053 return 0;
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (ac_try="$ac_compile"
8058 case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061 esac
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_compile") 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } && {
8070 test -z "$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 } && test -s conftest.$ac_objext; then
8073 use_no_sign_warning="yes"
8074 else
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8078 use_no_sign_warning="no"
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8083 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8084 if test "x-$use_no_sign_warning" = "x-yes" ; then
8085 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8087 CFLAGS="$save_cflags"
8089 #-----------------------------------------------------------------------------
8091 { echo "$as_me:$LINENO: checking for type of build" >&5
8092 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8093 # Check whether --enable-build_type was given.
8094 if test "${enable_build_type+set}" = set; then
8095 enableval=$enable_build_type; build_type=$enableval
8096 else
8097 build_type="personal"
8101 if test "$build_type" = "nightly"; then
8102 build_type_string="NIGHTLY"
8103 elif test "$build_type" = "snapshot"; then
8104 build_type_string="SNAPSHOT"
8105 elif test "$build_type" = "milestone"; then
8106 build_type_string="MILESTONE"
8107 elif test "$build_type" = "release"; then
8108 build_type_string="RELEASE"
8109 else
8110 build_type_string="PERSONAL"
8111 build_type="personal"
8114 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8116 { echo "$as_me:$LINENO: result: $build_type" >&5
8117 echo "${ECHO_T}$build_type" >&6; }
8119 #-----------------------------------------------------------------------------
8120 all_debug_types="messages stack modules mungwall symbols"
8122 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8123 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8124 # Check whether --enable-debug was given.
8125 if test "${enable_debug+set}" = set; then
8126 enableval=$enable_debug; debug="$enableval"
8127 else
8128 debug=""
8132 if test "$debug" = "" -o "$debug" = "no"; then
8133 debug="none"
8134 elif test "$debug" = "yes"; then
8135 debug="all"
8138 if test "$debug" = "all" ; then
8139 debug="messages stack modules symbols"
8140 for d in $all_debug_types; do
8141 export aros_${d}_debug="1"
8142 done
8143 else
8144 for d in $all_debug_types; do
8145 export aros_${d}_debug="0"
8146 done
8149 if test "$debug" != "none"; then
8150 debug=`echo $debug | sed s/,/\ /g`
8151 for d in $debug; do
8152 found="0"
8153 for d2 in $all_debug_types; do
8154 if test "$d2" = "$d"; then
8155 found="1"
8156 break
8158 done
8159 if test "$found" = "0"; then
8160 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8161 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8162 { (exit 1); exit 1; }; }
8164 export aros_${d}_debug="1"
8165 done
8166 aros_debug="yes"
8168 { echo "$as_me:$LINENO: result: $debug" >&5
8169 echo "${ECHO_T}$debug" >&6; }
8171 if test "$aros_messages_debug" = "1"; then
8172 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8173 else
8174 aros_messages_debug=""
8176 if test "$aros_symbols_debug" = "1"; then
8177 aros_symbols_debug="-g"
8178 else
8179 aros_symbols_debug=""
8182 # These are the flags to pass when compiling debugged programs
8183 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8184 aros_debug_aflags=""
8185 aros_debug_ldflags="$aros_symbols_debug"
8187 aros_crosstools="no"
8189 #-----------------------------------------------------------------------------
8190 # Checking if we should build crosstools..
8191 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8192 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8193 # Check whether --enable-crosstools was given.
8194 if test "${enable_crosstools+set}" = set; then
8195 enableval=$enable_crosstools; crosstools="$enableval"
8196 else
8197 crosstools="no"
8200 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8201 { echo "$as_me:$LINENO: result: yes" >&5
8202 echo "${ECHO_T}yes" >&6; }
8203 aros_crosstools="yes"
8204 else
8205 { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8209 #-----------------------------------------------------------------------------
8210 # Checking for distcc and ccache.
8212 # Always apply the transforms in this particular order. Basically you should
8213 # always run 'ccache distcc compiler' in that order for the best performance.
8215 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8216 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8217 # Check whether --enable-distcc was given.
8218 if test "${enable_distcc+set}" = set; then
8219 enableval=$enable_distcc; distcc="$enableval"
8220 else
8221 distcc="no"
8224 if test "$distcc" != "" -a "$distcc" != "no"; then
8225 # AC_CHECK_PROG will print out the result in this case
8226 # Extract the first word of "distcc", so it can be a program name with args.
8227 set dummy distcc; ac_word=$2
8228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230 if test "${ac_cv_path_DISTCC+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 case $DISTCC in
8234 [\\/]* | ?:[\\/]*)
8235 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8249 done
8250 done
8251 IFS=$as_save_IFS
8253 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8255 esac
8257 DISTCC=$ac_cv_path_DISTCC
8258 if test -n "$DISTCC"; then
8259 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8260 echo "${ECHO_T}$DISTCC" >&6; }
8261 else
8262 { echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6; }
8267 else
8268 { echo "$as_me:$LINENO: result: no" >&5
8269 echo "${ECHO_T}no" >&6; }
8272 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8273 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8274 # Check whether --enable-ccache was given.
8275 if test "${enable_ccache+set}" = set; then
8276 enableval=$enable_ccache; ccache="$enableval"
8277 else
8278 ccache="no"
8281 if test "$ccache" != "" -a "$ccache" != "no"; then
8282 # AC_CHECK_PROG will print out the result in this case
8283 # Extract the first word of "ccache", so it can be a program name with args.
8284 set dummy ccache; ac_word=$2
8285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287 if test "${ac_cv_prog_CCACHE+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 if test -n "$CCACHE"; then
8291 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_prog_CCACHE="ccache"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8304 done
8305 done
8306 IFS=$as_save_IFS
8310 CCACHE=$ac_cv_prog_CCACHE
8311 if test -n "$CCACHE"; then
8312 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8313 echo "${ECHO_T}$CCACHE" >&6; }
8314 else
8315 { echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6; }
8320 else
8321 { echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6; }
8325 #-----------------------------------------------------------------------------
8326 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8327 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8329 # Check whether --with-gcc-version was given.
8330 if test "${with_gcc_version+set}" = set; then
8331 withval=$with_gcc_version; target_tool_version="$withval"
8332 else
8333 target_tool_version="default"
8336 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8337 echo "${ECHO_T}$target_tool_version" >&6; }
8339 #-----------------------------------------------------------------------------
8340 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8341 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8343 # Check whether --with-optimization was given.
8344 if test "${with_optimization+set}" = set; then
8345 withval=$with_optimization; optimization="$withval"
8346 else
8347 optimization="unknown"
8350 if test "$optimization" = "unknown"; then
8351 if test "$debug" != "none"; then
8352 optimization="-O0"
8353 else
8354 optimization="-O2"
8357 aros_config_cflags="$aros_config_cflags $optimization"
8358 { echo "$as_me:$LINENO: result: $optimization" >&5
8359 echo "${ECHO_T}$optimization" >&6; }
8361 #-----------------------------------------------------------------------------
8362 if test "$target_os" = "ios"; then
8364 { echo "$as_me:$LINENO: checking XCode path" >&5
8365 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8367 # Check whether --with-xcode-path was given.
8368 if test "${with_xcode_path+set}" = set; then
8369 withval=$with_xcode_path; aros_xcode_path="$withval"
8370 else
8371 aros_xcode_path="/Developer"
8374 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8375 echo "${ECHO_T}$aros_xcode_path" >&6; }
8377 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8378 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8380 # Check whether --with-ios-version was given.
8381 if test "${with_ios_version+set}" = set; then
8382 withval=$with_ios_version; aros_ios_version="$withval"
8383 else
8384 aros_ios_version="2.0"
8387 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8388 echo "${ECHO_T}$aros_ios_version" >&6; }
8390 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8391 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8393 # Check whether --with-ios-sdk was given.
8394 if test "${with_ios_sdk+set}" = set; then
8395 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8396 else
8397 aros_ios_sdk="4.1"
8400 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8401 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8405 #-----------------------------------------------------------------------------
8406 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8407 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8408 # Check whether --enable-target_variant was given.
8409 if test "${enable_target_variant+set}" = set; then
8410 enableval=$enable_target_variant; target_variant=$enableval
8411 else
8412 target_variant="none"
8415 if test "$target_variant" = "none"; then
8416 aros_target_variant=""
8417 aros_target_suffix=""
8418 else
8419 aros_target_variant="$target_variant"
8420 aros_target_suffix="-$target_variant"
8422 { echo "$as_me:$LINENO: result: $enableval" >&5
8423 echo "${ECHO_T}$enableval" >&6; }
8425 target_bootloader="none"
8427 #-----------------------------------------------------------------------------
8428 # This is the target configuration switch.
8429 case "$target_os" in
8430 linux*)
8431 aros_target_arch="linux"
8432 case "$target_cpu" in
8433 *m68k*)
8434 aros_target_cpu="m68k"
8435 aros_object_format="m68kelf"
8436 aros_flavour="emulcompat"
8437 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8438 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8439 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8440 gcc_target_cpu="mc68000"
8442 *i?86*)
8443 aros_target_cpu="i386"
8444 aros_object_format="elf_i386"
8445 aros_flavour="emulation"
8446 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8447 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8448 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8449 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8450 aros_config_ldflags="-m32 -march=i486"
8451 aros_kernel_ldflags="-melf_i386"
8452 aros_default_wbdepth=8
8453 gcc_target_cpu="i386"
8455 *x86_64*)
8456 aros_target_cpu="x86_64"
8457 aros_object_format="elf_x86_64"
8458 aros_flavour="emulation"
8459 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8460 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8461 aros_default_wbdepth=8
8462 gcc_target_cpu="x86_64"
8464 *powerpc*)
8465 aros_target_cpu="ppc"
8466 aros_object_format="elf32ppc"
8467 aros_flavour="emulation"
8468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8469 aros_default_wbdepth=8
8470 gcc_target_cpu="ppc"
8472 # TODO
8473 # Same as powerpc, but I need this for the nightly build to work again.
8474 # Actually, the nightly should be made working with powerpc target.
8475 # That just was too much work for the moment, another week or two.
8476 *ppc*)
8477 aros_target_cpu="ppc"
8478 aros_object_format="elf32ppc"
8479 aros_flavour="emulation"
8480 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8481 aros_default_wbdepth=8
8482 gcc_target_cpu="ppc"
8484 *arm*)
8485 aros_target_cpu="arm"
8486 aros_object_format="armelf_linux_eabi"
8487 aros_flavour="emulation"
8488 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8489 gcc_target_cpu="arm"
8490 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8491 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8494 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8495 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8496 { (exit 1); exit 1; }; }
8498 esac
8502 aros_target_arch="pc"
8503 aros_shared_default="no"
8504 target_bootloader="grub2"
8505 case "$target_cpu" in
8506 *i?86*)
8507 aros_target_cpu="i386"
8510 if test "$aros_object_format" = "" ; then
8511 aros_object_format="elf_i386"
8513 aros_flavour="standalone"
8514 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8515 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8516 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8517 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8518 aros_config_ldflags="-m32 -march=i486"
8519 aros_kernel_ldflags="-melf_i386"
8520 aros_default_wbwidth=640
8521 aros_default_wbheight=480
8522 gcc_target_cpu="i386"
8524 *x86_64*)
8525 aros_target_cpu="x86_64"
8526 aros_serial_debug=1
8527 if test "$aros_object_format" = "" ; then
8528 aros_object_format="elf_x86_64"
8530 aros_flavour="standalone"
8531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8532 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8533 aros_kernel_ldflags=""
8534 aros_default_wbwidth=640
8535 aros_default_wbheight=480
8536 gcc_target_cpu="x86_64"
8539 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8540 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8541 { (exit 1); exit 1; }; }
8543 esac
8546 prep)
8547 aros_target_arch="prep"
8548 aros_shared_default="no"
8549 aros_target_cpu="ppc"
8550 aros_object_format="elf32ppc"
8551 aros_flavour="ppcnative"
8552 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8553 aros_kernel_ldflags=""
8554 aros_default_wbwidth=640
8555 aros_default_wbheight=480
8556 gcc_target_cpu="ppc"
8559 freebsd*)
8560 aros_target_arch="freebsd"
8561 aros_target_cpu="i386"
8562 aros_flavour="emulation"
8563 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8564 gcc_target_cpu="i386"
8566 aros_target_strip_flags="-x"
8569 darwin*)
8570 aros_target_arch="darwin"
8571 aros_flavour="emulation"
8572 case "$target_cpu" in
8573 *i?86*)
8574 aros_target_cpu="i386"
8575 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8576 aros_kernel_cflags="$aros_kernel_cflags -m32"
8577 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8578 aros_default_wbdepth=8
8579 gcc_target_cpu="i386"
8580 aros_object_format="elf_i386"
8581 aros_target_strip_flags="-x"
8582 aros_target_cc="i386-aros-gcc"
8583 aros_target_cxx="i386-aros-g++"
8584 aros_target_ld="i386-aros-ld"
8585 aros_target_as="i386-aros-as"
8586 aros_target_ar="i386-aros-ar"
8587 aros_target_ranlib="i386-aros-ranlib"
8588 aros_target_nm="i386-aros-nm"
8589 aros_target_strip="i386-aros-strip"
8590 aros_target_objcopy="i386-aros-objcopy"
8591 aros_target_objdump="i386-aros-objdump"
8592 target_tool_prefix="i686-apple-darwin10-"
8594 *x86_64*)
8595 aros_target_cpu="x86_64"
8596 aros_object_format="elf_x86_64"
8597 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8598 aros_kernel_cflags="$aros_kernel_cflags -m64"
8599 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8600 aros_default_wbdepth=8
8601 gcc_target_cpu="x86_64"
8602 aros_target_cc="x86_64-aros-gcc"
8603 aros_target_cxx="x86_64-aros-g++"
8604 aros_target_ld="x86_64-aros-ld"
8605 aros_target_as="x86_64-aros-as"
8606 aros_target_ar="x86_64-aros-ar"
8607 aros_target_ranlib="x86_64-aros-ranlib"
8608 aros_target_nm="x86_64-aros-nm"
8609 aros_target_strip="x86_64-aros-strip"
8610 aros_target_objcopy="x86_64-aros-objcopy"
8611 aros_target_objdump="x86_64-aros-objdump"
8612 target_tool_prefix="i686-apple-darwin10-"
8614 *ppc*)
8615 aros_target_cpu="ppc"
8616 aros_object_format="elf32_ppc"
8617 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8618 aros_default_wbdepth=8
8619 gcc_target_cpu="ppc"
8620 aros_target_cc="ppc-aros-gcc"
8621 aros_target_cxx="ppc-aros-g++"
8622 aros_target_ld="ppc-aros-ld"
8623 aros_target_as="ppc-aros-as"
8624 aros_target_ar="ppc-aros-ar"
8625 aros_target_ranlib="ppc-aros-ranlib"
8626 aros_target_nm="ppc-aros-nm"
8627 aros_target_strip="ppc-aros-strip"
8628 aros_target_objcopy="ppc-aros-objcopy"
8629 aros_target_objdump="ppc-aros-objdump"
8630 target_tool_prefix="powerpc-apple-darwin10-"
8633 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8634 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8635 { (exit 1); exit 1; }; }
8637 esac
8640 ios*)
8641 aros_target_arch="ios"
8642 aros_flavour="emulation"
8643 # This is here because it may depend on iOS or SDK version
8644 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8645 case "$target_cpu" in
8646 *i?86*)
8647 aros_ios_platform="iPhoneSimulator"
8648 aros_target_cpu="i386"
8649 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8650 aros_default_wbdepth=8
8651 gcc_target_cpu="i386"
8652 aros_object_format="elf_i386"
8653 aros_target_strip_flags="-x"
8654 aros_target_cc="i386-aros-gcc"
8655 aros_target_cxx="i386-aros-g++"
8656 aros_target_ld="i386-aros-ld"
8657 aros_target_as="i386-aros-as"
8658 aros_target_ar="i386-aros-ar"
8659 aros_target_ranlib="i386-aros-ranlib"
8660 aros_target_nm="i386-aros-nm"
8661 aros_target_strip="i386-aros-strip"
8662 aros_target_objcopy="i386-aros-objcopy"
8663 aros_target_objdump="i386-aros-objdump"
8664 target_tool_prefix="i686-apple-darwin10-"
8665 target_tool_flags="-m32"
8667 *arm*)
8668 aros_ios_platform="iPhoneOS"
8669 aros_target_cpu="arm"
8670 aros_object_format="armelf_linux_eabi"
8671 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8672 aros_config_cflags="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8673 aros_config_aflags="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8674 aros_arch_libs="-laeabi"
8675 aros_default_wbdepth=8
8676 gcc_target_cpu="arm"
8677 aros_kernel_ld="ld -arch armv6"
8678 aros_target_cc="arm-linux-gnueabi-gcc"
8679 aros_target_ld="arm-linux-gnueabi-ld"
8680 aros_target_as="arm-linux-gnueabi-as"
8681 aros_target_ar="arm-linux-gnueabi-ar"
8682 aros_target_ranlib="arm-linux-gnueabi-ranlib"
8683 aros_target_nm="arm-linux-gnueabi-nm"
8684 aros_target_strip="arm-linux-gnueabi-strip"
8685 aros_target_objcopy="arm-linux-gnueabi-objcopy"
8686 aros_target_objdump="arm-linux-gnueabi-objdump"
8687 target_tool_prefix="arm-apple-darwin10-"
8688 aros_default_wbwidth=320
8689 aros_default_wbheight=480
8690 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8693 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8694 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8695 { (exit 1); exit 1; }; }
8697 esac
8698 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8699 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
8702 dragonfly*)
8703 aros_target_arch="dragonfly"
8704 aros_flavour="emulation"
8705 case "$target_cpu" in
8706 *i?86*)
8707 aros_target_cpu="i386"
8708 aros_object_format="elf_i386"
8709 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8711 *x86_64*)
8712 aros_target_cpu="x86_64"
8713 aros_object_format="elf_x86_64"
8714 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8717 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8718 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8719 { (exit 1); exit 1; }; }
8721 esac
8724 netbsd*)
8725 aros_target_arch="netbsd"
8726 case "$target_cpu" in
8727 *m68k*)
8728 aros_target_cpu="m68k"
8729 aros_object_format="m68kelf"
8730 aros_flavour="emulcompat"
8731 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8732 gcc_target_cpu="mc68000"
8734 *i?86*)
8735 aros_target_cpu="i386"
8736 aros_object_format="elf_i386"
8737 aros_flavour="emulation"
8738 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8739 aros_default_wbdepth=8
8740 gcc_target_cpu="i386"
8743 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8744 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8745 { (exit 1); exit 1; }; }
8747 esac
8748 aros_target_genmap="-Wl,-M -Xlinker >"
8749 aros_flavour="emulation"
8750 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8753 openbsd*)
8754 aros_target_arch="openbsd"
8755 case "$target_cpu" in
8756 *i?86*)
8757 aros_target_cpu="i386"
8758 aros_object_format="elf_i386"
8759 aros_flavour="emulation"
8760 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8761 gcc_target_cpu="i386"
8764 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8765 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8766 { (exit 1); exit 1; }; }
8768 esac
8769 aros_target_genmap="-Wl,-M -Xlinker >"
8770 aros_target_nm_flags="-u"
8771 aros_flavour="emulation"
8774 solaris*)
8775 aros_target_arch="solaris"
8776 case "$target_cpu" in
8777 *i?86*)
8778 aros_target_cpu="i386"
8779 aros_object_format="elf_i386"
8780 aros_flavour="emulation"
8781 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8782 aros_default_wbdepth=8
8783 gcc_target_cpu="i386"
8785 *sparc*)
8786 aros_target_cpu="sparc"
8787 aros_object_format="elf_sparc"
8788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8789 gcc_target_cpu="sparc"
8792 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8793 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8794 { (exit 1); exit 1; }; }
8796 esac
8797 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8798 aros_flavour="emulation"
8801 morphos*)
8802 aros_target_arch="morphos"
8803 aros_shared_default="no"
8804 aros_target_cpu="ppc"
8805 aros_object_format="elf_ppc"
8806 aros_flavour="nativecompat"
8807 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8808 gcc_target_cpu="ppc"
8811 sam440)
8812 aros_target_arch="sam440"
8813 aros_shared_default="no"
8814 aros_target_cpu="ppc"
8815 aros_object_format="elf32ppc"
8816 aros_flavour="ppcnative"
8817 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8818 aros_kernel_ldflags=""
8819 aros_default_wbwidth=1024
8820 aros_default_wbheight=768
8821 aros_default_wbdepth=24
8822 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8823 gcc_target_cpu="powerpc"
8826 efika)
8827 aros_target_arch="efika"
8828 aros_shared_default="no"
8829 aros_target_cpu="arm"
8830 aros_object_format="armelf_linux_eabi"
8831 aros_flavour="standalone"
8832 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8833 aros_kernel_ldflags=""
8834 aros_default_wbwidth=1024
8835 aros_default_wbheight=600
8836 aros_arch_libs="-laeabi"
8837 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"
8838 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"
8841 chrp)
8842 aros_target_arch="chrp"
8843 aros_shared_default="no"
8844 aros_target_cpu="ppc"
8845 aros_object_format="elf32ppc"
8846 aros_flavour="ppcnative"
8847 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8848 aros_kernel_ldflags=""
8849 aros_default_wbwidth=640
8850 aros_default_wbheight=480
8851 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8852 gcc_target_cpu="powerpc"
8853 case "$aros_target_variant" in
8854 efika)
8855 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8857 esac
8860 amiga*)
8861 aros_target_arch="amiga"
8862 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8863 aros_shared_default="no"
8865 case "$target_cpu" in
8866 *m68k-eabi)
8867 aros_target_cpu="m68k"
8868 aros_object_format="m68kelf"
8869 aros_flavour="standalone"
8870 gcc_target_cpu="mc68000"
8871 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8872 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8873 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8874 target_tool_prefix="m68k-elf-"
8875 aros_target_nostdlib_ldflags="" # We always need -lgcc
8876 aros_target_strip_flags="-R.comment"
8878 *m68k*)
8879 aros_target_cpu="m68k"
8880 aros_object_format="m68kelf"
8881 aros_flavour="standcompat"
8882 gcc_target_cpu="mc68000"
8883 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8884 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8885 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8886 target_tool_prefix="m68k-elf-"
8887 aros_target_nostdlib_ldflags="" # We always need -lgcc
8888 aros_target_strip_flags="-R.comment"
8890 *ppc*)
8891 aros_cpu="ppc"
8892 aros_flavour="native"
8893 gcc_target_cpu="ppc"
8896 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8897 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8898 { (exit 1); exit 1; }; }
8900 esac
8903 mingw*)
8904 aros_target_arch="mingw32"
8905 aros_shared_default="no"
8906 aros_flavour="emulation"
8907 aros_shared_cflags=""
8908 need_dlopen="no"
8909 rescomp="windres"
8910 case "$target_cpu" in
8911 *i?86*)
8912 aros_target_cpu="i386"
8913 aros_object_format="elf_i386"
8914 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8915 aros_default_wbdepth=8
8916 gcc_target_cpu="i386"
8917 aros_target_cc="i386-aros-gcc"
8918 aros_target_cxx="i386-aros-g++"
8919 aros_target_ld="i386-aros-ld"
8920 aros_target_as="i386-aros-as"
8921 aros_target_ar="i386-aros-ar"
8922 aros_target_ranlib="i386-aros-ranlib"
8923 aros_target_nm="i386-aros-nm"
8924 aros_target_strip="i386-aros-strip"
8925 aros_target_objcopy="i386-aros-objcopy"
8926 aros_target_objdump="i386-aros-objdump"
8927 target_tool_prefix="i386-mingw32-"
8929 *x86_64*)
8930 aros_target_cpu="x86_64"
8931 aros_object_format="elf_x86_64"
8932 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8933 aros_default_wbdepth=8
8934 gcc_target_cpu="x86_64"
8935 aros_target_cc="x86_64-aros-gcc"
8936 aros_target_cxx="x86_64-aros-g++"
8937 aros_target_ld="x86_64-aros-ld"
8938 aros_target_as="x86_64-aros-as"
8939 aros_target_ar="x86_64-aros-ar"
8940 aros_target_ranlib="x86_64-aros-ranlib"
8941 aros_target_nm="x86_64-aros-nm"
8942 aros_target_strip="x86_64-aros-strip"
8943 aros_target_objcopy="x86_64-aros-objcopy"
8944 aros_target_objdump="x86_64-aros-objdump"
8945 target_tool_prefix="x86_64-w64-mingw32-"
8947 *arm*)
8948 aros_target_cpu="arm"
8949 aros_object_format="armelf_linux_eabi"
8950 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8951 aros_default_wbdepth=8
8952 gcc_target_cpu="arm"
8953 aros_target_cc="arm-linux-gnueabi-gcc"
8954 aros_target_ld="arm-linux-gnueabi-ld"
8955 aros_target_as="arm-linux-gnueabi-as"
8956 aros_target_ar="arm-linux-gnueabi-ar"
8957 aros_target_ranlib="arm-linux-gnueabi-ranlib"
8958 aros_target_nm="arm-linux-gnueabi-nm"
8959 aros_target_strip="arm-linux-gnueabi-strip"
8960 aros_target_objcopy="arm-linux-gnueabi-objcopy"
8961 aros_target_objdump="arm-linux-gnueabi-objdump"
8962 target_tool_prefix="arm-mingw32ce-"
8963 aros_default_wbwidth=160
8964 aros_default_wbheight=160
8967 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8968 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8969 { (exit 1); exit 1; }; }
8971 esac
8972 if test $host_os = "cygwin"; then
8973 aros_kernel_cflags="-mno-cygwin"
8976 pp*)
8977 aros_target_arch="pp"
8978 aros_shared_default="no"
8979 case "$target_cpu" in
8980 *m68k*)
8981 aros_target_cpu="m68k"
8982 aros_object_format="m68kelf"
8983 aros_flavour="palmnative"
8984 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8985 aros_default_wbwidth=160
8986 aros_default_wbheight=160
8987 aros_default_wbdepth=1
8988 aros_target_ar_flags="cru"
8989 aros_compiler_libs="-lgcc1"
8990 aros_shared_default=no
8991 aros_shared_cflags="-fpic"
8992 aros_shared_aflags=""
8993 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8994 aros_kernel_ldflags="-Wl,-rpath,./lib"
8995 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8996 aros_debug_aflags=""
8997 aros_debug_ldflags="$aros_symbols_debug"
8998 aros_mungwall_debug="0"
8999 aros_modules_debug="0"
9000 gcc_target_cpu="mc68000"
9001 ignore_undefined_symbols="-ius"
9004 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9005 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9006 { (exit 1); exit 1; }; }
9008 esac
9011 mac*)
9012 aros_target_arch="mac"
9013 aros_shared_default="no"
9014 case "$target_cpu" in
9015 *m68k*)
9016 aros_target_cpu="m68k"
9017 aros_object_format="m68kelf"
9018 aros_flavour="mac68knative"
9019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9020 aros_default_wbwidth=512
9021 aros_default_wbheight=384
9022 aros_default_wbdepth=8
9023 aros_target_ar_flags="cru"
9024 aros_compiler_libs="-lgcc1"
9025 aros_shared_default=no
9026 aros_shared_cflags="-fpic"
9027 aros_shared_aflags=""
9028 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9029 aros_kernel_ldflags="-Wl,-rpath,./lib"
9030 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9031 aros_debug_aflags=""
9032 aros_debug_ldflags="$aros_symbols_debug"
9033 aros_mungwall_debug="0"
9034 aros_modules_debug="0"
9035 gcc_target_cpu="mc68000"
9036 ignore_undefined_symbols="-ius"
9039 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9040 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9041 { (exit 1); exit 1; }; }
9043 esac
9047 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9048 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9049 { (exit 1); exit 1; }; }
9051 esac
9053 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9054 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9056 # Check whether --with-portssources was given.
9057 if test "${with_portssources+set}" = set; then
9058 withval=$with_portssources; with_portssrcdir=$withval
9059 else
9060 with_portssrcdir="default"
9063 if test "$with_portssrcdir" = "default"; then
9064 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9065 else
9066 AROS_PORTSSRCDIR="$with_portssrcdir"
9068 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9069 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9071 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9072 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9074 # Check whether --with-bootloader was given.
9075 if test "${with_bootloader+set}" = set; then
9076 withval=$with_bootloader; target_bootloader=$withval
9077 else
9078 target_bootloader=$target_bootloader
9081 if test "$target_bootloader" = "none"; then
9082 aros_target_bootloader=""
9083 else
9084 aros_target_bootloader="$target_bootloader"
9086 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9087 echo "${ECHO_T}$target_bootloader" >&6; }
9089 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9090 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9092 # Check whether --with-iconset was given.
9093 if test "${with_iconset+set}" = set; then
9094 withval=$with_iconset; target_iconset=$withval
9095 else
9096 target_iconset="default"
9099 if test "$target_iconset" = "default"; then
9100 aros_target_iconset="Gorilla"
9101 target_iconset="default (Gorilla)"
9102 else
9103 aros_target_iconset="$target_iconset"
9105 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9106 echo "${ECHO_T}$target_iconset" >&6; }
9108 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9109 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9111 # Check whether --with-theme was given.
9112 if test "${with_theme+set}" = set; then
9113 withval=$with_theme; target_guitheme=$withval
9114 else
9115 target_guitheme="default"
9118 if test "$target_guitheme" = "default"; then
9119 aros_target_guitheme="Ice"
9120 else
9121 aros_target_guitheme="$target_guitheme"
9123 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9124 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9126 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9127 # for target code)
9128 cross_compiling=no
9129 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9130 cross_compiling=yes
9132 if test "$aros_host_cpu" == "x86_64" ; then
9133 if test "$aros_target_cpu" == "i386" ; then
9134 if test "$aros_target_arch" != "mingw32"; then
9135 cross_compiling=no
9140 # Set prefix for target compiler etc. if we're cross-compiling
9141 # (should possibly be earlier but needs to be after AC_PROG_CC)
9142 if test "$cross_compiling" = "yes" ; then
9143 if test "$target_tool_prefix" = ""; then
9144 target_tool_prefix=${target_cpu}-elf-
9146 CC=${target_tool_prefix}gcc
9147 if test "$target_tool_version" != "default"; then
9148 CC="$CC-$target_tool_version"
9150 # Extract the first word of "$CC", so it can be a program name with args.
9151 set dummy $CC; ac_word=$2
9152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9154 if test "${ac_cv_path_CC+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157 case $CC in
9158 [\\/]* | ?:[\\/]*)
9159 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 for as_dir in $PATH
9165 IFS=$as_save_IFS
9166 test -z "$as_dir" && as_dir=.
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 break 2
9173 done
9174 done
9175 IFS=$as_save_IFS
9178 esac
9180 CC=$ac_cv_path_CC
9181 if test -n "$CC"; then
9182 { echo "$as_me:$LINENO: result: $CC" >&5
9183 echo "${ECHO_T}$CC" >&6; }
9184 else
9185 { echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6; }
9190 if test "$CC" = ""; then
9191 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9192 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9193 { (exit 1); exit 1; }; }
9196 CC="$CC $target_tool_flags"
9198 #-----------------------------------------------------------------------------
9200 # Disable pointer-signedness warnings if the compiler recognises the option
9202 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9203 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9204 save_cflags="$CFLAGS"
9205 CFLAGS="$CFLAGS -Wno-pointer-sign"
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9214 main ()
9218 return 0;
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (ac_try="$ac_compile"
9223 case "(($ac_try" in
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9226 esac
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_compile") 2>conftest.er1
9229 ac_status=$?
9230 grep -v '^ *+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest.$ac_objext; then
9238 use_no_sign_warning="yes"
9239 else
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 use_no_sign_warning="no"
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9248 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9249 if test "x-$use_no_sign_warning" = "x-yes" ; then
9250 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9252 CFLAGS="$save_cflags"
9254 #-----------------------------------------------------------------------------
9256 # Find all the tools we need to compile. This could be cross-compiling
9257 # though! If that is the case we use the GNU form of the target and
9258 # simply add this to the front of the binary name. This is rather simple,
9259 # but it should work under most circumstances.
9261 # The default tools are to use the same as the host, but only if the
9262 # host and target CPU are the same. With GCC this is normally enough.
9265 aros_cc_pre=""
9266 aros_shared_ld="$aros_host_ld"
9268 aros_target_mkdep="$aros_host_mkdep"
9269 aros_target_incl_def="$aros_host_incl"
9271 aros_kernel_cc="$CC"
9273 # The default tools executables to be linked to.
9274 if test "$aros_target_cc" != ""; then
9275 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9276 set dummy $aros_target_cc; ac_word=$2
9277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9279 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 case $aros_target_cc in
9283 [\\/]* | ?:[\\/]*)
9284 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9294 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9298 done
9299 done
9300 IFS=$as_save_IFS
9303 esac
9305 aros_target_cc=$ac_cv_path_aros_target_cc
9306 if test -n "$aros_target_cc"; then
9307 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9308 echo "${ECHO_T}$aros_target_cc" >&6; }
9309 else
9310 { echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6; }
9315 if test "$aros_target_cc" = ""; then
9316 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9317 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9318 { (exit 1); exit 1; }; }
9321 if test "$aros_target_ld" != ""; then
9322 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9323 set dummy $aros_target_ld; ac_word=$2
9324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9326 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329 case $aros_target_ld in
9330 [\\/]* | ?:[\\/]*)
9331 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 break 2
9345 done
9346 done
9347 IFS=$as_save_IFS
9350 esac
9352 aros_target_ld=$ac_cv_path_aros_target_ld
9353 if test -n "$aros_target_ld"; then
9354 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9355 echo "${ECHO_T}$aros_target_ld" >&6; }
9356 else
9357 { echo "$as_me:$LINENO: result: no" >&5
9358 echo "${ECHO_T}no" >&6; }
9362 if test "$aros_target_ld" = ""; then
9363 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9364 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9365 { (exit 1); exit 1; }; }
9369 if test "$crosstools" != "yes"; then
9371 if test "$aros_target_as" = ""; then
9372 if test "$cross_compiling" = "yes" ; then
9373 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9374 set dummy ${target_tool_prefix}as; ac_word=$2
9375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9377 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380 case $aros_target_as_ln in
9381 [\\/]* | ?:[\\/]*)
9382 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 break 2
9396 done
9397 done
9398 IFS=$as_save_IFS
9401 esac
9403 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9404 if test -n "$aros_target_as_ln"; then
9405 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9406 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9407 else
9408 { echo "$as_me:$LINENO: result: no" >&5
9409 echo "${ECHO_T}no" >&6; }
9413 else
9414 if test "$GCC" = "yes"; then
9415 aros_gcc_as=`$CC -print-prog-name=as`
9416 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9417 set dummy `basename $aros_gcc_as`; ac_word=$2
9418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9420 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 case $aros_target_as_ln in
9424 [\\/]* | ?:[\\/]*)
9425 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in `dirname $aros_gcc_as`
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9439 done
9440 done
9441 IFS=$as_save_IFS
9444 esac
9446 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9447 if test -n "$aros_target_as_ln"; then
9448 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9449 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9450 else
9451 { echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6; }
9457 if test "$aros_target_as_ln" = ""; then
9458 # Extract the first word of "as", so it can be a program name with args.
9459 set dummy as; ac_word=$2
9460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9462 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 case $aros_target_as_ln in
9466 [\\/]* | ?:[\\/]*)
9467 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9481 done
9482 done
9483 IFS=$as_save_IFS
9486 esac
9488 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9489 if test -n "$aros_target_as_ln"; then
9490 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9491 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9492 else
9493 { echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6; }
9500 else
9501 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9502 set dummy $aros_target_as; ac_word=$2
9503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9505 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508 case $aros_target_as_ln in
9509 [\\/]* | ?:[\\/]*)
9510 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9516 IFS=$as_save_IFS
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9520 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9522 break 2
9524 done
9525 done
9526 IFS=$as_save_IFS
9529 esac
9531 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9532 if test -n "$aros_target_as_ln"; then
9533 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9534 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9535 else
9536 { echo "$as_me:$LINENO: result: no" >&5
9537 echo "${ECHO_T}no" >&6; }
9543 if test "$aros_target_as_ln" = ""; then
9544 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9545 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9546 { (exit 1); exit 1; }; }
9549 if test "$aros_kernel_ld" = ""; then
9550 if test "$cross_compiling" = "yes" ; then
9551 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9552 set dummy ${target_tool_prefix}ld; ac_word=$2
9553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9555 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 case $aros_kernel_ld in
9559 [\\/]* | ?:[\\/]*)
9560 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 break 2
9574 done
9575 done
9576 IFS=$as_save_IFS
9579 esac
9581 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9582 if test -n "$aros_kernel_ld"; then
9583 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9584 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9585 else
9586 { echo "$as_me:$LINENO: result: no" >&5
9587 echo "${ECHO_T}no" >&6; }
9591 else
9592 if test "$GCC" = "yes"; then
9593 aros_gcc_ld=`$CC -print-prog-name=ld`
9594 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9595 set dummy `basename $aros_gcc_ld`; ac_word=$2
9596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9598 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601 case $aros_kernel_ld in
9602 [\\/]* | ?:[\\/]*)
9603 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in `dirname $aros_gcc_ld`
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9615 break 2
9617 done
9618 done
9619 IFS=$as_save_IFS
9622 esac
9624 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9625 if test -n "$aros_kernel_ld"; then
9626 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9627 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9628 else
9629 { echo "$as_me:$LINENO: result: no" >&5
9630 echo "${ECHO_T}no" >&6; }
9635 if test "$aros_kernel_ld" = ""; then
9636 # Extract the first word of "ld", so it can be a program name with args.
9637 set dummy ld; ac_word=$2
9638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9640 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 case $aros_kernel_ld in
9644 [\\/]* | ?:[\\/]*)
9645 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 for as_dir in $PATH
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9655 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9659 done
9660 done
9661 IFS=$as_save_IFS
9664 esac
9666 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9667 if test -n "$aros_kernel_ld"; then
9668 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9669 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9670 else
9671 { echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6; }
9678 else
9679 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9680 set dummy $aros_kernel_ld; ac_word=$2
9681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9683 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 case $aros_kernel_ld in
9687 [\\/]* | ?:[\\/]*)
9688 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9702 done
9703 done
9704 IFS=$as_save_IFS
9707 esac
9709 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9710 if test -n "$aros_kernel_ld"; then
9711 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9712 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9713 else
9714 { echo "$as_me:$LINENO: result: no" >&5
9715 echo "${ECHO_T}no" >&6; }
9721 if test "$aros_kernel_ld" = ""; then
9722 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9723 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9724 { (exit 1); exit 1; }; }
9727 if test "$aros_target_ar" = ""; then
9728 if test "$cross_compiling" = "yes" ; then
9729 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9730 set dummy ${target_tool_prefix}ar; ac_word=$2
9731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9733 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736 case $aros_target_ar_ln in
9737 [\\/]* | ?:[\\/]*)
9738 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9752 done
9753 done
9754 IFS=$as_save_IFS
9757 esac
9759 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9760 if test -n "$aros_target_ar_ln"; then
9761 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9762 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9763 else
9764 { echo "$as_me:$LINENO: result: no" >&5
9765 echo "${ECHO_T}no" >&6; }
9769 else
9770 if test "$GCC" = "yes"; then
9771 aros_gcc_ar=`$CC -print-prog-name=ar`
9772 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9773 set dummy `basename $aros_gcc_ar`; ac_word=$2
9774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9776 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 case $aros_target_ar_ln in
9780 [\\/]* | ?:[\\/]*)
9781 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in `dirname $aros_gcc_ar`
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 break 2
9795 done
9796 done
9797 IFS=$as_save_IFS
9800 esac
9802 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9803 if test -n "$aros_target_ar_ln"; then
9804 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9805 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9806 else
9807 { echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6; }
9813 if test "$aros_target_ar_ln" = ""; then
9814 # Extract the first word of "ar", so it can be a program name with args.
9815 set dummy ar; ac_word=$2
9816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9818 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 case $aros_target_ar_ln in
9822 [\\/]* | ?:[\\/]*)
9823 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9837 done
9838 done
9839 IFS=$as_save_IFS
9842 esac
9844 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9845 if test -n "$aros_target_ar_ln"; then
9846 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9847 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9848 else
9849 { echo "$as_me:$LINENO: result: no" >&5
9850 echo "${ECHO_T}no" >&6; }
9856 else
9857 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9858 set dummy $aros_target_ar; ac_word=$2
9859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9861 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 case $aros_target_ar_ln in
9865 [\\/]* | ?:[\\/]*)
9866 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9880 done
9881 done
9882 IFS=$as_save_IFS
9885 esac
9887 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9888 if test -n "$aros_target_ar_ln"; then
9889 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9890 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9891 else
9892 { echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6; }
9899 if test "$aros_target_ar_ln" = ""; then
9900 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9901 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9902 { (exit 1); exit 1; }; }
9905 if test "$aros_target_nm" = ""; then
9906 if test "$cross_compiling" = "yes" ; then
9907 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9908 set dummy ${target_tool_prefix}nm; ac_word=$2
9909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9911 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 case $aros_target_nm_ln in
9915 [\\/]* | ?:[\\/]*)
9916 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 for as_dir in $PATH
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9926 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9930 done
9931 done
9932 IFS=$as_save_IFS
9935 esac
9937 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9938 if test -n "$aros_target_nm_ln"; then
9939 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9940 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9941 else
9942 { echo "$as_me:$LINENO: result: no" >&5
9943 echo "${ECHO_T}no" >&6; }
9947 else
9948 if test "$GCC" = "yes"; then
9949 aros_gcc_nm=`$CC -print-prog-name=nm`
9950 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9951 set dummy `basename $aros_gcc_nm`; ac_word=$2
9952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9954 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 case $aros_target_nm_ln in
9958 [\\/]* | ?:[\\/]*)
9959 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in `dirname $aros_gcc_nm`
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9973 done
9974 done
9975 IFS=$as_save_IFS
9978 esac
9980 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9981 if test -n "$aros_target_nm_ln"; then
9982 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9983 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9984 else
9985 { echo "$as_me:$LINENO: result: no" >&5
9986 echo "${ECHO_T}no" >&6; }
9991 if test "$aros_target_nm_ln" = ""; then
9992 # Extract the first word of "nm", so it can be a program name with args.
9993 set dummy nm; ac_word=$2
9994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9996 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999 case $aros_target_nm_ln in
10000 [\\/]* | ?:[\\/]*)
10001 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10015 done
10016 done
10017 IFS=$as_save_IFS
10020 esac
10022 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10023 if test -n "$aros_target_nm_ln"; then
10024 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10025 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10026 else
10027 { echo "$as_me:$LINENO: result: no" >&5
10028 echo "${ECHO_T}no" >&6; }
10034 else
10035 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10036 set dummy $aros_target_nm; ac_word=$2
10037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10039 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 case $aros_target_nm_ln in
10043 [\\/]* | ?:[\\/]*)
10044 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10058 done
10059 done
10060 IFS=$as_save_IFS
10063 esac
10065 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10066 if test -n "$aros_target_nm_ln"; then
10067 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10068 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10069 else
10070 { echo "$as_me:$LINENO: result: no" >&5
10071 echo "${ECHO_T}no" >&6; }
10077 if test "$aros_target_nm_ln" = ""; then
10078 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10079 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10080 { (exit 1); exit 1; }; }
10083 if test "$aros_target_objcopy" = ""; then
10084 if test "$cross_compiling" = "yes" ; then
10085 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10086 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10089 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 case $aros_target_objcopy_ln in
10093 [\\/]* | ?:[\\/]*)
10094 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10104 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10108 done
10109 done
10110 IFS=$as_save_IFS
10113 esac
10115 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10116 if test -n "$aros_target_objcopy_ln"; then
10117 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10118 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10119 else
10120 { echo "$as_me:$LINENO: result: no" >&5
10121 echo "${ECHO_T}no" >&6; }
10125 else
10126 if test "$GCC" = "yes"; then
10127 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10128 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10129 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10132 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 case $aros_target_objcopy_ln in
10136 [\\/]* | ?:[\\/]*)
10137 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in `dirname $aros_gcc_objcopy`
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10151 done
10152 done
10153 IFS=$as_save_IFS
10156 esac
10158 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10159 if test -n "$aros_target_objcopy_ln"; then
10160 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10161 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10162 else
10163 { echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6; }
10169 if test "$aros_target_objcopy_ln" = ""; then
10170 # Extract the first word of "objcopy", so it can be a program name with args.
10171 set dummy objcopy; ac_word=$2
10172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10174 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177 case $aros_target_objcopy_ln in
10178 [\\/]* | ?:[\\/]*)
10179 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10189 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 break 2
10193 done
10194 done
10195 IFS=$as_save_IFS
10198 esac
10200 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10201 if test -n "$aros_target_objcopy_ln"; then
10202 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10203 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10204 else
10205 { echo "$as_me:$LINENO: result: no" >&5
10206 echo "${ECHO_T}no" >&6; }
10212 else
10213 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10214 set dummy $aros_target_objcopy; ac_word=$2
10215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10217 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 case $aros_target_objcopy_ln in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10236 done
10237 done
10238 IFS=$as_save_IFS
10241 esac
10243 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10244 if test -n "$aros_target_objcopy_ln"; then
10245 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10246 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10247 else
10248 { echo "$as_me:$LINENO: result: no" >&5
10249 echo "${ECHO_T}no" >&6; }
10255 if test "$aros_target_objcopy_ln" = ""; then
10256 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10257 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10258 { (exit 1); exit 1; }; }
10261 if test "$aros_target_objdump" = ""; then
10262 if test "$cross_compiling" = "yes" ; then
10263 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10264 set dummy ${target_tool_prefix}objdump; ac_word=$2
10265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10267 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 case $aros_target_objdump_ln in
10271 [\\/]* | ?:[\\/]*)
10272 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276 for as_dir in $PATH
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10282 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10286 done
10287 done
10288 IFS=$as_save_IFS
10291 esac
10293 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10294 if test -n "$aros_target_objdump_ln"; then
10295 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10296 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10297 else
10298 { echo "$as_me:$LINENO: result: no" >&5
10299 echo "${ECHO_T}no" >&6; }
10303 else
10304 if test "$GCC" = "yes"; then
10305 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10306 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10307 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10310 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313 case $aros_target_objdump_ln in
10314 [\\/]* | ?:[\\/]*)
10315 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in `dirname $aros_gcc_objdump`
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10325 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10329 done
10330 done
10331 IFS=$as_save_IFS
10334 esac
10336 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10337 if test -n "$aros_target_objdump_ln"; then
10338 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10339 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10340 else
10341 { echo "$as_me:$LINENO: result: no" >&5
10342 echo "${ECHO_T}no" >&6; }
10347 if test "$aros_target_objdump_ln" = ""; then
10348 # Extract the first word of "objdump", so it can be a program name with args.
10349 set dummy objdump; ac_word=$2
10350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10352 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355 case $aros_target_objdump_ln in
10356 [\\/]* | ?:[\\/]*)
10357 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10371 done
10372 done
10373 IFS=$as_save_IFS
10376 esac
10378 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10379 if test -n "$aros_target_objdump_ln"; then
10380 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10381 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10382 else
10383 { echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6; }
10390 else
10391 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10392 set dummy $aros_target_objdump; ac_word=$2
10393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10395 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398 case $aros_target_objdump_ln in
10399 [\\/]* | ?:[\\/]*)
10400 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10414 done
10415 done
10416 IFS=$as_save_IFS
10419 esac
10421 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10422 if test -n "$aros_target_objdump_ln"; then
10423 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10424 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10425 else
10426 { echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6; }
10433 if test "$aros_target_objdump_ln" = ""; then
10434 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10435 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10436 { (exit 1); exit 1; }; }
10439 if test "$aros_target_ranlib" = ""; then
10440 if test "$cross_compiling" = "yes" ; then
10441 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10442 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10445 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 case $aros_target_ranlib_ln in
10449 [\\/]* | ?:[\\/]*)
10450 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10460 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10464 done
10465 done
10466 IFS=$as_save_IFS
10469 esac
10471 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10472 if test -n "$aros_target_ranlib_ln"; then
10473 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10474 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10475 else
10476 { echo "$as_me:$LINENO: result: no" >&5
10477 echo "${ECHO_T}no" >&6; }
10481 else
10482 if test "$GCC" = "yes"; then
10483 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10484 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10485 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10488 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491 case $aros_target_ranlib_ln in
10492 [\\/]* | ?:[\\/]*)
10493 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in `dirname $aros_gcc_ranlib`
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10507 done
10508 done
10509 IFS=$as_save_IFS
10512 esac
10514 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10515 if test -n "$aros_target_ranlib_ln"; then
10516 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10517 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10518 else
10519 { echo "$as_me:$LINENO: result: no" >&5
10520 echo "${ECHO_T}no" >&6; }
10525 if test "$aros_target_ranlib_ln" = ""; then
10526 # Extract the first word of "ranlib", so it can be a program name with args.
10527 set dummy ranlib; ac_word=$2
10528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10530 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533 case $aros_target_ranlib_ln in
10534 [\\/]* | ?:[\\/]*)
10535 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10545 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 break 2
10549 done
10550 done
10551 IFS=$as_save_IFS
10554 esac
10556 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10557 if test -n "$aros_target_ranlib_ln"; then
10558 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10559 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10560 else
10561 { echo "$as_me:$LINENO: result: no" >&5
10562 echo "${ECHO_T}no" >&6; }
10568 else
10569 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10570 set dummy $aros_target_ranlib; ac_word=$2
10571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10573 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 case $aros_target_ranlib_ln in
10577 [\\/]* | ?:[\\/]*)
10578 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10588 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10592 done
10593 done
10594 IFS=$as_save_IFS
10597 esac
10599 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10600 if test -n "$aros_target_ranlib_ln"; then
10601 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10602 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10603 else
10604 { echo "$as_me:$LINENO: result: no" >&5
10605 echo "${ECHO_T}no" >&6; }
10611 if test "$aros_target_ranlib_ln" = ""; then
10612 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10613 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10614 { (exit 1); exit 1; }; }
10617 if test "$aros_target_strip" = ""; then
10618 if test "$cross_compiling" = "yes" ; then
10619 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10620 set dummy ${target_tool_prefix}strip; ac_word=$2
10621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10623 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 case $aros_target_strip_ln in
10627 [\\/]* | ?:[\\/]*)
10628 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10638 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10642 done
10643 done
10644 IFS=$as_save_IFS
10647 esac
10649 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10650 if test -n "$aros_target_strip_ln"; then
10651 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10652 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10653 else
10654 { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10659 else
10660 if test "$GCC" = "yes"; then
10661 aros_gcc_strip=`$CC -print-prog-name=strip`
10662 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10663 set dummy `basename $aros_gcc_strip`; ac_word=$2
10664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10666 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 case $aros_target_strip_ln in
10670 [\\/]* | ?:[\\/]*)
10671 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in `dirname $aros_gcc_strip`
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10685 done
10686 done
10687 IFS=$as_save_IFS
10690 esac
10692 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10693 if test -n "$aros_target_strip_ln"; then
10694 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10695 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10696 else
10697 { echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6; }
10703 if test "$aros_target_strip_ln" = ""; then
10704 # Extract the first word of "strip", so it can be a program name with args.
10705 set dummy strip; ac_word=$2
10706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10708 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 case $aros_target_strip_ln in
10712 [\\/]* | ?:[\\/]*)
10713 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10723 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10727 done
10728 done
10729 IFS=$as_save_IFS
10732 esac
10734 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10735 if test -n "$aros_target_strip_ln"; then
10736 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10737 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10738 else
10739 { echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6; }
10746 else
10747 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10748 set dummy $aros_target_strip; ac_word=$2
10749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10751 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 case $aros_target_strip_ln in
10755 [\\/]* | ?:[\\/]*)
10756 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10766 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10770 done
10771 done
10772 IFS=$as_save_IFS
10775 esac
10777 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10778 if test -n "$aros_target_strip_ln"; then
10779 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10780 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10781 else
10782 { echo "$as_me:$LINENO: result: no" >&5
10783 echo "${ECHO_T}no" >&6; }
10789 if test "$aros_target_strip_ln" = ""; then
10790 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10791 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10792 { (exit 1); exit 1; }; }
10794 if test "$aros_target_cxx" != ""; then
10795 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10796 set dummy $aros_target_cxx; ac_word=$2
10797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10799 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802 case $aros_target_cxx in
10803 [\\/]* | ?:[\\/]*)
10804 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10818 done
10819 done
10820 IFS=$as_save_IFS
10823 esac
10825 aros_target_cxx=$ac_cv_path_aros_target_cxx
10826 if test -n "$aros_target_cxx"; then
10827 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
10828 echo "${ECHO_T}$aros_target_cxx" >&6; }
10829 else
10830 { echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6; }
10835 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
10836 # AROS_REQUIRED(c++,$aros_target_cxx)
10838 else
10839 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10840 aros_target_cxx=""
10843 # Build crosstools if we have no C++ - temporary thing
10844 if test "$aros_target_cxx" = ""; then
10845 crosstools_target=tools-crosstools
10848 if test "$rescomp" != ""; then
10849 if test "$cross_compiling" = "yes" ; then
10850 rescomp=${target_tool_prefix}${rescomp}
10852 # Extract the first word of "$rescomp", so it can be a program name with args.
10853 set dummy $rescomp; ac_word=$2
10854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10856 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859 case $aros_kernel_rescomp in
10860 [\\/]* | ?:[\\/]*)
10861 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865 for as_dir in $PATH
10867 IFS=$as_save_IFS
10868 test -z "$as_dir" && as_dir=.
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10871 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10873 break 2
10875 done
10876 done
10877 IFS=$as_save_IFS
10880 esac
10882 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10883 if test -n "$aros_kernel_rescomp"; then
10884 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10885 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10886 else
10887 { echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6; }
10892 if test "$aros_kernel_rescomp" = ""; then
10893 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10894 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10895 { (exit 1); exit 1; }; }
10899 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10900 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10901 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10902 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10903 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10904 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10905 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10907 # aros_cc_pre is a variable that is added to the front of the compiler name
10908 # in the generated aros-gcc shell script. We need this to enable the cache
10909 # to work across cleaned builds. Also, support DISTCC using the correct
10910 # environment variable.
10913 if test "x${DISTCC}" != "x" ; then
10914 if test "x${CCACHE}" != "x" ; then
10915 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10916 else
10917 aros_cc_pre="${DISTCC} "
10919 else
10920 if test "x${CCACHE}" != "x" ; then
10921 aros_cc_pre="${CCACHE} "
10925 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10927 aros_target_nostdinc_cflags=-nostdinc
10929 aros_target_nostartup_ldflags=-nostartfiles
10931 aros_target_nix_ldflags=-nix
10933 aros_target_detach_ldflags=-detach
10935 aros_target_nostdlib_ldflags=-nostdlib
10938 # Target tools
10939 if test "$aros_target_cc" = ""; then
10940 orig_target_cc=$aros_kernel_cc
10941 else
10942 orig_target_cc=$aros_target_cc
10944 if test "$aros_target_ld" = ""; then
10945 orig_target_ld=$aros_kernel_ld
10946 else
10947 orig_target_ld=$aros_target_ld
10949 if test "$GCC" = "yes"; then
10950 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10952 aros_target_cc="${prefix}-gcc"
10953 aros_target_as="${prefix}-as"
10954 aros_target_ld="${prefix}-ld"
10955 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10956 aros_target_objcopy=${prefix}-objcopy
10957 aros_target_objdump=${prefix}-objdump
10958 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10959 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10960 aros_kernel_nm="${prefix}-nm"
10961 aros_target_strip=${prefix}-strip
10963 # Find the system include path. We can suggest that an alternative is
10964 # used if we don't get it correct. The default is to use /usr/include.
10965 # Which is set in the aros_target_incl_def variable.
10967 # Check whether --enable-includes was given.
10968 if test "${enable_includes+set}" = set; then
10969 enableval=$enable_includes; aros_target_incl=$enable_includes
10970 else
10971 aros_target_incl=$aros_target_incl_def
10975 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10976 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10977 if test "$aros_target_cc_includes" = "" ; then
10978 #try to guess where the directory is
10979 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10980 if ! test -d $aros_target_cc_includes; then
10981 #the directory doesn't exist, we need to do some more work
10982 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10984 #these are the headers we're looling for
10985 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10986 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10987 zutil.h"
10989 dirs=
10990 for h in $headers; do
10991 #which other headers each of the above headers needs?
10992 deps=$(echo "#include <$h>" | \
10993 $aros_host_cc -E -M - 2>/dev/null | \
10994 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10996 #copy all the needed headers to a directory beneath gendir
10997 for d in $deps; do
10998 h=$(basename $d)
10999 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11000 sed -n "s,^.*/include\(/.*\),\1,p")
11001 ! test -d $dir && mkdir -p $dir
11002 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11003 done
11004 done
11007 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11008 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11011 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11012 # On GCC >= 4.0 -iquote should be used
11015 save_cc="$CC"
11016 save_cflags="$CFLAGS"
11017 CFLAGS="-iquote."
11018 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11019 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11028 main ()
11032 return 0;
11034 _ACEOF
11035 rm -f conftest.$ac_objext
11036 if { (ac_try="$ac_compile"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_compile") 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } && {
11049 test -z "$ac_c_werror_flag" ||
11050 test ! -s conftest.err
11051 } && test -s conftest.$ac_objext; then
11052 has_iquote="yes"
11053 else
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 has_iquote="no"
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11062 echo "${ECHO_T}$has_iquote" >&6; }
11063 if test "x-$has_iquote" = "x-yes" ; then
11064 host_cflags_iquote=-iquote
11065 host_cflags_iquote_end=
11066 else
11067 host_cflags_iquote=-I
11068 host_cflags_iquote_end=-I-
11070 kernel_cflags_iquote=$host_cflags_iquote
11071 kernel_cflags_iquote_end=$host_cflags_iquote_end
11072 if test "x-$cross_compiling" = "x-yes"; then
11073 CC="$aros_kernel_cc"
11074 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11075 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11084 main ()
11088 return 0;
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11108 use_no_stack_protector="yes"
11109 else
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 use_no_stack_protector="no"
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11118 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11119 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11120 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h. */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11129 main ()
11133 return 0;
11135 _ACEOF
11136 rm -f conftest.$ac_objext
11137 if { (ac_try="$ac_compile"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_compile") 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest.$ac_objext; then
11153 has_iquote="yes"
11154 else
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 has_iquote="no"
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11163 echo "${ECHO_T}$has_iquote" >&6; }
11164 if test "x-$has_iquote" = "x-yes" ; then
11165 kernel_cflags_iquote=-iquote
11166 kernel_cflags_iquote_end=
11167 else
11168 kernel_cflags_iquote=-I
11169 kernel_cflags_iquote_end=-I-
11172 aros_cflags_iquote=$kernel_cflags_iquote
11173 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11174 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11175 CC="$orig_target_cc"
11176 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11177 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11186 main ()
11190 return 0;
11192 _ACEOF
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11210 has_iquote="yes"
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 has_iquote="no"
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11220 echo "${ECHO_T}$has_iquote" >&6; }
11221 if test "x-$has_iquote" = "x-yes" ; then
11222 aros_cflags_iquote=-iquote
11223 aros_cflags_iquote_end=
11224 else
11225 aros_cflags_iquote=-I
11226 aros_cflags_iquote_end=-I-
11229 if test "x-$use_no_stack_protector" = "x-yes" ; then
11230 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11233 #-----------------------------------------------------------------------------
11235 # Check if we can explicitly choose older version of symbol hashing
11237 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11238 CC="$aros_kernel_cc"
11239 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11240 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11249 main ()
11253 return 0;
11255 _ACEOF
11256 rm -f conftest.$ac_objext conftest$ac_exeext
11257 if { (ac_try="$ac_link"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_link") 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest$ac_exeext &&
11273 $as_test_x conftest$ac_exeext; then
11274 use_hash_style="yes"
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 use_hash_style="no"
11282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11283 conftest$ac_exeext conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11285 echo "${ECHO_T}$use_hash_style" >&6; }
11286 if test "x-$use_hash_style" = "x-yes" ; then
11287 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11289 CC="$save_cc"
11290 CFLAGS="$save_cflags"
11300 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11301 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11303 # Check whether --with-resolution was given.
11304 if test "${with_resolution+set}" = set; then
11305 withval=$with_resolution; resolution=$withval
11306 else
11307 resolution=none
11310 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11311 if test "$resolution" = "yes" ; then
11312 resolution="none"
11314 if test "$resolution" = "no" ; then
11315 resolution="none"
11317 if test "$resolution" != "none" ; then
11318 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11319 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11320 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11322 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11323 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11324 aros_cv_default_wbwidth=$aros_default_wbwidth
11325 aros_cv_default_wbheight=$aros_default_wbheight
11326 aros_cv_default_wbdepth=$aros_default_wbdepth
11328 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11329 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11331 # Check whether --with-serial-debug was given.
11332 if test "${with_serial_debug+set}" = set; then
11333 withval=$with_serial_debug; serial_debug=$withval
11334 else
11335 serial_debug=none
11338 if test "$aros_serial_debug" = 0 ; then
11339 serial_debug_forced=""
11340 if test "$serial_debug" = "yes" ; then
11341 serial_debug="2"
11343 if test "$serial_debug" = "no" ; then
11344 serial_debug="none"
11346 else
11347 serial_debug_forced="(forced)"
11348 serial_debug=$aros_serial_debug
11350 if test "$serial_debug" != "none" ; then
11351 aros_serial_debug=$serial_debug
11352 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11353 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11354 else
11355 { echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6; }
11359 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11360 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11361 # Check whether --enable-palm_debug_hack was given.
11362 if test "${enable_palm_debug_hack+set}" = set; then
11363 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11364 else
11365 palm_debug_hack="no"
11368 if test "$palm_debug_hack" = "yes" ; then
11369 aros_palm_debug_hack="1"
11371 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11372 echo "${ECHO_T}$palm_debug_hack" >&6; }
11375 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11376 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11377 # Check whether --enable-nesting_supervisor was given.
11378 if test "${enable_nesting_supervisor+set}" = set; then
11379 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11380 else
11381 nesting_supervisor="no"
11384 if test "$nesting_supervisor" = "yes" ; then
11385 aros_nesting_supervisor="1"
11387 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11388 echo "${ECHO_T}$nesting_supervisor" >&6; }
11391 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11393 if test "x-$need_dlopen" != "x-no" ; then
11394 { echo "$as_me:$LINENO: checking for dlopen" >&5
11395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11396 if test "${ac_cv_func_dlopen+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11407 #define dlopen innocuous_dlopen
11409 /* System header to define __stub macros and hopefully few prototypes,
11410 which can conflict with char dlopen (); below.
11411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11412 <limits.h> exists even on freestanding compilers. */
11414 #ifdef __STDC__
11415 # include <limits.h>
11416 #else
11417 # include <assert.h>
11418 #endif
11420 #undef dlopen
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char dlopen ();
11429 /* The GNU C library defines this for functions which it implements
11430 to always fail with ENOSYS. Some functions are actually named
11431 something starting with __ and the normal name is an alias. */
11432 #if defined __stub_dlopen || defined __stub___dlopen
11433 choke me
11434 #endif
11437 main ()
11439 return dlopen ();
11441 return 0;
11443 _ACEOF
11444 rm -f conftest.$ac_objext conftest$ac_exeext
11445 if { (ac_try="$ac_link"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_link") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest$ac_exeext &&
11461 $as_test_x conftest$ac_exeext; then
11462 ac_cv_func_dlopen=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_cv_func_dlopen=no
11470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11471 conftest$ac_exeext conftest.$ac_ext
11473 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11474 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11475 if test $ac_cv_func_dlopen = yes; then
11476 have_dl="yes"
11477 else
11478 have_dl="no"
11481 if test "x-$have_dl" = "x-no" ; then
11482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487 ac_check_lib_save_LIBS=$LIBS
11488 LIBS="-ldl $LIBS"
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char dlopen ();
11504 main ()
11506 return dlopen ();
11508 return 0;
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (ac_try="$ac_link"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_link") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest$ac_exeext &&
11528 $as_test_x conftest$ac_exeext; then
11529 ac_cv_lib_dl_dlopen=yes
11530 else
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 ac_cv_lib_dl_dlopen=no
11537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11542 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11543 if test $ac_cv_lib_dl_dlopen = yes; then
11544 have_dl="yes"
11545 aros_host_ldflags="$aros_host_ldflags -ldl"
11546 else
11547 have_dl="no"
11551 if test "x-$have_dl" = "x-no" ; then
11552 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11553 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11554 { (exit 1); exit 1; }; }
11559 # Check whether --enable-x11_hidd was given.
11560 if test "${enable_x11_hidd+set}" = set; then
11561 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11562 else
11563 x11_hidd="auto"
11566 case "x-$x11_hidd" in
11567 x-yes|x-no|x-auto) ;;
11568 *) x11_hidd="auto" ;;
11569 esac
11571 ENABLE_X11=0
11573 if test "x-$x11_hidd" != "x-no" ; then
11575 { echo "$as_me:$LINENO: checking for X" >&5
11576 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11579 # Check whether --with-x was given.
11580 if test "${with_x+set}" = set; then
11581 withval=$with_x;
11584 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11585 if test "x$with_x" = xno; then
11586 # The user explicitly disabled X.
11587 have_x=disabled
11588 else
11589 case $x_includes,$x_libraries in #(
11590 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11591 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11592 { (exit 1); exit 1; }; };; #(
11593 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596 # One or both of the vars are not set, and there is no cached value.
11597 ac_x_includes=no ac_x_libraries=no
11598 rm -f -r conftest.dir
11599 if mkdir conftest.dir; then
11600 cd conftest.dir
11601 cat >Imakefile <<'_ACEOF'
11602 incroot:
11603 @echo incroot='${INCROOT}'
11604 usrlibdir:
11605 @echo usrlibdir='${USRLIBDIR}'
11606 libdir:
11607 @echo libdir='${LIBDIR}'
11608 _ACEOF
11609 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11611 for ac_var in incroot usrlibdir libdir; do
11612 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11613 done
11614 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11615 for ac_extension in a so sl dylib la dll; do
11616 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11617 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11618 ac_im_usrlibdir=$ac_im_libdir; break
11620 done
11621 # Screen out bogus values from the imake configuration. They are
11622 # bogus both because they are the default anyway, and because
11623 # using them would break gcc on systems where it needs fixed includes.
11624 case $ac_im_incroot in
11625 /usr/include) ac_x_includes= ;;
11626 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11627 esac
11628 case $ac_im_usrlibdir in
11629 /usr/lib | /lib) ;;
11630 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11631 esac
11633 cd ..
11634 rm -f -r conftest.dir
11637 # Standard set of common directories for X headers.
11638 # Check X11 before X11Rn because it is often a symlink to the current release.
11639 ac_x_header_dirs='
11640 /usr/X11/include
11641 /usr/X11R6/include
11642 /usr/X11R5/include
11643 /usr/X11R4/include
11645 /usr/include/X11
11646 /usr/include/X11R6
11647 /usr/include/X11R5
11648 /usr/include/X11R4
11650 /usr/local/X11/include
11651 /usr/local/X11R6/include
11652 /usr/local/X11R5/include
11653 /usr/local/X11R4/include
11655 /usr/local/include/X11
11656 /usr/local/include/X11R6
11657 /usr/local/include/X11R5
11658 /usr/local/include/X11R4
11660 /usr/X386/include
11661 /usr/x386/include
11662 /usr/XFree86/include/X11
11664 /usr/include
11665 /usr/local/include
11666 /usr/unsupported/include
11667 /usr/athena/include
11668 /usr/local/x11r5/include
11669 /usr/lpp/Xamples/include
11671 /usr/openwin/include
11672 /usr/openwin/share/include'
11674 if test "$ac_x_includes" = no; then
11675 # Guess where to find include files, by looking for Xlib.h.
11676 # First, try using that file with no special directory specified.
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 #include <X11/Xlib.h>
11684 _ACEOF
11685 if { (ac_try="$ac_cpp conftest.$ac_ext"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev/null && {
11698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 }; then
11701 # We can compile using X headers with no special include directory.
11702 ac_x_includes=
11703 else
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 for ac_dir in $ac_x_header_dirs; do
11708 if test -r "$ac_dir/X11/Xlib.h"; then
11709 ac_x_includes=$ac_dir
11710 break
11712 done
11715 rm -f conftest.err conftest.$ac_ext
11716 fi # $ac_x_includes = no
11718 if test "$ac_x_libraries" = no; then
11719 # Check for the libraries.
11720 # See if we find them without any special options.
11721 # Don't add to $LIBS permanently.
11722 ac_save_LIBS=$LIBS
11723 LIBS="-lX11 $LIBS"
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <X11/Xlib.h>
11732 main ()
11734 XrmInitialize ()
11736 return 0;
11738 _ACEOF
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_link") 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && {
11753 test -z "$ac_c_werror_flag" ||
11754 test ! -s conftest.err
11755 } && test -s conftest$ac_exeext &&
11756 $as_test_x conftest$ac_exeext; then
11757 LIBS=$ac_save_LIBS
11758 # We can link X programs with no special library path.
11759 ac_x_libraries=
11760 else
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 LIBS=$ac_save_LIBS
11765 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11767 # Don't even attempt the hair of trying to link an X program!
11768 for ac_extension in a so sl dylib la dll; do
11769 if test -r "$ac_dir/libX11.$ac_extension"; then
11770 ac_x_libraries=$ac_dir
11771 break 2
11773 done
11774 done
11777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11778 conftest$ac_exeext conftest.$ac_ext
11779 fi # $ac_x_libraries = no
11781 case $ac_x_includes,$ac_x_libraries in #(
11782 no,* | *,no | *\'*)
11783 # Didn't find X, or a directory has "'" in its name.
11784 ac_cv_have_x="have_x=no";; #(
11786 # Record where we found X for the cache.
11787 ac_cv_have_x="have_x=yes\
11788 ac_x_includes='$ac_x_includes'\
11789 ac_x_libraries='$ac_x_libraries'"
11790 esac
11792 ;; #(
11793 *) have_x=yes;;
11794 esac
11795 eval "$ac_cv_have_x"
11796 fi # $with_x != no
11798 if test "$have_x" != yes; then
11799 { echo "$as_me:$LINENO: result: $have_x" >&5
11800 echo "${ECHO_T}$have_x" >&6; }
11801 no_x=yes
11802 else
11803 # If each of the values was on the command line, it overrides each guess.
11804 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11805 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11806 # Update the cache value to reflect the command line values.
11807 ac_cv_have_x="have_x=yes\
11808 ac_x_includes='$x_includes'\
11809 ac_x_libraries='$x_libraries'"
11810 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11811 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11815 x_cflags=
11816 for path in $x_libraries
11818 x_cflags="$x_cflags -L$path"
11819 done
11821 for path in $x_includes
11823 x_cflags="$x_cflags -I$path"
11824 done
11826 if test "x-$no_x" = "x-yes" ; then
11828 if test "x-$x11_hidd" != "x-auto" ; then
11829 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11830 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11831 { (exit 1); exit 1; }; }
11834 else
11835 x11_hidd_target=kernel-x11gfx-kobj
11836 ENABLE_X11=1
11838 # Check whether --enable-x11_shm was given.
11839 if test "${enable_x11_shm+set}" = set; then
11840 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11841 else
11842 x11_hidd_shm="auto"
11845 case "x-$x11_hidd_shm" in
11846 x-yes|x-no|x-auto) ;;
11847 *) x11_hidd_shm="auto" ;;
11848 esac
11850 have_xshm=no
11852 if test "x-$x11_hidd_shm" != "x-no" ; then
11855 for ac_header in sys/ipc.h
11857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_res=`eval echo '${'$as_ac_Header'}'`
11865 { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11867 else
11868 # Is the header compilable?
11869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h. */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 $ac_includes_default
11878 #include <$ac_header>
11879 _ACEOF
11880 rm -f conftest.$ac_objext
11881 if { (ac_try="$ac_compile"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
11897 ac_header_compiler=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_header_compiler=no
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907 echo "${ECHO_T}$ac_header_compiler" >&6; }
11909 # Is the header present?
11910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h. */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 #include <$ac_header>
11919 _ACEOF
11920 if { (ac_try="$ac_cpp conftest.$ac_ext"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } >/dev/null && {
11933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 }; then
11936 ac_header_preproc=yes
11937 else
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_header_preproc=no
11944 rm -f conftest.err conftest.$ac_ext
11945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11946 echo "${ECHO_T}$ac_header_preproc" >&6; }
11948 # So? What about this header?
11949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11950 yes:no: )
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11955 ac_header_preproc=yes
11957 no:yes:* )
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11972 esac
11973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978 eval "$as_ac_Header=\$ac_header_preproc"
11980 ac_res=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982 echo "${ECHO_T}$ac_res" >&6; }
11985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11988 _ACEOF
11992 done
11995 for ac_header in sys/shm.h
11997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 ac_res=`eval echo '${'$as_ac_Header'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 else
12008 # Is the header compilable?
12009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 $ac_includes_default
12018 #include <$ac_header>
12019 _ACEOF
12020 rm -f conftest.$ac_objext
12021 if { (ac_try="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_compile") 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } && {
12034 test -z "$ac_c_werror_flag" ||
12035 test ! -s conftest.err
12036 } && test -s conftest.$ac_objext; then
12037 ac_header_compiler=yes
12038 else
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ac_header_compiler=no
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12047 echo "${ECHO_T}$ac_header_compiler" >&6; }
12049 # Is the header present?
12050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 #include <$ac_header>
12059 _ACEOF
12060 if { (ac_try="$ac_cpp conftest.$ac_ext"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } >/dev/null && {
12073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 }; then
12076 ac_header_preproc=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_header_preproc=no
12084 rm -f conftest.err conftest.$ac_ext
12085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12086 echo "${ECHO_T}$ac_header_preproc" >&6; }
12088 # So? What about this header?
12089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12090 yes:no: )
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12095 ac_header_preproc=yes
12097 no:yes:* )
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12112 esac
12113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118 eval "$as_ac_Header=\$ac_header_preproc"
12120 ac_res=`eval echo '${'$as_ac_Header'}'`
12121 { echo "$as_me:$LINENO: result: $ac_res" >&5
12122 echo "${ECHO_T}$ac_res" >&6; }
12125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12128 _ACEOF
12132 done
12135 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12137 save_cflags="$CFLAGS"
12138 CFLAGS="$CFLAGS $x_cflags"
12139 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12140 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12141 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144 ac_check_lib_save_LIBS=$LIBS
12145 LIBS="-lXext $LIBS"
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 char XShmQueryExtension ();
12161 main ()
12163 return XShmQueryExtension ();
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (ac_try="$ac_link"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_link") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest$ac_exeext &&
12185 $as_test_x conftest$ac_exeext; then
12186 ac_cv_lib_Xext_XShmQueryExtension=yes
12187 else
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 ac_cv_lib_Xext_XShmQueryExtension=no
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12199 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12200 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12201 have_xshm=yes
12204 CFLAGS="$save_cflags"
12208 if test "x-$have_xshm" = "x-yes" ; then
12209 DO_XSHM_SUPPORT="1"
12210 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12211 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12212 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12213 { (exit 1); exit 1; }; }
12214 else
12215 DO_XSHM_SUPPORT="0"
12219 # Check whether --enable-x11_vidmode was given.
12220 if test "${enable_x11_vidmode+set}" = set; then
12221 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12222 else
12223 x11_hidd_vidmode="auto"
12226 case "x-$x11_hidd_vidmode" in
12227 x-yes|x-no|x-auto) ;;
12228 *) x11_hidd_vidmode="auto" ;;
12229 esac
12231 have_vidmode=no
12233 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12235 save_cflags="$CFLAGS"
12236 CFLAGS="$CFLAGS $x_cflags"
12237 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12238 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12239 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lXxf86vm $LIBS"
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char XF86VidModeQueryExtension ();
12259 main ()
12261 return XF86VidModeQueryExtension ();
12263 return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest$ac_exeext &&
12283 $as_test_x conftest$ac_exeext; then
12284 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12296 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12297 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12298 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12299 have_vidmode=yes
12302 CFLAGS="$save_cflags"
12305 if test "x-$have_vidmode" = "x-yes" ; then
12306 DO_VIDMODE_SUPPORT="1"
12307 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12308 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12309 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12310 { (exit 1); exit 1; }; }
12311 else
12312 DO_VIDMODE_SUPPORT="0"
12316 aros_host_x11_includes=$x_includes
12317 aros_host_x11_libdirs=$x_libraries
12321 # Check whether --enable-sdl_hidd was given.
12322 if test "${enable_sdl_hidd+set}" = set; then
12323 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12324 else
12325 sdl_hidd="auto"
12328 case "x-$sdl_hidd" in
12329 x-yes|x-no|x-auto) ;;
12330 *) sdl_hidd="auto" ;;
12331 esac
12333 if test "x-$sdl_hidd" != "x-no" ; then
12336 # Check whether --with-sdl-prefix was given.
12337 if test "${with_sdl_prefix+set}" = set; then
12338 withval=$with_sdl_prefix; sdl_prefix="$withval"
12339 else
12340 sdl_prefix=""
12344 # Check whether --with-sdl-exec-prefix was given.
12345 if test "${with_sdl_exec_prefix+set}" = set; then
12346 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12347 else
12348 sdl_exec_prefix=""
12351 # Check whether --enable-sdltest was given.
12352 if test "${enable_sdltest+set}" = set; then
12353 enableval=$enable_sdltest;
12354 else
12355 enable_sdltest=yes
12359 if test x$sdl_exec_prefix != x ; then
12360 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12361 if test x${SDL_CONFIG+set} != xset ; then
12362 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12365 if test x$sdl_prefix != x ; then
12366 sdl_args="$sdl_args --prefix=$sdl_prefix"
12367 if test x${SDL_CONFIG+set} != xset ; then
12368 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12372 if test "x$prefix" != xNONE; then
12373 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12375 # Extract the first word of "sdl-config", so it can be a program name with args.
12376 set dummy sdl-config; ac_word=$2
12377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12379 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 case $SDL_CONFIG in
12383 [\\/]* | ?:[\\/]*)
12384 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 for ac_exec_ext in '' $ac_executable_extensions; do
12393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12394 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12396 break 2
12398 done
12399 done
12400 IFS=$as_save_IFS
12402 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12404 esac
12406 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12407 if test -n "$SDL_CONFIG"; then
12408 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12409 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12410 else
12411 { echo "$as_me:$LINENO: result: no" >&5
12412 echo "${ECHO_T}no" >&6; }
12416 min_sdl_version=1.2.10
12417 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12418 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12419 no_sdl=""
12420 if test "$SDL_CONFIG" = "no" ; then
12421 no_sdl=yes
12422 else
12423 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12424 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12426 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12427 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12428 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12430 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12432 if test "x$enable_sdltest" = "xyes" ; then
12433 ac_save_CFLAGS="$CFLAGS"
12434 ac_save_CXXFLAGS="$CXXFLAGS"
12435 ac_save_LIBS="$LIBS"
12436 CFLAGS="$CFLAGS $SDL_CFLAGS"
12437 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12438 LIBS="$LIBS $SDL_LIBS"
12439 rm -f conf.sdltest
12440 if test "$cross_compiling" = yes; then
12441 echo $ac_n "cross compiling; assumed OK... $ac_c"
12442 else
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h. */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12450 #include <stdio.h>
12451 #include <stdlib.h>
12452 #include <string.h>
12453 #include "SDL.h"
12455 char*
12456 my_strdup (char *str)
12458 char *new_str;
12460 if (str)
12462 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12463 strcpy (new_str, str);
12465 else
12466 new_str = NULL;
12468 return new_str;
12471 int main (int argc, char *argv[])
12473 int major, minor, micro;
12474 char *tmp_version;
12476 /* This hangs on some systems (?)
12477 system ("touch conf.sdltest");
12479 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12481 /* HP/UX 9 (%@#!) writes to sscanf strings */
12482 tmp_version = my_strdup("$min_sdl_version");
12483 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12484 printf("%s, bad version string\n", "$min_sdl_version");
12485 exit(1);
12488 if (($sdl_major_version > major) ||
12489 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12490 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12492 return 0;
12494 else
12496 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12497 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12498 printf("*** best to upgrade to the required version.\n");
12499 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12500 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12501 printf("*** config.cache before re-running configure\n");
12502 return 1;
12507 _ACEOF
12508 rm -f conftest$ac_exeext
12509 if { (ac_try="$ac_link"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513 esac
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12519 { (case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_try") 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12529 else
12530 echo "$as_me: program exited with status $ac_status" >&5
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 ( exit $ac_status )
12535 no_sdl=yes
12537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12541 CFLAGS="$ac_save_CFLAGS"
12542 CXXFLAGS="$ac_save_CXXFLAGS"
12543 LIBS="$ac_save_LIBS"
12546 if test "x$no_sdl" = x ; then
12547 { echo "$as_me:$LINENO: result: yes" >&5
12548 echo "${ECHO_T}yes" >&6; }
12549 have_sdl="yes"
12550 else
12551 { echo "$as_me:$LINENO: result: no" >&5
12552 echo "${ECHO_T}no" >&6; }
12553 if test "$SDL_CONFIG" = "no" ; then
12554 echo "*** The sdl-config script installed by SDL could not be found"
12555 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12556 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12557 echo "*** full path to sdl-config."
12558 else
12559 if test -f conf.sdltest ; then
12561 else
12562 echo "*** Could not run SDL test program, checking why..."
12563 CFLAGS="$CFLAGS $SDL_CFLAGS"
12564 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12565 LIBS="$LIBS $SDL_LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 #include <stdio.h>
12574 #include "SDL.h"
12576 int main(int argc, char *argv[])
12577 { return 0; }
12578 #undef main
12579 #define main K_and_R_C_main
12582 main ()
12584 return 0;
12586 return 0;
12588 _ACEOF
12589 rm -f conftest.$ac_objext conftest$ac_exeext
12590 if { (ac_try="$ac_link"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_link") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest$ac_exeext &&
12606 $as_test_x conftest$ac_exeext; then
12607 echo "*** The test program compiled, but did not run. This usually means"
12608 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12609 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12610 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12611 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12612 echo "*** is required on your system"
12613 echo "***"
12614 echo "*** If you have an old version installed, it is best to remove it, although"
12615 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12616 else
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 echo "*** The test program failed to compile or link. See the file config.log for the"
12621 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12622 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12623 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12627 conftest$ac_exeext conftest.$ac_ext
12628 CFLAGS="$ac_save_CFLAGS"
12629 CXXFLAGS="$ac_save_CXXFLAGS"
12630 LIBS="$ac_save_LIBS"
12633 SDL_CFLAGS=""
12634 SDL_LIBS=""
12635 have_sdl="no"
12639 rm -f conf.sdltest
12642 if test "x-$have_sdl" != "x-yes" ; then
12644 if test "x-$sdl_hidd" != "x-auto" ; then
12645 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12646 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12647 { (exit 1); exit 1; }; }
12650 else
12651 sdl_hidd_target=kernel-hidd-sdl
12652 aros_host_sdl_cflags=SDL_CFLAGS
12653 aros_host_sdl_libs=SDL_LIBS
12660 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12661 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12662 # Check whether --enable-dbus was given.
12663 if test "${enable_dbus+set}" = set; then
12664 enableval=$enable_dbus; dbus="yes"
12665 else
12666 dbus="no"
12669 if test "$dbus" = "yes" ; then
12670 ENABLE_DBUS=1
12671 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12672 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12673 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12674 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12675 else
12676 ENABLE_DBUS=0
12678 { echo "$as_me:$LINENO: result: $dbus" >&5
12679 echo "${ECHO_T}$dbus" >&6; }
12683 # Generic
12693 # Host related
12716 # Target Related
12767 # Graphics Related
12782 # Native version related
12785 # Palm native version related
12788 # Unix/Hosted version related
12791 # Apple iOS related
12796 # DBUS related
12803 #X11 related
12806 # Debug related
12812 # Collect-aros stuff: "-ius" to ignore undefined symbols
12815 # C compiler related
12818 case "$aros_flavour" in
12819 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12820 aros_flavour="emulation" ;;
12821 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12822 aros_flavour="emulation" ;;
12823 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12824 aros_flavour="standalone";;
12825 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12826 aros_flavour="standalone";;
12827 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12828 aros_flavour="native" ;;
12829 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12830 aros_flavour="native" ;;
12831 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12832 aros_flavour="linklib" ;;
12833 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12834 aros_flavour="palmnative" ;;
12835 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12836 aros_flavour="mac68knative" ;;
12837 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12838 aros_flavour="ppcnative" ;;
12839 esac
12841 if test ! -d ${aros_inc_dir} ; then
12842 ${MKDIR} ${aros_inc_dir}
12844 if test ! -d ${aros_geninc_dir} ; then
12845 ${MKDIR} ${aros_geninc_dir}
12847 if test ! -d ${aros_hostcfg_dir} ; then
12848 ${MKDIR} ${aros_hostcfg_dir}
12850 if test ! -d ${aros_targetcfg_dir} ; then
12851 ${MKDIR} ${aros_targetcfg_dir}
12853 if test ! -d ${aros_tools_dir} ; then
12854 ${MKDIR} ${aros_tools_dir}
12856 if test ! -d ${aros_scripts_dir} ; then
12857 ${MKDIR} ${aros_scripts_dir}
12860 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12863 ac_config_commands="$ac_config_commands compiler_executable"
12865 ac_config_commands="$ac_config_commands genshared_executable"
12867 ac_config_commands="$ac_config_commands genmf_executable"
12870 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"
12873 cat >confcache <<\_ACEOF
12874 # This file is a shell script that caches the results of configure
12875 # tests run on this system so they can be shared between configure
12876 # scripts and configure runs, see configure's option --config-cache.
12877 # It is not useful on other systems. If it contains results you don't
12878 # want to keep, you may remove or edit it.
12880 # config.status only pays attention to the cache file if you give it
12881 # the --recheck option to rerun configure.
12883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12885 # following values.
12887 _ACEOF
12889 # The following way of writing the cache mishandles newlines in values,
12890 # but we know of no workaround that is simple, portable, and efficient.
12891 # So, we kill variables containing newlines.
12892 # Ultrix sh set writes to stderr and can't be redirected directly,
12893 # and sets the high bit in the cache file unless we assign to the vars.
12895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12896 eval ac_val=\$$ac_var
12897 case $ac_val in #(
12898 *${as_nl}*)
12899 case $ac_var in #(
12900 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12901 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12902 esac
12903 case $ac_var in #(
12904 _ | IFS | as_nl) ;; #(
12905 *) $as_unset $ac_var ;;
12906 esac ;;
12907 esac
12908 done
12910 (set) 2>&1 |
12911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12912 *${as_nl}ac_space=\ *)
12913 # `set' does not quote correctly, so add quotes (double-quote
12914 # substitution turns \\\\ into \\, and sed turns \\ into \).
12915 sed -n \
12916 "s/'/'\\\\''/g;
12917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12918 ;; #(
12920 # `set' quotes correctly as required by POSIX, so do not add quotes.
12921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12923 esac |
12924 sort
12926 sed '
12927 /^ac_cv_env_/b end
12928 t clear
12929 :clear
12930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12931 t end
12932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12933 :end' >>confcache
12934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12935 if test -w "$cache_file"; then
12936 test "x$cache_file" != "x/dev/null" &&
12937 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12938 echo "$as_me: updating cache $cache_file" >&6;}
12939 cat confcache >$cache_file
12940 else
12941 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12942 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12945 rm -f confcache
12947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12948 # Let make expand exec_prefix.
12949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12951 DEFS=-DHAVE_CONFIG_H
12953 ac_libobjs=
12954 ac_ltlibobjs=
12955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12956 # 1. Remove the extension, and $U if already installed.
12957 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12958 ac_i=`echo "$ac_i" | sed "$ac_script"`
12959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12960 # will be set to the directory where LIBOBJS objects are built.
12961 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12962 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12963 done
12964 LIBOBJS=$ac_libobjs
12966 LTLIBOBJS=$ac_ltlibobjs
12970 : ${CONFIG_STATUS=./config.status}
12971 ac_clean_files_save=$ac_clean_files
12972 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12973 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12974 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12975 cat >$CONFIG_STATUS <<_ACEOF
12976 #! $SHELL
12977 # Generated by $as_me.
12978 # Run this file to recreate the current configuration.
12979 # Compiler output produced by configure, useful for debugging
12980 # configure, is in config.log if it exists.
12982 debug=false
12983 ac_cs_recheck=false
12984 ac_cs_silent=false
12985 SHELL=\${CONFIG_SHELL-$SHELL}
12986 _ACEOF
12988 cat >>$CONFIG_STATUS <<\_ACEOF
12989 ## --------------------- ##
12990 ## M4sh Initialization. ##
12991 ## --------------------- ##
12993 # Be more Bourne compatible
12994 DUALCASE=1; export DUALCASE # for MKS sh
12995 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12996 emulate sh
12997 NULLCMD=:
12998 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12999 # is contrary to our usage. Disable this feature.
13000 alias -g '${1+"$@"}'='"$@"'
13001 setopt NO_GLOB_SUBST
13002 else
13003 case `(set -o) 2>/dev/null` in
13004 *posix*) set -o posix ;;
13005 esac
13012 # PATH needs CR
13013 # Avoid depending upon Character Ranges.
13014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13017 as_cr_digits='0123456789'
13018 as_cr_alnum=$as_cr_Letters$as_cr_digits
13020 # The user is always right.
13021 if test "${PATH_SEPARATOR+set}" != set; then
13022 echo "#! /bin/sh" >conf$$.sh
13023 echo "exit 0" >>conf$$.sh
13024 chmod +x conf$$.sh
13025 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13026 PATH_SEPARATOR=';'
13027 else
13028 PATH_SEPARATOR=:
13030 rm -f conf$$.sh
13033 # Support unset when possible.
13034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13035 as_unset=unset
13036 else
13037 as_unset=false
13041 # IFS
13042 # We need space, tab and new line, in precisely that order. Quoting is
13043 # there to prevent editors from complaining about space-tab.
13044 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13045 # splitting by setting IFS to empty value.)
13046 as_nl='
13048 IFS=" "" $as_nl"
13050 # Find who we are. Look in the path if we contain no directory separator.
13051 case $0 in
13052 *[\\/]* ) as_myself=$0 ;;
13053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13059 done
13060 IFS=$as_save_IFS
13063 esac
13064 # We did not find ourselves, most probably we were run as `sh COMMAND'
13065 # in which case we are not to be found in the path.
13066 if test "x$as_myself" = x; then
13067 as_myself=$0
13069 if test ! -f "$as_myself"; then
13070 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13071 { (exit 1); exit 1; }
13074 # Work around bugs in pre-3.0 UWIN ksh.
13075 for as_var in ENV MAIL MAILPATH
13076 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13077 done
13078 PS1='$ '
13079 PS2='> '
13080 PS4='+ '
13082 # NLS nuisances.
13083 for as_var in \
13084 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13085 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13086 LC_TELEPHONE LC_TIME
13088 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13089 eval $as_var=C; export $as_var
13090 else
13091 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13093 done
13095 # Required to use basename.
13096 if expr a : '\(a\)' >/dev/null 2>&1 &&
13097 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13098 as_expr=expr
13099 else
13100 as_expr=false
13103 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13104 as_basename=basename
13105 else
13106 as_basename=false
13110 # Name of the executable.
13111 as_me=`$as_basename -- "$0" ||
13112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13113 X"$0" : 'X\(//\)$' \| \
13114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13115 echo X/"$0" |
13116 sed '/^.*\/\([^/][^/]*\)\/*$/{
13117 s//\1/
13120 /^X\/\(\/\/\)$/{
13121 s//\1/
13124 /^X\/\(\/\).*/{
13125 s//\1/
13128 s/.*/./; q'`
13130 # CDPATH.
13131 $as_unset CDPATH
13135 as_lineno_1=$LINENO
13136 as_lineno_2=$LINENO
13137 test "x$as_lineno_1" != "x$as_lineno_2" &&
13138 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13140 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13141 # uniformly replaced by the line number. The first 'sed' inserts a
13142 # line-number line after each line using $LINENO; the second 'sed'
13143 # does the real work. The second script uses 'N' to pair each
13144 # line-number line with the line containing $LINENO, and appends
13145 # trailing '-' during substitution so that $LINENO is not a special
13146 # case at line end.
13147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13148 # scripts with optimization help from Paolo Bonzini. Blame Lee
13149 # E. McMahon (1931-1989) for sed's syntax. :-)
13150 sed -n '
13152 /[$]LINENO/=
13153 ' <$as_myself |
13154 sed '
13155 s/[$]LINENO.*/&-/
13156 t lineno
13158 :lineno
13160 :loop
13161 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13162 t loop
13163 s/-\n.*//
13164 ' >$as_me.lineno &&
13165 chmod +x "$as_me.lineno" ||
13166 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13167 { (exit 1); exit 1; }; }
13169 # Don't try to exec as it changes $[0], causing all sort of problems
13170 # (the dirname of $[0] is not the place where we might find the
13171 # original and so on. Autoconf is especially sensitive to this).
13172 . "./$as_me.lineno"
13173 # Exit status is that of the last command.
13174 exit
13178 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13179 as_dirname=dirname
13180 else
13181 as_dirname=false
13184 ECHO_C= ECHO_N= ECHO_T=
13185 case `echo -n x` in
13186 -n*)
13187 case `echo 'x\c'` in
13188 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13189 *) ECHO_C='\c';;
13190 esac;;
13192 ECHO_N='-n';;
13193 esac
13195 if expr a : '\(a\)' >/dev/null 2>&1 &&
13196 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13197 as_expr=expr
13198 else
13199 as_expr=false
13202 rm -f conf$$ conf$$.exe conf$$.file
13203 if test -d conf$$.dir; then
13204 rm -f conf$$.dir/conf$$.file
13205 else
13206 rm -f conf$$.dir
13207 mkdir conf$$.dir
13209 echo >conf$$.file
13210 if ln -s conf$$.file conf$$ 2>/dev/null; then
13211 as_ln_s='ln -s'
13212 # ... but there are two gotchas:
13213 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13214 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13215 # In both cases, we have to default to `cp -p'.
13216 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13217 as_ln_s='cp -p'
13218 elif ln conf$$.file conf$$ 2>/dev/null; then
13219 as_ln_s=ln
13220 else
13221 as_ln_s='cp -p'
13223 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13224 rmdir conf$$.dir 2>/dev/null
13226 if mkdir -p . 2>/dev/null; then
13227 as_mkdir_p=:
13228 else
13229 test -d ./-p && rmdir ./-p
13230 as_mkdir_p=false
13233 if test -x / >/dev/null 2>&1; then
13234 as_test_x='test -x'
13235 else
13236 if ls -dL / >/dev/null 2>&1; then
13237 as_ls_L_option=L
13238 else
13239 as_ls_L_option=
13241 as_test_x='
13242 eval sh -c '\''
13243 if test -d "$1"; then
13244 test -d "$1/.";
13245 else
13246 case $1 in
13247 -*)set "./$1";;
13248 esac;
13249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13250 ???[sx]*):;;*)false;;esac;fi
13251 '\'' sh
13254 as_executable_p=$as_test_x
13256 # Sed expression to map a string onto a valid CPP name.
13257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13259 # Sed expression to map a string onto a valid variable name.
13260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13263 exec 6>&1
13265 # Save the log message, to keep $[0] and so on meaningful, and to
13266 # report actual input values of CONFIG_FILES etc. instead of their
13267 # values after options handling.
13268 ac_log="
13269 This file was extended by $as_me, which was
13270 generated by GNU Autoconf 2.61. Invocation command line was
13272 CONFIG_FILES = $CONFIG_FILES
13273 CONFIG_HEADERS = $CONFIG_HEADERS
13274 CONFIG_LINKS = $CONFIG_LINKS
13275 CONFIG_COMMANDS = $CONFIG_COMMANDS
13276 $ $0 $@
13278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13281 _ACEOF
13283 cat >>$CONFIG_STATUS <<_ACEOF
13284 # Files that config.status was made for.
13285 config_files="$ac_config_files"
13286 config_headers="$ac_config_headers"
13287 config_commands="$ac_config_commands"
13289 _ACEOF
13291 cat >>$CONFIG_STATUS <<\_ACEOF
13292 ac_cs_usage="\
13293 \`$as_me' instantiates files from templates according to the
13294 current configuration.
13296 Usage: $0 [OPTIONS] [FILE]...
13298 -h, --help print this help, then exit
13299 -V, --version print version number and configuration settings, then exit
13300 -q, --quiet do not print progress messages
13301 -d, --debug don't remove temporary files
13302 --recheck update $as_me by reconfiguring in the same conditions
13303 --file=FILE[:TEMPLATE]
13304 instantiate the configuration file FILE
13305 --header=FILE[:TEMPLATE]
13306 instantiate the configuration header FILE
13308 Configuration files:
13309 $config_files
13311 Configuration headers:
13312 $config_headers
13314 Configuration commands:
13315 $config_commands
13317 Report bugs to <bug-autoconf@gnu.org>."
13319 _ACEOF
13320 cat >>$CONFIG_STATUS <<_ACEOF
13321 ac_cs_version="\\
13322 config.status
13323 configured by $0, generated by GNU Autoconf 2.61,
13324 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13326 Copyright (C) 2006 Free Software Foundation, Inc.
13327 This config.status script is free software; the Free Software Foundation
13328 gives unlimited permission to copy, distribute and modify it."
13330 ac_pwd='$ac_pwd'
13331 srcdir='$srcdir'
13332 _ACEOF
13334 cat >>$CONFIG_STATUS <<\_ACEOF
13335 # If no file are specified by the user, then we need to provide default
13336 # value. By we need to know if files were specified by the user.
13337 ac_need_defaults=:
13338 while test $# != 0
13340 case $1 in
13341 --*=*)
13342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13344 ac_shift=:
13347 ac_option=$1
13348 ac_optarg=$2
13349 ac_shift=shift
13351 esac
13353 case $ac_option in
13354 # Handling of the options.
13355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13356 ac_cs_recheck=: ;;
13357 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13358 echo "$ac_cs_version"; exit ;;
13359 --debug | --debu | --deb | --de | --d | -d )
13360 debug=: ;;
13361 --file | --fil | --fi | --f )
13362 $ac_shift
13363 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13364 ac_need_defaults=false;;
13365 --header | --heade | --head | --hea )
13366 $ac_shift
13367 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13368 ac_need_defaults=false;;
13369 --he | --h)
13370 # Conflict between --help and --header
13371 { echo "$as_me: error: ambiguous option: $1
13372 Try \`$0 --help' for more information." >&2
13373 { (exit 1); exit 1; }; };;
13374 --help | --hel | -h )
13375 echo "$ac_cs_usage"; exit ;;
13376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13378 ac_cs_silent=: ;;
13380 # This is an error.
13381 -*) { echo "$as_me: error: unrecognized option: $1
13382 Try \`$0 --help' for more information." >&2
13383 { (exit 1); exit 1; }; } ;;
13385 *) ac_config_targets="$ac_config_targets $1"
13386 ac_need_defaults=false ;;
13388 esac
13389 shift
13390 done
13392 ac_configure_extra_args=
13394 if $ac_cs_silent; then
13395 exec 6>/dev/null
13396 ac_configure_extra_args="$ac_configure_extra_args --silent"
13399 _ACEOF
13400 cat >>$CONFIG_STATUS <<_ACEOF
13401 if \$ac_cs_recheck; then
13402 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13403 CONFIG_SHELL=$SHELL
13404 export CONFIG_SHELL
13405 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13408 _ACEOF
13409 cat >>$CONFIG_STATUS <<\_ACEOF
13410 exec 5>>config.log
13412 echo
13413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13414 ## Running $as_me. ##
13415 _ASBOX
13416 echo "$ac_log"
13417 } >&5
13419 _ACEOF
13420 cat >>$CONFIG_STATUS <<_ACEOF
13422 # INIT-COMMANDS
13425 aros_host_exe_suffix=${aros_host_exe_suffix}
13426 aros_tools_dir=${aros_tools_dir}
13427 aros_target_cpu=${aros_target_cpu}
13428 aros_target_arch=${aros_target_arch}
13429 aros_target_suffix=${aros_target_suffix}
13430 aros_target_nm_ln=${aros_target_nm_ln}
13431 aros_target_as_ln=${aros_target_as_ln}
13432 aros_target_ar_ln=${aros_target_ar_ln}
13433 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13434 aros_target_objdump_ln=${aros_target_objdump_ln}
13435 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13436 aros_target_strip_ln=${aros_target_strip_ln}
13439 aros_scripts_dir=${aros_scripts_dir}
13441 aros_tools_dir=${aros_tools_dir}
13444 _ACEOF
13446 cat >>$CONFIG_STATUS <<\_ACEOF
13448 # Handling of arguments.
13449 for ac_config_target in $ac_config_targets
13451 case $ac_config_target in
13452 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13453 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13454 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13455 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13456 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13457 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13458 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13459 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13460 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13461 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13462 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13463 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13464 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13465 "${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" ;;
13466 "${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" ;;
13467 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13468 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13469 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13473 { (exit 1); exit 1; }; };;
13474 esac
13475 done
13478 # If the user did not use the arguments to specify the items to instantiate,
13479 # then the envvar interface is used. Set only those that are not.
13480 # We use the long form for the default assignment because of an extremely
13481 # bizarre bug on SunOS 4.1.3.
13482 if $ac_need_defaults; then
13483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13488 # Have a temporary directory for convenience. Make it in the build tree
13489 # simply because there is no reason against having it here, and in addition,
13490 # creating and moving files from /tmp can sometimes cause problems.
13491 # Hook for its removal unless debugging.
13492 # Note that there is a small window in which the directory will not be cleaned:
13493 # after its creation but before its name has been assigned to `$tmp'.
13494 $debug ||
13496 tmp=
13497 trap 'exit_status=$?
13498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13500 trap '{ (exit 1); exit 1; }' 1 2 13 15
13502 # Create a (secure) tmp directory for tmp files.
13505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13506 test -n "$tmp" && test -d "$tmp"
13507 } ||
13509 tmp=./conf$$-$RANDOM
13510 (umask 077 && mkdir "$tmp")
13511 } ||
13513 echo "$me: cannot create a temporary directory in ." >&2
13514 { (exit 1); exit 1; }
13518 # Set up the sed scripts for CONFIG_FILES section.
13521 # No need to generate the scripts if there are no CONFIG_FILES.
13522 # This happens for instance when ./config.status config.h
13523 if test -n "$CONFIG_FILES"; then
13525 _ACEOF
13529 ac_delim='%!_!# '
13530 for ac_last_try in false false false false false :; do
13531 cat >conf$$subs.sed <<_ACEOF
13532 SHELL!$SHELL$ac_delim
13533 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13534 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13535 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13536 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13537 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13538 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13539 exec_prefix!$exec_prefix$ac_delim
13540 prefix!$prefix$ac_delim
13541 program_transform_name!$program_transform_name$ac_delim
13542 bindir!$bindir$ac_delim
13543 sbindir!$sbindir$ac_delim
13544 libexecdir!$libexecdir$ac_delim
13545 datarootdir!$datarootdir$ac_delim
13546 datadir!$datadir$ac_delim
13547 sysconfdir!$sysconfdir$ac_delim
13548 sharedstatedir!$sharedstatedir$ac_delim
13549 localstatedir!$localstatedir$ac_delim
13550 includedir!$includedir$ac_delim
13551 oldincludedir!$oldincludedir$ac_delim
13552 docdir!$docdir$ac_delim
13553 infodir!$infodir$ac_delim
13554 htmldir!$htmldir$ac_delim
13555 dvidir!$dvidir$ac_delim
13556 pdfdir!$pdfdir$ac_delim
13557 psdir!$psdir$ac_delim
13558 libdir!$libdir$ac_delim
13559 localedir!$localedir$ac_delim
13560 mandir!$mandir$ac_delim
13561 DEFS!$DEFS$ac_delim
13562 ECHO_C!$ECHO_C$ac_delim
13563 ECHO_N!$ECHO_N$ac_delim
13564 ECHO_T!$ECHO_T$ac_delim
13565 LIBS!$LIBS$ac_delim
13566 build_alias!$build_alias$ac_delim
13567 host_alias!$host_alias$ac_delim
13568 target_alias!$target_alias$ac_delim
13569 build!$build$ac_delim
13570 build_cpu!$build_cpu$ac_delim
13571 build_vendor!$build_vendor$ac_delim
13572 build_os!$build_os$ac_delim
13573 host!$host$ac_delim
13574 host_cpu!$host_cpu$ac_delim
13575 host_vendor!$host_vendor$ac_delim
13576 host_os!$host_os$ac_delim
13577 CC!$CC$ac_delim
13578 CFLAGS!$CFLAGS$ac_delim
13579 LDFLAGS!$LDFLAGS$ac_delim
13580 CPPFLAGS!$CPPFLAGS$ac_delim
13581 ac_ct_CC!$ac_ct_CC$ac_delim
13582 EXEEXT!$EXEEXT$ac_delim
13583 OBJEXT!$OBJEXT$ac_delim
13584 CPP!$CPP$ac_delim
13585 AWK!$AWK$ac_delim
13586 MMAKE!$MMAKE$ac_delim
13587 aros_host_ld!$aros_host_ld$ac_delim
13588 aros_host_aclocal!$aros_host_aclocal$ac_delim
13589 aros_host_autoconf!$aros_host_autoconf$ac_delim
13590 aros_host_autoheader!$aros_host_autoheader$ac_delim
13591 aros_host_automake!$aros_host_automake$ac_delim
13592 aros_host_ar!$aros_host_ar$ac_delim
13593 aros_host_ranlib!$aros_host_ranlib$ac_delim
13594 aros_host_strip!$aros_host_strip$ac_delim
13595 RM!$RM$ac_delim
13596 CP!$CP$ac_delim
13597 MV!$MV$ac_delim
13598 ECHO!$ECHO$ac_delim
13599 MKDIR!$MKDIR$ac_delim
13600 TOUCH!$TOUCH$ac_delim
13601 SORT!$SORT$ac_delim
13602 UNIQ!$UNIQ$ac_delim
13603 NOP!$NOP$ac_delim
13604 CAT!$CAT$ac_delim
13605 BISON!$BISON$ac_delim
13606 FLEX!$FLEX$ac_delim
13607 PNGTOPNM!$PNGTOPNM$ac_delim
13608 PPMTOILBM!$PPMTOILBM$ac_delim
13609 SED!$SED$ac_delim
13610 CHMOD!$CHMOD$ac_delim
13611 PYTHON!$PYTHON$ac_delim
13612 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13613 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13614 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13615 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13616 pythondir!$pythondir$ac_delim
13617 pkgpythondir!$pkgpythondir$ac_delim
13618 pyexecdir!$pyexecdir$ac_delim
13619 pkgpyexecdir!$pkgpyexecdir$ac_delim
13620 FOR!$FOR$ac_delim
13621 IF!$IF$ac_delim
13622 TEST!$TEST$ac_delim
13623 CMP!$CMP$ac_delim
13624 GREP!$GREP$ac_delim
13625 EGREP!$EGREP$ac_delim
13626 LIBOBJS!$LIBOBJS$ac_delim
13627 DISTCC!$DISTCC$ac_delim
13628 CCACHE!$CCACHE$ac_delim
13629 _ACEOF
13631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13632 break
13633 elif $ac_last_try; then
13634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13636 { (exit 1); exit 1; }; }
13637 else
13638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13640 done
13642 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13643 if test -n "$ac_eof"; then
13644 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13645 ac_eof=`expr $ac_eof + 1`
13648 cat >>$CONFIG_STATUS <<_ACEOF
13649 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13651 _ACEOF
13652 sed '
13653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13654 s/^/s,@/; s/!/@,|#_!!_#|/
13657 s/'"$ac_delim"'$/,g/; t
13658 s/$/\\/; p
13659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13660 ' >>$CONFIG_STATUS <conf$$subs.sed
13661 rm -f conf$$subs.sed
13662 cat >>$CONFIG_STATUS <<_ACEOF
13663 CEOF$ac_eof
13664 _ACEOF
13667 ac_delim='%!_!# '
13668 for ac_last_try in false false false false false :; do
13669 cat >conf$$subs.sed <<_ACEOF
13670 aros_target_cc!$aros_target_cc$ac_delim
13671 aros_target_ld!$aros_target_ld$ac_delim
13672 aros_target_as_ln!$aros_target_as_ln$ac_delim
13673 aros_kernel_ld!$aros_kernel_ld$ac_delim
13674 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13675 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13676 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13677 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13678 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13679 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13680 aros_target_cxx!$aros_target_cxx$ac_delim
13681 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13682 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13683 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13684 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13685 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13686 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13687 host_cflags_iquote!$host_cflags_iquote$ac_delim
13688 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13689 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13690 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13691 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13692 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13693 XMKMF!$XMKMF$ac_delim
13694 SDL_CONFIG!$SDL_CONFIG$ac_delim
13695 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13696 SDL_LIBS!$SDL_LIBS$ac_delim
13697 aros_arch!$aros_arch$ac_delim
13698 aros_cpu!$aros_cpu$ac_delim
13699 aros_flavour!$aros_flavour$ac_delim
13700 aros_flavour_uc!$aros_flavour_uc$ac_delim
13701 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13702 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13703 SRCDIR!$SRCDIR$ac_delim
13704 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13705 aros_cc_pre!$aros_cc_pre$ac_delim
13706 aros_host_arch!$aros_host_arch$ac_delim
13707 aros_host_cpu!$aros_host_cpu$ac_delim
13708 aros_host_cc!$aros_host_cc$ac_delim
13709 aros_host_make!$aros_host_make$ac_delim
13710 aros_host_cflags!$aros_host_cflags$ac_delim
13711 aros_host_ldflags!$aros_host_ldflags$ac_delim
13712 aros_host_debug!$aros_host_debug$ac_delim
13713 aros_host_mkdep!$aros_host_mkdep$ac_delim
13714 aros_host_mkargs!$aros_host_mkargs$ac_delim
13715 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13716 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13717 aros_tools_dir!$aros_tools_dir$ac_delim
13718 aros_target_guitheme!$aros_target_guitheme$ac_delim
13719 aros_target_iconset!$aros_target_iconset$ac_delim
13720 aros_target_bootloader!$aros_target_bootloader$ac_delim
13721 aros_target_arch!$aros_target_arch$ac_delim
13722 aros_target_cpu!$aros_target_cpu$ac_delim
13723 aros_target_variant!$aros_target_variant$ac_delim
13724 aros_target_suffix!$aros_target_suffix$ac_delim
13725 aros_target_incl!$aros_target_incl$ac_delim
13726 aros_target_ar!$aros_target_ar$ac_delim
13727 aros_target_ranlib!$aros_target_ranlib$ac_delim
13728 aros_kernel_nm!$aros_kernel_nm$ac_delim
13729 orig_target_cc!$orig_target_cc$ac_delim
13730 aros_kernel_cc!$aros_kernel_cc$ac_delim
13731 aros_target_as!$aros_target_as$ac_delim
13732 orig_target_ld!$orig_target_ld$ac_delim
13733 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13734 aros_target_cc_path!$aros_target_cc_path$ac_delim
13735 aros_target_objdump!$aros_target_objdump$ac_delim
13736 aros_target_objcopy!$aros_target_objcopy$ac_delim
13737 aros_target_strip!$aros_target_strip$ac_delim
13738 aros_target_nm!$aros_target_nm$ac_delim
13739 aros_shared_default!$aros_shared_default$ac_delim
13740 aros_shared_ld!$aros_shared_ld$ac_delim
13741 aros_object_format!$aros_object_format$ac_delim
13742 aros_compiler_libs!$aros_compiler_libs$ac_delim
13743 aros_arch_libs!$aros_arch_libs$ac_delim
13744 aros_config_cflags!$aros_config_cflags$ac_delim
13745 aros_config_aflags!$aros_config_aflags$ac_delim
13746 aros_config_ldflags!$aros_config_ldflags$ac_delim
13747 aros_shared_cflags!$aros_shared_cflags$ac_delim
13748 aros_shared_aflags!$aros_shared_aflags$ac_delim
13749 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13750 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13751 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13752 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13753 aros_debug_cflags!$aros_debug_cflags$ac_delim
13754 aros_debug_aflags!$aros_debug_aflags$ac_delim
13755 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13756 aros_target_genmap!$aros_target_genmap$ac_delim
13757 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13758 crosstools_target!$crosstools_target$ac_delim
13759 x11_hidd_target!$x11_hidd_target$ac_delim
13760 sdl_hidd_target!$sdl_hidd_target$ac_delim
13761 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13762 aros_default_wbheight!$aros_default_wbheight$ac_delim
13763 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13764 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13765 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13766 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13767 _ACEOF
13769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13770 break
13771 elif $ac_last_try; then
13772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13774 { (exit 1); exit 1; }; }
13775 else
13776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13778 done
13780 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13781 if test -n "$ac_eof"; then
13782 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13783 ac_eof=`expr $ac_eof + 1`
13786 cat >>$CONFIG_STATUS <<_ACEOF
13787 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13789 _ACEOF
13790 sed '
13791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13792 s/^/s,@/; s/!/@,|#_!!_#|/
13795 s/'"$ac_delim"'$/,g/; t
13796 s/$/\\/; p
13797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13798 ' >>$CONFIG_STATUS <conf$$subs.sed
13799 rm -f conf$$subs.sed
13800 cat >>$CONFIG_STATUS <<_ACEOF
13801 CEOF$ac_eof
13802 _ACEOF
13805 ac_delim='%!_!# '
13806 for ac_last_try in false false false false false :; do
13807 cat >conf$$subs.sed <<_ACEOF
13808 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13809 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13810 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13811 aros_serial_debug!$aros_serial_debug$ac_delim
13812 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13813 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13814 aros_ios_platform!$aros_ios_platform$ac_delim
13815 aros_ios_version!$aros_ios_version$ac_delim
13816 aros_ios_sdk!$aros_ios_sdk$ac_delim
13817 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13818 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13819 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13820 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13821 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13822 ENABLE_X11!$ENABLE_X11$ac_delim
13823 aros_debug!$aros_debug$ac_delim
13824 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13825 aros_stack_debug!$aros_stack_debug$ac_delim
13826 aros_modules_debug!$aros_modules_debug$ac_delim
13827 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13828 gcc_target_cpu!$gcc_target_cpu$ac_delim
13829 LTLIBOBJS!$LTLIBOBJS$ac_delim
13830 _ACEOF
13832 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
13833 break
13834 elif $ac_last_try; then
13835 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13836 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13837 { (exit 1); exit 1; }; }
13838 else
13839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13841 done
13843 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13844 if test -n "$ac_eof"; then
13845 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13846 ac_eof=`expr $ac_eof + 1`
13849 cat >>$CONFIG_STATUS <<_ACEOF
13850 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13852 _ACEOF
13853 sed '
13854 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13855 s/^/s,@/; s/!/@,|#_!!_#|/
13858 s/'"$ac_delim"'$/,g/; t
13859 s/$/\\/; p
13860 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13861 ' >>$CONFIG_STATUS <conf$$subs.sed
13862 rm -f conf$$subs.sed
13863 cat >>$CONFIG_STATUS <<_ACEOF
13864 :end
13865 s/|#_!!_#|//g
13866 CEOF$ac_eof
13867 _ACEOF
13870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13872 # trailing colons and then remove the whole line if VPATH becomes empty
13873 # (actually we leave an empty line to preserve line numbers).
13874 if test "x$srcdir" = x.; then
13875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13876 s/:*\$(srcdir):*/:/
13877 s/:*\${srcdir}:*/:/
13878 s/:*@srcdir@:*/:/
13879 s/^\([^=]*=[ ]*\):*/\1/
13880 s/:*$//
13881 s/^[^=]*=[ ]*$//
13885 cat >>$CONFIG_STATUS <<\_ACEOF
13886 fi # test -n "$CONFIG_FILES"
13889 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13891 case $ac_tag in
13892 :[FHLC]) ac_mode=$ac_tag; continue;;
13893 esac
13894 case $ac_mode$ac_tag in
13895 :[FHL]*:*);;
13896 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13897 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13898 { (exit 1); exit 1; }; };;
13899 :[FH]-) ac_tag=-:-;;
13900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13901 esac
13902 ac_save_IFS=$IFS
13903 IFS=:
13904 set x $ac_tag
13905 IFS=$ac_save_IFS
13906 shift
13907 ac_file=$1
13908 shift
13910 case $ac_mode in
13911 :L) ac_source=$1;;
13912 :[FH])
13913 ac_file_inputs=
13914 for ac_f
13916 case $ac_f in
13917 -) ac_f="$tmp/stdin";;
13918 *) # Look for the file first in the build tree, then in the source tree
13919 # (if the path is not absolute). The absolute path cannot be DOS-style,
13920 # because $ac_f cannot contain `:'.
13921 test -f "$ac_f" ||
13922 case $ac_f in
13923 [\\/$]*) false;;
13924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13925 esac ||
13926 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13927 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13928 { (exit 1); exit 1; }; };;
13929 esac
13930 ac_file_inputs="$ac_file_inputs $ac_f"
13931 done
13933 # Let's still pretend it is `configure' which instantiates (i.e., don't
13934 # use $as_me), people would be surprised to read:
13935 # /* config.h. Generated by config.status. */
13936 configure_input="Generated from "`IFS=:
13937 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13938 if test x"$ac_file" != x-; then
13939 configure_input="$ac_file. $configure_input"
13940 { echo "$as_me:$LINENO: creating $ac_file" >&5
13941 echo "$as_me: creating $ac_file" >&6;}
13944 case $ac_tag in
13945 *:-:* | *:-) cat >"$tmp/stdin";;
13946 esac
13948 esac
13950 ac_dir=`$as_dirname -- "$ac_file" ||
13951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952 X"$ac_file" : 'X\(//\)[^/]' \| \
13953 X"$ac_file" : 'X\(//\)$' \| \
13954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13955 echo X"$ac_file" |
13956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13957 s//\1/
13960 /^X\(\/\/\)[^/].*/{
13961 s//\1/
13964 /^X\(\/\/\)$/{
13965 s//\1/
13968 /^X\(\/\).*/{
13969 s//\1/
13972 s/.*/./; q'`
13973 { as_dir="$ac_dir"
13974 case $as_dir in #(
13975 -*) as_dir=./$as_dir;;
13976 esac
13977 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13978 as_dirs=
13979 while :; do
13980 case $as_dir in #(
13981 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13982 *) as_qdir=$as_dir;;
13983 esac
13984 as_dirs="'$as_qdir' $as_dirs"
13985 as_dir=`$as_dirname -- "$as_dir" ||
13986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13987 X"$as_dir" : 'X\(//\)[^/]' \| \
13988 X"$as_dir" : 'X\(//\)$' \| \
13989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13990 echo X"$as_dir" |
13991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13992 s//\1/
13995 /^X\(\/\/\)[^/].*/{
13996 s//\1/
13999 /^X\(\/\/\)$/{
14000 s//\1/
14003 /^X\(\/\).*/{
14004 s//\1/
14007 s/.*/./; q'`
14008 test -d "$as_dir" && break
14009 done
14010 test -z "$as_dirs" || eval "mkdir $as_dirs"
14011 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14012 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14013 { (exit 1); exit 1; }; }; }
14014 ac_builddir=.
14016 case "$ac_dir" in
14017 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14019 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14020 # A ".." for each directory in $ac_dir_suffix.
14021 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14022 case $ac_top_builddir_sub in
14023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14025 esac ;;
14026 esac
14027 ac_abs_top_builddir=$ac_pwd
14028 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14029 # for backward compatibility:
14030 ac_top_builddir=$ac_top_build_prefix
14032 case $srcdir in
14033 .) # We are building in place.
14034 ac_srcdir=.
14035 ac_top_srcdir=$ac_top_builddir_sub
14036 ac_abs_top_srcdir=$ac_pwd ;;
14037 [\\/]* | ?:[\\/]* ) # Absolute name.
14038 ac_srcdir=$srcdir$ac_dir_suffix;
14039 ac_top_srcdir=$srcdir
14040 ac_abs_top_srcdir=$srcdir ;;
14041 *) # Relative name.
14042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14043 ac_top_srcdir=$ac_top_build_prefix$srcdir
14044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14045 esac
14046 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14049 case $ac_mode in
14052 # CONFIG_FILE
14055 _ACEOF
14057 cat >>$CONFIG_STATUS <<\_ACEOF
14058 # If the template does not know about datarootdir, expand it.
14059 # FIXME: This hack should be removed a few years after 2.60.
14060 ac_datarootdir_hack=; ac_datarootdir_seen=
14062 case `sed -n '/datarootdir/ {
14066 /@datadir@/p
14067 /@docdir@/p
14068 /@infodir@/p
14069 /@localedir@/p
14070 /@mandir@/p
14071 ' $ac_file_inputs` in
14072 *datarootdir*) ac_datarootdir_seen=yes;;
14073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14074 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14075 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14076 _ACEOF
14077 cat >>$CONFIG_STATUS <<_ACEOF
14078 ac_datarootdir_hack='
14079 s&@datadir@&$datadir&g
14080 s&@docdir@&$docdir&g
14081 s&@infodir@&$infodir&g
14082 s&@localedir@&$localedir&g
14083 s&@mandir@&$mandir&g
14084 s&\\\${datarootdir}&$datarootdir&g' ;;
14085 esac
14086 _ACEOF
14088 # Neutralize VPATH when `$srcdir' = `.'.
14089 # Shell code in configure.ac might set extrasub.
14090 # FIXME: do we really want to maintain this feature?
14091 cat >>$CONFIG_STATUS <<_ACEOF
14092 sed "$ac_vpsub
14093 $extrasub
14094 _ACEOF
14095 cat >>$CONFIG_STATUS <<\_ACEOF
14097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14098 s&@configure_input@&$configure_input&;t t
14099 s&@top_builddir@&$ac_top_builddir_sub&;t t
14100 s&@srcdir@&$ac_srcdir&;t t
14101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14102 s&@top_srcdir@&$ac_top_srcdir&;t t
14103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14104 s&@builddir@&$ac_builddir&;t t
14105 s&@abs_builddir@&$ac_abs_builddir&;t t
14106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14107 $ac_datarootdir_hack
14108 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
14110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14111 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14113 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14114 which seems to be undefined. Please make sure it is defined." >&5
14115 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14116 which seems to be undefined. Please make sure it is defined." >&2;}
14118 rm -f "$tmp/stdin"
14119 case $ac_file in
14120 -) cat "$tmp/out"; rm -f "$tmp/out";;
14121 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14122 esac
14126 # CONFIG_HEADER
14128 _ACEOF
14130 # Transform confdefs.h into a sed script `conftest.defines', that
14131 # substitutes the proper values into config.h.in to produce config.h.
14132 rm -f conftest.defines conftest.tail
14133 # First, append a space to every undef/define line, to ease matching.
14134 echo 's/$/ /' >conftest.defines
14135 # Then, protect against being on the right side of a sed subst, or in
14136 # an unquoted here document, in config.status. If some macros were
14137 # called several times there might be several #defines for the same
14138 # symbol, which is useless. But do not sort them, since the last
14139 # AC_DEFINE must be honored.
14140 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14141 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14142 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14143 # PARAMS is the parameter list in the macro definition--in most cases, it's
14144 # just an empty string.
14145 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14146 ac_dB='\\)[ (].*,\\1define\\2'
14147 ac_dC=' '
14148 ac_dD=' ,'
14150 uniq confdefs.h |
14151 sed -n '
14152 t rset
14153 :rset
14154 s/^[ ]*#[ ]*define[ ][ ]*//
14155 t ok
14158 s/[\\&,]/\\&/g
14159 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14160 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14161 ' >>conftest.defines
14163 # Remove the space that was appended to ease matching.
14164 # Then replace #undef with comments. This is necessary, for
14165 # example, in the case of _POSIX_SOURCE, which is predefined and required
14166 # on some systems where configure will not decide to define it.
14167 # (The regexp can be short, since the line contains either #define or #undef.)
14168 echo 's/ $//
14169 s,^[ #]*u.*,/* & */,' >>conftest.defines
14171 # Break up conftest.defines:
14172 ac_max_sed_lines=50
14174 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14175 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14176 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14177 # et cetera.
14178 ac_in='$ac_file_inputs'
14179 ac_out='"$tmp/out1"'
14180 ac_nxt='"$tmp/out2"'
14182 while :
14184 # Write a here document:
14185 cat >>$CONFIG_STATUS <<_ACEOF
14186 # First, check the format of the line:
14187 cat >"\$tmp/defines.sed" <<\\CEOF
14188 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14189 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14191 :def
14192 _ACEOF
14193 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14194 echo 'CEOF
14195 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14196 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14197 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14198 grep . conftest.tail >/dev/null || break
14199 rm -f conftest.defines
14200 mv conftest.tail conftest.defines
14201 done
14202 rm -f conftest.defines conftest.tail
14204 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14205 cat >>$CONFIG_STATUS <<\_ACEOF
14206 if test x"$ac_file" != x-; then
14207 echo "/* $configure_input */" >"$tmp/config.h"
14208 cat "$ac_result" >>"$tmp/config.h"
14209 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14210 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14211 echo "$as_me: $ac_file is unchanged" >&6;}
14212 else
14213 rm -f $ac_file
14214 mv "$tmp/config.h" $ac_file
14216 else
14217 echo "/* $configure_input */"
14218 cat "$ac_result"
14220 rm -f "$tmp/out12"
14223 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14224 echo "$as_me: executing $ac_file commands" >&6;}
14226 esac
14229 case $ac_file$ac_mode in
14230 "compiler_executable":C)
14231 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14232 mkdir -p $prefix
14233 prefix="${prefix}/${aros_target_cpu}-aros"
14234 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14236 echo ${prefix}
14237 echo ${prefix2}
14238 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14240 ln -sf ${prefix2}-gcc ${prefix}-gcc
14241 ln -sf ${prefix2}-ld ${prefix}-ld
14243 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14244 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14245 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14246 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14247 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14248 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14249 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14251 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14252 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14253 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14254 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14255 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14256 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14257 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14259 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14260 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14262 esac
14263 done # for ac_tag
14266 { (exit 0); exit 0; }
14267 _ACEOF
14268 chmod +x $CONFIG_STATUS
14269 ac_clean_files=$ac_clean_files_save
14272 # configure is writing to config.log, and then calls config.status.
14273 # config.status does its own redirection, appending to config.log.
14274 # Unfortunately, on DOS this fails, as config.log is still kept open
14275 # by configure, so config.status won't be able to write to it; its
14276 # output is simply discarded. So we exec the FD to /dev/null,
14277 # effectively closing config.log, so it can be properly (re)opened and
14278 # appended to by config.status. When coming back to configure, we
14279 # need to make the FD available again.
14280 if test "$no_create" != yes; then
14281 ac_cs_success=:
14282 ac_config_status_args=
14283 test "$silent" = yes &&
14284 ac_config_status_args="$ac_config_status_args --quiet"
14285 exec 5>/dev/null
14286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14287 exec 5>>config.log
14288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14289 # would make configure fail if this is the last instruction.
14290 $ac_cs_success || { (exit 1); exit 1; }
14295 #XXX compatability...
14296 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14298 if test -n "$aros_shared_cflags" ; then
14299 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14300 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg