Interrupt for PPC. (Thanks Markus)
[cake.git] / configure
blob042375926f971635bf8d188136a3f39fedcb5fc0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 LIBLZO
714 aros_kernel_cc
715 aros_target_as_ln
716 aros_kernel_ld
717 aros_target_ar_ln
718 aros_target_nm_ln
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
722 aros_target_strip_ln
723 aros_target_nostdinc_cflags
724 aros_target_nostartup_ldflags
725 aros_target_nix_ldflags
726 aros_target_detach_ldflags
727 aros_target_nostdlib_ldflags
728 XMKMF
729 SDL_CONFIG
730 SDL_CFLAGS
731 SDL_LIBS
732 aros_arch
733 aros_cpu
734 aros_flavour
735 aros_flavour_uc
736 AROS_BUILDDIR
737 AROS_SRCDIR
738 AROS_PORTSSRCDIR
739 aros_cc_pre
740 aros_host_arch
741 aros_host_cpu
742 aros_host_cc
743 aros_host_make
744 aros_host_cflags
745 aros_host_ldflags
746 aros_host_debug
747 aros_host_mkdep
748 aros_host_mkargs
749 aros_host_exe_suffix
750 aros_host_lib_suffix
751 aros_tools_dir
752 aros_target_guitheme
753 aros_target_bootloader
754 aros_target_arch
755 aros_target_cpu
756 aros_target_variant
757 aros_target_suffix
758 aros_target_incl
759 aros_target_ar
760 aros_target_ranlib
761 aros_kernel_nm
762 aros_target_cc
763 aros_target_as
764 aros_target_ld
765 aros_target_cc_includes
766 aros_target_cc_path
767 aros_target_objdump
768 aros_target_objcopy
769 aros_target_strip
770 aros_target_nm
771 aros_shared_default
772 aros_shared_ld
773 aros_object_format
774 aros_compiler_libs
775 aros_config_cflags
776 aros_config_aflags
777 aros_config_ldflags
778 aros_shared_cflags
779 aros_shared_aflags
780 aros_shared_ldflags
781 aros_kernel_ldflags
782 aros_debug_cflags
783 aros_debug_aflags
784 aros_debug_ldflags
785 aros_target_genmap
786 aros_target_strip_flags
787 x11_hidd_target
788 sdl_hidd_target
789 aros_default_wbwidth
790 aros_default_wbheight
791 aros_default_wbdepth
792 DO_XSHM_SUPPORT
793 DO_VIDMODE_SUPPORT
794 aros_host_x11_includes
795 aros_host_x11_libdirs
796 aros_host_sdl_cflags
797 aros_host_sdl_libs
798 aros_bochs_hack
799 aros_serial_debug
800 aros_palm_debug_hack
801 aros_nesting_supervisor
802 ENABLE_DBUS
803 DBUS_CFLAGS
804 DBUS_LIBFLAGS
805 KERNEL_DBUS_KOBJ
806 KERNEL_DBUS_INCLUDES
807 aros_debug
808 aros_mungwall_debug
809 aros_stack_debug
810 aros_modules_debug
811 ignore_undefined_symbols
812 gcc_target_cpu
813 LTLIBOBJS'
814 ac_subst_files=''
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
824 XMKMF'
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
873 ac_prev=
874 ac_dashdash=
875 for ac_option
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
884 case $ac_option in
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *) ac_optarg=yes ;;
887 esac
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
893 ac_dashdash=yes ;;
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
912 --config-cache | -C)
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
931 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932 { (exit 1); exit 1; }; }
933 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
934 eval enable_$ac_feature=no ;;
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
946 -enable-* | --enable-*)
947 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
950 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951 { (exit 1); exit 1; }; }
952 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
953 eval enable_$ac_feature=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1143 -with-* | --with-*)
1144 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1150 eval with_$ac_package=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1159 eval with_$ac_package=no ;;
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) { echo "$as_me: error: unrecognized option: $ac_option
1180 Try \`$0 --help' for more information." >&2
1181 { (exit 1); exit 1; }; }
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189 { (exit 1); exit 1; }; }
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 esac
1202 done
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 { echo "$as_me: error: missing argument to $ac_option" >&2
1207 { (exit 1); exit 1; }; }
1210 # Be sure to have absolute directory names.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222 { (exit 1); exit 1; }; }
1223 done
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 { echo "$as_me: error: Working directory cannot be determined" >&2
1253 { (exit 1); exit 1; }; }
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 { echo "$as_me: error: pwd does not report name of working directory" >&2
1256 { (exit 1); exit 1; }; }
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$0" ||
1264 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$0" : 'X\(//\)[^/]' \| \
1266 X"$0" : 'X\(//\)$' \| \
1267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268 echo X"$0" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1277 /^X\(\/\/\)$/{
1278 s//\1/
1281 /^X\(\/\).*/{
1282 s//\1/
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1290 else
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296 { (exit 1); exit 1; }; }
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301 { (exit 1); exit 1; }; }
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures this package to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1382 cat <<\_ACEOF
1384 X features:
1385 --x-includes=DIR X include files are in DIR
1386 --x-libraries=DIR X library files are in DIR
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1394 if test -n "$ac_init_help"; then
1396 cat <<\_ACEOF
1398 Optional Features:
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-build-type=TYPE
1402 Select the build type. Available types are:
1403 personal, nightly, snapshot, milestone, release. Do
1404 NOT use this option unless you know what you are
1405 doing! (default=personal)
1406 --enable-debug=list Enable different types of debug. Commas or
1407 whitespaces can be used to separate the items in the
1408 list. Available types of debug are: all, none,
1409 messages, stack, mungwall, modules, symbols. If no
1410 list is provided then "all" is assumed.
1411 (default=none)
1412 --enable-distcc Use distcc as a front end to the compiler
1413 (default=no).
1414 --enable-ccache Use ccache as a front end to the compiler
1415 (default=no).
1416 --enable-target-variant=NAME
1417 Enable a specific target variant(default=none)
1418 --enable-includes=dir Alternative system include directory
1419 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1420 (default=no)
1421 --enable-palm-debug-hack
1422 Enable palm debug output hack in palm native
1423 (default=no)
1424 --enable-nesting-supervisor
1425 Enable nesting supervisor support in unix
1426 (default=no)
1427 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1428 --enable-x11-shm use X11 shared memory (default=auto)
1429 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1430 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1431 --disable-sdltest Do not try to compile and run a test SDL program
1432 --enable-dbus Enable DBUS support via dbus.library (default=no)
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-optimization=FLAGS
1438 Use optimization flags FLAGS (default=-O2).
1439 --with-portssources=DIR Where to download sourcecode for external ports
1440 --with-bootloader=NAME Use a specific bootloader
1441 --with-theme=NAME Use a specific GUI Theme
1442 --with-resolution=XRESxYRESxDEPTH
1443 Default resolution of the initial WorkbenchScreen
1444 --with-serial-debug Enable serial debug output in native (default=no)
1445 --with-x use the X Window System
1446 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1447 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 CPP C preprocessor
1458 XMKMF Path to xmkmf, Makefile generator for X Window System
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 _ACEOF
1464 ac_status=$?
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" || continue
1471 ac_builddir=.
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 configure
1524 generated by GNU Autoconf 2.61
1526 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1527 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1533 cat >config.log <<_ACEOF
1534 This file contains any messages produced by compilers while
1535 running configure, to aid debugging if configure makes a mistake.
1537 It was created by $as_me, which was
1538 generated by GNU Autoconf 2.61. Invocation command line was
1540 $ $0 $@
1542 _ACEOF
1543 exec 5>>config.log
1545 cat <<_ASUNAME
1546 ## --------- ##
1547 ## Platform. ##
1548 ## --------- ##
1550 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1551 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1552 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1553 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1554 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1556 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1557 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1559 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1560 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1561 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1562 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1563 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1564 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1565 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1567 _ASUNAME
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 echo "PATH: $as_dir"
1575 done
1576 IFS=$as_save_IFS
1578 } >&5
1580 cat >&5 <<_ACEOF
1583 ## ----------- ##
1584 ## Core tests. ##
1585 ## ----------- ##
1587 _ACEOF
1590 # Keep a trace of the command line.
1591 # Strip out --no-create and --no-recursion so they do not pile up.
1592 # Strip out --silent because we don't want to record it for future runs.
1593 # Also quote any args containing shell meta-characters.
1594 # Make two passes to allow for proper duplicate-argument suppression.
1595 ac_configure_args=
1596 ac_configure_args0=
1597 ac_configure_args1=
1598 ac_must_keep_next=false
1599 for ac_pass in 1 2
1601 for ac_arg
1603 case $ac_arg in
1604 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1606 | -silent | --silent | --silen | --sile | --sil)
1607 continue ;;
1608 *\'*)
1609 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1610 esac
1611 case $ac_pass in
1612 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1614 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1615 if test $ac_must_keep_next = true; then
1616 ac_must_keep_next=false # Got value, back to normal.
1617 else
1618 case $ac_arg in
1619 *=* | --config-cache | -C | -disable-* | --disable-* \
1620 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1621 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1622 | -with-* | --with-* | -without-* | --without-* | --x)
1623 case "$ac_configure_args0 " in
1624 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1625 esac
1627 -* ) ac_must_keep_next=true ;;
1628 esac
1630 ac_configure_args="$ac_configure_args '$ac_arg'"
1632 esac
1633 done
1634 done
1635 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1636 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1638 # When interrupted or exit'd, cleanup temporary files, and complete
1639 # config.log. We remove comments because anyway the quotes in there
1640 # would cause problems or look ugly.
1641 # WARNING: Use '\'' to represent an apostrophe within the trap.
1642 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1643 trap 'exit_status=$?
1644 # Save into config.log some information that might help in debugging.
1646 echo
1648 cat <<\_ASBOX
1649 ## ---------------- ##
1650 ## Cache variables. ##
1651 ## ---------------- ##
1652 _ASBOX
1653 echo
1654 # The following way of writing the cache mishandles newlines in values,
1656 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1657 eval ac_val=\$$ac_var
1658 case $ac_val in #(
1659 *${as_nl}*)
1660 case $ac_var in #(
1661 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1662 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1663 esac
1664 case $ac_var in #(
1665 _ | IFS | as_nl) ;; #(
1666 *) $as_unset $ac_var ;;
1667 esac ;;
1668 esac
1669 done
1670 (set) 2>&1 |
1671 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672 *${as_nl}ac_space=\ *)
1673 sed -n \
1674 "s/'\''/'\''\\\\'\'''\''/g;
1675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676 ;; #(
1678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1680 esac |
1681 sort
1683 echo
1685 cat <<\_ASBOX
1686 ## ----------------- ##
1687 ## Output variables. ##
1688 ## ----------------- ##
1689 _ASBOX
1690 echo
1691 for ac_var in $ac_subst_vars
1693 eval ac_val=\$$ac_var
1694 case $ac_val in
1695 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1696 esac
1697 echo "$ac_var='\''$ac_val'\''"
1698 done | sort
1699 echo
1701 if test -n "$ac_subst_files"; then
1702 cat <<\_ASBOX
1703 ## ------------------- ##
1704 ## File substitutions. ##
1705 ## ------------------- ##
1706 _ASBOX
1707 echo
1708 for ac_var in $ac_subst_files
1710 eval ac_val=\$$ac_var
1711 case $ac_val in
1712 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 esac
1714 echo "$ac_var='\''$ac_val'\''"
1715 done | sort
1716 echo
1719 if test -s confdefs.h; then
1720 cat <<\_ASBOX
1721 ## ----------- ##
1722 ## confdefs.h. ##
1723 ## ----------- ##
1724 _ASBOX
1725 echo
1726 cat confdefs.h
1727 echo
1729 test "$ac_signal" != 0 &&
1730 echo "$as_me: caught signal $ac_signal"
1731 echo "$as_me: exit $exit_status"
1732 } >&5
1733 rm -f core *.core core.conftest.* &&
1734 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1735 exit $exit_status
1737 for ac_signal in 1 2 13 15; do
1738 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739 done
1740 ac_signal=0
1742 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1743 rm -f -r conftest* confdefs.h
1745 # Predefined preprocessor variables.
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_NAME "$PACKAGE_NAME"
1749 _ACEOF
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754 _ACEOF
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759 _ACEOF
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_STRING "$PACKAGE_STRING"
1764 _ACEOF
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769 _ACEOF
1772 # Let the site file select an alternate cache file if it wants to.
1773 # Prefer explicitly selected file to automatically selected ones.
1774 if test -n "$CONFIG_SITE"; then
1775 set x "$CONFIG_SITE"
1776 elif test "x$prefix" != xNONE; then
1777 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1778 else
1779 set x "$ac_default_prefix/share/config.site" \
1780 "$ac_default_prefix/etc/config.site"
1782 shift
1783 for ac_site_file
1785 if test -r "$ac_site_file"; then
1786 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1787 echo "$as_me: loading site script $ac_site_file" >&6;}
1788 sed 's/^/| /' "$ac_site_file" >&5
1789 . "$ac_site_file"
1791 done
1793 if test -r "$cache_file"; then
1794 # Some versions of bash will fail to source /dev/null (special
1795 # files actually), so we avoid doing that.
1796 if test -f "$cache_file"; then
1797 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1798 echo "$as_me: loading cache $cache_file" >&6;}
1799 case $cache_file in
1800 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1801 *) . "./$cache_file";;
1802 esac
1804 else
1805 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1806 echo "$as_me: creating cache $cache_file" >&6;}
1807 >$cache_file
1810 # Check that the precious variables saved in the cache have kept the same
1811 # value.
1812 ac_cache_corrupted=false
1813 for ac_var in $ac_precious_vars; do
1814 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1815 eval ac_new_set=\$ac_env_${ac_var}_set
1816 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1817 eval ac_new_val=\$ac_env_${ac_var}_value
1818 case $ac_old_set,$ac_new_set in
1819 set,)
1820 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1821 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1822 ac_cache_corrupted=: ;;
1823 ,set)
1824 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1825 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1826 ac_cache_corrupted=: ;;
1827 ,);;
1829 if test "x$ac_old_val" != "x$ac_new_val"; then
1830 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1831 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1832 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1833 echo "$as_me: former value: $ac_old_val" >&2;}
1834 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1835 echo "$as_me: current value: $ac_new_val" >&2;}
1836 ac_cache_corrupted=:
1837 fi;;
1838 esac
1839 # Pass precious variables to config.status.
1840 if test "$ac_new_set" = set; then
1841 case $ac_new_val in
1842 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1843 *) ac_arg=$ac_var=$ac_new_val ;;
1844 esac
1845 case " $ac_configure_args " in
1846 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1847 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1848 esac
1850 done
1851 if $ac_cache_corrupted; then
1852 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1853 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1854 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1855 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1856 { (exit 1); exit 1; }; }
1875 ac_ext=c
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 ac_aux_dir=
1884 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1885 if test -f "$ac_dir/install-sh"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/install-sh -c"
1888 break
1889 elif test -f "$ac_dir/install.sh"; then
1890 ac_aux_dir=$ac_dir
1891 ac_install_sh="$ac_aux_dir/install.sh -c"
1892 break
1893 elif test -f "$ac_dir/shtool"; then
1894 ac_aux_dir=$ac_dir
1895 ac_install_sh="$ac_aux_dir/shtool install -c"
1896 break
1898 done
1899 if test -z "$ac_aux_dir"; then
1900 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1901 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1902 { (exit 1); exit 1; }; }
1905 # These three variables are undocumented and unsupported,
1906 # and are intended to be withdrawn in a future Autoconf release.
1907 # They can cause serious problems if a builder's source tree is in a directory
1908 # whose full name contains unusual characters.
1909 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1910 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1911 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1915 # Check what host we are running on.
1916 # If a target is not suggested, we use this one.
1917 # Note that what we call a target, Autoconf calls a host.
1918 # Make sure we can run config.sub.
1919 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1920 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1921 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1922 { (exit 1); exit 1; }; }
1924 { echo "$as_me:$LINENO: checking build system type" >&5
1925 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_build+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 ac_build_alias=$build_alias
1930 test "x$ac_build_alias" = x &&
1931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1932 test "x$ac_build_alias" = x &&
1933 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1934 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1935 { (exit 1); exit 1; }; }
1936 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1939 { (exit 1); exit 1; }; }
1942 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1943 echo "${ECHO_T}$ac_cv_build" >&6; }
1944 case $ac_cv_build in
1945 *-*-*) ;;
1946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1947 echo "$as_me: error: invalid value of canonical build" >&2;}
1948 { (exit 1); exit 1; }; };;
1949 esac
1950 build=$ac_cv_build
1951 ac_save_IFS=$IFS; IFS='-'
1952 set x $ac_cv_build
1953 shift
1954 build_cpu=$1
1955 build_vendor=$2
1956 shift; shift
1957 # Remember, the first character of IFS is used to create $*,
1958 # except with old shells:
1959 build_os=$*
1960 IFS=$ac_save_IFS
1961 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1964 { echo "$as_me:$LINENO: checking host system type" >&5
1965 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1966 if test "${ac_cv_host+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 if test "x$host_alias" = x; then
1970 ac_cv_host=$ac_cv_build
1971 else
1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1975 { (exit 1); exit 1; }; }
1979 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980 echo "${ECHO_T}$ac_cv_host" >&6; }
1981 case $ac_cv_host in
1982 *-*-*) ;;
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984 echo "$as_me: error: invalid value of canonical host" >&2;}
1985 { (exit 1); exit 1; }; };;
1986 esac
1987 host=$ac_cv_host
1988 ac_save_IFS=$IFS; IFS='-'
1989 set x $ac_cv_host
1990 shift
1991 host_cpu=$1
1992 host_vendor=$2
1993 shift; shift
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1996 host_os=$*
1997 IFS=$ac_save_IFS
1998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2002 # The AROS target is slightly different to the normal GNU style
2003 # format. We don't have the middle part, and we reverse the order
2004 # of the $(CPU) and $(OS) bits.
2006 # Don't strip the version of the target yet, it might be
2007 # useful on some systems.
2009 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2010 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2012 if test "$target" = "NONE" ; then
2013 target=$host_os-$host_cpu
2014 cross_compile=no
2015 else
2016 if test "$target" = "" ; then
2017 target=$host_os-$host_cpu
2018 cross_compile=no
2019 else
2020 cross_compile=yes
2023 { echo "$as_me:$LINENO: result: $target" >&5
2024 echo "${ECHO_T}$target" >&6; }
2026 #don't know where else to put this...
2027 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2028 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2029 AROS_BUILDDIR=$PWD
2030 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2031 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2033 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2034 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2035 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2036 AROS_SRCDIR=${srcpwd}
2037 { echo "$as_me:$LINENO: result: $AROS_SRCDIR" >&5
2038 echo "${ECHO_T}$AROS_SRCDIR" >&6; }
2040 # Parse the target field into something useful.
2042 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2043 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2046 aros_default_wbwidth=800
2047 aros_default_wbheight=600
2048 aros_default_wbdepth=4
2051 # The first step is to find the host binaries.
2052 # Check for a compiler.
2053 ac_ext=c
2054 ac_cpp='$CPP $CPPFLAGS'
2055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2080 done
2081 done
2082 IFS=$as_save_IFS
2086 CC=$ac_cv_prog_CC
2087 if test -n "$CC"; then
2088 { echo "$as_me:$LINENO: result: $CC" >&5
2089 echo "${ECHO_T}$CC" >&6; }
2090 else
2091 { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2097 if test -z "$ac_cv_prog_CC"; then
2098 ac_ct_CC=$CC
2099 # Extract the first word of "gcc", so it can be a program name with args.
2100 set dummy gcc; ac_word=$2
2101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$ac_ct_CC"; then
2107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2116 ac_cv_prog_ac_ct_CC="gcc"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2120 done
2121 done
2122 IFS=$as_save_IFS
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 echo "${ECHO_T}$ac_ct_CC" >&6; }
2130 else
2131 { echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6; }
2135 if test "x$ac_ct_CC" = x; then
2136 CC=""
2137 else
2138 case $cross_compiling:$ac_tool_warned in
2139 yes:)
2140 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2141 whose name does not start with the host triplet. If you think this
2142 configuration is useful to you, please write to autoconf@gnu.org." >&5
2143 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2144 whose name does not start with the host triplet. If you think this
2145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2146 ac_tool_warned=yes ;;
2147 esac
2148 CC=$ac_ct_CC
2150 else
2151 CC="$ac_cv_prog_CC"
2154 if test -z "$CC"; then
2155 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2157 set dummy ${ac_tool_prefix}cc; ac_word=$2
2158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173 ac_cv_prog_CC="${ac_tool_prefix}cc"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2177 done
2178 done
2179 IFS=$as_save_IFS
2183 CC=$ac_cv_prog_CC
2184 if test -n "$CC"; then
2185 { echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6; }
2187 else
2188 { echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6; }
2195 if test -z "$CC"; then
2196 # Extract the first word of "cc", so it can be a program name with args.
2197 set dummy cc; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203 if test -n "$CC"; then
2204 ac_cv_prog_CC="$CC" # Let the user override the test.
2205 else
2206 ac_prog_rejected=no
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2214 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2215 ac_prog_rejected=yes
2216 continue
2218 ac_cv_prog_CC="cc"
2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2222 done
2223 done
2224 IFS=$as_save_IFS
2226 if test $ac_prog_rejected = yes; then
2227 # We found a bogon in the path, so make sure we never use it.
2228 set dummy $ac_cv_prog_CC
2229 shift
2230 if test $# != 0; then
2231 # We chose a different compiler from the bogus one.
2232 # However, it has the same basename, so the bogon will be chosen
2233 # first if we set CC to just the basename; use the full file name.
2234 shift
2235 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2240 CC=$ac_cv_prog_CC
2241 if test -n "$CC"; then
2242 { echo "$as_me:$LINENO: result: $CC" >&5
2243 echo "${ECHO_T}$CC" >&6; }
2244 else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2251 if test -z "$CC"; then
2252 if test -n "$ac_tool_prefix"; then
2253 for ac_prog in cl.exe
2255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2259 if test "${ac_cv_prog_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 if test -n "$CC"; then
2263 ac_cv_prog_CC="$CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2278 IFS=$as_save_IFS
2282 CC=$ac_cv_prog_CC
2283 if test -n "$CC"; then
2284 { echo "$as_me:$LINENO: result: $CC" >&5
2285 echo "${ECHO_T}$CC" >&6; }
2286 else
2287 { echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6; }
2292 test -n "$CC" && break
2293 done
2295 if test -z "$CC"; then
2296 ac_ct_CC=$CC
2297 for ac_prog in cl.exe
2299 # Extract the first word of "$ac_prog", so it can be a program name with args.
2300 set dummy $ac_prog; ac_word=$2
2301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 if test -n "$ac_ct_CC"; then
2307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_ac_ct_CC="$ac_prog"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2320 done
2321 done
2322 IFS=$as_save_IFS
2326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2327 if test -n "$ac_ct_CC"; then
2328 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2329 echo "${ECHO_T}$ac_ct_CC" >&6; }
2330 else
2331 { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2336 test -n "$ac_ct_CC" && break
2337 done
2339 if test "x$ac_ct_CC" = x; then
2340 CC=""
2341 else
2342 case $cross_compiling:$ac_tool_warned in
2343 yes:)
2344 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2345 whose name does not start with the host triplet. If you think this
2346 configuration is useful to you, please write to autoconf@gnu.org." >&5
2347 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2348 whose name does not start with the host triplet. If you think this
2349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2350 ac_tool_warned=yes ;;
2351 esac
2352 CC=$ac_ct_CC
2359 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2365 # Provide some information about the compiler.
2366 echo "$as_me:$LINENO: checking for C compiler version" >&5
2367 ac_compiler=`set X $ac_compile; echo $2`
2368 { (ac_try="$ac_compiler --version >&5"
2369 case "(($ac_try" in
2370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2371 *) ac_try_echo=$ac_try;;
2372 esac
2373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2374 (eval "$ac_compiler --version >&5") 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2378 { (ac_try="$ac_compiler -v >&5"
2379 case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382 esac
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_compiler -v >&5") 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }
2388 { (ac_try="$ac_compiler -V >&5"
2389 case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_compiler -V >&5") 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2407 main ()
2411 return 0;
2413 _ACEOF
2414 ac_clean_files_save=$ac_clean_files
2415 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2416 # Try to create an executable without -o first, disregard a.out.
2417 # It will help us diagnose broken compilers, and finding out an intuition
2418 # of exeext.
2419 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2420 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2421 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2423 # List of possible output files, starting from the most likely.
2424 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2425 # only as a last resort. b.out is created by i960 compilers.
2426 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2428 # The IRIX 6 linker writes into existing files which may not be
2429 # executable, retaining their permissions. Remove them first so a
2430 # subsequent execution test works.
2431 ac_rmfiles=
2432 for ac_file in $ac_files
2434 case $ac_file in
2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2436 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2437 esac
2438 done
2439 rm -f $ac_rmfiles
2441 if { (ac_try="$ac_link_default"
2442 case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_link_default") 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2452 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2453 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2454 # so that the user can short-circuit this test for compilers unknown to
2455 # Autoconf.
2456 for ac_file in $ac_files ''
2458 test -f "$ac_file" || continue
2459 case $ac_file in
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2462 [ab].out )
2463 # We found the default executable, but exeext='' is most
2464 # certainly right.
2465 break;;
2466 *.* )
2467 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2468 then :; else
2469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2471 # We set ac_cv_exeext here because the later test for it is not
2472 # safe: cross compilers may not add the suffix if given an `-o'
2473 # argument, so we may need to know it at that point already.
2474 # Even if this section looks crufty: it has the advantage of
2475 # actually working.
2476 break;;
2478 break;;
2479 esac
2480 done
2481 test "$ac_cv_exeext" = no && ac_cv_exeext=
2483 else
2484 ac_file=''
2487 { echo "$as_me:$LINENO: result: $ac_file" >&5
2488 echo "${ECHO_T}$ac_file" >&6; }
2489 if test -z "$ac_file"; then
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2493 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&2;}
2497 { (exit 77); exit 77; }; }
2500 ac_exeext=$ac_cv_exeext
2502 # Check that the compiler produces executables we can run. If not, either
2503 # the compiler is broken, or we cross compile.
2504 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2505 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2506 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2507 # If not cross compiling, check that we can run a simple program.
2508 if test "$cross_compiling" != yes; then
2509 if { ac_try='./$ac_file'
2510 { (case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513 esac
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_try") 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 cross_compiling=no
2520 else
2521 if test "$cross_compiling" = maybe; then
2522 cross_compiling=yes
2523 else
2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2534 { echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6; }
2537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2538 ac_clean_files=$ac_clean_files_save
2539 # Check that the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2543 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6; }
2546 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2548 if { (ac_try="$ac_link"
2549 case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_link") 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; then
2558 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2559 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2560 # work properly (i.e., refer to `conftest.exe'), while it won't with
2561 # `rm'.
2562 for ac_file in conftest.exe conftest conftest.*; do
2563 test -f "$ac_file" || continue
2564 case $ac_file in
2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2566 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2567 break;;
2568 * ) break;;
2569 esac
2570 done
2571 else
2572 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2575 See \`config.log' for more details." >&2;}
2576 { (exit 1); exit 1; }; }
2579 rm -f conftest$ac_cv_exeext
2580 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2581 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2583 rm -f conftest.$ac_ext
2584 EXEEXT=$ac_cv_exeext
2585 ac_exeext=$EXEEXT
2586 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2587 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2588 if test "${ac_cv_objext+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2599 main ()
2603 return 0;
2605 _ACEOF
2606 rm -f conftest.o conftest.obj
2607 if { (ac_try="$ac_compile"
2608 case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_compile") 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; then
2617 for ac_file in conftest.o conftest.obj conftest.*; do
2618 test -f "$ac_file" || continue;
2619 case $ac_file in
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2622 break;;
2623 esac
2624 done
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2629 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&2;}
2633 { (exit 1); exit 1; }; }
2636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2638 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2639 echo "${ECHO_T}$ac_cv_objext" >&6; }
2640 OBJEXT=$ac_cv_objext
2641 ac_objext=$OBJEXT
2642 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2655 main ()
2657 #ifndef __GNUC__
2658 choke me
2659 #endif
2662 return 0;
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (ac_try="$ac_compile"
2667 case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compile") 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } && {
2679 test -z "$ac_c_werror_flag" ||
2680 test ! -s conftest.err
2681 } && test -s conftest.$ac_objext; then
2682 ac_compiler_gnu=yes
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2687 ac_compiler_gnu=no
2690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2694 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2695 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2696 GCC=`test $ac_compiler_gnu = yes && echo yes`
2697 ac_test_CFLAGS=${CFLAGS+set}
2698 ac_save_CFLAGS=$CFLAGS
2699 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2700 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2701 if test "${ac_cv_prog_cc_g+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 ac_save_c_werror_flag=$ac_c_werror_flag
2705 ac_c_werror_flag=yes
2706 ac_cv_prog_cc_g=no
2707 CFLAGS="-g"
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2716 main ()
2720 return 0;
2722 _ACEOF
2723 rm -f conftest.$ac_objext
2724 if { (ac_try="$ac_compile"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compile") 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } && {
2737 test -z "$ac_c_werror_flag" ||
2738 test ! -s conftest.err
2739 } && test -s conftest.$ac_objext; then
2740 ac_cv_prog_cc_g=yes
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 CFLAGS=""
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2754 main ()
2758 return 0;
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (ac_try="$ac_compile"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compile") 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } && {
2775 test -z "$ac_c_werror_flag" ||
2776 test ! -s conftest.err
2777 } && test -s conftest.$ac_objext; then
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 ac_c_werror_flag=$ac_save_c_werror_flag
2784 CFLAGS="-g"
2785 cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h. */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2793 main ()
2797 return 0;
2799 _ACEOF
2800 rm -f conftest.$ac_objext
2801 if { (ac_try="$ac_compile"
2802 case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805 esac
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compile") 2>conftest.er1
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } && {
2814 test -z "$ac_c_werror_flag" ||
2815 test ! -s conftest.err
2816 } && test -s conftest.$ac_objext; then
2817 ac_cv_prog_cc_g=yes
2818 else
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_c_werror_flag=$ac_save_c_werror_flag
2834 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2836 if test "$ac_test_CFLAGS" = set; then
2837 CFLAGS=$ac_save_CFLAGS
2838 elif test $ac_cv_prog_cc_g = yes; then
2839 if test "$GCC" = yes; then
2840 CFLAGS="-g -O2"
2841 else
2842 CFLAGS="-g"
2844 else
2845 if test "$GCC" = yes; then
2846 CFLAGS="-O2"
2847 else
2848 CFLAGS=
2851 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2852 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_cc_c89+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 ac_cv_prog_cc_c89=no
2857 ac_save_CC=$CC
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 #include <stdarg.h>
2865 #include <stdio.h>
2866 #include <sys/types.h>
2867 #include <sys/stat.h>
2868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2869 struct buf { int x; };
2870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871 static char *e (p, i)
2872 char **p;
2873 int i;
2875 return p[i];
2877 static char *f (char * (*g) (char **, int), char **p, ...)
2879 char *s;
2880 va_list v;
2881 va_start (v,p);
2882 s = g (p, va_arg (v,int));
2883 va_end (v);
2884 return s;
2887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2888 function prototypes and stuff, but not '\xHH' hex character constants.
2889 These don't provoke an error unfortunately, instead are silently treated
2890 as 'x'. The following induces an error, until -std is added to get
2891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2892 array size at least. It's necessary to write '\x00'==0 to get something
2893 that's true only with -std. */
2894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2897 inside strings and character constants. */
2898 #define FOO(x) 'x'
2899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2901 int test (int i, double x);
2902 struct s1 {int (*f) (int a);};
2903 struct s2 {int (*f) (double a);};
2904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2905 int argc;
2906 char **argv;
2908 main ()
2910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2912 return 0;
2914 _ACEOF
2915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2918 CC="$ac_save_CC $ac_arg"
2919 rm -f conftest.$ac_objext
2920 if { (ac_try="$ac_compile"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && {
2933 test -z "$ac_c_werror_flag" ||
2934 test ! -s conftest.err
2935 } && test -s conftest.$ac_objext; then
2936 ac_cv_prog_cc_c89=$ac_arg
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2944 rm -f core conftest.err conftest.$ac_objext
2945 test "x$ac_cv_prog_cc_c89" != "xno" && break
2946 done
2947 rm -f conftest.$ac_ext
2948 CC=$ac_save_CC
2951 # AC_CACHE_VAL
2952 case "x$ac_cv_prog_cc_c89" in
2954 { echo "$as_me:$LINENO: result: none needed" >&5
2955 echo "${ECHO_T}none needed" >&6; } ;;
2956 xno)
2957 { echo "$as_me:$LINENO: result: unsupported" >&5
2958 echo "${ECHO_T}unsupported" >&6; } ;;
2960 CC="$CC $ac_cv_prog_cc_c89"
2961 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2962 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2963 esac
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 case $ac_cv_prog_cc_stdc in
2973 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2974 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2975 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2976 if test "${ac_cv_prog_cc_c99+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979 ac_cv_prog_cc_c99=no
2980 ac_save_CC=$CC
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #include <stdarg.h>
2988 #include <stdbool.h>
2989 #include <stdlib.h>
2990 #include <wchar.h>
2991 #include <stdio.h>
2993 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2994 #define debug(...) fprintf (stderr, __VA_ARGS__)
2995 #define showlist(...) puts (#__VA_ARGS__)
2996 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2997 static void
2998 test_varargs_macros (void)
3000 int x = 1234;
3001 int y = 5678;
3002 debug ("Flag");
3003 debug ("X = %d\n", x);
3004 showlist (The first, second, and third items.);
3005 report (x>y, "x is %d but y is %d", x, y);
3008 // Check long long types.
3009 #define BIG64 18446744073709551615ull
3010 #define BIG32 4294967295ul
3011 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3012 #if !BIG_OK
3013 your preprocessor is broken;
3014 #endif
3015 #if BIG_OK
3016 #else
3017 your preprocessor is broken;
3018 #endif
3019 static long long int bignum = -9223372036854775807LL;
3020 static unsigned long long int ubignum = BIG64;
3022 struct incomplete_array
3024 int datasize;
3025 double data[];
3028 struct named_init {
3029 int number;
3030 const wchar_t *name;
3031 double average;
3034 typedef const char *ccp;
3036 static inline int
3037 test_restrict (ccp restrict text)
3039 // See if C++-style comments work.
3040 // Iterate through items via the restricted pointer.
3041 // Also check for declarations in for loops.
3042 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3043 continue;
3044 return 0;
3047 // Check varargs and va_copy.
3048 static void
3049 test_varargs (const char *format, ...)
3051 va_list args;
3052 va_start (args, format);
3053 va_list args_copy;
3054 va_copy (args_copy, args);
3056 const char *str;
3057 int number;
3058 float fnumber;
3060 while (*format)
3062 switch (*format++)
3064 case 's': // string
3065 str = va_arg (args_copy, const char *);
3066 break;
3067 case 'd': // int
3068 number = va_arg (args_copy, int);
3069 break;
3070 case 'f': // float
3071 fnumber = va_arg (args_copy, double);
3072 break;
3073 default:
3074 break;
3077 va_end (args_copy);
3078 va_end (args);
3082 main ()
3085 // Check bool.
3086 _Bool success = false;
3088 // Check restrict.
3089 if (test_restrict ("String literal") == 0)
3090 success = true;
3091 char *restrict newvar = "Another string";
3093 // Check varargs.
3094 test_varargs ("s, d' f .", "string", 65, 34.234);
3095 test_varargs_macros ();
3097 // Check flexible array members.
3098 struct incomplete_array *ia =
3099 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3100 ia->datasize = 10;
3101 for (int i = 0; i < ia->datasize; ++i)
3102 ia->data[i] = i * 1.234;
3104 // Check named initializers.
3105 struct named_init ni = {
3106 .number = 34,
3107 .name = L"Test wide string",
3108 .average = 543.34343,
3111 ni.number = 58;
3113 int dynamic_array[ni.number];
3114 dynamic_array[ni.number - 1] = 543;
3116 // work around unused variable warnings
3117 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3118 || dynamic_array[ni.number - 1] != 543);
3121 return 0;
3123 _ACEOF
3124 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3126 CC="$ac_save_CC $ac_arg"
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 ac_cv_prog_cc_c99=$ac_arg
3145 else
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3152 rm -f core conftest.err conftest.$ac_objext
3153 test "x$ac_cv_prog_cc_c99" != "xno" && break
3154 done
3155 rm -f conftest.$ac_ext
3156 CC=$ac_save_CC
3159 # AC_CACHE_VAL
3160 case "x$ac_cv_prog_cc_c99" in
3162 { echo "$as_me:$LINENO: result: none needed" >&5
3163 echo "${ECHO_T}none needed" >&6; } ;;
3164 xno)
3165 { echo "$as_me:$LINENO: result: unsupported" >&5
3166 echo "${ECHO_T}unsupported" >&6; } ;;
3168 CC="$CC $ac_cv_prog_cc_c99"
3169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3170 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3171 esac
3172 if test "x$ac_cv_prog_cc_c99" != xno; then
3173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3174 else
3175 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3176 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_cc_c89+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 ac_cv_prog_cc_c89=no
3181 ac_save_CC=$CC
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <stdarg.h>
3189 #include <stdio.h>
3190 #include <sys/types.h>
3191 #include <sys/stat.h>
3192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3193 struct buf { int x; };
3194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195 static char *e (p, i)
3196 char **p;
3197 int i;
3199 return p[i];
3201 static char *f (char * (*g) (char **, int), char **p, ...)
3203 char *s;
3204 va_list v;
3205 va_start (v,p);
3206 s = g (p, va_arg (v,int));
3207 va_end (v);
3208 return s;
3211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3212 function prototypes and stuff, but not '\xHH' hex character constants.
3213 These don't provoke an error unfortunately, instead are silently treated
3214 as 'x'. The following induces an error, until -std is added to get
3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3216 array size at least. It's necessary to write '\x00'==0 to get something
3217 that's true only with -std. */
3218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221 inside strings and character constants. */
3222 #define FOO(x) 'x'
3223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3225 int test (int i, double x);
3226 struct s1 {int (*f) (int a);};
3227 struct s2 {int (*f) (double a);};
3228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229 int argc;
3230 char **argv;
3232 main ()
3234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3236 return 0;
3238 _ACEOF
3239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242 CC="$ac_save_CC $ac_arg"
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3260 ac_cv_prog_cc_c89=$ac_arg
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3268 rm -f core conftest.err conftest.$ac_objext
3269 test "x$ac_cv_prog_cc_c89" != "xno" && break
3270 done
3271 rm -f conftest.$ac_ext
3272 CC=$ac_save_CC
3275 # AC_CACHE_VAL
3276 case "x$ac_cv_prog_cc_c89" in
3278 { echo "$as_me:$LINENO: result: none needed" >&5
3279 echo "${ECHO_T}none needed" >&6; } ;;
3280 xno)
3281 { echo "$as_me:$LINENO: result: unsupported" >&5
3282 echo "${ECHO_T}unsupported" >&6; } ;;
3284 CC="$CC $ac_cv_prog_cc_c89"
3285 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3286 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3287 esac
3288 if test "x$ac_cv_prog_cc_c89" != xno; then
3289 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3290 else
3291 ac_cv_prog_cc_stdc=no
3298 esac
3299 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3300 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 case $ac_cv_prog_cc_stdc in
3306 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3307 echo "${ECHO_T}unsupported" >&6; } ;;
3308 '') { echo "$as_me:$LINENO: result: none needed" >&5
3309 echo "${ECHO_T}none needed" >&6; } ;;
3310 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3312 esac
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3321 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3322 # On Suns, sometimes $CPP names a directory.
3323 if test -n "$CPP" && test -d "$CPP"; then
3324 CPP=
3326 if test -z "$CPP"; then
3327 if test "${ac_cv_prog_CPP+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 # Double quotes because CPP needs to be expanded
3331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3333 ac_preproc_ok=false
3334 for ac_c_preproc_warn_flag in '' yes
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3353 Syntax error
3354 _ACEOF
3355 if { (ac_try="$ac_cpp conftest.$ac_ext"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null && {
3368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 }; then
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 # Broken: fails on valid input.
3377 continue
3380 rm -f conftest.err conftest.$ac_ext
3382 # OK, works on sane cases. Now check whether nonexistent headers
3383 # can be detected and how.
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <ac_nonexistent.h>
3391 _ACEOF
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null && {
3405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 }; then
3408 # Broken: success on invalid input.
3409 continue
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 # Passes both tests.
3415 ac_preproc_ok=:
3416 break
3419 rm -f conftest.err conftest.$ac_ext
3421 done
3422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423 rm -f conftest.err conftest.$ac_ext
3424 if $ac_preproc_ok; then
3425 break
3428 done
3429 ac_cv_prog_CPP=$CPP
3432 CPP=$ac_cv_prog_CPP
3433 else
3434 ac_cv_prog_CPP=$CPP
3436 { echo "$as_me:$LINENO: result: $CPP" >&5
3437 echo "${ECHO_T}$CPP" >&6; }
3438 ac_preproc_ok=false
3439 for ac_c_preproc_warn_flag in '' yes
3441 # Use a header file that comes with gcc, so configuring glibc
3442 # with a fresh cross-compiler works.
3443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444 # <limits.h> exists even on freestanding compilers.
3445 # On the NeXT, cc -E runs the code through the compiler's parser,
3446 # not just through cpp. "Syntax error" is here to catch this case.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #ifdef __STDC__
3454 # include <limits.h>
3455 #else
3456 # include <assert.h>
3457 #endif
3458 Syntax error
3459 _ACEOF
3460 if { (ac_try="$ac_cpp conftest.$ac_ext"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null && {
3473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 }; then
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 # Broken: fails on valid input.
3482 continue
3485 rm -f conftest.err conftest.$ac_ext
3487 # OK, works on sane cases. Now check whether nonexistent headers
3488 # can be detected and how.
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <ac_nonexistent.h>
3496 _ACEOF
3497 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null && {
3510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 }; then
3513 # Broken: success on invalid input.
3514 continue
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 # Passes both tests.
3520 ac_preproc_ok=:
3521 break
3524 rm -f conftest.err conftest.$ac_ext
3526 done
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then
3531 else
3532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3533 See \`config.log' for more details." >&5
3534 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3535 See \`config.log' for more details." >&2;}
3536 { (exit 1); exit 1; }; }
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546 # Check for a compatible awk
3547 for ac_prog in gawk nawk
3549 # Extract the first word of "$ac_prog", so it can be a program name with args.
3550 set dummy $ac_prog; ac_word=$2
3551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3553 if test "${ac_cv_prog_AWK+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -n "$AWK"; then
3557 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_AWK="$ac_prog"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3570 done
3571 done
3572 IFS=$as_save_IFS
3576 AWK=$ac_cv_prog_AWK
3577 if test -n "$AWK"; then
3578 { echo "$as_me:$LINENO: result: $AWK" >&5
3579 echo "${ECHO_T}$AWK" >&6; }
3580 else
3581 { echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6; }
3586 test -n "$AWK" && break
3587 done
3589 if test "$AWK" = ""; then
3590 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3591 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3592 { (exit 1); exit 1; }; }
3594 # Extract the first word of "mmake", so it can be a program name with args.
3595 set dummy mmake; ac_word=$2
3596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3598 if test "${ac_cv_prog_MMAKE+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601 if test -n "$MMAKE"; then
3602 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_MMAKE="mmake "
3612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3615 done
3616 done
3617 IFS=$as_save_IFS
3621 MMAKE=$ac_cv_prog_MMAKE
3622 if test -n "$MMAKE"; then
3623 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3624 echo "${ECHO_T}$MMAKE" >&6; }
3625 else
3626 { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3632 # Perform some default variable assignments. Note all of these will be
3633 # Regenerated from the script, so there is no need to cache them.
3635 aros_host_cc="$CC"
3636 if test "$GCC" = "yes"; then
3637 aros_gcc_ld=`$CC -print-prog-name=ld`
3638 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3639 set dummy `basename $aros_gcc_ld`; ac_word=$2
3640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3642 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 case $aros_host_ld in
3646 [\\/]* | ?:[\\/]*)
3647 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in `dirname $aros_gcc_ld`
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3661 done
3662 done
3663 IFS=$as_save_IFS
3666 esac
3668 aros_host_ld=$ac_cv_path_aros_host_ld
3669 if test -n "$aros_host_ld"; then
3670 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3671 echo "${ECHO_T}$aros_host_ld" >&6; }
3672 else
3673 { echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6; }
3679 if test "$aros_host_ld" = ""; then
3680 # Extract the first word of "ld", so it can be a program name with args.
3681 set dummy ld; ac_word=$2
3682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3684 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 case $aros_host_ld in
3688 [\\/]* | ?:[\\/]*)
3689 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 break 2
3703 done
3704 done
3705 IFS=$as_save_IFS
3708 esac
3710 aros_host_ld=$ac_cv_path_aros_host_ld
3711 if test -n "$aros_host_ld"; then
3712 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3713 echo "${ECHO_T}$aros_host_ld" >&6; }
3714 else
3715 { echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6; }
3721 if test "$aros_host_ld" = ""; then
3722 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3723 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3724 { (exit 1); exit 1; }; }
3726 aros_host_make="make"
3727 aros_host_cflags=$CFLAGS
3728 aros_host_ldflags=$LDFLAGS
3729 aros_host_debug="-g -O0"
3730 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3731 aros_host_mkargs="--no-print-directory"
3732 aros_host_incl="/usr/include"
3733 aros_host_exe_suffix="$EXEEXT"
3734 aros_host_lib_suffix=""
3736 for ac_prog in aclocal aclocal19
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3742 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 if test -n "$aros_host_aclocal"; then
3746 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_aros_host_aclocal="$ac_prog"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3759 done
3760 done
3761 IFS=$as_save_IFS
3765 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3766 if test -n "$aros_host_aclocal"; then
3767 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3768 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3769 else
3770 { echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; }
3775 test -n "$aros_host_aclocal" && break
3776 done
3778 for ac_prog in autoconf autoconf259 autoconf253
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3784 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test -n "$aros_host_autoconf"; then
3788 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_aros_host_autoconf="$ac_prog"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3803 IFS=$as_save_IFS
3807 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3808 if test -n "$aros_host_autoconf"; then
3809 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3810 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3811 else
3812 { echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6; }
3817 test -n "$aros_host_autoconf" && break
3818 done
3820 for ac_prog in autoheader autoheader259 autoheader253
3822 # Extract the first word of "$ac_prog", so it can be a program name with args.
3823 set dummy $ac_prog; ac_word=$2
3824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3826 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 if test -n "$aros_host_autoheader"; then
3830 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_aros_host_autoheader="$ac_prog"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3843 done
3844 done
3845 IFS=$as_save_IFS
3849 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3850 if test -n "$aros_host_autoheader"; then
3851 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3852 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3853 else
3854 { echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6; }
3859 test -n "$aros_host_autoheader" && break
3860 done
3862 for ac_prog in automake automake19
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3868 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 if test -n "$aros_host_automake"; then
3872 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_prog_aros_host_automake="$ac_prog"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3885 done
3886 done
3887 IFS=$as_save_IFS
3891 aros_host_automake=$ac_cv_prog_aros_host_automake
3892 if test -n "$aros_host_automake"; then
3893 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3894 echo "${ECHO_T}$aros_host_automake" >&6; }
3895 else
3896 { echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6; }
3901 test -n "$aros_host_automake" && break
3902 done
3905 case "$aros_host_cc" in
3906 *gcc*)
3907 aros_host_cc_pipe="-pipe"
3909 icc)
3910 aros_host_cc_pipe=""
3913 aros_host_cc_pipe=""
3915 esac
3917 aros_target_cc_includes=""
3919 # This is the main host configuration section. It is where the host
3920 # can change the values of any variables it needs to change. We do
3921 # not look at anything that compiles to the target yet, we'll get
3922 # to that later.
3924 case "$host_os" in
3925 linux*)
3926 aros_host_arch="linux"
3927 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3928 case "$host_cpu" in
3929 *i?86*)
3930 aros_host_cpu="i386"
3932 *x86_64*)
3933 aros_host_cpu="x86_64"
3935 *m68k*)
3936 aros_host_cpu="m68k"
3938 *powerpc*)
3939 aros_host_cpu="ppc"
3942 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3943 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3944 aros_host_cpu="$host_cpu"
3946 esac
3949 freebsd*)
3950 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3951 aros_host_make="gmake"
3952 aros_host_arch="freebsd"
3953 aros_host_cpu="i386"
3955 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3958 case $host_os in
3959 freebsd[234]*)
3960 aros_object_format="elf_i386"
3964 aros_object_format="elf_i386_fbsd"
3966 esac
3970 darwin*)
3971 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3972 aros_host_arch="darwin"
3973 case "$host_cpu" in
3974 *i?86*)
3975 aros_host_cpu="i386"
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
3987 aros_host_ldflags="$aros_host_ldflags -liconv"
3991 netbsd*)
3992 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3993 aros_host_make="gmake"
3994 aros_host_arch="netbsd"
3995 case "$host_cpu" in
3996 *i?86*)
3997 aros_host_cpu="i386"
3999 *m68k*)
4000 aros_host_cpu="m68k"
4003 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4004 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4005 aros_host_cpu="$host_cpu"
4007 esac
4008 aros_host_lib_suffix=".0.0"
4011 openbsd*)
4012 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4013 aros_host_make="gmake"
4014 aros_host_arch="openbsd"
4015 case "$host_cpu" in
4016 *i?86*)
4017 aros_host_cpu="i386"
4020 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4021 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4022 aros_host_cpu="$host_cpu"
4024 esac
4027 solaris*)
4028 aros_host_arch="solaris"
4029 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4030 case "$host_cpu" in
4031 *sparc*)
4032 aros_host_cpu="sparc"
4035 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4036 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4037 aros_host_cpu="$host_cpu"
4039 esac
4042 morphos*)
4043 aros_host_arch="morphos"
4044 aros_host_cpu="ppc"
4047 amiga*)
4048 aros_host_arch="amiga"
4049 SORT="/gg/bin/sort"
4050 TEST="/gg/bin/test"
4051 UNIQ="/gg/bin/uniq"
4052 FOR="for"
4053 TOUCH="/gg/bin/touch"
4054 case "$host_cpu" in
4055 *m68k*)
4056 aros_host_cpu="m68k"
4058 *powerpc*)
4059 aros_host_cpu="ppc"
4062 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4063 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4064 aros_host_cpu="$host_cpu"
4066 esac
4069 cygwin*)
4070 aros_host_arch="cygwin"
4071 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4072 case "$host_cpu" in
4073 *i?86*)
4074 aros_host_cpu="i386"
4077 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4078 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4079 aros_host_cpu="$host_cpu"
4081 esac
4084 mingw32*)
4085 aros_host_arch="mingw32"
4086 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4087 case "$host_cpu" in
4088 *i?86*)
4089 aros_host_cpu="i386"
4092 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4093 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4094 aros_host_cpu="$host_cpu"
4096 esac
4099 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4100 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4101 { (exit 1); exit 1; }; }
4103 esac
4105 # Extract the first word of "ar", so it can be a program name with args.
4106 set dummy ar; ac_word=$2
4107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4109 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$aros_host_ar"; then
4113 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_prog_aros_host_ar="ar cr"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4128 IFS=$as_save_IFS
4132 aros_host_ar=$ac_cv_prog_aros_host_ar
4133 if test -n "$aros_host_ar"; then
4134 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4135 echo "${ECHO_T}$aros_host_ar" >&6; }
4136 else
4137 { echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6; }
4142 if test "$aros_host_ar" = ""; then
4143 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4144 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4145 { (exit 1); exit 1; }; }
4147 # Extract the first word of "ranlib", so it can be a program name with args.
4148 set dummy ranlib; ac_word=$2
4149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4151 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 if test -n "$aros_host_ranlib"; then
4155 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_aros_host_ranlib="ranlib "
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4168 done
4169 done
4170 IFS=$as_save_IFS
4174 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4175 if test -n "$aros_host_ranlib"; then
4176 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4177 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4178 else
4179 { echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6; }
4184 if test "$aros_host_ranlib" = ""; then
4185 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4186 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4187 { (exit 1); exit 1; }; }
4189 # Extract the first word of "strip", so it can be a program name with args.
4190 set dummy strip; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 if test -n "$aros_host_strip"; then
4197 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_aros_host_strip="strip "
4207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4210 done
4211 done
4212 IFS=$as_save_IFS
4216 aros_host_strip=$ac_cv_prog_aros_host_strip
4217 if test -n "$aros_host_strip"; then
4218 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4219 echo "${ECHO_T}$aros_host_strip" >&6; }
4220 else
4221 { echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6; }
4226 if test "$aros_host_strip" = ""; then
4227 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4228 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4229 { (exit 1); exit 1; }; }
4232 # Extract the first word of "rm", so it can be a program name with args.
4233 set dummy rm; ac_word=$2
4234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4236 if test "${ac_cv_prog_RM+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 if test -n "$RM"; then
4240 ac_cv_prog_RM="$RM" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_RM="rm -rf"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4253 done
4254 done
4255 IFS=$as_save_IFS
4259 RM=$ac_cv_prog_RM
4260 if test -n "$RM"; then
4261 { echo "$as_me:$LINENO: result: $RM" >&5
4262 echo "${ECHO_T}$RM" >&6; }
4263 else
4264 { echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6; }
4269 if test "$RM" = ""; then
4270 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4271 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4272 { (exit 1); exit 1; }; }
4274 # Extract the first word of "cp", so it can be a program name with args.
4275 set dummy cp; ac_word=$2
4276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4278 if test "${ac_cv_prog_CP+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 if test -n "$CP"; then
4282 ac_cv_prog_CP="$CP" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_CP="cp "
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4295 done
4296 done
4297 IFS=$as_save_IFS
4301 CP=$ac_cv_prog_CP
4302 if test -n "$CP"; then
4303 { echo "$as_me:$LINENO: result: $CP" >&5
4304 echo "${ECHO_T}$CP" >&6; }
4305 else
4306 { echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6; }
4311 if test "$CP" = ""; then
4312 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4313 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4314 { (exit 1); exit 1; }; }
4316 # Extract the first word of "mv", so it can be a program name with args.
4317 set dummy mv; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_MV+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$MV"; then
4324 ac_cv_prog_MV="$MV" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_MV="mv "
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4343 MV=$ac_cv_prog_MV
4344 if test -n "$MV"; then
4345 { echo "$as_me:$LINENO: result: $MV" >&5
4346 echo "${ECHO_T}$MV" >&6; }
4347 else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4353 if test "$MV" = ""; then
4354 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4355 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4356 { (exit 1); exit 1; }; }
4358 # Extract the first word of "echo", so it can be a program name with args.
4359 set dummy echo; ac_word=$2
4360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362 if test "${ac_cv_prog_ECHO+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test -n "$ECHO"; then
4366 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_ECHO="echo "
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4381 IFS=$as_save_IFS
4385 ECHO=$ac_cv_prog_ECHO
4386 if test -n "$ECHO"; then
4387 { echo "$as_me:$LINENO: result: $ECHO" >&5
4388 echo "${ECHO_T}$ECHO" >&6; }
4389 else
4390 { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4395 if test "$ECHO" = ""; then
4396 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4397 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4398 { (exit 1); exit 1; }; }
4400 # Extract the first word of "mkdir", so it can be a program name with args.
4401 set dummy mkdir; ac_word=$2
4402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4404 if test "${ac_cv_prog_MKDIR+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 if test -n "$MKDIR"; then
4408 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_MKDIR="mkdir -p"
4418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 MKDIR=$ac_cv_prog_MKDIR
4428 if test -n "$MKDIR"; then
4429 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4430 echo "${ECHO_T}$MKDIR" >&6; }
4431 else
4432 { echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6; }
4437 if test "$MKDIR" = ""; then
4438 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4439 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4440 { (exit 1); exit 1; }; }
4442 # Extract the first word of "touch", so it can be a program name with args.
4443 set dummy touch; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_TOUCH+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 if test -n "$TOUCH"; then
4450 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_TOUCH="touch "
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 TOUCH=$ac_cv_prog_TOUCH
4470 if test -n "$TOUCH"; then
4471 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4472 echo "${ECHO_T}$TOUCH" >&6; }
4473 else
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 if test "$TOUCH" = ""; then
4480 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4481 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4482 { (exit 1); exit 1; }; }
4484 # Extract the first word of "sort", so it can be a program name with args.
4485 set dummy sort; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_SORT+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -n "$SORT"; then
4492 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_SORT="sort "
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 SORT=$ac_cv_prog_SORT
4512 if test -n "$SORT"; then
4513 { echo "$as_me:$LINENO: result: $SORT" >&5
4514 echo "${ECHO_T}$SORT" >&6; }
4515 else
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4521 if test "$SORT" = ""; then
4522 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4523 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Extract the first word of "uniq", so it can be a program name with args.
4527 set dummy uniq; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_UNIQ+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$UNIQ"; then
4534 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_UNIQ="uniq "
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 UNIQ=$ac_cv_prog_UNIQ
4554 if test -n "$UNIQ"; then
4555 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4556 echo "${ECHO_T}$UNIQ" >&6; }
4557 else
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 if test "$UNIQ" = ""; then
4564 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4565 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4566 { (exit 1); exit 1; }; }
4568 # Extract the first word of "true", so it can be a program name with args.
4569 set dummy true; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_NOP+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test -n "$NOP"; then
4576 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_NOP="true "
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 NOP=$ac_cv_prog_NOP
4596 if test -n "$NOP"; then
4597 { echo "$as_me:$LINENO: result: $NOP" >&5
4598 echo "${ECHO_T}$NOP" >&6; }
4599 else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 if test "$NOP" = ""; then
4606 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4607 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4608 { (exit 1); exit 1; }; }
4610 # Extract the first word of "cat", so it can be a program name with args.
4611 set dummy cat; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_CAT+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 if test -n "$CAT"; then
4618 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_CAT="cat "
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 CAT=$ac_cv_prog_CAT
4638 if test -n "$CAT"; then
4639 { echo "$as_me:$LINENO: result: $CAT" >&5
4640 echo "${ECHO_T}$CAT" >&6; }
4641 else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test "$CAT" = ""; then
4648 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4649 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4650 { (exit 1); exit 1; }; }
4652 # Extract the first word of "bison", so it can be a program name with args.
4653 set dummy bison; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_prog_BISON+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 if test -n "$BISON"; then
4660 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_BISON="bison "
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 BISON=$ac_cv_prog_BISON
4680 if test -n "$BISON"; then
4681 { echo "$as_me:$LINENO: result: $BISON" >&5
4682 echo "${ECHO_T}$BISON" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 if test "$BISON" = ""; then
4690 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4691 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4692 { (exit 1); exit 1; }; }
4694 # Extract the first word of "flex", so it can be a program name with args.
4695 set dummy flex; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_FLEX+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test -n "$FLEX"; then
4702 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_FLEX="flex "
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 FLEX=$ac_cv_prog_FLEX
4722 if test -n "$FLEX"; then
4723 { echo "$as_me:$LINENO: result: $FLEX" >&5
4724 echo "${ECHO_T}$FLEX" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test "$FLEX" = ""; then
4732 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4733 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4734 { (exit 1); exit 1; }; }
4736 # Extract the first word of "pngtopnm", so it can be a program name with args.
4737 set dummy pngtopnm; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$PNGTOPNM"; then
4744 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_PNGTOPNM="pngtopnm "
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4764 if test -n "$PNGTOPNM"; then
4765 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4766 echo "${ECHO_T}$PNGTOPNM" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 if test "$PNGTOPNM" = ""; then
4774 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4775 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4776 { (exit 1); exit 1; }; }
4778 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4779 set dummy ppmtoilbm; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test -n "$PPMTOILBM"; then
4786 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4806 if test -n "$PPMTOILBM"; then
4807 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4808 echo "${ECHO_T}$PPMTOILBM" >&6; }
4809 else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 if test "$PPMTOILBM" = ""; then
4816 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4817 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4818 { (exit 1); exit 1; }; }
4820 # Extract the first word of "sed", so it can be a program name with args.
4821 set dummy sed; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_SED+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 if test -n "$SED"; then
4828 ac_cv_prog_SED="$SED" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_SED="sed "
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4843 IFS=$as_save_IFS
4847 SED=$ac_cv_prog_SED
4848 if test -n "$SED"; then
4849 { echo "$as_me:$LINENO: result: $SED" >&5
4850 echo "${ECHO_T}$SED" >&6; }
4851 else
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 if test "$SED" = ""; then
4858 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4859 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4860 { (exit 1); exit 1; }; }
4862 # Extract the first word of "chmod", so it can be a program name with args.
4863 set dummy chmod; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_CHMOD+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 if test -n "$CHMOD"; then
4870 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_CHMOD="chmod "
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4883 done
4884 done
4885 IFS=$as_save_IFS
4889 CHMOD=$ac_cv_prog_CHMOD
4890 if test -n "$CHMOD"; then
4891 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4892 echo "${ECHO_T}$CHMOD" >&6; }
4893 else
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 if test "$CHMOD" = ""; then
4900 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4901 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4902 { (exit 1); exit 1; }; }
4909 if test -n "$PYTHON"; then
4910 # If the user set $PYTHON, use it and don't search something else.
4911 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4912 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4913 prog="import sys, string
4914 # split strings by '.' and convert to numeric. Append some zeros
4915 # because we need at least 4 digits for the hex conversion.
4916 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4917 minverhex = 0
4918 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4919 sys.exit(sys.hexversion < minverhex)"
4920 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4921 ($PYTHON -c "$prog") >&5 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; then
4925 { echo "$as_me:$LINENO: result: yes" >&5
4926 echo "${ECHO_T}yes" >&6; }
4927 else
4928 { { echo "$as_me:$LINENO: error: too old" >&5
4929 echo "$as_me: error: too old" >&2;}
4930 { (exit 1); exit 1; }; }
4933 am_display_PYTHON=$PYTHON
4934 else
4935 # Otherwise, try each interpreter until we find one that satisfies
4936 # VERSION.
4937 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4938 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4939 if test "${am_cv_pathless_PYTHON+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4943 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
4944 test "$am_cv_pathless_PYTHON" = none && break
4945 prog="import sys, string
4946 # split strings by '.' and convert to numeric. Append some zeros
4947 # because we need at least 4 digits for the hex conversion.
4948 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4949 minverhex = 0
4950 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4951 sys.exit(sys.hexversion < minverhex)"
4952 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4953 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; then
4957 break
4960 done
4962 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4963 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4964 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4965 if test "$am_cv_pathless_PYTHON" = none; then
4966 PYTHON=:
4967 else
4968 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4969 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_path_PYTHON+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 case $PYTHON in
4976 [\\/]* | ?:[\\/]*)
4977 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4991 done
4992 done
4993 IFS=$as_save_IFS
4996 esac
4998 PYTHON=$ac_cv_path_PYTHON
4999 if test -n "$PYTHON"; then
5000 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5001 echo "${ECHO_T}$PYTHON" >&6; }
5002 else
5003 { echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6; }
5009 am_display_PYTHON=$am_cv_pathless_PYTHON
5013 if test "$PYTHON" = :; then
5014 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5015 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5016 { (exit 1); exit 1; }; }
5017 else
5020 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5021 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5022 if test "${am_cv_python_version+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5027 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5028 echo "${ECHO_T}$am_cv_python_version" >&6; }
5029 PYTHON_VERSION=$am_cv_python_version
5033 PYTHON_PREFIX='${prefix}'
5035 PYTHON_EXEC_PREFIX='${exec_prefix}'
5039 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5040 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5041 if test "${am_cv_python_platform+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5046 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5047 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5048 PYTHON_PLATFORM=$am_cv_python_platform
5053 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5054 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5055 if test "${am_cv_python_pythondir+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5059 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5061 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5062 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5063 pythondir=$am_cv_python_pythondir
5067 pkgpythondir=\${pythondir}/$PACKAGE
5070 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5071 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5072 if test "${am_cv_python_pyexecdir+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5076 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5078 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5079 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5080 pyexecdir=$am_cv_python_pyexecdir
5084 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5092 FOR=for
5094 IF=if
5096 TEST=test
5098 CMP=cmp
5102 # Check for some includes for the X11 HIDD and the kernel
5105 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5106 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GREP+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 # Extract the first word of "grep ggrep" to use in msg output
5111 if test -z "$GREP"; then
5112 set dummy grep ggrep; ac_prog_name=$2
5113 if test "${ac_cv_path_GREP+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 ac_path_GREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in grep ggrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5126 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5127 # Check for GNU ac_path_GREP and select it if it is found.
5128 # Check for GNU $ac_path_GREP
5129 case `"$ac_path_GREP" --version 2>&1` in
5130 *GNU*)
5131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5133 ac_count=0
5134 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5135 while :
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 echo 'GREP' >> "conftest.nl"
5141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 ac_count=`expr $ac_count + 1`
5144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_GREP="$ac_path_GREP"
5147 ac_path_GREP_max=$ac_count
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5156 $ac_path_GREP_found && break 3
5157 done
5158 done
5160 done
5161 IFS=$as_save_IFS
5166 GREP="$ac_cv_path_GREP"
5167 if test -z "$GREP"; then
5168 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5169 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5170 { (exit 1); exit 1; }; }
5173 else
5174 ac_cv_path_GREP=$GREP
5179 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5180 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5181 GREP="$ac_cv_path_GREP"
5184 { echo "$as_me:$LINENO: checking for egrep" >&5
5185 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_EGREP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5190 then ac_cv_path_EGREP="$GREP -E"
5191 else
5192 # Extract the first word of "egrep" to use in msg output
5193 if test -z "$EGREP"; then
5194 set dummy egrep; ac_prog_name=$2
5195 if test "${ac_cv_path_EGREP+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 ac_path_EGREP_found=false
5199 # Loop through the user's path and test for each of PROGNAME-LIST
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_prog in egrep; do
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5209 # Check for GNU ac_path_EGREP and select it if it is found.
5210 # Check for GNU $ac_path_EGREP
5211 case `"$ac_path_EGREP" --version 2>&1` in
5212 *GNU*)
5213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5215 ac_count=0
5216 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5217 while :
5219 cat "conftest.in" "conftest.in" >"conftest.tmp"
5220 mv "conftest.tmp" "conftest.in"
5221 cp "conftest.in" "conftest.nl"
5222 echo 'EGREP' >> "conftest.nl"
5223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5225 ac_count=`expr $ac_count + 1`
5226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5227 # Best one so far, save it but keep looking for a better one
5228 ac_cv_path_EGREP="$ac_path_EGREP"
5229 ac_path_EGREP_max=$ac_count
5231 # 10*(2^10) chars as input seems more than enough
5232 test $ac_count -gt 10 && break
5233 done
5234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235 esac
5238 $ac_path_EGREP_found && break 3
5239 done
5240 done
5242 done
5243 IFS=$as_save_IFS
5248 EGREP="$ac_cv_path_EGREP"
5249 if test -z "$EGREP"; then
5250 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5251 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5252 { (exit 1); exit 1; }; }
5255 else
5256 ac_cv_path_EGREP=$EGREP
5262 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5263 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5264 EGREP="$ac_cv_path_EGREP"
5267 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5268 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5269 if test "${ac_cv_header_stdc+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include <stdlib.h>
5279 #include <stdarg.h>
5280 #include <string.h>
5281 #include <float.h>
5284 main ()
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (ac_try="$ac_compile"
5293 case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296 esac
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_compile") 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && {
5305 test -z "$ac_c_werror_flag" ||
5306 test ! -s conftest.err
5307 } && test -s conftest.$ac_objext; then
5308 ac_cv_header_stdc=yes
5309 else
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 ac_cv_header_stdc=no
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 if test $ac_cv_header_stdc = yes; then
5319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <string.h>
5328 _ACEOF
5329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330 $EGREP "memchr" >/dev/null 2>&1; then
5332 else
5333 ac_cv_header_stdc=no
5335 rm -f conftest*
5339 if test $ac_cv_header_stdc = yes; then
5340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <stdlib.h>
5349 _ACEOF
5350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5351 $EGREP "free" >/dev/null 2>&1; then
5353 else
5354 ac_cv_header_stdc=no
5356 rm -f conftest*
5360 if test $ac_cv_header_stdc = yes; then
5361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5362 if test "$cross_compiling" = yes; then
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <ctype.h>
5372 #include <stdlib.h>
5373 #if ((' ' & 0x0FF) == 0x020)
5374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5376 #else
5377 # define ISLOWER(c) \
5378 (('a' <= (c) && (c) <= 'i') \
5379 || ('j' <= (c) && (c) <= 'r') \
5380 || ('s' <= (c) && (c) <= 'z'))
5381 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5382 #endif
5384 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5386 main ()
5388 int i;
5389 for (i = 0; i < 256; i++)
5390 if (XOR (islower (i), ISLOWER (i))
5391 || toupper (i) != TOUPPER (i))
5392 return 2;
5393 return 0;
5395 _ACEOF
5396 rm -f conftest$ac_exeext
5397 if { (ac_try="$ac_link"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_link") 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5407 { (case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_try") 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5417 else
5418 echo "$as_me: program exited with status $ac_status" >&5
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ( exit $ac_status )
5423 ac_cv_header_stdc=no
5425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5431 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5432 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5433 if test $ac_cv_header_stdc = yes; then
5435 cat >>confdefs.h <<\_ACEOF
5436 #define STDC_HEADERS 1
5437 _ACEOF
5441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5451 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5452 inttypes.h stdint.h unistd.h
5454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 $ac_includes_default
5468 #include <$ac_header>
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 eval "$as_ac_Header=yes"
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 eval "$as_ac_Header=no"
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 ac_res=`eval echo '${'$as_ac_Header'}'`
5498 { echo "$as_me:$LINENO: result: $ac_res" >&5
5499 echo "${ECHO_T}$ac_res" >&6; }
5500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5501 cat >>confdefs.h <<_ACEOF
5502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5503 _ACEOF
5507 done
5519 for ac_header in sys/ipc.h sys/shm.h \
5520 sys/mmap.h sys/mman.h sysexits.h \
5521 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 ac_res=`eval echo '${'$as_ac_Header'}'`
5532 { echo "$as_me:$LINENO: result: $ac_res" >&5
5533 echo "${ECHO_T}$ac_res" >&6; }
5534 else
5535 # Is the header compilable?
5536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 $ac_includes_default
5545 #include <$ac_header>
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5564 ac_header_compiler=yes
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5569 ac_header_compiler=no
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574 echo "${ECHO_T}$ac_header_compiler" >&6; }
5576 # Is the header present?
5577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <$ac_header>
5586 _ACEOF
5587 if { (ac_try="$ac_cpp conftest.$ac_ext"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null && {
5600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 }; then
5603 ac_header_preproc=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_header_preproc=no
5611 rm -f conftest.err conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5613 echo "${ECHO_T}$ac_header_preproc" >&6; }
5615 # So? What about this header?
5616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5617 yes:no: )
5618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5622 ac_header_preproc=yes
5624 no:yes:* )
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5639 esac
5640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 eval "$as_ac_Header=\$ac_header_preproc"
5647 ac_res=`eval echo '${'$as_ac_Header'}'`
5648 { echo "$as_me:$LINENO: result: $ac_res" >&5
5649 echo "${ECHO_T}$ac_res" >&6; }
5652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653 cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655 _ACEOF
5659 done
5663 for ac_header in sys/mount.h
5665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #include <sys/param.h>
5679 #include <$ac_header>
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 eval "$as_ac_Header=yes"
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 eval "$as_ac_Header=no"
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 ac_res=`eval echo '${'$as_ac_Header'}'`
5709 { echo "$as_me:$LINENO: result: $ac_res" >&5
5710 echo "${ECHO_T}$ac_res" >&6; }
5711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5712 cat >>confdefs.h <<_ACEOF
5713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5714 _ACEOF
5718 done
5726 ac_header_dirent=no
5727 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5728 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5729 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5730 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 #include <$ac_hdr>
5744 main ()
5746 if ((DIR *) 0)
5747 return 0;
5749 return 0;
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (ac_try="$ac_compile"
5754 case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compile") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_c_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest.$ac_objext; then
5769 eval "$as_ac_Header=yes"
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 eval "$as_ac_Header=no"
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ac_res=`eval echo '${'$as_ac_Header'}'`
5780 { echo "$as_me:$LINENO: result: $ac_res" >&5
5781 echo "${ECHO_T}$ac_res" >&6; }
5782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5783 cat >>confdefs.h <<_ACEOF
5784 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5785 _ACEOF
5787 ac_header_dirent=$ac_hdr; break
5790 done
5791 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5792 if test $ac_header_dirent = dirent.h; then
5793 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5794 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5795 if test "${ac_cv_search_opendir+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 ac_func_search_save_LIBS=$LIBS
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 #ifdef __cplusplus
5810 extern "C"
5811 #endif
5812 char opendir ();
5814 main ()
5816 return opendir ();
5818 return 0;
5820 _ACEOF
5821 for ac_lib in '' dir; do
5822 if test -z "$ac_lib"; then
5823 ac_res="none required"
5824 else
5825 ac_res=-l$ac_lib
5826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_link") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest$ac_exeext &&
5845 $as_test_x conftest$ac_exeext; then
5846 ac_cv_search_opendir=$ac_res
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5855 conftest$ac_exeext
5856 if test "${ac_cv_search_opendir+set}" = set; then
5857 break
5859 done
5860 if test "${ac_cv_search_opendir+set}" = set; then
5862 else
5863 ac_cv_search_opendir=no
5865 rm conftest.$ac_ext
5866 LIBS=$ac_func_search_save_LIBS
5868 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5869 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5870 ac_res=$ac_cv_search_opendir
5871 if test "$ac_res" != no; then
5872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5876 else
5877 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5878 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5879 if test "${ac_cv_search_opendir+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 ac_func_search_save_LIBS=$LIBS
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5890 /* Override any GCC internal prototype to avoid an error.
5891 Use char because int might match the return type of a GCC
5892 builtin and then its argument prototype would still apply. */
5893 #ifdef __cplusplus
5894 extern "C"
5895 #endif
5896 char opendir ();
5898 main ()
5900 return opendir ();
5902 return 0;
5904 _ACEOF
5905 for ac_lib in '' x; do
5906 if test -z "$ac_lib"; then
5907 ac_res="none required"
5908 else
5909 ac_res=-l$ac_lib
5910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5912 rm -f conftest.$ac_objext conftest$ac_exeext
5913 if { (ac_try="$ac_link"
5914 case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_link") 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } && {
5926 test -z "$ac_c_werror_flag" ||
5927 test ! -s conftest.err
5928 } && test -s conftest$ac_exeext &&
5929 $as_test_x conftest$ac_exeext; then
5930 ac_cv_search_opendir=$ac_res
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5939 conftest$ac_exeext
5940 if test "${ac_cv_search_opendir+set}" = set; then
5941 break
5943 done
5944 if test "${ac_cv_search_opendir+set}" = set; then
5946 else
5947 ac_cv_search_opendir=no
5949 rm conftest.$ac_ext
5950 LIBS=$ac_func_search_save_LIBS
5952 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5953 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5954 ac_res=$ac_cv_search_opendir
5955 if test "$ac_res" != no; then
5956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5962 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5963 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5964 if test "${ac_cv_header_stat_broken+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5974 #include <sys/stat.h>
5976 #if defined S_ISBLK && defined S_IFDIR
5977 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5978 #endif
5980 #if defined S_ISBLK && defined S_IFCHR
5981 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5982 #endif
5984 #if defined S_ISLNK && defined S_IFREG
5985 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5986 #endif
5988 #if defined S_ISSOCK && defined S_IFREG
5989 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5990 #endif
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 ac_cv_header_stat_broken=no
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_header_stat_broken=yes
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6021 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6022 if test $ac_cv_header_stat_broken = yes; then
6024 cat >>confdefs.h <<\_ACEOF
6025 #define STAT_MACROS_BROKEN 1
6026 _ACEOF
6030 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6032 if test "${ac_cv_header_stdc+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <stdlib.h>
6042 #include <stdarg.h>
6043 #include <string.h>
6044 #include <float.h>
6047 main ()
6051 return 0;
6053 _ACEOF
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.$ac_objext; then
6071 ac_cv_header_stdc=yes
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_cv_header_stdc=no
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 if test $ac_cv_header_stdc = yes; then
6082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <string.h>
6091 _ACEOF
6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "memchr" >/dev/null 2>&1; then
6095 else
6096 ac_cv_header_stdc=no
6098 rm -f conftest*
6102 if test $ac_cv_header_stdc = yes; then
6103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <stdlib.h>
6112 _ACEOF
6113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 $EGREP "free" >/dev/null 2>&1; then
6116 else
6117 ac_cv_header_stdc=no
6119 rm -f conftest*
6123 if test $ac_cv_header_stdc = yes; then
6124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6125 if test "$cross_compiling" = yes; then
6127 else
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <ctype.h>
6135 #include <stdlib.h>
6136 #if ((' ' & 0x0FF) == 0x020)
6137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6139 #else
6140 # define ISLOWER(c) \
6141 (('a' <= (c) && (c) <= 'i') \
6142 || ('j' <= (c) && (c) <= 'r') \
6143 || ('s' <= (c) && (c) <= 'z'))
6144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6145 #endif
6147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6149 main ()
6151 int i;
6152 for (i = 0; i < 256; i++)
6153 if (XOR (islower (i), ISLOWER (i))
6154 || toupper (i) != TOUPPER (i))
6155 return 2;
6156 return 0;
6158 _ACEOF
6159 rm -f conftest$ac_exeext
6160 if { (ac_try="$ac_link"
6161 case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_link") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6180 else
6181 echo "$as_me: program exited with status $ac_status" >&5
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 ( exit $ac_status )
6186 ac_cv_header_stdc=no
6188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6194 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6195 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6196 if test $ac_cv_header_stdc = yes; then
6198 cat >>confdefs.h <<\_ACEOF
6199 #define STDC_HEADERS 1
6200 _ACEOF
6204 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6205 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6206 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 #include <sys/types.h>
6216 #include <sys/wait.h>
6217 #ifndef WEXITSTATUS
6218 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6219 #endif
6220 #ifndef WIFEXITED
6221 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6222 #endif
6225 main ()
6227 int s;
6228 wait (&s);
6229 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6231 return 0;
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
6251 ac_cv_header_sys_wait_h=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_header_sys_wait_h=no
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6262 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6263 if test $ac_cv_header_sys_wait_h = yes; then
6265 cat >>confdefs.h <<\_ACEOF
6266 #define HAVE_SYS_WAIT_H 1
6267 _ACEOF
6271 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6272 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6273 if test "${ac_cv_header_time+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 #include <sys/types.h>
6283 #include <sys/time.h>
6284 #include <time.h>
6287 main ()
6289 if ((struct tm *) 0)
6290 return 0;
6292 return 0;
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (ac_try="$ac_compile"
6297 case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_compile") 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && {
6309 test -z "$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6311 } && test -s conftest.$ac_objext; then
6312 ac_cv_header_time=yes
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_cv_header_time=no
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6323 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6324 if test $ac_cv_header_time = yes; then
6326 cat >>confdefs.h <<\_ACEOF
6327 #define TIME_WITH_SYS_TIME 1
6328 _ACEOF
6332 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6333 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6334 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 $ac_includes_default
6345 main ()
6347 static struct stat ac_aggr;
6348 if (ac_aggr.st_blksize)
6349 return 0;
6351 return 0;
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6356 case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } && {
6368 test -z "$ac_c_werror_flag" ||
6369 test ! -s conftest.err
6370 } && test -s conftest.$ac_objext; then
6371 ac_cv_member_struct_stat_st_blksize=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 $ac_includes_default
6384 main ()
6386 static struct stat ac_aggr;
6387 if (sizeof ac_aggr.st_blksize)
6388 return 0;
6390 return 0;
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6395 case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_compile") 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest.$ac_objext; then
6410 ac_cv_member_struct_stat_st_blksize=yes
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 ac_cv_member_struct_stat_st_blksize=no
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6424 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6425 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6429 _ACEOF
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_ST_BLKSIZE 1
6434 _ACEOF
6439 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6440 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6441 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6452 main ()
6454 static struct stat ac_aggr;
6455 if (ac_aggr.st_blocks)
6456 return 0;
6458 return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6463 case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_compile") 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } && {
6475 test -z "$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 } && test -s conftest.$ac_objext; then
6478 ac_cv_member_struct_stat_st_blocks=yes
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 $ac_includes_default
6491 main ()
6493 static struct stat ac_aggr;
6494 if (sizeof ac_aggr.st_blocks)
6495 return 0;
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6517 ac_cv_member_struct_stat_st_blocks=yes
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 ac_cv_member_struct_stat_st_blocks=no
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6531 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6532 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6534 cat >>confdefs.h <<_ACEOF
6535 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6536 _ACEOF
6539 cat >>confdefs.h <<\_ACEOF
6540 #define HAVE_ST_BLOCKS 1
6541 _ACEOF
6543 else
6544 case " $LIBOBJS " in
6545 *" fileblocks.$ac_objext "* ) ;;
6546 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6548 esac
6553 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6554 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6555 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 $ac_includes_default
6566 main ()
6568 static struct stat ac_aggr;
6569 if (ac_aggr.st_rdev)
6570 return 0;
6572 return 0;
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (ac_try="$ac_compile"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.$ac_objext; then
6592 ac_cv_member_struct_stat_st_rdev=yes
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 $ac_includes_default
6605 main ()
6607 static struct stat ac_aggr;
6608 if (sizeof ac_aggr.st_rdev)
6609 return 0;
6611 return 0;
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6616 case "(($ac_try" in
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6619 esac
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6631 ac_cv_member_struct_stat_st_rdev=yes
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 ac_cv_member_struct_stat_st_rdev=no
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6645 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6646 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define HAVE_STRUCT_STAT_ST_RDEV 1
6650 _ACEOF
6653 cat >>confdefs.h <<\_ACEOF
6654 #define HAVE_ST_RDEV 1
6655 _ACEOF
6660 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6661 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6662 if test "${ac_cv_struct_tm+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 #include <sys/types.h>
6672 #include <time.h>
6675 main ()
6677 struct tm tm;
6678 int *p = &tm.tm_sec;
6679 return !p;
6681 return 0;
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (ac_try="$ac_compile"
6686 case "(($ac_try" in
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6689 esac
6690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && {
6698 test -z "$ac_c_werror_flag" ||
6699 test ! -s conftest.err
6700 } && test -s conftest.$ac_objext; then
6701 ac_cv_struct_tm=time.h
6702 else
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_cv_struct_tm=sys/time.h
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6712 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6713 if test $ac_cv_struct_tm = sys/time.h; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define TM_IN_SYS_TIME 1
6717 _ACEOF
6721 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6722 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6723 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 #include <sys/types.h>
6733 #include <$ac_cv_struct_tm>
6737 main ()
6739 static struct tm ac_aggr;
6740 if (ac_aggr.tm_zone)
6741 return 0;
6743 return 0;
6745 _ACEOF
6746 rm -f conftest.$ac_objext
6747 if { (ac_try="$ac_compile"
6748 case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_compile") 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && {
6760 test -z "$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6762 } && test -s conftest.$ac_objext; then
6763 ac_cv_member_struct_tm_tm_zone=yes
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <sys/types.h>
6775 #include <$ac_cv_struct_tm>
6779 main ()
6781 static struct tm ac_aggr;
6782 if (sizeof ac_aggr.tm_zone)
6783 return 0;
6785 return 0;
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (ac_try="$ac_compile"
6790 case "(($ac_try" in
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6793 esac
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795 (eval "$ac_compile") 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest.$ac_objext; then
6805 ac_cv_member_struct_tm_tm_zone=yes
6806 else
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_member_struct_tm_tm_zone=no
6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6819 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6820 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_STRUCT_TM_TM_ZONE 1
6824 _ACEOF
6829 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6831 cat >>confdefs.h <<\_ACEOF
6832 #define HAVE_TM_ZONE 1
6833 _ACEOF
6835 else
6836 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6837 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6838 if test "${ac_cv_have_decl_tzname+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 #include <time.h>
6850 main ()
6852 #ifndef tzname
6853 (void) tzname;
6854 #endif
6857 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (ac_try="$ac_compile"
6862 case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_compile") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_c_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest.$ac_objext; then
6877 ac_cv_have_decl_tzname=yes
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 ac_cv_have_decl_tzname=no
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6888 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6889 if test $ac_cv_have_decl_tzname = yes; then
6891 cat >>confdefs.h <<_ACEOF
6892 #define HAVE_DECL_TZNAME 1
6893 _ACEOF
6896 else
6897 cat >>confdefs.h <<_ACEOF
6898 #define HAVE_DECL_TZNAME 0
6899 _ACEOF
6905 { echo "$as_me:$LINENO: checking for tzname" >&5
6906 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6907 if test "${ac_cv_var_tzname+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 cat >conftest.$ac_ext <<_ACEOF
6911 /* confdefs.h. */
6912 _ACEOF
6913 cat confdefs.h >>conftest.$ac_ext
6914 cat >>conftest.$ac_ext <<_ACEOF
6915 /* end confdefs.h. */
6916 #include <time.h>
6917 #if !HAVE_DECL_TZNAME
6918 extern char *tzname[];
6919 #endif
6922 main ()
6924 return tzname[0][0];
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
6947 ac_cv_var_tzname=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_cv_var_tzname=no
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956 conftest$ac_exeext conftest.$ac_ext
6958 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6959 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6960 if test $ac_cv_var_tzname = yes; then
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_TZNAME 1
6964 _ACEOF
6969 { echo "$as_me:$LINENO: checking for off_t" >&5
6970 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6971 if test "${ac_cv_type_off_t+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 $ac_includes_default
6981 typedef off_t ac__type_new_;
6983 main ()
6985 if ((ac__type_new_ *) 0)
6986 return 0;
6987 if (sizeof (ac__type_new_))
6988 return 0;
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (ac_try="$ac_compile"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_compile") 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest.$ac_objext; then
7010 ac_cv_type_off_t=yes
7011 else
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ac_cv_type_off_t=no
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7021 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7022 if test $ac_cv_type_off_t = yes; then
7024 else
7026 cat >>confdefs.h <<_ACEOF
7027 #define off_t long int
7028 _ACEOF
7032 { echo "$as_me:$LINENO: checking for pid_t" >&5
7033 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7034 if test "${ac_cv_type_pid_t+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 $ac_includes_default
7044 typedef pid_t ac__type_new_;
7046 main ()
7048 if ((ac__type_new_ *) 0)
7049 return 0;
7050 if (sizeof (ac__type_new_))
7051 return 0;
7053 return 0;
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7058 case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.$ac_objext; then
7073 ac_cv_type_pid_t=yes
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_cv_type_pid_t=no
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7084 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7085 if test $ac_cv_type_pid_t = yes; then
7087 else
7089 cat >>confdefs.h <<_ACEOF
7090 #define pid_t int
7091 _ACEOF
7095 { echo "$as_me:$LINENO: checking for size_t" >&5
7096 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7097 if test "${ac_cv_type_size_t+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7107 typedef size_t ac__type_new_;
7109 main ()
7111 if ((ac__type_new_ *) 0)
7112 return 0;
7113 if (sizeof (ac__type_new_))
7114 return 0;
7116 return 0;
7118 _ACEOF
7119 rm -f conftest.$ac_objext
7120 if { (ac_try="$ac_compile"
7121 case "(($ac_try" in
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7124 esac
7125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7126 (eval "$ac_compile") 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
7129 rm -f conftest.er1
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } && {
7133 test -z "$ac_c_werror_flag" ||
7134 test ! -s conftest.err
7135 } && test -s conftest.$ac_objext; then
7136 ac_cv_type_size_t=yes
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_type_size_t=no
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7147 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7148 if test $ac_cv_type_size_t = yes; then
7150 else
7152 cat >>confdefs.h <<_ACEOF
7153 #define size_t unsigned int
7154 _ACEOF
7158 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7159 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7160 if test "${ac_cv_type_uid_t+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 #include <sys/types.h>
7171 _ACEOF
7172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7173 $EGREP "uid_t" >/dev/null 2>&1; then
7174 ac_cv_type_uid_t=yes
7175 else
7176 ac_cv_type_uid_t=no
7178 rm -f conftest*
7181 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7182 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7183 if test $ac_cv_type_uid_t = no; then
7185 cat >>confdefs.h <<\_ACEOF
7186 #define uid_t int
7187 _ACEOF
7190 cat >>confdefs.h <<\_ACEOF
7191 #define gid_t int
7192 _ACEOF
7197 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7198 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7199 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7210 main ()
7212 static struct tm ac_aggr;
7213 if (ac_aggr.tm_gmtoff)
7214 return 0;
7216 return 0;
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 ac_cv_member_struct_tm_tm_gmtoff=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7249 main ()
7251 static struct tm ac_aggr;
7252 if (sizeof ac_aggr.tm_gmtoff)
7253 return 0;
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_member_struct_tm_tm_gmtoff=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_member_struct_tm_tm_gmtoff=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7289 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7290 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7294 _ACEOF
7300 # Look for some functions
7315 for ac_func in getpagesize kqueue statfs statvfs \
7316 clone kse_create rfork_thread thr_create sa_register \
7317 getcontext makecontext setcontext sigaltstack swapcontext
7319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7333 #define $ac_func innocuous_$ac_func
7335 /* System header to define __stub macros and hopefully few prototypes,
7336 which can conflict with char $ac_func (); below.
7337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338 <limits.h> exists even on freestanding compilers. */
7340 #ifdef __STDC__
7341 # include <limits.h>
7342 #else
7343 # include <assert.h>
7344 #endif
7346 #undef $ac_func
7348 /* Override any GCC internal prototype to avoid an error.
7349 Use char because int might match the return type of a GCC
7350 builtin and then its argument prototype would still apply. */
7351 #ifdef __cplusplus
7352 extern "C"
7353 #endif
7354 char $ac_func ();
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined __stub_$ac_func || defined __stub___$ac_func
7359 choke me
7360 #endif
7363 main ()
7365 return $ac_func ();
7367 return 0;
7369 _ACEOF
7370 rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7372 case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375 esac
7376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_link") 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest$ac_exeext &&
7387 $as_test_x conftest$ac_exeext; then
7388 eval "$as_ac_var=yes"
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7393 eval "$as_ac_var=no"
7396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7397 conftest$ac_exeext conftest.$ac_ext
7399 ac_res=`eval echo '${'$as_ac_var'}'`
7400 { echo "$as_me:$LINENO: result: $ac_res" >&5
7401 echo "${ECHO_T}$ac_res" >&6; }
7402 if test `eval echo '${'$as_ac_var'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7405 _ACEOF
7408 done
7413 for ac_header in stdlib.h unistd.h
7415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 ac_res=`eval echo '${'$as_ac_Header'}'`
7423 { echo "$as_me:$LINENO: result: $ac_res" >&5
7424 echo "${ECHO_T}$ac_res" >&6; }
7425 else
7426 # Is the header compilable?
7427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h. */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7435 $ac_includes_default
7436 #include <$ac_header>
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 ac_header_compiler=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_header_compiler=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7465 echo "${ECHO_T}$ac_header_compiler" >&6; }
7467 # Is the header present?
7468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #include <$ac_header>
7477 _ACEOF
7478 if { (ac_try="$ac_cpp conftest.$ac_ext"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } >/dev/null && {
7491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 }; then
7494 ac_header_preproc=yes
7495 else
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 ac_header_preproc=no
7502 rm -f conftest.err conftest.$ac_ext
7503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7504 echo "${ECHO_T}$ac_header_preproc" >&6; }
7506 # So? What about this header?
7507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7508 yes:no: )
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7513 ac_header_preproc=yes
7515 no:yes:* )
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7530 esac
7531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 eval "$as_ac_Header=\$ac_header_preproc"
7538 ac_res=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7546 _ACEOF
7550 done
7553 for ac_func in getpagesize
7555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7569 #define $ac_func innocuous_$ac_func
7571 /* System header to define __stub macros and hopefully few prototypes,
7572 which can conflict with char $ac_func (); below.
7573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7574 <limits.h> exists even on freestanding compilers. */
7576 #ifdef __STDC__
7577 # include <limits.h>
7578 #else
7579 # include <assert.h>
7580 #endif
7582 #undef $ac_func
7584 /* Override any GCC internal prototype to avoid an error.
7585 Use char because int might match the return type of a GCC
7586 builtin and then its argument prototype would still apply. */
7587 #ifdef __cplusplus
7588 extern "C"
7589 #endif
7590 char $ac_func ();
7591 /* The GNU C library defines this for functions which it implements
7592 to always fail with ENOSYS. Some functions are actually named
7593 something starting with __ and the normal name is an alias. */
7594 #if defined __stub_$ac_func || defined __stub___$ac_func
7595 choke me
7596 #endif
7599 main ()
7601 return $ac_func ();
7603 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (ac_try="$ac_link"
7608 case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_link") 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest$ac_exeext &&
7623 $as_test_x conftest$ac_exeext; then
7624 eval "$as_ac_var=yes"
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 eval "$as_ac_var=no"
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7633 conftest$ac_exeext conftest.$ac_ext
7635 ac_res=`eval echo '${'$as_ac_var'}'`
7636 { echo "$as_me:$LINENO: result: $ac_res" >&5
7637 echo "${ECHO_T}$ac_res" >&6; }
7638 if test `eval echo '${'$as_ac_var'}'` = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7641 _ACEOF
7644 done
7646 { echo "$as_me:$LINENO: checking for working mmap" >&5
7647 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7648 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 if test "$cross_compiling" = yes; then
7652 ac_cv_func_mmap_fixed_mapped=no
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 $ac_includes_default
7661 /* malloc might have been renamed as rpl_malloc. */
7662 #undef malloc
7664 /* Thanks to Mike Haertel and Jim Avera for this test.
7665 Here is a matrix of mmap possibilities:
7666 mmap private not fixed
7667 mmap private fixed at somewhere currently unmapped
7668 mmap private fixed at somewhere already mapped
7669 mmap shared not fixed
7670 mmap shared fixed at somewhere currently unmapped
7671 mmap shared fixed at somewhere already mapped
7672 For private mappings, we should verify that changes cannot be read()
7673 back from the file, nor mmap's back from the file at a different
7674 address. (There have been systems where private was not correctly
7675 implemented like the infamous i386 svr4.0, and systems where the
7676 VM page cache was not coherent with the file system buffer cache
7677 like early versions of FreeBSD and possibly contemporary NetBSD.)
7678 For shared mappings, we should conversely verify that changes get
7679 propagated back to all the places they're supposed to be.
7681 Grep wants private fixed already mapped.
7682 The main things grep needs to know about mmap are:
7683 * does it exist and is it safe to write into the mmap'd area
7684 * how to use it (BSD variants) */
7686 #include <fcntl.h>
7687 #include <sys/mman.h>
7689 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7690 char *malloc ();
7691 #endif
7693 /* This mess was copied from the GNU getpagesize.h. */
7694 #ifndef HAVE_GETPAGESIZE
7695 /* Assume that all systems that can run configure have sys/param.h. */
7696 # ifndef HAVE_SYS_PARAM_H
7697 # define HAVE_SYS_PARAM_H 1
7698 # endif
7700 # ifdef _SC_PAGESIZE
7701 # define getpagesize() sysconf(_SC_PAGESIZE)
7702 # else /* no _SC_PAGESIZE */
7703 # ifdef HAVE_SYS_PARAM_H
7704 # include <sys/param.h>
7705 # ifdef EXEC_PAGESIZE
7706 # define getpagesize() EXEC_PAGESIZE
7707 # else /* no EXEC_PAGESIZE */
7708 # ifdef NBPG
7709 # define getpagesize() NBPG * CLSIZE
7710 # ifndef CLSIZE
7711 # define CLSIZE 1
7712 # endif /* no CLSIZE */
7713 # else /* no NBPG */
7714 # ifdef NBPC
7715 # define getpagesize() NBPC
7716 # else /* no NBPC */
7717 # ifdef PAGESIZE
7718 # define getpagesize() PAGESIZE
7719 # endif /* PAGESIZE */
7720 # endif /* no NBPC */
7721 # endif /* no NBPG */
7722 # endif /* no EXEC_PAGESIZE */
7723 # else /* no HAVE_SYS_PARAM_H */
7724 # define getpagesize() 8192 /* punt totally */
7725 # endif /* no HAVE_SYS_PARAM_H */
7726 # endif /* no _SC_PAGESIZE */
7728 #endif /* no HAVE_GETPAGESIZE */
7731 main ()
7733 char *data, *data2, *data3;
7734 int i, pagesize;
7735 int fd;
7737 pagesize = getpagesize ();
7739 /* First, make a file with some known garbage in it. */
7740 data = (char *) malloc (pagesize);
7741 if (!data)
7742 return 1;
7743 for (i = 0; i < pagesize; ++i)
7744 *(data + i) = rand ();
7745 umask (0);
7746 fd = creat ("conftest.mmap", 0600);
7747 if (fd < 0)
7748 return 1;
7749 if (write (fd, data, pagesize) != pagesize)
7750 return 1;
7751 close (fd);
7753 /* Next, try to mmap the file at a fixed address which already has
7754 something else allocated at it. If we can, also make sure that
7755 we see the same garbage. */
7756 fd = open ("conftest.mmap", O_RDWR);
7757 if (fd < 0)
7758 return 1;
7759 data2 = (char *) malloc (2 * pagesize);
7760 if (!data2)
7761 return 1;
7762 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7763 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7764 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7765 return 1;
7766 for (i = 0; i < pagesize; ++i)
7767 if (*(data + i) != *(data2 + i))
7768 return 1;
7770 /* Finally, make sure that changes to the mapped area do not
7771 percolate back to the file as seen by read(). (This is a bug on
7772 some variants of i386 svr4.0.) */
7773 for (i = 0; i < pagesize; ++i)
7774 *(data2 + i) = *(data2 + i) + 1;
7775 data3 = (char *) malloc (pagesize);
7776 if (!data3)
7777 return 1;
7778 if (read (fd, data3, pagesize) != pagesize)
7779 return 1;
7780 for (i = 0; i < pagesize; ++i)
7781 if (*(data + i) != *(data3 + i))
7782 return 1;
7783 close (fd);
7784 return 0;
7786 _ACEOF
7787 rm -f conftest$ac_exeext
7788 if { (ac_try="$ac_link"
7789 case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792 esac
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_link") 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7798 { (case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801 esac
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_try") 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 ac_cv_func_mmap_fixed_mapped=yes
7808 else
7809 echo "$as_me: program exited with status $ac_status" >&5
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ( exit $ac_status )
7814 ac_cv_func_mmap_fixed_mapped=no
7816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7821 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7822 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7823 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7825 cat >>confdefs.h <<\_ACEOF
7826 #define HAVE_MMAP 1
7827 _ACEOF
7830 rm -f conftest.mmap
7835 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7836 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7837 aros_config_ldflags=""
7839 aros_shared_default=yes
7841 aros_shared_cflags="-fPIC"
7842 aros_shared_aflags=""
7843 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7844 aros_kernel_ldflags="-Wl,-rpath,./lib"
7846 aros_target_ar_flags="cr"
7847 aros_target_nm_flags="-C -ul"
7848 aros_target_strip_flags="--strip-unneeded -R.comment"
7850 aros_compiler_libs=
7852 aros_target_genmap="-Wl,-Map -Xlinker"
7854 # Native flavour stuff
7855 aros_bochs_hack="0"
7856 aros_serial_debug="0"
7858 # Palm native flavour stuff
7859 aros_palm_debug_hack="0"
7861 # Unix flavour stuff
7862 aros_nesting_supervisor="0"
7864 # Collect-aros stuff: "-ius" to ignore undefined symbols
7865 ignore_undefined_symbols=""
7867 #-----------------------------------------------------------------------------
7870 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7871 # it switched on by default, and we use the host compiler, so it compiles AROS
7872 # code with this enabled resulting in link failures as we don't have support
7873 # for it.
7875 # We use two methods to disable it. For the host compiler (used to compile
7876 # some hosted modules), we test to see if the compiler supports stack
7877 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7878 # work on all platforms.
7880 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7881 # (this is done unconditionally, as it should have no effect on compilers
7882 # without the stack protection feature). This may be specific to the way that
7883 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7884 # strong enough to disable it in a generic way though, so we'll live with it
7885 # until another vendor ships GCC with it enabled in a different way, and deal
7886 # with it then.
7889 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7890 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7891 save_cflags="$CFLAGS"
7892 CFLAGS="$CFLAGS -fno-stack-protector"
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7901 main ()
7905 return 0;
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 use_no_stack_protector="yes"
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 use_no_stack_protector="no"
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7935 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7936 if test "x-$use_no_stack_protector" = "x-yes" ; then
7937 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7939 CFLAGS="$save_cflags"
7941 #-----------------------------------------------------------------------------
7943 # Disable pointer-signedness warnings if the compiler recognises the option
7944 # (this only works for the host compiler at the moment)
7946 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7947 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
7948 save_cflags="$CFLAGS"
7949 CFLAGS="$CFLAGS -Wno-pointer-sign"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7958 main ()
7962 return 0;
7964 _ACEOF
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7967 case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
7982 use_no_sign_warning="yes"
7983 else
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 use_no_sign_warning="no"
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
7992 echo "${ECHO_T}$use_no_sign_warning" >&6; }
7993 if test "x-$use_no_sign_warning" = "x-yesnnn" ; then
7994 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7996 CFLAGS="$save_cflags"
7998 #-----------------------------------------------------------------------------
8000 { echo "$as_me:$LINENO: checking for type of build" >&5
8001 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8002 # Check whether --enable-build_type was given.
8003 if test "${enable_build_type+set}" = set; then
8004 enableval=$enable_build_type; build_type=$enableval
8005 else
8006 build_type="personal"
8010 if test "$build_type" = "nightly"; then
8011 build_type_string="NIGHTLY"
8012 elif test "$build_type" = "snapshot"; then
8013 build_type_string="SNAPSHOT"
8014 elif test "$build_type" = "milestone"; then
8015 build_type_string="MILESTONE"
8016 elif test "$build_type" = "release"; then
8017 build_type_string="RELEASE"
8018 else
8019 build_type_string="PERSONAL"
8020 build_type="personal"
8023 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8025 { echo "$as_me:$LINENO: result: $build_type" >&5
8026 echo "${ECHO_T}$build_type" >&6; }
8028 #-----------------------------------------------------------------------------
8029 all_debug_types="messages stack mungwall modules symbols"
8031 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8032 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8033 # Check whether --enable-debug was given.
8034 if test "${enable_debug+set}" = set; then
8035 enableval=$enable_debug; debug="$enableval"
8036 else
8037 debug=""
8041 if test "$debug" = "" -o "$debug" = "no"; then
8042 debug="none"
8043 elif test "$debug" = "yes"; then
8044 debug="all"
8047 if test "$debug" = "all" ; then
8048 debug=$all_debug_types
8049 for d in $all_debug_types; do
8050 export aros_${d}_debug="1"
8051 done
8052 else
8053 for d in $all_debug_types; do
8054 export aros_${d}_debug="0"
8055 done
8058 if test "$debug" != "none"; then
8059 debug=`echo $debug | sed s/,/\ /g`
8060 for d in $debug; do
8061 found="0"
8062 for d2 in $all_debug_types; do
8063 if test "$d2" = "$d"; then
8064 found="1"
8065 break
8067 done
8068 if test "$found" = "0"; then
8069 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8070 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8071 { (exit 1); exit 1; }; }
8073 export aros_${d}_debug="1"
8074 done
8075 aros_debug="yes"
8077 { echo "$as_me:$LINENO: result: $debug" >&5
8078 echo "${ECHO_T}$debug" >&6; }
8080 if test "$aros_messages_debug" = "1"; then
8081 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8082 else
8083 aros_messages_debug=""
8085 if test "$aros_symbols_debug" = "1"; then
8086 aros_symbols_debug="-g"
8087 else
8088 aros_symbols_debug=""
8091 # These are the flags to pass when compiling debugged programs
8092 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8093 aros_debug_aflags=""
8094 aros_debug_ldflags="$aros_symbols_debug"
8096 #-----------------------------------------------------------------------------
8097 # Checking for distcc and ccache.
8099 # Always apply the transforms in this particular order. Basically you should
8100 # always run 'ccache distcc compiler' in that order for the best performance.
8102 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8103 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8104 # Check whether --enable-distcc was given.
8105 if test "${enable_distcc+set}" = set; then
8106 enableval=$enable_distcc; distcc="$enableval"
8107 else
8108 distcc="no"
8111 if test "$distcc" != "" -a "$distcc" != "no"; then
8112 # AC_CHECK_PROG will print out the result in this case
8113 # Extract the first word of "distcc", so it can be a program name with args.
8114 set dummy distcc; ac_word=$2
8115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8117 if test "${ac_cv_path_DISTCC+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 case $DISTCC in
8121 [\\/]* | ?:[\\/]*)
8122 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8136 done
8137 done
8138 IFS=$as_save_IFS
8140 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8142 esac
8144 DISTCC=$ac_cv_path_DISTCC
8145 if test -n "$DISTCC"; then
8146 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8147 echo "${ECHO_T}$DISTCC" >&6; }
8148 else
8149 { echo "$as_me:$LINENO: result: no" >&5
8150 echo "${ECHO_T}no" >&6; }
8154 else
8155 { echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6; }
8159 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8160 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8161 # Check whether --enable-ccache was given.
8162 if test "${enable_ccache+set}" = set; then
8163 enableval=$enable_ccache; ccache="$enableval"
8164 else
8165 ccache="no"
8168 if test "$ccache" != "" -a "$ccache" != "no"; then
8169 # AC_CHECK_PROG will print out the result in this case
8170 # Extract the first word of "ccache", so it can be a program name with args.
8171 set dummy ccache; ac_word=$2
8172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174 if test "${ac_cv_prog_CCACHE+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 if test -n "$CCACHE"; then
8178 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_CCACHE="ccache"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8191 done
8192 done
8193 IFS=$as_save_IFS
8197 CCACHE=$ac_cv_prog_CCACHE
8198 if test -n "$CCACHE"; then
8199 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8200 echo "${ECHO_T}$CCACHE" >&6; }
8201 else
8202 { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8207 else
8208 { echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6; }
8212 #-----------------------------------------------------------------------------
8213 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8214 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8216 # Check whether --with-optimization was given.
8217 if test "${with_optimization+set}" = set; then
8218 withval=$with_optimization; optimization="$withval"
8219 else
8220 optimization="unknown"
8223 if test "$optimization" = "unknown"; then
8224 if test "$debug" != "none"; then
8225 optimization="-O0"
8226 else
8227 optimization="-O2"
8230 aros_config_cflags="$aros_config_cflags $optimization"
8231 { echo "$as_me:$LINENO: result: $optimization" >&5
8232 echo "${ECHO_T}$optimization" >&6; }
8234 #-----------------------------------------------------------------------------
8235 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8236 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8237 # Check whether --enable-target_variant was given.
8238 if test "${enable_target_variant+set}" = set; then
8239 enableval=$enable_target_variant; target_variant=$enableval
8240 else
8241 target_variant="none"
8244 if test "$target_variant" = "none"; then
8245 aros_target_variant=""
8246 aros_target_suffix=""
8247 else
8248 aros_target_variant="$target_variant"
8249 aros_target_suffix="-$target_variant"
8251 { echo "$as_me:$LINENO: result: $enableval" >&5
8252 echo "${ECHO_T}$enableval" >&6; }
8254 target_bootloader="none"
8256 #-----------------------------------------------------------------------------
8257 # This is the target configuration switch.
8258 case "$target_os" in
8259 linux*)
8260 aros_target_arch="linux"
8261 case "$target_cpu" in
8262 *m68k*)
8263 aros_target_cpu="m68k"
8264 aros_object_format="m68kelf"
8265 aros_flavour="emulcompat"
8266 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8267 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8268 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8269 gcc_target_cpu="mc68000"
8271 *i?86*)
8272 aros_target_cpu="i386"
8273 aros_object_format="elf_i386"
8274 aros_flavour="emulation"
8275 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8276 aros_default_wbdepth=8
8277 gcc_target_cpu="i386"
8279 *x86_64*)
8280 aros_target_cpu="x86_64"
8281 aros_object_format="elf_x86_64"
8282 aros_flavour="emulation"
8283 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8284 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8285 aros_default_wbdepth=8
8286 gcc_target_cpu="x86_64"
8288 *powerpc*)
8289 aros_target_cpu="ppc"
8290 aros_object_format="elf32ppc"
8291 aros_flavour="emulation"
8292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8293 aros_default_wbdepth=8
8294 gcc_target_cpu="ppc"
8296 # TODO
8297 # Same as powerpc, but I need this for the nightly build to work again.
8298 # Actually, the nightly should be made working with powerpc target.
8299 # That just was too much work for the moment, another week or two.
8300 *ppc*)
8301 aros_target_cpu="ppc"
8302 aros_object_format="elf32ppc"
8303 aros_flavour="emulation"
8304 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8305 aros_default_wbdepth=8
8306 gcc_target_cpu="ppc"
8308 # TODO
8309 # Same as powerpc, but I need this for the nightly build to work again.
8310 # Actually, the nightly should be made working with powerpc target.
8311 # That just was too much work for the moment, another week or two.
8312 *ppc*)
8313 aros_target_cpu="ppc"
8314 aros_object_format="elf32ppc"
8315 aros_flavour="emulation"
8316 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8317 aros_default_wbdepth=8
8318 gcc_target_cpu="ppc"
8321 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8322 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8323 { (exit 1); exit 1; }; }
8325 esac
8329 aros_target_arch="pc"
8330 aros_shared_default="no"
8331 target_bootloader="grub"
8332 case "$target_cpu" in
8333 *i?86*)
8334 aros_target_cpu="i386"
8337 if test "$aros_object_format" = "" ; then
8338 aros_object_format="elf_i386"
8340 aros_flavour="standalone"
8341 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8342 aros_kernel_ldflags=""
8343 aros_default_wbwidth=640
8344 aros_default_wbheight=480
8345 gcc_target_cpu="i386"
8347 *x86_64*)
8348 aros_target_cpu="x86_64"
8349 aros_serial_debug=1
8350 if test "$aros_object_format" = "" ; then
8351 aros_object_format="elf_x86_64"
8353 aros_flavour="standalone"
8354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8355 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8356 aros_kernel_ldflags=""
8357 aros_default_wbwidth=640
8358 aros_default_wbheight=480
8359 gcc_target_cpu="x86_64"
8362 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8363 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8364 { (exit 1); exit 1; }; }
8366 esac
8369 prep)
8370 aros_target_arch="prep"
8371 aros_shared_default="no"
8372 aros_target_cpu="ppc"
8373 aros_object_format="elf32ppc"
8374 aros_flavour="ppcnative"
8375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8376 aros_kernel_ldflags=""
8377 aros_default_wbwidth=640
8378 aros_default_wbheight=480
8379 gcc_target_cpu="ppc"
8380 case "$target_cpu" in
8381 *cross*)
8382 aros_target_cc="ppc-linux-gcc -pipe"
8383 aros_target_ld="ppc-linux-ld"
8384 aros_target_as="ppc-linux-as"
8385 aros_target_ar="ppc-linux-ar"
8386 aros_target_ranlib="ppc-linux-ranlib"
8387 aros_target_nm="ppc-linux-nm"
8388 aros_target_strip="ppc-linux-strip"
8389 aros_target_objcopy="ppc-linux-objcopy"
8390 aros_target_objdump="ppc-linux-objdump"
8391 aros_shared_ld="ppc-linux-ld"
8392 aros_kernel_ld="ppc-linux-ld"
8396 esac
8399 freebsd*)
8400 aros_target_arch="freebsd"
8401 aros_target_cpu="i386"
8402 aros_flavour="emulation"
8403 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8404 gcc_target_cpu="i386"
8406 aros_target_strip_flags="-x"
8409 darwin*)
8410 aros_target_arch="darwin"
8411 aros_target_cpu="i386"
8412 aros_flavour="emulation"
8413 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8414 gcc_target_cpu="i386"
8416 aros_target_strip_flags="-x"
8419 netbsd*)
8420 aros_target_arch="netbsd"
8421 case "$target_cpu" in
8422 *m68k*)
8423 aros_target_cpu="m68k"
8424 aros_object_format="m68kelf"
8425 aros_flavour="emulcompat"
8426 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8427 gcc_target_cpu="mc68000"
8429 *i?86*)
8430 aros_target_cpu="i386"
8431 aros_object_format="elf_i386"
8432 aros_flavour="emulation"
8433 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8434 aros_default_wbdepth=8
8435 gcc_target_cpu="i386"
8438 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8439 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8440 { (exit 1); exit 1; }; }
8442 esac
8443 aros_target_genmap="-Wl,-M -Xlinker >"
8444 aros_flavour="emulation"
8445 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8448 openbsd*)
8449 aros_target_arch="openbsd"
8450 case "$target_cpu" in
8451 *i?86*)
8452 aros_target_cpu="i386"
8453 aros_object_format="elf_i386"
8454 aros_flavour="emulation"
8455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8456 gcc_target_cpu="i386"
8459 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8460 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8461 { (exit 1); exit 1; }; }
8463 esac
8464 aros_target_genmap="-Wl,-M -Xlinker >"
8465 aros_target_nm_flags="-u"
8466 aros_flavour="emulation"
8469 solaris*)
8470 aros_target_arch="solaris"
8471 case "$target_cpu" in
8472 *sparc*)
8473 aros_target_cpu="sparc"
8474 aros_object_format="elf_sparc"
8475 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8476 gcc_target_cpu="sparc"
8479 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8480 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8481 { (exit 1); exit 1; }; }
8483 esac
8484 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8485 aros_flavour="emulation"
8488 morphos*)
8489 aros_target_arch="morphos"
8490 aros_shared_default="no"
8491 aros_target_cpu="ppc"
8492 aros_object_format="elf_ppc"
8493 aros_flavour="nativecompat"
8494 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8495 gcc_target_cpu="ppc"
8498 sam440)
8499 aros_target_arch="sam440"
8500 aros_shared_default="no"
8501 aros_target_cpu="ppc"
8502 aros_object_format="elf32ppc"
8503 aros_flavour="ppcnative"
8504 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8505 aros_kernel_ldflags=""
8506 aros_default_wbwidth=640
8507 aros_default_wbheight=480
8508 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8509 gcc_target_cpu="powerpc"
8510 case "$target_cpu" in
8511 *powerpc*)
8512 aros_target_cc="powerpc-linux-gcc -pipe"
8513 aros_target_ld="powerpc-linux-ld"
8514 aros_target_as="powerpc-linux-as"
8515 aros_target_ar="powerpc-linux-ar"
8516 aros_target_ranlib="powerpc-linux-ranlib"
8517 aros_target_nm="powerpc-linux-nm"
8518 aros_target_strip="powerpc-linux-strip"
8519 aros_target_objcopy="powerpc-linux-objcopy"
8520 aros_target_objdump="powerpc-linux-objdump"
8521 aros_shared_ld="powerpc-linux-ld"
8522 aros_kernel_ld="powerpc-linux-ld"
8526 esac
8529 amiga*)
8530 aros_target_arch="amiga"
8531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8532 aros_shared_default="no"
8534 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8536 case "$target_cpu" in
8537 *m68k*)
8538 aros_target_cpu="m68k"
8539 aros_object_format="m68kelf"
8540 aros_flavour="nativecompat"
8541 gcc_target_cpu="mc68000"
8543 *ppc*)
8544 aros_cpu="ppc"
8545 aros_flavour="native"
8546 gcc_target_cpu="ppc"
8549 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8550 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8551 { (exit 1); exit 1; }; }
8553 esac
8556 cygwin*)
8557 aros_target_arch="cygwin"
8558 aros_shared_default="no"
8559 case "$target_cpu" in
8560 *i?86*)
8561 aros_target_cpu="i386"
8562 aros_object_format="elf_i386"
8563 aros_flavour="emulation"
8564 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8565 aros_shared_cflags=""
8566 aros_default_wbdepth=8
8567 gcc_target_cpu="i386"
8570 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8571 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8572 { (exit 1); exit 1; }; }
8574 esac
8577 mingw32*)
8578 aros_target_arch="mingw32"
8579 aros_shared_default="no"
8580 case "$target_cpu" in
8581 *i?86*)
8582 aros_target_cpu="i386"
8583 aros_object_format="elf_i386"
8584 aros_flavour="emulation"
8585 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8586 aros_shared_cflags=""
8587 aros_default_wbdepth=8
8588 gcc_target_cpu="i386"
8591 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8592 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8593 { (exit 1); exit 1; }; }
8595 esac
8597 pp*)
8598 aros_target_arch="pp"
8599 aros_shared_default="no"
8600 case "$target_cpu" in
8601 *m68k*)
8602 aros_target_cpu="m68k"
8603 aros_object_format="m68kelf"
8604 aros_flavour="palmnative"
8605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8606 aros_kernel_ldflags=""
8607 aros_default_wbwidth=160
8608 aros_default_wbheight=160
8609 aros_default_wbdepth=1
8610 aros_target_cc="m68k-elf-gcc -pipe"
8611 aros_target_ld="$(which m68k-elf-ld)"
8612 aros_target_as="m68k-elf-gcc -pipe"
8613 aros_shared_ld="m68k-elf-gcc"
8614 aros_kernel_ld="m68k-elf-gcc"
8615 aros_target_ar="m68k-elf-ar"
8616 aros_target_ar_flags="cru"
8617 aros_target_ranlib="m68k-elf-ranlib"
8618 aros_target_nm="m68k-elf-nm"
8619 aros_target_objcopy="m68k-elf-objcopy"
8620 aros_target_objdump="m68k-elf-objdump"
8621 aros_compiler_libs="-lgcc1"
8622 aros_shared_default=no
8623 aros_shared_cflags="-fpic"
8624 aros_shared_aflags=""
8625 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8626 aros_kernel_ldflags="-Wl,-rpath,./lib"
8627 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8628 aros_debug_aflags=""
8629 aros_debug_ldflags="$aros_symbols_debug"
8630 aros_mungwall_debug="0"
8631 aros_modules_debug="0"
8632 gcc_target_cpu="mc68000"
8633 ignore_undefined_symbols="-ius"
8636 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8637 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8638 { (exit 1); exit 1; }; }
8640 esac
8643 mac*)
8644 aros_target_arch="mac"
8645 aros_shared_default="no"
8646 case "$target_cpu" in
8647 *m68k*)
8648 aros_target_cpu="m68k"
8649 aros_object_format="m68kelf"
8650 aros_flavour="mac68knative"
8651 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8652 aros_default_wbwidth=512
8653 aros_default_wbheight=384
8654 aros_default_wbdepth=8
8655 aros_target_cc="m68k-elf-gcc -pipe"
8656 aros_target_ld="$(which m68k-elf-ld)"
8657 aros_target_as="m68k-elf-gcc -pipe"
8658 aros_shared_ld="m68k-elf-gcc"
8659 aros_kernel_ld="m68k-elf-gcc"
8660 aros_target_ar="m68k-elf-ar"
8661 aros_target_ar_flags="cru"
8662 aros_target_ranlib="m68k-elf-ranlib"
8663 aros_target_nm="m68k-elf-nm"
8664 aros_target_objcopy="m68k-elf-objcopy"
8665 aros_target_objdump="m68k-elf-objdump"
8666 aros_compiler_libs="-lgcc1"
8667 aros_shared_default=no
8668 aros_shared_cflags="-fpic"
8669 aros_shared_aflags=""
8670 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8671 aros_kernel_ldflags="-Wl,-rpath,./lib"
8672 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8673 aros_debug_aflags=""
8674 aros_debug_ldflags="$aros_symbols_debug"
8675 aros_mungwall_debug="0"
8676 aros_modules_debug="0"
8677 gcc_target_cpu="mc68000"
8678 ignore_undefined_symbols="-ius"
8681 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8682 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8683 { (exit 1); exit 1; }; }
8685 esac
8689 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8690 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8691 { (exit 1); exit 1; }; }
8693 esac
8695 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8696 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8698 # Check whether --with-portssources was given.
8699 if test "${with_portssources+set}" = set; then
8700 withval=$with_portssources; with_portssrcdir=$withval
8701 else
8702 with_portssrcdir="default"
8705 if test "$with_portssrcdir" = "default"; then
8706 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
8707 else
8708 AROS_PORTSSRCDIR="$with_portssrcdir"
8710 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8711 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8713 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8714 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8716 # Check whether --with-bootloader was given.
8717 if test "${with_bootloader+set}" = set; then
8718 withval=$with_bootloader; target_bootloader=$withval
8719 else
8720 target_bootloader=$target_bootloader
8723 if test "$target_bootloader" = "none"; then
8724 aros_target_bootloader=""
8725 else
8726 aros_target_bootloader="$target_bootloader"
8728 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8729 echo "${ECHO_T}$target_bootloader" >&6; }
8731 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
8732 aros_liblzo_check="no"
8733 case "$aros_target_bootloader" in
8734 grub2*)
8735 case "$target_cpu" in
8736 *i?86*)
8737 aros_liblzo_check="yes"
8739 *x86_64*)
8740 aros_liblzo_check="yes"
8744 esac
8749 esac
8751 if test "$aros_liblzo_check" = "yes"; then
8752 # There are three possibilities. LZO version 2 installed with the name
8753 # liblzo2, with the name liblzo, and LZO version 1.
8754 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
8755 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
8756 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 ac_check_lib_save_LIBS=$LIBS
8760 LIBS="-llzo2 $LIBS"
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8768 /* Override any GCC internal prototype to avoid an error.
8769 Use char because int might match the return type of a GCC
8770 builtin and then its argument prototype would still apply. */
8771 #ifdef __cplusplus
8772 extern "C"
8773 #endif
8774 char __lzo_init_v2 ();
8776 main ()
8778 return __lzo_init_v2 ();
8780 return 0;
8782 _ACEOF
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (ac_try="$ac_link"
8785 case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_link") 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } && {
8797 test -z "$ac_c_werror_flag" ||
8798 test ! -s conftest.err
8799 } && test -s conftest$ac_exeext &&
8800 $as_test_x conftest$ac_exeext; then
8801 ac_cv_lib_lzo2___lzo_init_v2=yes
8802 else
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 ac_cv_lib_lzo2___lzo_init_v2=no
8809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8810 conftest$ac_exeext conftest.$ac_ext
8811 LIBS=$ac_check_lib_save_LIBS
8813 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
8814 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
8815 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
8816 LIBLZO="-llzo2"
8817 else
8818 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
8819 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
8820 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 ac_check_lib_save_LIBS=$LIBS
8824 LIBS="-llzo $LIBS"
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8832 /* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 char __lzo_init_v2 ();
8840 main ()
8842 return __lzo_init_v2 ();
8844 return 0;
8846 _ACEOF
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (ac_try="$ac_link"
8849 case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_link") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest$ac_exeext &&
8864 $as_test_x conftest$ac_exeext; then
8865 ac_cv_lib_lzo___lzo_init_v2=yes
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_cv_lib_lzo___lzo_init_v2=no
8873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8874 conftest$ac_exeext conftest.$ac_ext
8875 LIBS=$ac_check_lib_save_LIBS
8877 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
8878 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
8879 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
8880 LIBLZO="-llzo"
8881 else
8882 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
8883 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
8884 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 ac_check_lib_save_LIBS=$LIBS
8888 LIBS="-llzo $LIBS"
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char __lzo_init2 ();
8904 main ()
8906 return __lzo_init2 ();
8908 return 0;
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext &&
8928 $as_test_x conftest$ac_exeext; then
8929 ac_cv_lib_lzo___lzo_init2=yes
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_cv_lib_lzo___lzo_init2=no
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8938 conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8941 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
8942 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
8943 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
8944 LIBLZO="-llzo"
8945 else
8946 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
8947 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
8948 { (exit 1); exit 1; }; }
8957 LIBS="$LIBS $LIBLZO"
8958 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
8959 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
8960 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h. */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
8970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8971 #define lzo1x_999_compress innocuous_lzo1x_999_compress
8973 /* System header to define __stub macros and hopefully few prototypes,
8974 which can conflict with char lzo1x_999_compress (); below.
8975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8976 <limits.h> exists even on freestanding compilers. */
8978 #ifdef __STDC__
8979 # include <limits.h>
8980 #else
8981 # include <assert.h>
8982 #endif
8984 #undef lzo1x_999_compress
8986 /* Override any GCC internal prototype to avoid an error.
8987 Use char because int might match the return type of a GCC
8988 builtin and then its argument prototype would still apply. */
8989 #ifdef __cplusplus
8990 extern "C"
8991 #endif
8992 char lzo1x_999_compress ();
8993 /* The GNU C library defines this for functions which it implements
8994 to always fail with ENOSYS. Some functions are actually named
8995 something starting with __ and the normal name is an alias. */
8996 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
8997 choke me
8998 #endif
9001 main ()
9003 return lzo1x_999_compress ();
9005 return 0;
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9010 case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_link") 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest$ac_exeext &&
9025 $as_test_x conftest$ac_exeext; then
9026 ac_cv_func_lzo1x_999_compress=yes
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_func_lzo1x_999_compress=no
9034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9035 conftest$ac_exeext conftest.$ac_ext
9037 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9038 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
9039 if test $ac_cv_func_lzo1x_999_compress = yes; then
9041 else
9042 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9043 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9044 { (exit 1); exit 1; }; }
9048 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9051 for ac_header in lzo/lzo1x.h lzo1x.h
9053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_res=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9063 else
9064 # Is the header compilable?
9065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h. */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 $ac_includes_default
9074 #include <$ac_header>
9075 _ACEOF
9076 rm -f conftest.$ac_objext
9077 if { (ac_try="$ac_compile"
9078 case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081 esac
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_compile") 2>conftest.er1
9084 ac_status=$?
9085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } && {
9090 test -z "$ac_c_werror_flag" ||
9091 test ! -s conftest.err
9092 } && test -s conftest.$ac_objext; then
9093 ac_header_compiler=yes
9094 else
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_header_compiler=no
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6; }
9105 # Is the header present?
9106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <$ac_header>
9115 _ACEOF
9116 if { (ac_try="$ac_cpp conftest.$ac_ext"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } >/dev/null && {
9129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9130 test ! -s conftest.err
9131 }; then
9132 ac_header_preproc=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_header_preproc=no
9140 rm -f conftest.err conftest.$ac_ext
9141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9142 echo "${ECHO_T}$ac_header_preproc" >&6; }
9144 # So? What about this header?
9145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9146 yes:no: )
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9151 ac_header_preproc=yes
9153 no:yes:* )
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9168 esac
9169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174 eval "$as_ac_Header=\$ac_header_preproc"
9176 ac_res=`eval echo '${'$as_ac_Header'}'`
9177 { echo "$as_me:$LINENO: result: $ac_res" >&5
9178 echo "${ECHO_T}$ac_res" >&6; }
9181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182 cat >>confdefs.h <<_ACEOF
9183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 _ACEOF
9188 done
9192 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9193 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9195 # Check whether --with-theme was given.
9196 if test "${with_theme+set}" = set; then
9197 withval=$with_theme; target_guitheme=$withval
9198 else
9199 target_guitheme="default"
9202 if test "$target_guitheme" = "default"; then
9203 aros_target_guitheme="Ice"
9204 else
9205 aros_target_guitheme="$target_guitheme"
9207 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9208 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9210 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9211 # for target code)
9212 cross_compiling=no
9213 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9214 cross_compiling=yes
9216 if test "$aros_host_arch" == "darwin" ; then
9217 cross_compiling=yes
9220 # Set prefix for target compiler etc. if we're cross-compiling
9221 # (should possibly be earlier but needs to be after AC_PROG_CC)
9222 if test "$cross_compiling" = "yes" ; then
9223 target_tool_prefix=${target_cpu}-elf-
9224 CC=${target_tool_prefix}gcc
9227 # Find all the tools we need to compile. This could be cross-compiling
9228 # though! If that is the case we use the GNU form of the target and
9229 # simply add this to the front of the binary name. This is rather simple,
9230 # but it should work under most circumstances.
9232 # The default tools are to use the same as the host, but only if the
9233 # host and target CPU are the same. With GCC this is normally enough.
9236 aros_cc_pre=""
9237 aros_shared_ld="$aros_host_ld"
9239 aros_target_mkdep="$aros_host_mkdep"
9240 aros_target_incl_def="$aros_host_incl"
9242 # Extract the first word of "$CC", so it can be a program name with args.
9243 set dummy $CC; ac_word=$2
9244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9246 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249 case $aros_kernel_cc in
9250 [\\/]* | ?:[\\/]*)
9251 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 break 2
9265 done
9266 done
9267 IFS=$as_save_IFS
9270 esac
9272 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9273 if test -n "$aros_kernel_cc"; then
9274 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9275 echo "${ECHO_T}$aros_kernel_cc" >&6; }
9276 else
9277 { echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6; }
9283 # The default tools executables to be linked to.
9285 if test "$cross_compiling" = "yes" ; then
9286 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9287 set dummy ${target_tool_prefix}as; ac_word=$2
9288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9290 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 case $aros_target_as_ln in
9294 [\\/]* | ?:[\\/]*)
9295 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9305 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 break 2
9309 done
9310 done
9311 IFS=$as_save_IFS
9314 esac
9316 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9317 if test -n "$aros_target_as_ln"; then
9318 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9319 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9320 else
9321 { echo "$as_me:$LINENO: result: no" >&5
9322 echo "${ECHO_T}no" >&6; }
9326 else
9327 if test "$GCC" = "yes"; then
9328 aros_gcc_as=`$CC -print-prog-name=as`
9329 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9330 set dummy `basename $aros_gcc_as`; ac_word=$2
9331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9333 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 case $aros_target_as_ln in
9337 [\\/]* | ?:[\\/]*)
9338 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in `dirname $aros_gcc_as`
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9352 done
9353 done
9354 IFS=$as_save_IFS
9357 esac
9359 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9360 if test -n "$aros_target_as_ln"; then
9361 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9362 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9363 else
9364 { echo "$as_me:$LINENO: result: no" >&5
9365 echo "${ECHO_T}no" >&6; }
9370 if test "$aros_target_as_ln" = ""; then
9371 # Extract the first word of "as", so it can be a program name with args.
9372 set dummy as; ac_word=$2
9373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9375 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 case $aros_target_as_ln in
9379 [\\/]* | ?:[\\/]*)
9380 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9390 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 break 2
9394 done
9395 done
9396 IFS=$as_save_IFS
9399 esac
9401 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9402 if test -n "$aros_target_as_ln"; then
9403 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9404 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9405 else
9406 { echo "$as_me:$LINENO: result: no" >&5
9407 echo "${ECHO_T}no" >&6; }
9414 if test "$aros_target_as_ln" = ""; then
9415 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9416 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9417 { (exit 1); exit 1; }; }
9420 if test "$cross_compiling" = "yes" ; then
9421 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9422 set dummy ${target_tool_prefix}ld; ac_word=$2
9423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9425 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 case $aros_kernel_ld in
9429 [\\/]* | ?:[\\/]*)
9430 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9444 done
9445 done
9446 IFS=$as_save_IFS
9449 esac
9451 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9452 if test -n "$aros_kernel_ld"; then
9453 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9454 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9455 else
9456 { echo "$as_me:$LINENO: result: no" >&5
9457 echo "${ECHO_T}no" >&6; }
9461 else
9462 if test "$GCC" = "yes"; then
9463 aros_gcc_ld=`$CC -print-prog-name=ld`
9464 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9465 set dummy `basename $aros_gcc_ld`; ac_word=$2
9466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9468 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471 case $aros_kernel_ld in
9472 [\\/]* | ?:[\\/]*)
9473 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in `dirname $aros_gcc_ld`
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9492 esac
9494 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9495 if test -n "$aros_kernel_ld"; then
9496 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9497 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9498 else
9499 { echo "$as_me:$LINENO: result: no" >&5
9500 echo "${ECHO_T}no" >&6; }
9505 if test "$aros_kernel_ld" = ""; then
9506 # Extract the first word of "ld", so it can be a program name with args.
9507 set dummy ld; ac_word=$2
9508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9510 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513 case $aros_kernel_ld in
9514 [\\/]* | ?:[\\/]*)
9515 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9529 done
9530 done
9531 IFS=$as_save_IFS
9534 esac
9536 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9537 if test -n "$aros_kernel_ld"; then
9538 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9539 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9540 else
9541 { echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6; }
9549 if test "$aros_kernel_ld" = ""; then
9550 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9551 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9552 { (exit 1); exit 1; }; }
9555 if test "$cross_compiling" = "yes" ; then
9556 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9557 set dummy ${target_tool_prefix}ar; ac_word=$2
9558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9560 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 case $aros_target_ar_ln in
9564 [\\/]* | ?:[\\/]*)
9565 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9579 done
9580 done
9581 IFS=$as_save_IFS
9584 esac
9586 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9587 if test -n "$aros_target_ar_ln"; then
9588 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9589 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9590 else
9591 { echo "$as_me:$LINENO: result: no" >&5
9592 echo "${ECHO_T}no" >&6; }
9596 else
9597 if test "$GCC" = "yes"; then
9598 aros_gcc_ar=`$CC -print-prog-name=ar`
9599 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9600 set dummy `basename $aros_gcc_ar`; ac_word=$2
9601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9603 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 case $aros_target_ar_ln in
9607 [\\/]* | ?:[\\/]*)
9608 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in `dirname $aros_gcc_ar`
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9622 done
9623 done
9624 IFS=$as_save_IFS
9627 esac
9629 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9630 if test -n "$aros_target_ar_ln"; then
9631 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9632 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9633 else
9634 { echo "$as_me:$LINENO: result: no" >&5
9635 echo "${ECHO_T}no" >&6; }
9640 if test "$aros_target_ar_ln" = ""; then
9641 # Extract the first word of "ar", so it can be a program name with args.
9642 set dummy ar; ac_word=$2
9643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9645 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 case $aros_target_ar_ln in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9672 if test -n "$aros_target_ar_ln"; then
9673 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9674 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9675 else
9676 { echo "$as_me:$LINENO: result: no" >&5
9677 echo "${ECHO_T}no" >&6; }
9684 if test "$aros_target_ar_ln" = ""; then
9685 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9686 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9687 { (exit 1); exit 1; }; }
9690 if test "$cross_compiling" = "yes" ; then
9691 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9692 set dummy ${target_tool_prefix}nm; ac_word=$2
9693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9695 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 case $aros_target_nm_ln in
9699 [\\/]* | ?:[\\/]*)
9700 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 for as_dir in $PATH
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9710 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9714 done
9715 done
9716 IFS=$as_save_IFS
9719 esac
9721 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9722 if test -n "$aros_target_nm_ln"; then
9723 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9724 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9725 else
9726 { echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6; }
9731 else
9732 if test "$GCC" = "yes"; then
9733 aros_gcc_nm=`$CC -print-prog-name=nm`
9734 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9735 set dummy `basename $aros_gcc_nm`; ac_word=$2
9736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9738 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 case $aros_target_nm_ln in
9742 [\\/]* | ?:[\\/]*)
9743 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in `dirname $aros_gcc_nm`
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9753 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9757 done
9758 done
9759 IFS=$as_save_IFS
9762 esac
9764 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9765 if test -n "$aros_target_nm_ln"; then
9766 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9767 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9768 else
9769 { echo "$as_me:$LINENO: result: no" >&5
9770 echo "${ECHO_T}no" >&6; }
9775 if test "$aros_target_nm_ln" = ""; then
9776 # Extract the first word of "nm", so it can be a program name with args.
9777 set dummy nm; ac_word=$2
9778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9780 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 case $aros_target_nm_ln in
9784 [\\/]* | ?:[\\/]*)
9785 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9795 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9799 done
9800 done
9801 IFS=$as_save_IFS
9804 esac
9806 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9807 if test -n "$aros_target_nm_ln"; then
9808 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9809 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9810 else
9811 { echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6; }
9819 if test "$aros_target_nm_ln" = ""; then
9820 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9821 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9822 { (exit 1); exit 1; }; }
9825 if test "$cross_compiling" = "yes" ; then
9826 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9827 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9830 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 case $aros_target_objcopy_ln in
9834 [\\/]* | ?:[\\/]*)
9835 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 for as_dir in $PATH
9841 IFS=$as_save_IFS
9842 test -z "$as_dir" && as_dir=.
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9845 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9847 break 2
9849 done
9850 done
9851 IFS=$as_save_IFS
9854 esac
9856 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9857 if test -n "$aros_target_objcopy_ln"; then
9858 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9859 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9860 else
9861 { echo "$as_me:$LINENO: result: no" >&5
9862 echo "${ECHO_T}no" >&6; }
9866 else
9867 if test "$GCC" = "yes"; then
9868 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9869 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9870 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9873 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876 case $aros_target_objcopy_ln in
9877 [\\/]* | ?:[\\/]*)
9878 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in `dirname $aros_gcc_objcopy`
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 break 2
9892 done
9893 done
9894 IFS=$as_save_IFS
9897 esac
9899 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9900 if test -n "$aros_target_objcopy_ln"; then
9901 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9902 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9903 else
9904 { echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6; }
9910 if test "$aros_target_objcopy_ln" = ""; then
9911 # Extract the first word of "objcopy", so it can be a program name with args.
9912 set dummy objcopy; ac_word=$2
9913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9915 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918 case $aros_target_objcopy_ln in
9919 [\\/]* | ?:[\\/]*)
9920 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9934 done
9935 done
9936 IFS=$as_save_IFS
9939 esac
9941 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9942 if test -n "$aros_target_objcopy_ln"; then
9943 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9944 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9945 else
9946 { echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6; }
9954 if test "$aros_target_objcopy_ln" = ""; then
9955 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9956 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9957 { (exit 1); exit 1; }; }
9960 if test "$cross_compiling" = "yes" ; then
9961 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9962 set dummy ${target_tool_prefix}objdump; ac_word=$2
9963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9965 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 case $aros_target_objdump_ln in
9969 [\\/]* | ?:[\\/]*)
9970 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9989 esac
9991 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9992 if test -n "$aros_target_objdump_ln"; then
9993 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9994 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9995 else
9996 { echo "$as_me:$LINENO: result: no" >&5
9997 echo "${ECHO_T}no" >&6; }
10001 else
10002 if test "$GCC" = "yes"; then
10003 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10004 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10005 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10008 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011 case $aros_target_objdump_ln in
10012 [\\/]* | ?:[\\/]*)
10013 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in `dirname $aros_gcc_objdump`
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10023 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 break 2
10027 done
10028 done
10029 IFS=$as_save_IFS
10032 esac
10034 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10035 if test -n "$aros_target_objdump_ln"; then
10036 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10037 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10038 else
10039 { echo "$as_me:$LINENO: result: no" >&5
10040 echo "${ECHO_T}no" >&6; }
10045 if test "$aros_target_objdump_ln" = ""; then
10046 # Extract the first word of "objdump", so it can be a program name with args.
10047 set dummy objdump; ac_word=$2
10048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10050 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 case $aros_target_objdump_ln in
10054 [\\/]* | ?:[\\/]*)
10055 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10069 done
10070 done
10071 IFS=$as_save_IFS
10074 esac
10076 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10077 if test -n "$aros_target_objdump_ln"; then
10078 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10079 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10080 else
10081 { echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6; }
10089 if test "$aros_target_objdump_ln" = ""; then
10090 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10091 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10092 { (exit 1); exit 1; }; }
10095 if test "$cross_compiling" = "yes" ; then
10096 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10097 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10100 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 case $aros_target_ranlib_ln in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10119 done
10120 done
10121 IFS=$as_save_IFS
10124 esac
10126 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10127 if test -n "$aros_target_ranlib_ln"; then
10128 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10129 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10130 else
10131 { echo "$as_me:$LINENO: result: no" >&5
10132 echo "${ECHO_T}no" >&6; }
10136 else
10137 if test "$GCC" = "yes"; then
10138 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10139 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10140 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10143 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 case $aros_target_ranlib_ln in
10147 [\\/]* | ?:[\\/]*)
10148 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in `dirname $aros_gcc_ranlib`
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10164 IFS=$as_save_IFS
10167 esac
10169 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10170 if test -n "$aros_target_ranlib_ln"; then
10171 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10172 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10173 else
10174 { echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6; }
10180 if test "$aros_target_ranlib_ln" = ""; then
10181 # Extract the first word of "ranlib", so it can be a program name with args.
10182 set dummy ranlib; ac_word=$2
10183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10185 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 case $aros_target_ranlib_ln in
10189 [\\/]* | ?:[\\/]*)
10190 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10204 done
10205 done
10206 IFS=$as_save_IFS
10209 esac
10211 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10212 if test -n "$aros_target_ranlib_ln"; then
10213 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10214 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10215 else
10216 { echo "$as_me:$LINENO: result: no" >&5
10217 echo "${ECHO_T}no" >&6; }
10224 if test "$aros_target_ranlib_ln" = ""; then
10225 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10226 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10227 { (exit 1); exit 1; }; }
10230 if test "$cross_compiling" = "yes" ; then
10231 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10232 set dummy ${target_tool_prefix}strip; ac_word=$2
10233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10235 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 case $aros_target_strip_ln in
10239 [\\/]* | ?:[\\/]*)
10240 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
10249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10250 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 break 2
10254 done
10255 done
10256 IFS=$as_save_IFS
10259 esac
10261 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10262 if test -n "$aros_target_strip_ln"; then
10263 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10264 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10265 else
10266 { echo "$as_me:$LINENO: result: no" >&5
10267 echo "${ECHO_T}no" >&6; }
10271 else
10272 if test "$GCC" = "yes"; then
10273 aros_gcc_strip=`$CC -print-prog-name=strip`
10274 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10275 set dummy `basename $aros_gcc_strip`; ac_word=$2
10276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10278 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 case $aros_target_strip_ln in
10282 [\\/]* | ?:[\\/]*)
10283 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in `dirname $aros_gcc_strip`
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10297 done
10298 done
10299 IFS=$as_save_IFS
10302 esac
10304 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10305 if test -n "$aros_target_strip_ln"; then
10306 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10307 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10308 else
10309 { echo "$as_me:$LINENO: result: no" >&5
10310 echo "${ECHO_T}no" >&6; }
10315 if test "$aros_target_strip_ln" = ""; then
10316 # Extract the first word of "strip", so it can be a program name with args.
10317 set dummy strip; ac_word=$2
10318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10320 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323 case $aros_target_strip_ln in
10324 [\\/]* | ?:[\\/]*)
10325 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10331 IFS=$as_save_IFS
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10335 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 break 2
10339 done
10340 done
10341 IFS=$as_save_IFS
10344 esac
10346 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10347 if test -n "$aros_target_strip_ln"; then
10348 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10349 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10350 else
10351 { echo "$as_me:$LINENO: result: no" >&5
10352 echo "${ECHO_T}no" >&6; }
10359 if test "$aros_target_strip_ln" = ""; then
10360 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10361 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10362 { (exit 1); exit 1; }; }
10365 if test "$GCC" = "yes"; then
10366 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10369 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10370 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10371 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10372 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10373 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10374 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10375 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10377 # aros_cc_pre is a variable that is added to the front of the compiler name
10378 # in the generated aros-gcc shell script. We need this to enable the cache
10379 # to work across cleaned builds. Also, support DISTCC using the correct
10380 # environment variable.
10383 if test "x${DISTCC}" != "x" ; then
10384 if test "x${CCACHE}" != "x" ; then
10385 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10386 else
10387 aros_cc_pre="${DISTCC} "
10389 else
10390 if test "x${CCACHE}" != "x" ; then
10391 aros_cc_pre="${CCACHE} "
10395 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10397 aros_target_nostdinc_cflags=-nostdinc
10399 aros_target_nostartup_ldflags=-nostartfiles
10401 aros_target_nix_ldflags=-nix
10403 aros_target_detach_ldflags=-detach
10405 aros_target_nostdlib_ldflags=-nostdlib
10408 # Target tools
10409 aros_target_cc="${prefix}-gcc"
10410 aros_target_as="${prefix}-as"
10411 aros_target_ld="${prefix}-ld"
10412 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10413 aros_target_objcopy=${prefix}-objcopy
10414 aros_target_objdump=${prefix}-objdump
10415 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10416 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10417 aros_kernel_nm="${prefix}-nm"
10418 aros_target_strip=${prefix}-strip
10420 # Find the system include path. We can suggest that an alternative is
10421 # used if we don't get it correct. The default is to use /usr/include.
10422 # Which is set in the aros_target_incl_def variable.
10424 # Check whether --enable-includes was given.
10425 if test "${enable_includes+set}" = set; then
10426 enableval=$enable_includes; aros_target_incl=$enable_includes
10427 else
10428 aros_target_incl=$aros_target_incl_def
10432 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10433 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10434 if test "$aros_target_cc_includes" = "" ; then
10435 #try to guess where the directory is
10436 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10437 if ! test -d $aros_target_cc_includes; then
10438 #the directory doesn't exist, we need to do some more work
10439 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10441 #these are the headers we're looling for
10442 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10443 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10444 zutil.h"
10446 dirs=
10447 for h in $headers; do
10448 #which other headers each of the above headers needs?
10449 deps=$(echo "#include <$h>" | \
10450 $aros_host_cc -E -M - 2>/dev/null | \
10451 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10453 #copy all the needed headers to a directory beneath gendir
10454 for d in $deps; do
10455 h=$(basename $d)
10456 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10457 sed -n "s,^.*/include\(/.*\),\1,p")
10458 ! test -d $dir && mkdir -p $dir
10459 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10460 done
10461 done
10464 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10465 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10467 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10468 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
10470 # Check whether --with-resolution was given.
10471 if test "${with_resolution+set}" = set; then
10472 withval=$with_resolution; resolution=$withval
10473 else
10474 resolution=none
10477 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10478 if test "$resolution" = "yes" ; then
10479 resolution="none"
10481 if test "$resolution" = "no" ; then
10482 resolution="none"
10484 if test "$resolution" != "none" ; then
10485 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10486 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10487 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10489 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10490 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10491 aros_cv_default_wbwidth=$aros_default_wbwidth
10492 aros_cv_default_wbheight=$aros_default_wbheight
10493 aros_cv_default_wbdepth=$aros_default_wbdepth
10495 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
10496 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
10497 # Check whether --enable-bochs_hack was given.
10498 if test "${enable_bochs_hack+set}" = set; then
10499 enableval=$enable_bochs_hack; bochs_hack="yes"
10500 else
10501 bochs_hack="no"
10504 if test "$bochs_hack" = "yes" ; then
10505 aros_bochs_hack="1"
10507 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
10508 echo "${ECHO_T}$bochs_hack" >&6; }
10510 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
10511 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
10513 # Check whether --with-serial-debug was given.
10514 if test "${with_serial_debug+set}" = set; then
10515 withval=$with_serial_debug; serial_debug=$withval
10516 else
10517 serial_debug=none
10520 if test "$aros_serial_debug" = 0 ; then
10521 serial_debug_forced=""
10522 if test "$serial_debug" = "yes" ; then
10523 serial_debug="2"
10525 if test "$serial_debug" = "no" ; then
10526 serial_debug="none"
10528 else
10529 serial_debug_forced="(forced)"
10530 serial_debug=$aros_serial_debug
10532 if test "$serial_debug" != "none" ; then
10533 aros_serial_debug=$serial_debug
10534 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
10535 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
10536 else
10537 { echo "$as_me:$LINENO: result: no" >&5
10538 echo "${ECHO_T}no" >&6; }
10541 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
10542 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
10543 # Check whether --enable-palm_debug_hack was given.
10544 if test "${enable_palm_debug_hack+set}" = set; then
10545 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10546 else
10547 palm_debug_hack="no"
10550 if test "$palm_debug_hack" = "yes" ; then
10551 aros_palm_debug_hack="1"
10553 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
10554 echo "${ECHO_T}$palm_debug_hack" >&6; }
10557 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
10558 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
10559 # Check whether --enable-nesting_supervisor was given.
10560 if test "${enable_nesting_supervisor+set}" = set; then
10561 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10562 else
10563 nesting_supervisor="no"
10566 if test "$nesting_supervisor" = "yes" ; then
10567 aros_nesting_supervisor="1"
10569 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
10570 echo "${ECHO_T}$nesting_supervisor" >&6; }
10573 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10575 if test "x-$aros_host_arch" != "x-darwin" ; then
10576 { echo "$as_me:$LINENO: checking for dlopen" >&5
10577 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10578 if test "${ac_cv_func_dlopen+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10589 #define dlopen innocuous_dlopen
10591 /* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char dlopen (); below.
10593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594 <limits.h> exists even on freestanding compilers. */
10596 #ifdef __STDC__
10597 # include <limits.h>
10598 #else
10599 # include <assert.h>
10600 #endif
10602 #undef dlopen
10604 /* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 char dlopen ();
10611 /* The GNU C library defines this for functions which it implements
10612 to always fail with ENOSYS. Some functions are actually named
10613 something starting with __ and the normal name is an alias. */
10614 #if defined __stub_dlopen || defined __stub___dlopen
10615 choke me
10616 #endif
10619 main ()
10621 return dlopen ();
10623 return 0;
10625 _ACEOF
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (ac_try="$ac_link"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_link") 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && {
10640 test -z "$ac_c_werror_flag" ||
10641 test ! -s conftest.err
10642 } && test -s conftest$ac_exeext &&
10643 $as_test_x conftest$ac_exeext; then
10644 ac_cv_func_dlopen=yes
10645 else
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_cv_func_dlopen=no
10652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653 conftest$ac_exeext conftest.$ac_ext
10655 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10656 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10657 if test $ac_cv_func_dlopen = yes; then
10658 have_dl="yes"
10659 else
10660 have_dl="no"
10663 if test "x-$have_dl" = "x-no" ; then
10664 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10665 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-ldl $LIBS"
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10678 /* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
10681 #ifdef __cplusplus
10682 extern "C"
10683 #endif
10684 char dlopen ();
10686 main ()
10688 return dlopen ();
10690 return 0;
10692 _ACEOF
10693 rm -f conftest.$ac_objext conftest$ac_exeext
10694 if { (ac_try="$ac_link"
10695 case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10698 esac
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_link") 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && {
10707 test -z "$ac_c_werror_flag" ||
10708 test ! -s conftest.err
10709 } && test -s conftest$ac_exeext &&
10710 $as_test_x conftest$ac_exeext; then
10711 ac_cv_lib_dl_dlopen=yes
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_cv_lib_dl_dlopen=no
10719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10725 if test $ac_cv_lib_dl_dlopen = yes; then
10726 have_dl="yes"
10727 aros_host_ldflags="$aros_host_ldflags -ldl"
10728 else
10729 have_dl="no"
10733 if test "x-$have_dl" = "x-no" ; then
10734 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10735 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10736 { (exit 1); exit 1; }; }
10741 # Check whether --enable-x11_hidd was given.
10742 if test "${enable_x11_hidd+set}" = set; then
10743 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10744 else
10745 x11_hidd="auto"
10748 case "x-$x11_hidd" in
10749 x-yes|x-no|x-auto) ;;
10750 *) x11_hidd="auto" ;;
10751 esac
10753 if test "x-$x11_hidd" != "x-no" ; then
10755 { echo "$as_me:$LINENO: checking for X" >&5
10756 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10759 # Check whether --with-x was given.
10760 if test "${with_x+set}" = set; then
10761 withval=$with_x;
10764 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10765 if test "x$with_x" = xno; then
10766 # The user explicitly disabled X.
10767 have_x=disabled
10768 else
10769 case $x_includes,$x_libraries in #(
10770 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10771 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10772 { (exit 1); exit 1; }; };; #(
10773 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 # One or both of the vars are not set, and there is no cached value.
10777 ac_x_includes=no ac_x_libraries=no
10778 rm -f -r conftest.dir
10779 if mkdir conftest.dir; then
10780 cd conftest.dir
10781 cat >Imakefile <<'_ACEOF'
10782 incroot:
10783 @echo incroot='${INCROOT}'
10784 usrlibdir:
10785 @echo usrlibdir='${USRLIBDIR}'
10786 libdir:
10787 @echo libdir='${LIBDIR}'
10788 _ACEOF
10789 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10791 for ac_var in incroot usrlibdir libdir; do
10792 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10793 done
10794 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10795 for ac_extension in a so sl; do
10796 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10797 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10798 ac_im_usrlibdir=$ac_im_libdir; break
10800 done
10801 # Screen out bogus values from the imake configuration. They are
10802 # bogus both because they are the default anyway, and because
10803 # using them would break gcc on systems where it needs fixed includes.
10804 case $ac_im_incroot in
10805 /usr/include) ac_x_includes= ;;
10806 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10807 esac
10808 case $ac_im_usrlibdir in
10809 /usr/lib | /lib) ;;
10810 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10811 esac
10813 cd ..
10814 rm -f -r conftest.dir
10817 # Standard set of common directories for X headers.
10818 # Check X11 before X11Rn because it is often a symlink to the current release.
10819 ac_x_header_dirs='
10820 /usr/X11/include
10821 /usr/X11R6/include
10822 /usr/X11R5/include
10823 /usr/X11R4/include
10825 /usr/include/X11
10826 /usr/include/X11R6
10827 /usr/include/X11R5
10828 /usr/include/X11R4
10830 /usr/local/X11/include
10831 /usr/local/X11R6/include
10832 /usr/local/X11R5/include
10833 /usr/local/X11R4/include
10835 /usr/local/include/X11
10836 /usr/local/include/X11R6
10837 /usr/local/include/X11R5
10838 /usr/local/include/X11R4
10840 /usr/X386/include
10841 /usr/x386/include
10842 /usr/XFree86/include/X11
10844 /usr/include
10845 /usr/local/include
10846 /usr/unsupported/include
10847 /usr/athena/include
10848 /usr/local/x11r5/include
10849 /usr/lpp/Xamples/include
10851 /usr/openwin/include
10852 /usr/openwin/share/include'
10854 if test "$ac_x_includes" = no; then
10855 # Guess where to find include files, by looking for Xlib.h.
10856 # First, try using that file with no special directory specified.
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 #include <X11/Xlib.h>
10864 _ACEOF
10865 if { (ac_try="$ac_cpp conftest.$ac_ext"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } >/dev/null && {
10878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 }; then
10881 # We can compile using X headers with no special include directory.
10882 ac_x_includes=
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 for ac_dir in $ac_x_header_dirs; do
10888 if test -r "$ac_dir/X11/Xlib.h"; then
10889 ac_x_includes=$ac_dir
10890 break
10892 done
10895 rm -f conftest.err conftest.$ac_ext
10896 fi # $ac_x_includes = no
10898 if test "$ac_x_libraries" = no; then
10899 # Check for the libraries.
10900 # See if we find them without any special options.
10901 # Don't add to $LIBS permanently.
10902 ac_save_LIBS=$LIBS
10903 LIBS="-lX11 $LIBS"
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <X11/Xlib.h>
10912 main ()
10914 XrmInitialize ()
10916 return 0;
10918 _ACEOF
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (ac_try="$ac_link"
10921 case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_link") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest$ac_exeext &&
10936 $as_test_x conftest$ac_exeext; then
10937 LIBS=$ac_save_LIBS
10938 # We can link X programs with no special library path.
10939 ac_x_libraries=
10940 else
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 LIBS=$ac_save_LIBS
10945 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10947 # Don't even attempt the hair of trying to link an X program!
10948 for ac_extension in a so sl; do
10949 if test -r "$ac_dir/libX11.$ac_extension"; then
10950 ac_x_libraries=$ac_dir
10951 break 2
10953 done
10954 done
10957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10958 conftest$ac_exeext conftest.$ac_ext
10959 fi # $ac_x_libraries = no
10961 case $ac_x_includes,$ac_x_libraries in #(
10962 no,* | *,no | *\'*)
10963 # Didn't find X, or a directory has "'" in its name.
10964 ac_cv_have_x="have_x=no";; #(
10966 # Record where we found X for the cache.
10967 ac_cv_have_x="have_x=yes\
10968 ac_x_includes='$ac_x_includes'\
10969 ac_x_libraries='$ac_x_libraries'"
10970 esac
10972 ;; #(
10973 *) have_x=yes;;
10974 esac
10975 eval "$ac_cv_have_x"
10976 fi # $with_x != no
10978 if test "$have_x" != yes; then
10979 { echo "$as_me:$LINENO: result: $have_x" >&5
10980 echo "${ECHO_T}$have_x" >&6; }
10981 no_x=yes
10982 else
10983 # If each of the values was on the command line, it overrides each guess.
10984 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10985 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10986 # Update the cache value to reflect the command line values.
10987 ac_cv_have_x="have_x=yes\
10988 ac_x_includes='$x_includes'\
10989 ac_x_libraries='$x_libraries'"
10990 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10991 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10995 x_cflags=
10996 for path in $x_libraries
10998 x_cflags="$x_cflags -L$path"
10999 done
11001 for path in $x_includes
11003 x_cflags="$x_cflags -I$path"
11004 done
11006 if test "x-$no_x" = "x-yes" ; then
11008 if test "x-$x11_hidd" != "x-auto" ; then
11009 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11010 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11011 { (exit 1); exit 1; }; }
11014 else
11015 x11_hidd_target=kernel-x11gfx
11018 # Check whether --enable-x11_shm was given.
11019 if test "${enable_x11_shm+set}" = set; then
11020 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11021 else
11022 x11_hidd_shm="auto"
11025 case "x-$x11_hidd_shm" in
11026 x-yes|x-no|x-auto) ;;
11027 *) x11_hidd_shm="auto" ;;
11028 esac
11030 have_xshm=no
11032 if test "x-$x11_hidd_shm" != "x-no" ; then
11035 for ac_header in sys/ipc.h
11037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_res=`eval echo '${'$as_ac_Header'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11047 else
11048 # Is the header compilable?
11049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 $ac_includes_default
11058 #include <$ac_header>
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
11077 ac_header_compiler=yes
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_header_compiler=no
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11087 echo "${ECHO_T}$ac_header_compiler" >&6; }
11089 # Is the header present?
11090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h. */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 #include <$ac_header>
11099 _ACEOF
11100 if { (ac_try="$ac_cpp conftest.$ac_ext"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } >/dev/null && {
11113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 }; then
11116 ac_header_preproc=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_header_preproc=no
11124 rm -f conftest.err conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11126 echo "${ECHO_T}$ac_header_preproc" >&6; }
11128 # So? What about this header?
11129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11130 yes:no: )
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11135 ac_header_preproc=yes
11137 no:yes:* )
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11152 esac
11153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 eval "$as_ac_Header=\$ac_header_preproc"
11160 ac_res=`eval echo '${'$as_ac_Header'}'`
11161 { echo "$as_me:$LINENO: result: $ac_res" >&5
11162 echo "${ECHO_T}$ac_res" >&6; }
11165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11166 cat >>confdefs.h <<_ACEOF
11167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11168 _ACEOF
11172 done
11175 for ac_header in sys/shm.h
11177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 ac_res=`eval echo '${'$as_ac_Header'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 else
11188 # Is the header compilable?
11189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11191 cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h. */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 $ac_includes_default
11198 #include <$ac_header>
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (ac_try="$ac_compile"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11217 ac_header_compiler=yes
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11222 ac_header_compiler=no
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11227 echo "${ECHO_T}$ac_header_compiler" >&6; }
11229 # Is the header present?
11230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 #include <$ac_header>
11239 _ACEOF
11240 if { (ac_try="$ac_cpp conftest.$ac_ext"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } >/dev/null && {
11253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 }; then
11256 ac_header_preproc=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_header_preproc=no
11264 rm -f conftest.err conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 echo "${ECHO_T}$ac_header_preproc" >&6; }
11268 # So? What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270 yes:no: )
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11277 no:yes:* )
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11292 esac
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 eval "$as_ac_Header=\$ac_header_preproc"
11300 ac_res=`eval echo '${'$as_ac_Header'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308 _ACEOF
11312 done
11315 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11317 save_cflags="$CFLAGS"
11318 CFLAGS="$CFLAGS $x_cflags"
11319 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11320 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11321 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-lXext $LIBS"
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h. */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char XShmQueryExtension ();
11341 main ()
11343 return XShmQueryExtension ();
11345 return 0;
11347 _ACEOF
11348 rm -f conftest.$ac_objext conftest$ac_exeext
11349 if { (ac_try="$ac_link"
11350 case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_link") 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest$ac_exeext &&
11365 $as_test_x conftest$ac_exeext; then
11366 ac_cv_lib_Xext_XShmQueryExtension=yes
11367 else
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_cv_lib_Xext_XShmQueryExtension=no
11374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11378 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11379 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11380 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11381 have_xshm=yes
11384 CFLAGS="$save_cflags"
11388 if test "x-$have_xshm" = "x-yes" ; then
11389 DO_XSHM_SUPPORT="1"
11390 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11391 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11392 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11393 { (exit 1); exit 1; }; }
11394 else
11395 DO_XSHM_SUPPORT="0"
11399 # Check whether --enable-x11_vidmode was given.
11400 if test "${enable_x11_vidmode+set}" = set; then
11401 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11402 else
11403 x11_hidd_vidmode="auto"
11406 case "x-$x11_hidd_vidmode" in
11407 x-yes|x-no|x-auto) ;;
11408 *) x11_hidd_vidmode="auto" ;;
11409 esac
11411 have_vidmode=no
11413 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11415 save_cflags="$CFLAGS"
11416 CFLAGS="$CFLAGS $x_cflags"
11417 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11418 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
11419 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422 ac_check_lib_save_LIBS=$LIBS
11423 LIBS="-lXxf86vm $LIBS"
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11431 /* Override any GCC internal prototype to avoid an error.
11432 Use char because int might match the return type of a GCC
11433 builtin and then its argument prototype would still apply. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 char XF86VidModeQueryExtension ();
11439 main ()
11441 return XF86VidModeQueryExtension ();
11443 return 0;
11445 _ACEOF
11446 rm -f conftest.$ac_objext conftest$ac_exeext
11447 if { (ac_try="$ac_link"
11448 case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451 esac
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_link") 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && {
11460 test -z "$ac_c_werror_flag" ||
11461 test ! -s conftest.err
11462 } && test -s conftest$ac_exeext &&
11463 $as_test_x conftest$ac_exeext; then
11464 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11476 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11477 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11478 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
11479 have_vidmode=yes
11482 CFLAGS="$save_cflags"
11485 if test "x-$have_vidmode" = "x-yes" ; then
11486 DO_VIDMODE_SUPPORT="1"
11487 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11488 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
11489 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
11490 { (exit 1); exit 1; }; }
11491 else
11492 DO_VIDMODE_SUPPORT="0"
11496 aros_host_x11_includes=$x_includes
11497 aros_host_x11_libdirs=$x_libraries
11501 # Check whether --enable-sdl_hidd was given.
11502 if test "${enable_sdl_hidd+set}" = set; then
11503 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11504 else
11505 sdl_hidd="auto"
11508 case "x-$sdl_hidd" in
11509 x-yes|x-no|x-auto) ;;
11510 *) sdl_hidd="auto" ;;
11511 esac
11513 if test "x-$sdl_hidd" != "x-no" ; then
11516 # Check whether --with-sdl-prefix was given.
11517 if test "${with_sdl_prefix+set}" = set; then
11518 withval=$with_sdl_prefix; sdl_prefix="$withval"
11519 else
11520 sdl_prefix=""
11524 # Check whether --with-sdl-exec-prefix was given.
11525 if test "${with_sdl_exec_prefix+set}" = set; then
11526 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11527 else
11528 sdl_exec_prefix=""
11531 # Check whether --enable-sdltest was given.
11532 if test "${enable_sdltest+set}" = set; then
11533 enableval=$enable_sdltest;
11534 else
11535 enable_sdltest=yes
11539 if test x$sdl_exec_prefix != x ; then
11540 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11541 if test x${SDL_CONFIG+set} != xset ; then
11542 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11545 if test x$sdl_prefix != x ; then
11546 sdl_args="$sdl_args --prefix=$sdl_prefix"
11547 if test x${SDL_CONFIG+set} != xset ; then
11548 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11552 if test "x$prefix" != xNONE; then
11553 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11555 # Extract the first word of "sdl-config", so it can be a program name with args.
11556 set dummy sdl-config; ac_word=$2
11557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11559 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 case $SDL_CONFIG in
11563 [\\/]* | ?:[\\/]*)
11564 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11574 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11578 done
11579 done
11580 IFS=$as_save_IFS
11582 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11584 esac
11586 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11587 if test -n "$SDL_CONFIG"; then
11588 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
11589 echo "${ECHO_T}$SDL_CONFIG" >&6; }
11590 else
11591 { echo "$as_me:$LINENO: result: no" >&5
11592 echo "${ECHO_T}no" >&6; }
11596 min_sdl_version=1.2.10
11597 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
11598 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
11599 no_sdl=""
11600 if test "$SDL_CONFIG" = "no" ; then
11601 no_sdl=yes
11602 else
11603 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11604 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11606 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11607 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11608 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11609 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11610 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11611 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11612 if test "x$enable_sdltest" = "xyes" ; then
11613 ac_save_CFLAGS="$CFLAGS"
11614 ac_save_CXXFLAGS="$CXXFLAGS"
11615 ac_save_LIBS="$LIBS"
11616 CFLAGS="$CFLAGS $SDL_CFLAGS"
11617 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11618 LIBS="$LIBS $SDL_LIBS"
11619 rm -f conf.sdltest
11620 if test "$cross_compiling" = yes; then
11621 echo $ac_n "cross compiling; assumed OK... $ac_c"
11622 else
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h. */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11630 #include <stdio.h>
11631 #include <stdlib.h>
11632 #include <string.h>
11633 #include "SDL.h"
11635 char*
11636 my_strdup (char *str)
11638 char *new_str;
11640 if (str)
11642 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11643 strcpy (new_str, str);
11645 else
11646 new_str = NULL;
11648 return new_str;
11651 int main (int argc, char *argv[])
11653 int major, minor, micro;
11654 char *tmp_version;
11656 /* This hangs on some systems (?)
11657 system ("touch conf.sdltest");
11659 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11661 /* HP/UX 9 (%@#!) writes to sscanf strings */
11662 tmp_version = my_strdup("$min_sdl_version");
11663 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11664 printf("%s, bad version string\n", "$min_sdl_version");
11665 exit(1);
11668 if (($sdl_major_version > major) ||
11669 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11670 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11672 return 0;
11674 else
11676 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11677 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11678 printf("*** best to upgrade to the required version.\n");
11679 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11680 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11681 printf("*** config.cache before re-running configure\n");
11682 return 1;
11687 _ACEOF
11688 rm -f conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_link") 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11699 { (case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11702 esac
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_try") 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11709 else
11710 echo "$as_me: program exited with status $ac_status" >&5
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 ( exit $ac_status )
11715 no_sdl=yes
11717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11721 CFLAGS="$ac_save_CFLAGS"
11722 CXXFLAGS="$ac_save_CXXFLAGS"
11723 LIBS="$ac_save_LIBS"
11726 if test "x$no_sdl" = x ; then
11727 { echo "$as_me:$LINENO: result: yes" >&5
11728 echo "${ECHO_T}yes" >&6; }
11729 have_sdl="yes"
11730 else
11731 { echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6; }
11733 if test "$SDL_CONFIG" = "no" ; then
11734 echo "*** The sdl-config script installed by SDL could not be found"
11735 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11736 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11737 echo "*** full path to sdl-config."
11738 else
11739 if test -f conf.sdltest ; then
11741 else
11742 echo "*** Could not run SDL test program, checking why..."
11743 CFLAGS="$CFLAGS $SDL_CFLAGS"
11744 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11745 LIBS="$LIBS $SDL_LIBS"
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11753 #include <stdio.h>
11754 #include "SDL.h"
11756 int main(int argc, char *argv[])
11757 { return 0; }
11758 #undef main
11759 #define main K_and_R_C_main
11762 main ()
11764 return 0;
11766 return 0;
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest$ac_exeext &&
11786 $as_test_x conftest$ac_exeext; then
11787 echo "*** The test program compiled, but did not run. This usually means"
11788 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11789 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11790 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11791 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11792 echo "*** is required on your system"
11793 echo "***"
11794 echo "*** If you have an old version installed, it is best to remove it, although"
11795 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 echo "*** The test program failed to compile or link. See the file config.log for the"
11801 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11802 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11803 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807 conftest$ac_exeext conftest.$ac_ext
11808 CFLAGS="$ac_save_CFLAGS"
11809 CXXFLAGS="$ac_save_CXXFLAGS"
11810 LIBS="$ac_save_LIBS"
11813 SDL_CFLAGS=""
11814 SDL_LIBS=""
11815 have_sdl="no"
11819 rm -f conf.sdltest
11822 if test "x-$have_sdl" != "x-yes" ; then
11824 if test "x-$sdl_hidd" != "x-auto" ; then
11825 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11826 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11827 { (exit 1); exit 1; }; }
11830 else
11831 sdl_hidd_target=kernel-hidd-sdl
11832 aros_host_sdl_cflags=SDL_CFLAGS
11833 aros_host_sdl_libs=SDL_LIBS
11840 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11841 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11842 # Check whether --enable-dbus was given.
11843 if test "${enable_dbus+set}" = set; then
11844 enableval=$enable_dbus; dbus="yes"
11845 else
11846 dbus="no"
11849 if test "$dbus" = "yes" ; then
11850 ENABLE_DBUS=1
11851 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11852 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11853 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11854 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11855 else
11856 ENABLE_DBUS=0
11858 { echo "$as_me:$LINENO: result: $dbus" >&5
11859 echo "${ECHO_T}$dbus" >&6; }
11863 # Generic
11872 # Host related
11895 # Target Related
11936 # Graphics Related
11951 # Native version related
11955 # Palm native version related
11958 # Unix/Hosted version related
11961 # DBUS related
11968 # Debug related
11974 # Collect-aros stuff: "-ius" to ignore undefined symbols
11977 # C compiler related
11980 case "$aros_flavour" in
11981 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11982 aros_flavour="emulation" ;;
11983 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11984 aros_flavour="emulation" ;;
11985 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11986 aros_flavour="standalone";;
11987 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11988 aros_flavour="native" ;;
11989 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11990 aros_flavour="native" ;;
11991 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11992 aros_flavour="linklib" ;;
11993 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11994 aros_flavour="palmnative" ;;
11995 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11996 aros_flavour="mac68knative" ;;
11997 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11998 aros_flavour="ppcnative" ;;
11999 esac
12001 if test ! -d ${aros_inc_dir} ; then
12002 ${MKDIR} ${aros_inc_dir}
12004 if test ! -d ${aros_geninc_dir} ; then
12005 ${MKDIR} ${aros_geninc_dir}
12007 if test ! -d ${aros_hostcfg_dir} ; then
12008 ${MKDIR} ${aros_hostcfg_dir}
12010 if test ! -d ${aros_targetcfg_dir} ; then
12011 ${MKDIR} ${aros_targetcfg_dir}
12013 if test ! -d ${aros_tools_dir} ; then
12014 ${MKDIR} ${aros_tools_dir}
12016 if test ! -d ${aros_scripts_dir} ; then
12017 ${MKDIR} ${aros_scripts_dir}
12020 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12023 ac_config_commands="$ac_config_commands compiler_executable"
12025 ac_config_commands="$ac_config_commands genshared_executable"
12027 ac_config_commands="$ac_config_commands genmf_executable"
12029 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
12032 ac_config_files="$ac_config_files Makefile rom/mmakefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/adflib/myconf.aros tools/collect-aros/env.h"
12035 cat >confcache <<\_ACEOF
12036 # This file is a shell script that caches the results of configure
12037 # tests run on this system so they can be shared between configure
12038 # scripts and configure runs, see configure's option --config-cache.
12039 # It is not useful on other systems. If it contains results you don't
12040 # want to keep, you may remove or edit it.
12042 # config.status only pays attention to the cache file if you give it
12043 # the --recheck option to rerun configure.
12045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12047 # following values.
12049 _ACEOF
12051 # The following way of writing the cache mishandles newlines in values,
12052 # but we know of no workaround that is simple, portable, and efficient.
12053 # So, we kill variables containing newlines.
12054 # Ultrix sh set writes to stderr and can't be redirected directly,
12055 # and sets the high bit in the cache file unless we assign to the vars.
12057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12058 eval ac_val=\$$ac_var
12059 case $ac_val in #(
12060 *${as_nl}*)
12061 case $ac_var in #(
12062 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12063 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12064 esac
12065 case $ac_var in #(
12066 _ | IFS | as_nl) ;; #(
12067 *) $as_unset $ac_var ;;
12068 esac ;;
12069 esac
12070 done
12072 (set) 2>&1 |
12073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12074 *${as_nl}ac_space=\ *)
12075 # `set' does not quote correctly, so add quotes (double-quote
12076 # substitution turns \\\\ into \\, and sed turns \\ into \).
12077 sed -n \
12078 "s/'/'\\\\''/g;
12079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12080 ;; #(
12082 # `set' quotes correctly as required by POSIX, so do not add quotes.
12083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12085 esac |
12086 sort
12088 sed '
12089 /^ac_cv_env_/b end
12090 t clear
12091 :clear
12092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12093 t end
12094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12095 :end' >>confcache
12096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12097 if test -w "$cache_file"; then
12098 test "x$cache_file" != "x/dev/null" &&
12099 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12100 echo "$as_me: updating cache $cache_file" >&6;}
12101 cat confcache >$cache_file
12102 else
12103 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12104 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12107 rm -f confcache
12109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12110 # Let make expand exec_prefix.
12111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12113 DEFS=-DHAVE_CONFIG_H
12115 ac_libobjs=
12116 ac_ltlibobjs=
12117 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12118 # 1. Remove the extension, and $U if already installed.
12119 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12120 ac_i=`echo "$ac_i" | sed "$ac_script"`
12121 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12122 # will be set to the directory where LIBOBJS objects are built.
12123 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12124 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12125 done
12126 LIBOBJS=$ac_libobjs
12128 LTLIBOBJS=$ac_ltlibobjs
12132 : ${CONFIG_STATUS=./config.status}
12133 ac_clean_files_save=$ac_clean_files
12134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12135 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12136 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12137 cat >$CONFIG_STATUS <<_ACEOF
12138 #! $SHELL
12139 # Generated by $as_me.
12140 # Run this file to recreate the current configuration.
12141 # Compiler output produced by configure, useful for debugging
12142 # configure, is in config.log if it exists.
12144 debug=false
12145 ac_cs_recheck=false
12146 ac_cs_silent=false
12147 SHELL=\${CONFIG_SHELL-$SHELL}
12148 _ACEOF
12150 cat >>$CONFIG_STATUS <<\_ACEOF
12151 ## --------------------- ##
12152 ## M4sh Initialization. ##
12153 ## --------------------- ##
12155 # Be more Bourne compatible
12156 DUALCASE=1; export DUALCASE # for MKS sh
12157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12158 emulate sh
12159 NULLCMD=:
12160 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12161 # is contrary to our usage. Disable this feature.
12162 alias -g '${1+"$@"}'='"$@"'
12163 setopt NO_GLOB_SUBST
12164 else
12165 case `(set -o) 2>/dev/null` in
12166 *posix*) set -o posix ;;
12167 esac
12174 # PATH needs CR
12175 # Avoid depending upon Character Ranges.
12176 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12177 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12178 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12179 as_cr_digits='0123456789'
12180 as_cr_alnum=$as_cr_Letters$as_cr_digits
12182 # The user is always right.
12183 if test "${PATH_SEPARATOR+set}" != set; then
12184 echo "#! /bin/sh" >conf$$.sh
12185 echo "exit 0" >>conf$$.sh
12186 chmod +x conf$$.sh
12187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12188 PATH_SEPARATOR=';'
12189 else
12190 PATH_SEPARATOR=:
12192 rm -f conf$$.sh
12195 # Support unset when possible.
12196 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12197 as_unset=unset
12198 else
12199 as_unset=false
12203 # IFS
12204 # We need space, tab and new line, in precisely that order. Quoting is
12205 # there to prevent editors from complaining about space-tab.
12206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12207 # splitting by setting IFS to empty value.)
12208 as_nl='
12210 IFS=" "" $as_nl"
12212 # Find who we are. Look in the path if we contain no directory separator.
12213 case $0 in
12214 *[\\/]* ) as_myself=$0 ;;
12215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12221 done
12222 IFS=$as_save_IFS
12225 esac
12226 # We did not find ourselves, most probably we were run as `sh COMMAND'
12227 # in which case we are not to be found in the path.
12228 if test "x$as_myself" = x; then
12229 as_myself=$0
12231 if test ! -f "$as_myself"; then
12232 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12233 { (exit 1); exit 1; }
12236 # Work around bugs in pre-3.0 UWIN ksh.
12237 for as_var in ENV MAIL MAILPATH
12238 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12239 done
12240 PS1='$ '
12241 PS2='> '
12242 PS4='+ '
12244 # NLS nuisances.
12245 for as_var in \
12246 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12247 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12248 LC_TELEPHONE LC_TIME
12250 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12251 eval $as_var=C; export $as_var
12252 else
12253 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12255 done
12257 # Required to use basename.
12258 if expr a : '\(a\)' >/dev/null 2>&1 &&
12259 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12260 as_expr=expr
12261 else
12262 as_expr=false
12265 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12266 as_basename=basename
12267 else
12268 as_basename=false
12272 # Name of the executable.
12273 as_me=`$as_basename -- "$0" ||
12274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12275 X"$0" : 'X\(//\)$' \| \
12276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12277 echo X/"$0" |
12278 sed '/^.*\/\([^/][^/]*\)\/*$/{
12279 s//\1/
12282 /^X\/\(\/\/\)$/{
12283 s//\1/
12286 /^X\/\(\/\).*/{
12287 s//\1/
12290 s/.*/./; q'`
12292 # CDPATH.
12293 $as_unset CDPATH
12297 as_lineno_1=$LINENO
12298 as_lineno_2=$LINENO
12299 test "x$as_lineno_1" != "x$as_lineno_2" &&
12300 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12302 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12303 # uniformly replaced by the line number. The first 'sed' inserts a
12304 # line-number line after each line using $LINENO; the second 'sed'
12305 # does the real work. The second script uses 'N' to pair each
12306 # line-number line with the line containing $LINENO, and appends
12307 # trailing '-' during substitution so that $LINENO is not a special
12308 # case at line end.
12309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12310 # scripts with optimization help from Paolo Bonzini. Blame Lee
12311 # E. McMahon (1931-1989) for sed's syntax. :-)
12312 sed -n '
12314 /[$]LINENO/=
12315 ' <$as_myself |
12316 sed '
12317 s/[$]LINENO.*/&-/
12318 t lineno
12320 :lineno
12322 :loop
12323 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12324 t loop
12325 s/-\n.*//
12326 ' >$as_me.lineno &&
12327 chmod +x "$as_me.lineno" ||
12328 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12329 { (exit 1); exit 1; }; }
12331 # Don't try to exec as it changes $[0], causing all sort of problems
12332 # (the dirname of $[0] is not the place where we might find the
12333 # original and so on. Autoconf is especially sensitive to this).
12334 . "./$as_me.lineno"
12335 # Exit status is that of the last command.
12336 exit
12340 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12341 as_dirname=dirname
12342 else
12343 as_dirname=false
12346 ECHO_C= ECHO_N= ECHO_T=
12347 case `echo -n x` in
12348 -n*)
12349 case `echo 'x\c'` in
12350 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12351 *) ECHO_C='\c';;
12352 esac;;
12354 ECHO_N='-n';;
12355 esac
12357 if expr a : '\(a\)' >/dev/null 2>&1 &&
12358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12359 as_expr=expr
12360 else
12361 as_expr=false
12364 rm -f conf$$ conf$$.exe conf$$.file
12365 if test -d conf$$.dir; then
12366 rm -f conf$$.dir/conf$$.file
12367 else
12368 rm -f conf$$.dir
12369 mkdir conf$$.dir
12371 echo >conf$$.file
12372 if ln -s conf$$.file conf$$ 2>/dev/null; then
12373 as_ln_s='ln -s'
12374 # ... but there are two gotchas:
12375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12377 # In both cases, we have to default to `cp -p'.
12378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12379 as_ln_s='cp -p'
12380 elif ln conf$$.file conf$$ 2>/dev/null; then
12381 as_ln_s=ln
12382 else
12383 as_ln_s='cp -p'
12385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12386 rmdir conf$$.dir 2>/dev/null
12388 if mkdir -p . 2>/dev/null; then
12389 as_mkdir_p=:
12390 else
12391 test -d ./-p && rmdir ./-p
12392 as_mkdir_p=false
12395 if test -x / >/dev/null 2>&1; then
12396 as_test_x='test -x'
12397 else
12398 if ls -dL / >/dev/null 2>&1; then
12399 as_ls_L_option=L
12400 else
12401 as_ls_L_option=
12403 as_test_x='
12404 eval sh -c '\''
12405 if test -d "$1"; then
12406 test -d "$1/.";
12407 else
12408 case $1 in
12409 -*)set "./$1";;
12410 esac;
12411 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12412 ???[sx]*):;;*)false;;esac;fi
12413 '\'' sh
12416 as_executable_p=$as_test_x
12418 # Sed expression to map a string onto a valid CPP name.
12419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12421 # Sed expression to map a string onto a valid variable name.
12422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12425 exec 6>&1
12427 # Save the log message, to keep $[0] and so on meaningful, and to
12428 # report actual input values of CONFIG_FILES etc. instead of their
12429 # values after options handling.
12430 ac_log="
12431 This file was extended by $as_me, which was
12432 generated by GNU Autoconf 2.61. Invocation command line was
12434 CONFIG_FILES = $CONFIG_FILES
12435 CONFIG_HEADERS = $CONFIG_HEADERS
12436 CONFIG_LINKS = $CONFIG_LINKS
12437 CONFIG_COMMANDS = $CONFIG_COMMANDS
12438 $ $0 $@
12440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12443 _ACEOF
12445 cat >>$CONFIG_STATUS <<_ACEOF
12446 # Files that config.status was made for.
12447 config_files="$ac_config_files"
12448 config_headers="$ac_config_headers"
12449 config_commands="$ac_config_commands"
12451 _ACEOF
12453 cat >>$CONFIG_STATUS <<\_ACEOF
12454 ac_cs_usage="\
12455 \`$as_me' instantiates files from templates according to the
12456 current configuration.
12458 Usage: $0 [OPTIONS] [FILE]...
12460 -h, --help print this help, then exit
12461 -V, --version print version number and configuration settings, then exit
12462 -q, --quiet do not print progress messages
12463 -d, --debug don't remove temporary files
12464 --recheck update $as_me by reconfiguring in the same conditions
12465 --file=FILE[:TEMPLATE]
12466 instantiate the configuration file FILE
12467 --header=FILE[:TEMPLATE]
12468 instantiate the configuration header FILE
12470 Configuration files:
12471 $config_files
12473 Configuration headers:
12474 $config_headers
12476 Configuration commands:
12477 $config_commands
12479 Report bugs to <bug-autoconf@gnu.org>."
12481 _ACEOF
12482 cat >>$CONFIG_STATUS <<_ACEOF
12483 ac_cs_version="\\
12484 config.status
12485 configured by $0, generated by GNU Autoconf 2.61,
12486 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12488 Copyright (C) 2006 Free Software Foundation, Inc.
12489 This config.status script is free software; the Free Software Foundation
12490 gives unlimited permission to copy, distribute and modify it."
12492 ac_pwd='$ac_pwd'
12493 srcdir='$srcdir'
12494 _ACEOF
12496 cat >>$CONFIG_STATUS <<\_ACEOF
12497 # If no file are specified by the user, then we need to provide default
12498 # value. By we need to know if files were specified by the user.
12499 ac_need_defaults=:
12500 while test $# != 0
12502 case $1 in
12503 --*=*)
12504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12506 ac_shift=:
12509 ac_option=$1
12510 ac_optarg=$2
12511 ac_shift=shift
12513 esac
12515 case $ac_option in
12516 # Handling of the options.
12517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12518 ac_cs_recheck=: ;;
12519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12520 echo "$ac_cs_version"; exit ;;
12521 --debug | --debu | --deb | --de | --d | -d )
12522 debug=: ;;
12523 --file | --fil | --fi | --f )
12524 $ac_shift
12525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12526 ac_need_defaults=false;;
12527 --header | --heade | --head | --hea )
12528 $ac_shift
12529 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12530 ac_need_defaults=false;;
12531 --he | --h)
12532 # Conflict between --help and --header
12533 { echo "$as_me: error: ambiguous option: $1
12534 Try \`$0 --help' for more information." >&2
12535 { (exit 1); exit 1; }; };;
12536 --help | --hel | -h )
12537 echo "$ac_cs_usage"; exit ;;
12538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12539 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12540 ac_cs_silent=: ;;
12542 # This is an error.
12543 -*) { echo "$as_me: error: unrecognized option: $1
12544 Try \`$0 --help' for more information." >&2
12545 { (exit 1); exit 1; }; } ;;
12547 *) ac_config_targets="$ac_config_targets $1"
12548 ac_need_defaults=false ;;
12550 esac
12551 shift
12552 done
12554 ac_configure_extra_args=
12556 if $ac_cs_silent; then
12557 exec 6>/dev/null
12558 ac_configure_extra_args="$ac_configure_extra_args --silent"
12561 _ACEOF
12562 cat >>$CONFIG_STATUS <<_ACEOF
12563 if \$ac_cs_recheck; then
12564 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12565 CONFIG_SHELL=$SHELL
12566 export CONFIG_SHELL
12567 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12570 _ACEOF
12571 cat >>$CONFIG_STATUS <<\_ACEOF
12572 exec 5>>config.log
12574 echo
12575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12576 ## Running $as_me. ##
12577 _ASBOX
12578 echo "$ac_log"
12579 } >&5
12581 _ACEOF
12582 cat >>$CONFIG_STATUS <<_ACEOF
12584 # INIT-COMMANDS
12587 aros_tools_dir=${aros_tools_dir}
12588 aros_target_cpu=${aros_target_cpu}
12589 aros_target_arch=${aros_target_arch}
12590 aros_target_suffix=${aros_target_suffix}
12591 aros_target_nm_ln=${aros_target_nm_ln}
12592 aros_target_as_ln=${aros_target_as_ln}
12593 aros_target_ar_ln=${aros_target_ar_ln}
12594 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12595 aros_target_objdump_ln=${aros_target_objdump_ln}
12596 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12597 aros_target_strip_ln=${aros_target_strip_ln}
12600 aros_scripts_dir=${aros_scripts_dir}
12602 aros_tools_dir=${aros_tools_dir}
12605 _ACEOF
12607 cat >>$CONFIG_STATUS <<\_ACEOF
12609 # Handling of arguments.
12610 for ac_config_target in $ac_config_targets
12612 case $ac_config_target in
12613 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12614 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12615 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
12616 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12617 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
12618 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12619 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
12620 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
12621 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12622 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12623 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12624 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12625 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12626 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12627 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12628 "${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" ;;
12629 "${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" ;;
12630 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
12631 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
12632 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
12633 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
12635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12636 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12637 { (exit 1); exit 1; }; };;
12638 esac
12639 done
12642 # If the user did not use the arguments to specify the items to instantiate,
12643 # then the envvar interface is used. Set only those that are not.
12644 # We use the long form for the default assignment because of an extremely
12645 # bizarre bug on SunOS 4.1.3.
12646 if $ac_need_defaults; then
12647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12652 # Have a temporary directory for convenience. Make it in the build tree
12653 # simply because there is no reason against having it here, and in addition,
12654 # creating and moving files from /tmp can sometimes cause problems.
12655 # Hook for its removal unless debugging.
12656 # Note that there is a small window in which the directory will not be cleaned:
12657 # after its creation but before its name has been assigned to `$tmp'.
12658 $debug ||
12660 tmp=
12661 trap 'exit_status=$?
12662 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12664 trap '{ (exit 1); exit 1; }' 1 2 13 15
12666 # Create a (secure) tmp directory for tmp files.
12669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12670 test -n "$tmp" && test -d "$tmp"
12671 } ||
12673 tmp=./conf$$-$RANDOM
12674 (umask 077 && mkdir "$tmp")
12675 } ||
12677 echo "$me: cannot create a temporary directory in ." >&2
12678 { (exit 1); exit 1; }
12682 # Set up the sed scripts for CONFIG_FILES section.
12685 # No need to generate the scripts if there are no CONFIG_FILES.
12686 # This happens for instance when ./config.status config.h
12687 if test -n "$CONFIG_FILES"; then
12689 _ACEOF
12693 ac_delim='%!_!# '
12694 for ac_last_try in false false false false false :; do
12695 cat >conf$$subs.sed <<_ACEOF
12696 SHELL!$SHELL$ac_delim
12697 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12698 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12699 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12700 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12701 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12702 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12703 exec_prefix!$exec_prefix$ac_delim
12704 prefix!$prefix$ac_delim
12705 program_transform_name!$program_transform_name$ac_delim
12706 bindir!$bindir$ac_delim
12707 sbindir!$sbindir$ac_delim
12708 libexecdir!$libexecdir$ac_delim
12709 datarootdir!$datarootdir$ac_delim
12710 datadir!$datadir$ac_delim
12711 sysconfdir!$sysconfdir$ac_delim
12712 sharedstatedir!$sharedstatedir$ac_delim
12713 localstatedir!$localstatedir$ac_delim
12714 includedir!$includedir$ac_delim
12715 oldincludedir!$oldincludedir$ac_delim
12716 docdir!$docdir$ac_delim
12717 infodir!$infodir$ac_delim
12718 htmldir!$htmldir$ac_delim
12719 dvidir!$dvidir$ac_delim
12720 pdfdir!$pdfdir$ac_delim
12721 psdir!$psdir$ac_delim
12722 libdir!$libdir$ac_delim
12723 localedir!$localedir$ac_delim
12724 mandir!$mandir$ac_delim
12725 DEFS!$DEFS$ac_delim
12726 ECHO_C!$ECHO_C$ac_delim
12727 ECHO_N!$ECHO_N$ac_delim
12728 ECHO_T!$ECHO_T$ac_delim
12729 LIBS!$LIBS$ac_delim
12730 build_alias!$build_alias$ac_delim
12731 host_alias!$host_alias$ac_delim
12732 target_alias!$target_alias$ac_delim
12733 build!$build$ac_delim
12734 build_cpu!$build_cpu$ac_delim
12735 build_vendor!$build_vendor$ac_delim
12736 build_os!$build_os$ac_delim
12737 host!$host$ac_delim
12738 host_cpu!$host_cpu$ac_delim
12739 host_vendor!$host_vendor$ac_delim
12740 host_os!$host_os$ac_delim
12741 CC!$CC$ac_delim
12742 CFLAGS!$CFLAGS$ac_delim
12743 LDFLAGS!$LDFLAGS$ac_delim
12744 CPPFLAGS!$CPPFLAGS$ac_delim
12745 ac_ct_CC!$ac_ct_CC$ac_delim
12746 EXEEXT!$EXEEXT$ac_delim
12747 OBJEXT!$OBJEXT$ac_delim
12748 CPP!$CPP$ac_delim
12749 AWK!$AWK$ac_delim
12750 MMAKE!$MMAKE$ac_delim
12751 aros_host_ld!$aros_host_ld$ac_delim
12752 aros_host_aclocal!$aros_host_aclocal$ac_delim
12753 aros_host_autoconf!$aros_host_autoconf$ac_delim
12754 aros_host_autoheader!$aros_host_autoheader$ac_delim
12755 aros_host_automake!$aros_host_automake$ac_delim
12756 aros_host_ar!$aros_host_ar$ac_delim
12757 aros_host_ranlib!$aros_host_ranlib$ac_delim
12758 aros_host_strip!$aros_host_strip$ac_delim
12759 RM!$RM$ac_delim
12760 CP!$CP$ac_delim
12761 MV!$MV$ac_delim
12762 ECHO!$ECHO$ac_delim
12763 MKDIR!$MKDIR$ac_delim
12764 TOUCH!$TOUCH$ac_delim
12765 SORT!$SORT$ac_delim
12766 UNIQ!$UNIQ$ac_delim
12767 NOP!$NOP$ac_delim
12768 CAT!$CAT$ac_delim
12769 BISON!$BISON$ac_delim
12770 FLEX!$FLEX$ac_delim
12771 PNGTOPNM!$PNGTOPNM$ac_delim
12772 PPMTOILBM!$PPMTOILBM$ac_delim
12773 SED!$SED$ac_delim
12774 CHMOD!$CHMOD$ac_delim
12775 PYTHON!$PYTHON$ac_delim
12776 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12777 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12778 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12779 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12780 pythondir!$pythondir$ac_delim
12781 pkgpythondir!$pkgpythondir$ac_delim
12782 pyexecdir!$pyexecdir$ac_delim
12783 pkgpyexecdir!$pkgpyexecdir$ac_delim
12784 FOR!$FOR$ac_delim
12785 IF!$IF$ac_delim
12786 TEST!$TEST$ac_delim
12787 CMP!$CMP$ac_delim
12788 GREP!$GREP$ac_delim
12789 EGREP!$EGREP$ac_delim
12790 LIBOBJS!$LIBOBJS$ac_delim
12791 DISTCC!$DISTCC$ac_delim
12792 CCACHE!$CCACHE$ac_delim
12793 _ACEOF
12795 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12796 break
12797 elif $ac_last_try; then
12798 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12799 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12800 { (exit 1); exit 1; }; }
12801 else
12802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12804 done
12806 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12807 if test -n "$ac_eof"; then
12808 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12809 ac_eof=`expr $ac_eof + 1`
12812 cat >>$CONFIG_STATUS <<_ACEOF
12813 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12815 _ACEOF
12816 sed '
12817 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12818 s/^/s,@/; s/!/@,|#_!!_#|/
12821 s/'"$ac_delim"'$/,g/; t
12822 s/$/\\/; p
12823 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12824 ' >>$CONFIG_STATUS <conf$$subs.sed
12825 rm -f conf$$subs.sed
12826 cat >>$CONFIG_STATUS <<_ACEOF
12827 CEOF$ac_eof
12828 _ACEOF
12831 ac_delim='%!_!# '
12832 for ac_last_try in false false false false false :; do
12833 cat >conf$$subs.sed <<_ACEOF
12834 LIBLZO!$LIBLZO$ac_delim
12835 aros_kernel_cc!$aros_kernel_cc$ac_delim
12836 aros_target_as_ln!$aros_target_as_ln$ac_delim
12837 aros_kernel_ld!$aros_kernel_ld$ac_delim
12838 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12839 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12840 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12841 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12842 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12843 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12844 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12845 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12846 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12847 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12848 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12849 XMKMF!$XMKMF$ac_delim
12850 SDL_CONFIG!$SDL_CONFIG$ac_delim
12851 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12852 SDL_LIBS!$SDL_LIBS$ac_delim
12853 aros_arch!$aros_arch$ac_delim
12854 aros_cpu!$aros_cpu$ac_delim
12855 aros_flavour!$aros_flavour$ac_delim
12856 aros_flavour_uc!$aros_flavour_uc$ac_delim
12857 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
12858 AROS_SRCDIR!$AROS_SRCDIR$ac_delim
12859 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
12860 aros_cc_pre!$aros_cc_pre$ac_delim
12861 aros_host_arch!$aros_host_arch$ac_delim
12862 aros_host_cpu!$aros_host_cpu$ac_delim
12863 aros_host_cc!$aros_host_cc$ac_delim
12864 aros_host_make!$aros_host_make$ac_delim
12865 aros_host_cflags!$aros_host_cflags$ac_delim
12866 aros_host_ldflags!$aros_host_ldflags$ac_delim
12867 aros_host_debug!$aros_host_debug$ac_delim
12868 aros_host_mkdep!$aros_host_mkdep$ac_delim
12869 aros_host_mkargs!$aros_host_mkargs$ac_delim
12870 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12871 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12872 aros_tools_dir!$aros_tools_dir$ac_delim
12873 aros_target_guitheme!$aros_target_guitheme$ac_delim
12874 aros_target_bootloader!$aros_target_bootloader$ac_delim
12875 aros_target_arch!$aros_target_arch$ac_delim
12876 aros_target_cpu!$aros_target_cpu$ac_delim
12877 aros_target_variant!$aros_target_variant$ac_delim
12878 aros_target_suffix!$aros_target_suffix$ac_delim
12879 aros_target_incl!$aros_target_incl$ac_delim
12880 aros_target_ar!$aros_target_ar$ac_delim
12881 aros_target_ranlib!$aros_target_ranlib$ac_delim
12882 aros_kernel_nm!$aros_kernel_nm$ac_delim
12883 aros_target_cc!$aros_target_cc$ac_delim
12884 aros_target_as!$aros_target_as$ac_delim
12885 aros_target_ld!$aros_target_ld$ac_delim
12886 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12887 aros_target_cc_path!$aros_target_cc_path$ac_delim
12888 aros_target_objdump!$aros_target_objdump$ac_delim
12889 aros_target_objcopy!$aros_target_objcopy$ac_delim
12890 aros_target_strip!$aros_target_strip$ac_delim
12891 aros_target_nm!$aros_target_nm$ac_delim
12892 aros_shared_default!$aros_shared_default$ac_delim
12893 aros_shared_ld!$aros_shared_ld$ac_delim
12894 aros_object_format!$aros_object_format$ac_delim
12895 aros_compiler_libs!$aros_compiler_libs$ac_delim
12896 aros_config_cflags!$aros_config_cflags$ac_delim
12897 aros_config_aflags!$aros_config_aflags$ac_delim
12898 aros_config_ldflags!$aros_config_ldflags$ac_delim
12899 aros_shared_cflags!$aros_shared_cflags$ac_delim
12900 aros_shared_aflags!$aros_shared_aflags$ac_delim
12901 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12902 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12903 aros_debug_cflags!$aros_debug_cflags$ac_delim
12904 aros_debug_aflags!$aros_debug_aflags$ac_delim
12905 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12906 aros_target_genmap!$aros_target_genmap$ac_delim
12907 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12908 x11_hidd_target!$x11_hidd_target$ac_delim
12909 sdl_hidd_target!$sdl_hidd_target$ac_delim
12910 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12911 aros_default_wbheight!$aros_default_wbheight$ac_delim
12912 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12913 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12914 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12915 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
12916 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
12917 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
12918 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
12919 aros_bochs_hack!$aros_bochs_hack$ac_delim
12920 aros_serial_debug!$aros_serial_debug$ac_delim
12921 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12922 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12923 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12924 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12925 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12926 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12927 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12928 aros_debug!$aros_debug$ac_delim
12929 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12930 aros_stack_debug!$aros_stack_debug$ac_delim
12931 _ACEOF
12933 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12934 break
12935 elif $ac_last_try; then
12936 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12938 { (exit 1); exit 1; }; }
12939 else
12940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12942 done
12944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12945 if test -n "$ac_eof"; then
12946 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12947 ac_eof=`expr $ac_eof + 1`
12950 cat >>$CONFIG_STATUS <<_ACEOF
12951 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12953 _ACEOF
12954 sed '
12955 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12956 s/^/s,@/; s/!/@,|#_!!_#|/
12959 s/'"$ac_delim"'$/,g/; t
12960 s/$/\\/; p
12961 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12962 ' >>$CONFIG_STATUS <conf$$subs.sed
12963 rm -f conf$$subs.sed
12964 cat >>$CONFIG_STATUS <<_ACEOF
12965 CEOF$ac_eof
12966 _ACEOF
12969 ac_delim='%!_!# '
12970 for ac_last_try in false false false false false :; do
12971 cat >conf$$subs.sed <<_ACEOF
12972 aros_modules_debug!$aros_modules_debug$ac_delim
12973 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12974 gcc_target_cpu!$gcc_target_cpu$ac_delim
12975 LTLIBOBJS!$LTLIBOBJS$ac_delim
12976 _ACEOF
12978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
12979 break
12980 elif $ac_last_try; then
12981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12982 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12983 { (exit 1); exit 1; }; }
12984 else
12985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12987 done
12989 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12990 if test -n "$ac_eof"; then
12991 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12992 ac_eof=`expr $ac_eof + 1`
12995 cat >>$CONFIG_STATUS <<_ACEOF
12996 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
12997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12998 _ACEOF
12999 sed '
13000 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13001 s/^/s,@/; s/!/@,|#_!!_#|/
13004 s/'"$ac_delim"'$/,g/; t
13005 s/$/\\/; p
13006 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13007 ' >>$CONFIG_STATUS <conf$$subs.sed
13008 rm -f conf$$subs.sed
13009 cat >>$CONFIG_STATUS <<_ACEOF
13010 :end
13011 s/|#_!!_#|//g
13012 CEOF$ac_eof
13013 _ACEOF
13016 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13017 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13018 # trailing colons and then remove the whole line if VPATH becomes empty
13019 # (actually we leave an empty line to preserve line numbers).
13020 if test "x$srcdir" = x.; then
13021 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13022 s/:*\$(srcdir):*/:/
13023 s/:*\${srcdir}:*/:/
13024 s/:*@srcdir@:*/:/
13025 s/^\([^=]*=[ ]*\):*/\1/
13026 s/:*$//
13027 s/^[^=]*=[ ]*$//
13031 cat >>$CONFIG_STATUS <<\_ACEOF
13032 fi # test -n "$CONFIG_FILES"
13035 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13037 case $ac_tag in
13038 :[FHLC]) ac_mode=$ac_tag; continue;;
13039 esac
13040 case $ac_mode$ac_tag in
13041 :[FHL]*:*);;
13042 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13043 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13044 { (exit 1); exit 1; }; };;
13045 :[FH]-) ac_tag=-:-;;
13046 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13047 esac
13048 ac_save_IFS=$IFS
13049 IFS=:
13050 set x $ac_tag
13051 IFS=$ac_save_IFS
13052 shift
13053 ac_file=$1
13054 shift
13056 case $ac_mode in
13057 :L) ac_source=$1;;
13058 :[FH])
13059 ac_file_inputs=
13060 for ac_f
13062 case $ac_f in
13063 -) ac_f="$tmp/stdin";;
13064 *) # Look for the file first in the build tree, then in the source tree
13065 # (if the path is not absolute). The absolute path cannot be DOS-style,
13066 # because $ac_f cannot contain `:'.
13067 test -f "$ac_f" ||
13068 case $ac_f in
13069 [\\/$]*) false;;
13070 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13071 esac ||
13072 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13073 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13074 { (exit 1); exit 1; }; };;
13075 esac
13076 ac_file_inputs="$ac_file_inputs $ac_f"
13077 done
13079 # Let's still pretend it is `configure' which instantiates (i.e., don't
13080 # use $as_me), people would be surprised to read:
13081 # /* config.h. Generated by config.status. */
13082 configure_input="Generated from "`IFS=:
13083 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13084 if test x"$ac_file" != x-; then
13085 configure_input="$ac_file. $configure_input"
13086 { echo "$as_me:$LINENO: creating $ac_file" >&5
13087 echo "$as_me: creating $ac_file" >&6;}
13090 case $ac_tag in
13091 *:-:* | *:-) cat >"$tmp/stdin";;
13092 esac
13094 esac
13096 ac_dir=`$as_dirname -- "$ac_file" ||
13097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13098 X"$ac_file" : 'X\(//\)[^/]' \| \
13099 X"$ac_file" : 'X\(//\)$' \| \
13100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13101 echo X"$ac_file" |
13102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13103 s//\1/
13106 /^X\(\/\/\)[^/].*/{
13107 s//\1/
13110 /^X\(\/\/\)$/{
13111 s//\1/
13114 /^X\(\/\).*/{
13115 s//\1/
13118 s/.*/./; q'`
13119 { as_dir="$ac_dir"
13120 case $as_dir in #(
13121 -*) as_dir=./$as_dir;;
13122 esac
13123 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13124 as_dirs=
13125 while :; do
13126 case $as_dir in #(
13127 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13128 *) as_qdir=$as_dir;;
13129 esac
13130 as_dirs="'$as_qdir' $as_dirs"
13131 as_dir=`$as_dirname -- "$as_dir" ||
13132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133 X"$as_dir" : 'X\(//\)[^/]' \| \
13134 X"$as_dir" : 'X\(//\)$' \| \
13135 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13136 echo X"$as_dir" |
13137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13138 s//\1/
13141 /^X\(\/\/\)[^/].*/{
13142 s//\1/
13145 /^X\(\/\/\)$/{
13146 s//\1/
13149 /^X\(\/\).*/{
13150 s//\1/
13153 s/.*/./; q'`
13154 test -d "$as_dir" && break
13155 done
13156 test -z "$as_dirs" || eval "mkdir $as_dirs"
13157 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13158 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13159 { (exit 1); exit 1; }; }; }
13160 ac_builddir=.
13162 case "$ac_dir" in
13163 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13165 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13166 # A ".." for each directory in $ac_dir_suffix.
13167 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13168 case $ac_top_builddir_sub in
13169 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13170 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13171 esac ;;
13172 esac
13173 ac_abs_top_builddir=$ac_pwd
13174 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13175 # for backward compatibility:
13176 ac_top_builddir=$ac_top_build_prefix
13178 case $srcdir in
13179 .) # We are building in place.
13180 ac_srcdir=.
13181 ac_top_srcdir=$ac_top_builddir_sub
13182 ac_abs_top_srcdir=$ac_pwd ;;
13183 [\\/]* | ?:[\\/]* ) # Absolute name.
13184 ac_srcdir=$srcdir$ac_dir_suffix;
13185 ac_top_srcdir=$srcdir
13186 ac_abs_top_srcdir=$srcdir ;;
13187 *) # Relative name.
13188 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13189 ac_top_srcdir=$ac_top_build_prefix$srcdir
13190 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13191 esac
13192 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13195 case $ac_mode in
13198 # CONFIG_FILE
13201 _ACEOF
13203 cat >>$CONFIG_STATUS <<\_ACEOF
13204 # If the template does not know about datarootdir, expand it.
13205 # FIXME: This hack should be removed a few years after 2.60.
13206 ac_datarootdir_hack=; ac_datarootdir_seen=
13208 case `sed -n '/datarootdir/ {
13212 /@datadir@/p
13213 /@docdir@/p
13214 /@infodir@/p
13215 /@localedir@/p
13216 /@mandir@/p
13217 ' $ac_file_inputs` in
13218 *datarootdir*) ac_datarootdir_seen=yes;;
13219 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13220 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13221 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13222 _ACEOF
13223 cat >>$CONFIG_STATUS <<_ACEOF
13224 ac_datarootdir_hack='
13225 s&@datadir@&$datadir&g
13226 s&@docdir@&$docdir&g
13227 s&@infodir@&$infodir&g
13228 s&@localedir@&$localedir&g
13229 s&@mandir@&$mandir&g
13230 s&\\\${datarootdir}&$datarootdir&g' ;;
13231 esac
13232 _ACEOF
13234 # Neutralize VPATH when `$srcdir' = `.'.
13235 # Shell code in configure.ac might set extrasub.
13236 # FIXME: do we really want to maintain this feature?
13237 cat >>$CONFIG_STATUS <<_ACEOF
13238 sed "$ac_vpsub
13239 $extrasub
13240 _ACEOF
13241 cat >>$CONFIG_STATUS <<\_ACEOF
13243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13244 s&@configure_input@&$configure_input&;t t
13245 s&@top_builddir@&$ac_top_builddir_sub&;t t
13246 s&@srcdir@&$ac_srcdir&;t t
13247 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13248 s&@top_srcdir@&$ac_top_srcdir&;t t
13249 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13250 s&@builddir@&$ac_builddir&;t t
13251 s&@abs_builddir@&$ac_abs_builddir&;t t
13252 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13253 $ac_datarootdir_hack
13254 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13259 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13260 which seems to be undefined. Please make sure it is defined." >&5
13261 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13262 which seems to be undefined. Please make sure it is defined." >&2;}
13264 rm -f "$tmp/stdin"
13265 case $ac_file in
13266 -) cat "$tmp/out"; rm -f "$tmp/out";;
13267 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13268 esac
13272 # CONFIG_HEADER
13274 _ACEOF
13276 # Transform confdefs.h into a sed script `conftest.defines', that
13277 # substitutes the proper values into config.h.in to produce config.h.
13278 rm -f conftest.defines conftest.tail
13279 # First, append a space to every undef/define line, to ease matching.
13280 echo 's/$/ /' >conftest.defines
13281 # Then, protect against being on the right side of a sed subst, or in
13282 # an unquoted here document, in config.status. If some macros were
13283 # called several times there might be several #defines for the same
13284 # symbol, which is useless. But do not sort them, since the last
13285 # AC_DEFINE must be honored.
13286 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13287 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13288 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13289 # PARAMS is the parameter list in the macro definition--in most cases, it's
13290 # just an empty string.
13291 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13292 ac_dB='\\)[ (].*,\\1define\\2'
13293 ac_dC=' '
13294 ac_dD=' ,'
13296 uniq confdefs.h |
13297 sed -n '
13298 t rset
13299 :rset
13300 s/^[ ]*#[ ]*define[ ][ ]*//
13301 t ok
13304 s/[\\&,]/\\&/g
13305 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13306 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13307 ' >>conftest.defines
13309 # Remove the space that was appended to ease matching.
13310 # Then replace #undef with comments. This is necessary, for
13311 # example, in the case of _POSIX_SOURCE, which is predefined and required
13312 # on some systems where configure will not decide to define it.
13313 # (The regexp can be short, since the line contains either #define or #undef.)
13314 echo 's/ $//
13315 s,^[ #]*u.*,/* & */,' >>conftest.defines
13317 # Break up conftest.defines:
13318 ac_max_sed_lines=50
13320 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13321 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13322 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13323 # et cetera.
13324 ac_in='$ac_file_inputs'
13325 ac_out='"$tmp/out1"'
13326 ac_nxt='"$tmp/out2"'
13328 while :
13330 # Write a here document:
13331 cat >>$CONFIG_STATUS <<_ACEOF
13332 # First, check the format of the line:
13333 cat >"\$tmp/defines.sed" <<\\CEOF
13334 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13335 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13337 :def
13338 _ACEOF
13339 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13340 echo 'CEOF
13341 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13342 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13343 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13344 grep . conftest.tail >/dev/null || break
13345 rm -f conftest.defines
13346 mv conftest.tail conftest.defines
13347 done
13348 rm -f conftest.defines conftest.tail
13350 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13351 cat >>$CONFIG_STATUS <<\_ACEOF
13352 if test x"$ac_file" != x-; then
13353 echo "/* $configure_input */" >"$tmp/config.h"
13354 cat "$ac_result" >>"$tmp/config.h"
13355 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13356 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13357 echo "$as_me: $ac_file is unchanged" >&6;}
13358 else
13359 rm -f $ac_file
13360 mv "$tmp/config.h" $ac_file
13362 else
13363 echo "/* $configure_input */"
13364 cat "$ac_result"
13366 rm -f "$tmp/out12"
13369 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13370 echo "$as_me: executing $ac_file commands" >&6;}
13372 esac
13375 case $ac_file$ac_mode in
13376 "compiler_executable":C)
13377 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13378 mkdir -p $prefix
13379 prefix="${prefix}/${aros_target_cpu}-aros"
13380 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13382 echo ${prefix}
13383 echo ${prefix2}
13384 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13386 ln -sf ${prefix2}-gcc ${prefix}-gcc
13387 ln -sf ${prefix2}-ld ${prefix}-ld
13389 ln -sf $aros_target_as_ln ${prefix}-as
13390 ln -sf $aros_target_nm_ln ${prefix}-nm
13391 ln -sf $aros_target_ar_ln ${prefix}-ar
13392 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
13393 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
13394 ln -sf $aros_target_objdump_ln ${prefix}-objdump
13395 ln -sf $aros_target_strip_ln ${prefix}-strip
13397 ln -sf $aros_target_as_ln ${prefix2}-as
13398 ln -sf $aros_target_nm_ln ${prefix2}-nm
13399 ln -sf $aros_target_ar_ln ${prefix2}-ar
13400 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
13401 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
13402 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
13403 ln -sf $aros_target_strip_ln ${prefix2}-strip
13405 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
13406 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13407 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
13410 esac
13411 done # for ac_tag
13414 { (exit 0); exit 0; }
13415 _ACEOF
13416 chmod +x $CONFIG_STATUS
13417 ac_clean_files=$ac_clean_files_save
13420 # configure is writing to config.log, and then calls config.status.
13421 # config.status does its own redirection, appending to config.log.
13422 # Unfortunately, on DOS this fails, as config.log is still kept open
13423 # by configure, so config.status won't be able to write to it; its
13424 # output is simply discarded. So we exec the FD to /dev/null,
13425 # effectively closing config.log, so it can be properly (re)opened and
13426 # appended to by config.status. When coming back to configure, we
13427 # need to make the FD available again.
13428 if test "$no_create" != yes; then
13429 ac_cs_success=:
13430 ac_config_status_args=
13431 test "$silent" = yes &&
13432 ac_config_status_args="$ac_config_status_args --quiet"
13433 exec 5>/dev/null
13434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13435 exec 5>>config.log
13436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13437 # would make configure fail if this is the last instruction.
13438 $ac_cs_success || { (exit 1); exit 1; }
13443 #XXX compatability...
13444 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13446 if test -n "$aros_shared_cflags" ; then
13447 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13448 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg