Handle results of ACTION_SEEK and ACTION_SET_FILE_SIZE properly.
[cake.git] / configure
blob71c8082c519077112c27739336dd373a98edde01
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="mmakefile"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 build
676 build_cpu
677 build_vendor
678 build_os
679 host
680 host_cpu
681 host_vendor
682 host_os
684 CFLAGS
685 LDFLAGS
686 CPPFLAGS
687 ac_ct_CC
688 EXEEXT
689 OBJEXT
692 MMAKE
693 aros_host_ld
694 aros_host_aclocal
695 aros_host_autoconf
696 aros_host_autoheader
697 aros_host_automake
698 aros_host_ar
699 aros_host_ranlib
700 aros_host_strip
704 ECHO
705 MKDIR
706 TOUCH
707 SORT
708 UNIQ
711 BISON
712 FLEX
713 PNGTOPNM
714 PPMTOILBM
716 CHMOD
717 PYTHON
718 PYTHON_VERSION
719 PYTHON_PREFIX
720 PYTHON_EXEC_PREFIX
721 PYTHON_PLATFORM
722 pythondir
723 pkgpythondir
724 pyexecdir
725 pkgpyexecdir
728 TEST
730 GREP
731 EGREP
732 LIBOBJS
733 DISTCC
734 CCACHE
735 LIBLZO
736 aros_kernel_cc
737 aros_target_as_ln
738 aros_kernel_ld
739 aros_target_ar_ln
740 aros_target_nm_ln
741 aros_target_objcopy_ln
742 aros_target_objdump_ln
743 aros_target_ranlib_ln
744 aros_target_strip_ln
745 aros_target_nostdinc_cflags
746 aros_target_nostartup_ldflags
747 aros_target_nix_ldflags
748 aros_target_detach_ldflags
749 aros_target_nostdlib_ldflags
750 aros_cflags_iquote
751 aros_cflags_iquote_end
752 XMKMF
753 SDL_CONFIG
754 SDL_CFLAGS
755 SDL_LIBS
756 aros_arch
757 aros_cpu
758 aros_flavour
759 aros_flavour_uc
760 AROS_BUILDDIR
761 AROS_SRCDIR
762 AROS_PORTSSRCDIR
763 aros_cc_pre
764 aros_host_arch
765 aros_host_cpu
766 aros_host_cc
767 aros_host_make
768 aros_host_cflags
769 aros_host_ldflags
770 aros_host_debug
771 aros_host_mkdep
772 aros_host_mkargs
773 aros_host_exe_suffix
774 aros_host_lib_suffix
775 aros_tools_dir
776 aros_target_guitheme
777 aros_target_bootloader
778 aros_target_arch
779 aros_target_cpu
780 aros_target_variant
781 aros_target_suffix
782 aros_target_incl
783 aros_target_ar
784 aros_target_ranlib
785 aros_kernel_nm
786 aros_target_cc
787 aros_target_as
788 aros_target_ld
789 aros_target_cc_includes
790 aros_target_cc_path
791 aros_target_objdump
792 aros_target_objcopy
793 aros_target_strip
794 aros_target_nm
795 aros_shared_default
796 aros_shared_ld
797 aros_object_format
798 aros_compiler_libs
799 aros_config_cflags
800 aros_config_aflags
801 aros_config_ldflags
802 aros_shared_cflags
803 aros_shared_aflags
804 aros_shared_ldflags
805 aros_kernel_ldflags
806 aros_debug_cflags
807 aros_debug_aflags
808 aros_debug_ldflags
809 aros_target_genmap
810 aros_target_strip_flags
811 x11_hidd_target
812 sdl_hidd_target
813 aros_default_wbwidth
814 aros_default_wbheight
815 aros_default_wbdepth
816 DO_XSHM_SUPPORT
817 DO_VIDMODE_SUPPORT
818 aros_host_x11_includes
819 aros_host_x11_libdirs
820 aros_host_sdl_cflags
821 aros_host_sdl_libs
822 aros_bochs_hack
823 aros_serial_debug
824 aros_palm_debug_hack
825 aros_nesting_supervisor
826 ENABLE_DBUS
827 DBUS_CFLAGS
828 DBUS_LIBFLAGS
829 KERNEL_DBUS_KOBJ
830 KERNEL_DBUS_INCLUDES
831 aros_debug
832 aros_mungwall_debug
833 aros_stack_debug
834 aros_modules_debug
835 ignore_undefined_symbols
836 gcc_target_cpu
837 LTLIBOBJS'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_build_type
842 enable_debug
843 enable_distcc
844 enable_ccache
845 with_optimization
846 enable_target_variant
847 with_portssources
848 with_bootloader
849 with_theme
850 enable_includes
851 with_resolution
852 enable_bochs_hack
853 with_serial_debug
854 enable_palm_debug_hack
855 enable_nesting_supervisor
856 enable_x11_hidd
857 with_x
858 enable_x11_shm
859 enable_x11_vidmode
860 enable_sdl_hidd
861 with_sdl_prefix
862 with_sdl_exec_prefix
863 enable_sdltest
864 enable_dbus
866 ac_precious_vars='build_alias
867 host_alias
868 target_alias
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
875 XMKMF'
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
926 ac_prev=
927 ac_dashdash=
928 for ac_option
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
933 ac_prev=
934 continue
937 case $ac_option in
938 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *) ac_optarg=yes ;;
940 esac
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
946 ac_dashdash=yes ;;
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
965 --config-cache | -C)
966 cache_file=config.cache ;;
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
985 { (exit 1); exit 1; }; }
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1264 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1265 Try \`$0 --help' for more information." >&2
1266 { (exit 1); exit 1; }; }
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1273 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1274 { (exit 1); exit 1; }; }
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 esac
1287 done
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1292 { (exit 1); exit 1; }; }
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1299 { (exit 1); exit 1; }; } ;;
1300 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323 { (exit 1); exit 1; }; }
1324 done
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
1337 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used." >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347 test "$silent" = yes && exec 6>/dev/null
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1354 { (exit 1); exit 1; }; }
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1357 { (exit 1); exit 1; }; }
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1378 /^X\(\/\/\)$/{
1379 s//\1/
1382 /^X\(\/\).*/{
1383 s//\1/
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1391 else
1392 ac_srcdir_defaulted=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397 { (exit 1); exit 1; }; }
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1402 { (exit 1); exit 1; }; }
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
1428 \`configure' configures this package to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1437 Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 [PREFIX]
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1481 _ACEOF
1483 cat <<\_ACEOF
1485 X features:
1486 --x-includes=DIR X include files are in DIR
1487 --x-libraries=DIR X library files are in DIR
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 _ACEOF
1495 if test -n "$ac_init_help"; then
1497 cat <<\_ACEOF
1499 Optional Features:
1500 --disable-option-checking ignore unrecognized --enable/--with options
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-build-type=TYPE
1504 Select the build type. Available types are:
1505 personal, nightly, snapshot, milestone, release. Do
1506 NOT use this option unless you know what you are
1507 doing! (default=personal)
1508 --enable-debug=list Enable different types of debug. Commas or
1509 whitespaces can be used to separate the items in the
1510 list. Available types of debug are: all, none,
1511 messages, stack, mungwall, modules, symbols. If no
1512 list is provided then "all" is assumed.
1513 (default=none)
1514 --enable-distcc Use distcc as a front end to the compiler
1515 (default=no).
1516 --enable-ccache Use ccache as a front end to the compiler
1517 (default=no).
1518 --enable-target-variant=NAME
1519 Enable a specific target variant(default=none)
1520 --enable-includes=dir Alternative system include directory
1521 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1522 (default=no)
1523 --enable-palm-debug-hack
1524 Enable palm debug output hack in palm native
1525 (default=no)
1526 --enable-nesting-supervisor
1527 Enable nesting supervisor support in unix
1528 (default=no)
1529 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1530 --enable-x11-shm use X11 shared memory (default=auto)
1531 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1532 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1533 --disable-sdltest Do not try to compile and run a test SDL program
1534 --enable-dbus Enable DBUS support via dbus.library (default=no)
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-optimization=FLAGS
1540 Use optimization flags FLAGS (default=-O2).
1541 --with-portssources=DIR Where to download sourcecode for external ports
1542 --with-bootloader=NAME Use a specific bootloader
1543 --with-theme=NAME Use a specific GUI Theme
1544 --with-resolution=XRESxYRESxDEPTH
1545 Default resolution of the initial WorkbenchScreen
1546 --with-serial-debug Enable serial debug output in native (default=no)
1547 --with-x use the X Window System
1548 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1549 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CPP C preprocessor
1560 XMKMF Path to xmkmf, Makefile generator for X Window System
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 _ACEOF
1566 ac_status=$?
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1593 case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626 cat <<\_ACEOF
1627 configure
1628 generated by GNU Autoconf 2.62
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635 exit
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1641 It was created by $as_me, which was
1642 generated by GNU Autoconf 2.62. Invocation command line was
1644 $ $0 $@
1646 _ACEOF
1647 exec 5>>config.log
1649 cat <<_ASUNAME
1650 ## --------- ##
1651 ## Platform. ##
1652 ## --------- ##
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1663 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1664 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1667 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1668 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1669 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1671 _ASUNAME
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 $as_echo "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1682 } >&5
1684 cat >&5 <<_ACEOF
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1691 _ACEOF
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1705 for ac_arg
1707 case $ac_arg in
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1711 continue ;;
1712 *\'*)
1713 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714 esac
1715 case $ac_pass in
1716 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1721 else
1722 case $ac_arg in
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729 esac
1731 -* ) ac_must_keep_next=true ;;
1732 esac
1734 ac_configure_args="$ac_configure_args '$ac_arg'"
1736 esac
1737 done
1738 done
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Save into config.log some information that might help in debugging.
1750 echo
1752 cat <<\_ASBOX
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1756 _ASBOX
1757 echo
1758 # The following way of writing the cache mishandles newlines in values,
1760 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761 eval ac_val=\$$ac_var
1762 case $ac_val in #(
1763 *${as_nl}*)
1764 case $ac_var in #(
1765 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1766 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1767 esac
1768 case $ac_var in #(
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) $as_unset $ac_var ;;
1772 esac ;;
1773 esac
1774 done
1775 (set) 2>&1 |
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1778 sed -n \
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781 ;; #(
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785 esac |
1786 sort
1788 echo
1790 cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795 echo
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1799 case $ac_val in
1800 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 esac
1802 $as_echo "$ac_var='\''$ac_val'\''"
1803 done | sort
1804 echo
1806 if test -n "$ac_subst_files"; then
1807 cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812 echo
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1816 case $ac_val in
1817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 esac
1819 $as_echo "$ac_var='\''$ac_val'\''"
1820 done | sort
1821 echo
1824 if test -s confdefs.h; then
1825 cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830 echo
1831 cat confdefs.h
1832 echo
1834 test "$ac_signal" != 0 &&
1835 $as_echo "$as_me: caught signal $ac_signal"
1836 $as_echo "$as_me: exit $exit_status"
1837 } >&5
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840 exit $exit_status
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1879 ac_site_file1=NONE
1880 ac_site_file2=NONE
1881 if test -n "$CONFIG_SITE"; then
1882 ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884 ac_site_file1=$prefix/share/config.site
1885 ac_site_file2=$prefix/etc/config.site
1886 else
1887 ac_site_file1=$ac_default_prefix/share/config.site
1888 ac_site_file2=$ac_default_prefix/etc/config.site
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 test "x$ac_site_file" = xNONE && continue
1893 if test -r "$ac_site_file"; then
1894 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1897 . "$ac_site_file"
1899 done
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907 case $cache_file in
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1910 esac
1912 else
1913 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915 >$cache_file
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1927 set,)
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1931 ,set)
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1935 ,);;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x $ac_old_val`
1940 ac_new_val_w=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted=:
1945 else
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1954 fi;;
1955 esac
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1958 case $ac_new_val in
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1961 esac
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965 esac
1967 done
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 ac_aux_dir=
2001 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2002 if test -f "$ac_dir/install-sh"; then
2003 ac_aux_dir=$ac_dir
2004 ac_install_sh="$ac_aux_dir/install-sh -c"
2005 break
2006 elif test -f "$ac_dir/install.sh"; then
2007 ac_aux_dir=$ac_dir
2008 ac_install_sh="$ac_aux_dir/install.sh -c"
2009 break
2010 elif test -f "$ac_dir/shtool"; then
2011 ac_aux_dir=$ac_dir
2012 ac_install_sh="$ac_aux_dir/shtool install -c"
2013 break
2015 done
2016 if test -z "$ac_aux_dir"; then
2017 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
2018 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
2019 { (exit 1); exit 1; }; }
2022 # These three variables are undocumented and unsupported,
2023 # and are intended to be withdrawn in a future Autoconf release.
2024 # They can cause serious problems if a builder's source tree is in a directory
2025 # whose full name contains unusual characters.
2026 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2027 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2028 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2032 # Check what host we are running on.
2033 # If a target is not suggested, we use this one.
2034 # Note that what we call a target, Autoconf calls a host.
2035 # Make sure we can run config.sub.
2036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039 { (exit 1); exit 1; }; }
2041 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2042 $as_echo_n "checking build system type... " >&6; }
2043 if test "${ac_cv_build+set}" = set; then
2044 $as_echo_n "(cached) " >&6
2045 else
2046 ac_build_alias=$build_alias
2047 test "x$ac_build_alias" = x &&
2048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049 test "x$ac_build_alias" = x &&
2050 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052 { (exit 1); exit 1; }; }
2053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2059 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060 $as_echo "$ac_cv_build" >&6; }
2061 case $ac_cv_build in
2062 *-*-*) ;;
2063 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2065 { (exit 1); exit 1; }; };;
2066 esac
2067 build=$ac_cv_build
2068 ac_save_IFS=$IFS; IFS='-'
2069 set x $ac_cv_build
2070 shift
2071 build_cpu=$1
2072 build_vendor=$2
2073 shift; shift
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2076 build_os=$*
2077 IFS=$ac_save_IFS
2078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2081 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2082 $as_echo_n "checking host system type... " >&6; }
2083 if test "${ac_cv_host+set}" = set; then
2084 $as_echo_n "(cached) " >&6
2085 else
2086 if test "x$host_alias" = x; then
2087 ac_cv_host=$ac_cv_build
2088 else
2089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2096 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097 $as_echo "$ac_cv_host" >&6; }
2098 case $ac_cv_host in
2099 *-*-*) ;;
2100 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2102 { (exit 1); exit 1; }; };;
2103 esac
2104 host=$ac_cv_host
2105 ac_save_IFS=$IFS; IFS='-'
2106 set x $ac_cv_host
2107 shift
2108 host_cpu=$1
2109 host_vendor=$2
2110 shift; shift
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2113 host_os=$*
2114 IFS=$ac_save_IFS
2115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2119 # The AROS target is slightly different to the normal GNU style
2120 # format. We don't have the middle part, and we reverse the order
2121 # of the $(CPU) and $(OS) bits.
2123 # Don't strip the version of the target yet, it might be
2124 # useful on some systems.
2126 { $as_echo "$as_me:$LINENO: checking for AROS style target" >&5
2127 $as_echo_n "checking for AROS style target... " >&6; }
2129 if test "$target" = "NONE" ; then
2130 target=$host_os-$host_cpu
2131 cross_compile=no
2132 else
2133 if test "$target" = "" ; then
2134 target=$host_os-$host_cpu
2135 cross_compile=no
2136 else
2137 cross_compile=yes
2140 { $as_echo "$as_me:$LINENO: result: $target" >&5
2141 $as_echo "$target" >&6; }
2143 #don't know where else to put this...
2144 { $as_echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2145 $as_echo_n "checking Building AROS in .. ... " >&6; }
2146 AROS_BUILDDIR=$PWD
2147 { $as_echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2148 $as_echo "$AROS_BUILDDIR" >&6; }
2150 { $as_echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2151 $as_echo_n "checking AROS Source in .. ... " >&6; }
2152 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2153 AROS_SRCDIR=${srcpwd}
2154 { $as_echo "$as_me:$LINENO: result: $AROS_SRCDIR" >&5
2155 $as_echo "$AROS_SRCDIR" >&6; }
2157 # Parse the target field into something useful.
2159 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2160 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2163 aros_default_wbwidth=800
2164 aros_default_wbheight=600
2165 aros_default_wbdepth=4
2168 # The first step is to find the host binaries.
2169 # Check for a compiler.
2170 ac_ext=c
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2182 else
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2197 done
2198 done
2199 IFS=$as_save_IFS
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2207 else
2208 { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2214 if test -z "$ac_cv_prog_CC"; then
2215 ac_ct_CC=$CC
2216 # Extract the first word of "gcc", so it can be a program name with args.
2217 set dummy gcc; ac_word=$2
2218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 $as_echo_n "checking for $ac_word... " >&6; }
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221 $as_echo_n "(cached) " >&6
2222 else
2223 if test -n "$ac_ct_CC"; then
2224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_ac_ct_CC="gcc"
2234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2237 done
2238 done
2239 IFS=$as_save_IFS
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 $as_echo "$ac_ct_CC" >&6; }
2247 else
2248 { $as_echo "$as_me:$LINENO: result: no" >&5
2249 $as_echo "no" >&6; }
2252 if test "x$ac_ct_CC" = x; then
2253 CC=""
2254 else
2255 case $cross_compiling:$ac_tool_warned in
2256 yes:)
2257 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2258 whose name does not start with the host triplet. If you think this
2259 configuration is useful to you, please write to autoconf@gnu.org." >&5
2260 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2261 whose name does not start with the host triplet. If you think this
2262 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2263 ac_tool_warned=yes ;;
2264 esac
2265 CC=$ac_ct_CC
2267 else
2268 CC="$ac_cv_prog_CC"
2271 if test -z "$CC"; then
2272 if test -n "$ac_tool_prefix"; then
2273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2274 set dummy ${ac_tool_prefix}cc; ac_word=$2
2275 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 $as_echo_n "checking for $ac_word... " >&6; }
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 $as_echo_n "(cached) " >&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_CC="${ac_tool_prefix}cc"
2291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2294 done
2295 done
2296 IFS=$as_save_IFS
2300 CC=$ac_cv_prog_CC
2301 if test -n "$CC"; then
2302 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2303 $as_echo "$CC" >&6; }
2304 else
2305 { $as_echo "$as_me:$LINENO: result: no" >&5
2306 $as_echo "no" >&6; }
2312 if test -z "$CC"; then
2313 # Extract the first word of "cc", so it can be a program name with args.
2314 set dummy cc; ac_word=$2
2315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if test "${ac_cv_prog_CC+set}" = set; then
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2322 else
2323 ac_prog_rejected=no
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2332 ac_prog_rejected=yes
2333 continue
2335 ac_cv_prog_CC="cc"
2336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2339 done
2340 done
2341 IFS=$as_save_IFS
2343 if test $ac_prog_rejected = yes; then
2344 # We found a bogon in the path, so make sure we never use it.
2345 set dummy $ac_cv_prog_CC
2346 shift
2347 if test $# != 0; then
2348 # We chose a different compiler from the bogus one.
2349 # However, it has the same basename, so the bogon will be chosen
2350 # first if we set CC to just the basename; use the full file name.
2351 shift
2352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2357 CC=$ac_cv_prog_CC
2358 if test -n "$CC"; then
2359 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2360 $as_echo "$CC" >&6; }
2361 else
2362 { $as_echo "$as_me:$LINENO: result: no" >&5
2363 $as_echo "no" >&6; }
2368 if test -z "$CC"; then
2369 if test -n "$ac_tool_prefix"; then
2370 for ac_prog in cl.exe
2372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2393 done
2394 done
2395 IFS=$as_save_IFS
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2403 else
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405 $as_echo "no" >&6; }
2409 test -n "$CC" && break
2410 done
2412 if test -z "$CC"; then
2413 ac_ct_CC=$CC
2414 for ac_prog in cl.exe
2416 # Extract the first word of "$ac_prog", so it can be a program name with args.
2417 set dummy $ac_prog; ac_word=$2
2418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_ac_ct_CC="$ac_prog"
2434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2437 done
2438 done
2439 IFS=$as_save_IFS
2443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446 $as_echo "$ac_ct_CC" >&6; }
2447 else
2448 { $as_echo "$as_me:$LINENO: result: no" >&5
2449 $as_echo "no" >&6; }
2453 test -n "$ac_ct_CC" && break
2454 done
2456 if test "x$ac_ct_CC" = x; then
2457 CC=""
2458 else
2459 case $cross_compiling:$ac_tool_warned in
2460 yes:)
2461 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&5
2464 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet. If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467 ac_tool_warned=yes ;;
2468 esac
2469 CC=$ac_ct_CC
2476 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477 See \`config.log' for more details." >&5
2478 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2479 See \`config.log' for more details." >&2;}
2480 { (exit 1); exit 1; }; }
2482 # Provide some information about the compiler.
2483 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2484 set X $ac_compile
2485 ac_compiler=$2
2486 { (ac_try="$ac_compiler --version >&5"
2487 case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490 esac
2491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2492 $as_echo "$ac_try_echo") >&5
2493 (eval "$ac_compiler --version >&5") 2>&5
2494 ac_status=$?
2495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (ac_try="$ac_compiler -v >&5"
2498 case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501 esac
2502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2503 $as_echo "$ac_try_echo") >&5
2504 (eval "$ac_compiler -v >&5") 2>&5
2505 ac_status=$?
2506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }
2508 { (ac_try="$ac_compiler -V >&5"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2514 $as_echo "$ac_try_echo") >&5
2515 (eval "$ac_compiler -V >&5") 2>&5
2516 ac_status=$?
2517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2528 main ()
2532 return 0;
2534 _ACEOF
2535 ac_clean_files_save=$ac_clean_files
2536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2537 # Try to create an executable without -o first, disregard a.out.
2538 # It will help us diagnose broken compilers, and finding out an intuition
2539 # of exeext.
2540 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541 $as_echo_n "checking for C compiler default output file name... " >&6; }
2542 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 # The possible output files:
2545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2547 ac_rmfiles=
2548 for ac_file in $ac_files
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2552 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2553 esac
2554 done
2555 rm -f $ac_rmfiles
2557 if { (ac_try="$ac_link_default"
2558 case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2563 $as_echo "$ac_try_echo") >&5
2564 (eval "$ac_link_default") 2>&5
2565 ac_status=$?
2566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; then
2568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2570 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2571 # so that the user can short-circuit this test for compilers unknown to
2572 # Autoconf.
2573 for ac_file in $ac_files ''
2575 test -f "$ac_file" || continue
2576 case $ac_file in
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2579 [ab].out )
2580 # We found the default executable, but exeext='' is most
2581 # certainly right.
2582 break;;
2583 *.* )
2584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2585 then :; else
2586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2588 # We set ac_cv_exeext here because the later test for it is not
2589 # safe: cross compilers may not add the suffix if given an `-o'
2590 # argument, so we may need to know it at that point already.
2591 # Even if this section looks crufty: it has the advantage of
2592 # actually working.
2593 break;;
2595 break;;
2596 esac
2597 done
2598 test "$ac_cv_exeext" = no && ac_cv_exeext=
2600 else
2601 ac_file=''
2604 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2605 $as_echo "$ac_file" >&6; }
2606 if test -z "$ac_file"; then
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2611 See \`config.log' for more details." >&5
2612 $as_echo "$as_me: error: C compiler cannot create executables
2613 See \`config.log' for more details." >&2;}
2614 { (exit 77); exit 77; }; }
2617 ac_exeext=$ac_cv_exeext
2619 # Check that the compiler produces executables we can run. If not, either
2620 # the compiler is broken, or we cross compile.
2621 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2622 $as_echo_n "checking whether the C compiler works... " >&6; }
2623 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2624 # If not cross compiling, check that we can run a simple program.
2625 if test "$cross_compiling" != yes; then
2626 if { ac_try='./$ac_file'
2627 { (case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630 esac
2631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2632 $as_echo "$ac_try_echo") >&5
2633 (eval "$ac_try") 2>&5
2634 ac_status=$?
2635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 cross_compiling=no
2638 else
2639 if test "$cross_compiling" = maybe; then
2640 cross_compiling=yes
2641 else
2642 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2643 If you meant to cross compile, use \`--host'.
2644 See \`config.log' for more details." >&5
2645 $as_echo "$as_me: error: cannot run C compiled programs.
2646 If you meant to cross compile, use \`--host'.
2647 See \`config.log' for more details." >&2;}
2648 { (exit 1); exit 1; }; }
2652 { $as_echo "$as_me:$LINENO: result: yes" >&5
2653 $as_echo "yes" >&6; }
2655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2656 ac_clean_files=$ac_clean_files_save
2657 # Check that the compiler produces executables we can run. If not, either
2658 # the compiler is broken, or we cross compile.
2659 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2660 $as_echo_n "checking whether we are cross compiling... " >&6; }
2661 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2662 $as_echo "$cross_compiling" >&6; }
2664 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2665 $as_echo_n "checking for suffix of executables... " >&6; }
2666 if { (ac_try="$ac_link"
2667 case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2672 $as_echo "$ac_try_echo") >&5
2673 (eval "$ac_link") 2>&5
2674 ac_status=$?
2675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; then
2677 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2678 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2679 # work properly (i.e., refer to `conftest.exe'), while it won't with
2680 # `rm'.
2681 for ac_file in conftest.exe conftest conftest.*; do
2682 test -f "$ac_file" || continue
2683 case $ac_file in
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2685 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2686 break;;
2687 * ) break;;
2688 esac
2689 done
2690 else
2691 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2692 See \`config.log' for more details." >&5
2693 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2698 rm -f conftest$ac_cv_exeext
2699 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2700 $as_echo "$ac_cv_exeext" >&6; }
2702 rm -f conftest.$ac_ext
2703 EXEEXT=$ac_cv_exeext
2704 ac_exeext=$EXEEXT
2705 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2706 $as_echo_n "checking for suffix of object files... " >&6; }
2707 if test "${ac_cv_objext+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2709 else
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 main ()
2722 return 0;
2724 _ACEOF
2725 rm -f conftest.o conftest.obj
2726 if { (ac_try="$ac_compile"
2727 case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732 $as_echo "$ac_try_echo") >&5
2733 (eval "$ac_compile") 2>&5
2734 ac_status=$?
2735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; then
2737 for ac_file in conftest.o conftest.obj conftest.*; do
2738 test -f "$ac_file" || continue;
2739 case $ac_file in
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2742 break;;
2743 esac
2744 done
2745 else
2746 $as_echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2750 See \`config.log' for more details." >&5
2751 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2756 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2758 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2759 $as_echo "$ac_cv_objext" >&6; }
2760 OBJEXT=$ac_cv_objext
2761 ac_objext=$OBJEXT
2762 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2763 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2764 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2765 $as_echo_n "(cached) " >&6
2766 else
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2777 #ifndef __GNUC__
2778 choke me
2779 #endif
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2792 $as_echo "$ac_try_echo") >&5
2793 (eval "$ac_compile") 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } && {
2800 test -z "$ac_c_werror_flag" ||
2801 test ! -s conftest.err
2802 } && test -s conftest.$ac_objext; then
2803 ac_compiler_gnu=yes
2804 else
2805 $as_echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 ac_compiler_gnu=no
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2815 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2816 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2817 if test $ac_compiler_gnu = yes; then
2818 GCC=yes
2819 else
2820 GCC=
2822 ac_test_CFLAGS=${CFLAGS+set}
2823 ac_save_CFLAGS=$CFLAGS
2824 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2825 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2826 if test "${ac_cv_prog_cc_g+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2828 else
2829 ac_save_c_werror_flag=$ac_c_werror_flag
2830 ac_c_werror_flag=yes
2831 ac_cv_prog_cc_g=no
2832 CFLAGS="-g"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 main ()
2845 return 0;
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856 (eval "$ac_compile") 2>conftest.er1
2857 ac_status=$?
2858 grep -v '^ *+' conftest.er1 >conftest.err
2859 rm -f conftest.er1
2860 cat conftest.err >&5
2861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && {
2863 test -z "$ac_c_werror_flag" ||
2864 test ! -s conftest.err
2865 } && test -s conftest.$ac_objext; then
2866 ac_cv_prog_cc_g=yes
2867 else
2868 $as_echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2871 CFLAGS=""
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2880 main ()
2884 return 0;
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compile") 2>conftest.er1
2896 ac_status=$?
2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1
2899 cat conftest.err >&5
2900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } && {
2902 test -z "$ac_c_werror_flag" ||
2903 test ! -s conftest.err
2904 } && test -s conftest.$ac_objext; then
2906 else
2907 $as_echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2910 ac_c_werror_flag=$ac_save_c_werror_flag
2911 CFLAGS="-g"
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2920 main ()
2924 return 0;
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2934 $as_echo "$ac_try_echo") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.$ac_objext; then
2945 ac_cv_prog_cc_g=yes
2946 else
2947 $as_echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960 ac_c_werror_flag=$ac_save_c_werror_flag
2962 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2963 $as_echo "$ac_cv_prog_cc_g" >&6; }
2964 if test "$ac_test_CFLAGS" = set; then
2965 CFLAGS=$ac_save_CFLAGS
2966 elif test $ac_cv_prog_cc_g = yes; then
2967 if test "$GCC" = yes; then
2968 CFLAGS="-g -O2"
2969 else
2970 CFLAGS="-g"
2972 else
2973 if test "$GCC" = yes; then
2974 CFLAGS="-O2"
2975 else
2976 CFLAGS=
2979 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2981 if test "${ac_cv_prog_cc_c89+set}" = set; then
2982 $as_echo_n "(cached) " >&6
2983 else
2984 ac_cv_prog_cc_c89=no
2985 ac_save_CC=$CC
2986 cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <stdarg.h>
2993 #include <stdio.h>
2994 #include <sys/types.h>
2995 #include <sys/stat.h>
2996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2997 struct buf { int x; };
2998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2999 static char *e (p, i)
3000 char **p;
3001 int i;
3003 return p[i];
3005 static char *f (char * (*g) (char **, int), char **p, ...)
3007 char *s;
3008 va_list v;
3009 va_start (v,p);
3010 s = g (p, va_arg (v,int));
3011 va_end (v);
3012 return s;
3015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3016 function prototypes and stuff, but not '\xHH' hex character constants.
3017 These don't provoke an error unfortunately, instead are silently treated
3018 as 'x'. The following induces an error, until -std is added to get
3019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3020 array size at least. It's necessary to write '\x00'==0 to get something
3021 that's true only with -std. */
3022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3024 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3025 inside strings and character constants. */
3026 #define FOO(x) 'x'
3027 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3029 int test (int i, double x);
3030 struct s1 {int (*f) (int a);};
3031 struct s2 {int (*f) (double a);};
3032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3033 int argc;
3034 char **argv;
3036 main ()
3038 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3040 return 0;
3042 _ACEOF
3043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3044 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3046 CC="$ac_save_CC $ac_arg"
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3054 $as_echo "$ac_try_echo") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then
3065 ac_cv_prog_cc_c89=$ac_arg
3066 else
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3073 rm -f core conftest.err conftest.$ac_objext
3074 test "x$ac_cv_prog_cc_c89" != "xno" && break
3075 done
3076 rm -f conftest.$ac_ext
3077 CC=$ac_save_CC
3080 # AC_CACHE_VAL
3081 case "x$ac_cv_prog_cc_c89" in
3083 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3084 $as_echo "none needed" >&6; } ;;
3085 xno)
3086 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3087 $as_echo "unsupported" >&6; } ;;
3089 CC="$CC $ac_cv_prog_cc_c89"
3090 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3091 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3092 esac
3095 ac_ext=c
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 case $ac_cv_prog_cc_stdc in
3102 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3103 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3104 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3105 if test "${ac_cv_prog_cc_c99+set}" = set; then
3106 $as_echo_n "(cached) " >&6
3107 else
3108 ac_cv_prog_cc_c99=no
3109 ac_save_CC=$CC
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <stdarg.h>
3117 #include <stdbool.h>
3118 #include <stdlib.h>
3119 #include <wchar.h>
3120 #include <stdio.h>
3122 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3123 #define debug(...) fprintf (stderr, __VA_ARGS__)
3124 #define showlist(...) puts (#__VA_ARGS__)
3125 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3126 static void
3127 test_varargs_macros (void)
3129 int x = 1234;
3130 int y = 5678;
3131 debug ("Flag");
3132 debug ("X = %d\n", x);
3133 showlist (The first, second, and third items.);
3134 report (x>y, "x is %d but y is %d", x, y);
3137 // Check long long types.
3138 #define BIG64 18446744073709551615ull
3139 #define BIG32 4294967295ul
3140 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3141 #if !BIG_OK
3142 your preprocessor is broken;
3143 #endif
3144 #if BIG_OK
3145 #else
3146 your preprocessor is broken;
3147 #endif
3148 static long long int bignum = -9223372036854775807LL;
3149 static unsigned long long int ubignum = BIG64;
3151 struct incomplete_array
3153 int datasize;
3154 double data[];
3157 struct named_init {
3158 int number;
3159 const wchar_t *name;
3160 double average;
3163 typedef const char *ccp;
3165 static inline int
3166 test_restrict (ccp restrict text)
3168 // See if C++-style comments work.
3169 // Iterate through items via the restricted pointer.
3170 // Also check for declarations in for loops.
3171 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3172 continue;
3173 return 0;
3176 // Check varargs and va_copy.
3177 static void
3178 test_varargs (const char *format, ...)
3180 va_list args;
3181 va_start (args, format);
3182 va_list args_copy;
3183 va_copy (args_copy, args);
3185 const char *str;
3186 int number;
3187 float fnumber;
3189 while (*format)
3191 switch (*format++)
3193 case 's': // string
3194 str = va_arg (args_copy, const char *);
3195 break;
3196 case 'd': // int
3197 number = va_arg (args_copy, int);
3198 break;
3199 case 'f': // float
3200 fnumber = va_arg (args_copy, double);
3201 break;
3202 default:
3203 break;
3206 va_end (args_copy);
3207 va_end (args);
3211 main ()
3214 // Check bool.
3215 _Bool success = false;
3217 // Check restrict.
3218 if (test_restrict ("String literal") == 0)
3219 success = true;
3220 char *restrict newvar = "Another string";
3222 // Check varargs.
3223 test_varargs ("s, d' f .", "string", 65, 34.234);
3224 test_varargs_macros ();
3226 // Check flexible array members.
3227 struct incomplete_array *ia =
3228 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3229 ia->datasize = 10;
3230 for (int i = 0; i < ia->datasize; ++i)
3231 ia->data[i] = i * 1.234;
3233 // Check named initializers.
3234 struct named_init ni = {
3235 .number = 34,
3236 .name = L"Test wide string",
3237 .average = 543.34343,
3240 ni.number = 58;
3242 int dynamic_array[ni.number];
3243 dynamic_array[ni.number - 1] = 543;
3245 // work around unused variable warnings
3246 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3247 || dynamic_array[ni.number - 1] != 543);
3250 return 0;
3252 _ACEOF
3253 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3255 CC="$ac_save_CC $ac_arg"
3256 rm -f conftest.$ac_objext
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3263 $as_echo "$ac_try_echo") >&5
3264 (eval "$ac_compile") 2>conftest.er1
3265 ac_status=$?
3266 grep -v '^ *+' conftest.er1 >conftest.err
3267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } && {
3271 test -z "$ac_c_werror_flag" ||
3272 test ! -s conftest.err
3273 } && test -s conftest.$ac_objext; then
3274 ac_cv_prog_cc_c99=$ac_arg
3275 else
3276 $as_echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3282 rm -f core conftest.err conftest.$ac_objext
3283 test "x$ac_cv_prog_cc_c99" != "xno" && break
3284 done
3285 rm -f conftest.$ac_ext
3286 CC=$ac_save_CC
3289 # AC_CACHE_VAL
3290 case "x$ac_cv_prog_cc_c99" in
3292 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3293 $as_echo "none needed" >&6; } ;;
3294 xno)
3295 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3296 $as_echo "unsupported" >&6; } ;;
3298 CC="$CC $ac_cv_prog_cc_c99"
3299 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3300 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3301 esac
3302 if test "x$ac_cv_prog_cc_c99" != xno; then
3303 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3304 else
3305 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3306 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3307 if test "${ac_cv_prog_cc_c89+set}" = set; then
3308 $as_echo_n "(cached) " >&6
3309 else
3310 ac_cv_prog_cc_c89=no
3311 ac_save_CC=$CC
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318 #include <stdarg.h>
3319 #include <stdio.h>
3320 #include <sys/types.h>
3321 #include <sys/stat.h>
3322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3323 struct buf { int x; };
3324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3325 static char *e (p, i)
3326 char **p;
3327 int i;
3329 return p[i];
3331 static char *f (char * (*g) (char **, int), char **p, ...)
3333 char *s;
3334 va_list v;
3335 va_start (v,p);
3336 s = g (p, va_arg (v,int));
3337 va_end (v);
3338 return s;
3341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3342 function prototypes and stuff, but not '\xHH' hex character constants.
3343 These don't provoke an error unfortunately, instead are silently treated
3344 as 'x'. The following induces an error, until -std is added to get
3345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3346 array size at least. It's necessary to write '\x00'==0 to get something
3347 that's true only with -std. */
3348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3351 inside strings and character constants. */
3352 #define FOO(x) 'x'
3353 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3355 int test (int i, double x);
3356 struct s1 {int (*f) (int a);};
3357 struct s2 {int (*f) (double a);};
3358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359 int argc;
3360 char **argv;
3362 main ()
3364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3366 return 0;
3368 _ACEOF
3369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3372 CC="$ac_save_CC $ac_arg"
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_cv_prog_cc_c89=$ac_arg
3392 else
3393 $as_echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 done
3402 rm -f conftest.$ac_ext
3403 CC=$ac_save_CC
3406 # AC_CACHE_VAL
3407 case "x$ac_cv_prog_cc_c89" in
3409 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3410 $as_echo "none needed" >&6; } ;;
3411 xno)
3412 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3413 $as_echo "unsupported" >&6; } ;;
3415 CC="$CC $ac_cv_prog_cc_c89"
3416 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3417 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3418 esac
3419 if test "x$ac_cv_prog_cc_c89" != xno; then
3420 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3421 else
3422 ac_cv_prog_cc_stdc=no
3429 esac
3430 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3431 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3432 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3436 case $ac_cv_prog_cc_stdc in
3437 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3438 $as_echo "unsupported" >&6; } ;;
3439 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
3440 $as_echo "none needed" >&6; } ;;
3441 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3442 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3443 esac
3446 ac_ext=c
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3452 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3453 # On Suns, sometimes $CPP names a directory.
3454 if test -n "$CPP" && test -d "$CPP"; then
3455 CPP=
3457 if test -z "$CPP"; then
3458 if test "${ac_cv_prog_CPP+set}" = set; then
3459 $as_echo_n "(cached) " >&6
3460 else
3461 # Double quotes because CPP needs to be expanded
3462 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3464 ac_preproc_ok=false
3465 for ac_c_preproc_warn_flag in '' yes
3467 # Use a header file that comes with gcc, so configuring glibc
3468 # with a fresh cross-compiler works.
3469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3470 # <limits.h> exists even on freestanding compilers.
3471 # On the NeXT, cc -E runs the code through the compiler's parser,
3472 # not just through cpp. "Syntax error" is here to catch this case.
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #ifdef __STDC__
3480 # include <limits.h>
3481 #else
3482 # include <assert.h>
3483 #endif
3484 Syntax error
3485 _ACEOF
3486 if { (ac_try="$ac_cpp conftest.$ac_ext"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3494 ac_status=$?
3495 grep -v '^ *+' conftest.er1 >conftest.err
3496 rm -f conftest.er1
3497 cat conftest.err >&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } >/dev/null && {
3500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 }; then
3504 else
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 # Broken: fails on valid input.
3509 continue
3512 rm -f conftest.err conftest.$ac_ext
3514 # OK, works on sane cases. Now check whether nonexistent headers
3515 # can be detected and how.
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 #include <ac_nonexistent.h>
3523 _ACEOF
3524 if { (ac_try="$ac_cpp conftest.$ac_ext"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530 $as_echo "$ac_try_echo") >&5
3531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } >/dev/null && {
3538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 }; then
3541 # Broken: success on invalid input.
3542 continue
3543 else
3544 $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 # Passes both tests.
3548 ac_preproc_ok=:
3549 break
3552 rm -f conftest.err conftest.$ac_ext
3554 done
3555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556 rm -f conftest.err conftest.$ac_ext
3557 if $ac_preproc_ok; then
3558 break
3561 done
3562 ac_cv_prog_CPP=$CPP
3565 CPP=$ac_cv_prog_CPP
3566 else
3567 ac_cv_prog_CPP=$CPP
3569 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3570 $as_echo "$CPP" >&6; }
3571 ac_preproc_ok=false
3572 for ac_c_preproc_warn_flag in '' yes
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #ifdef __STDC__
3587 # include <limits.h>
3588 #else
3589 # include <assert.h>
3590 #endif
3591 Syntax error
3592 _ACEOF
3593 if { (ac_try="$ac_cpp conftest.$ac_ext"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3599 $as_echo "$ac_try_echo") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 }; then
3611 else
3612 $as_echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 # Broken: fails on valid input.
3616 continue
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3630 _ACEOF
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637 $as_echo "$ac_try_echo") >&5
3638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3639 ac_status=$?
3640 grep -v '^ *+' conftest.er1 >conftest.err
3641 rm -f conftest.er1
3642 cat conftest.err >&5
3643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } >/dev/null && {
3645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3646 test ! -s conftest.err
3647 }; then
3648 # Broken: success on invalid input.
3649 continue
3650 else
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 # Passes both tests.
3655 ac_preproc_ok=:
3656 break
3659 rm -f conftest.err conftest.$ac_ext
3661 done
3662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663 rm -f conftest.err conftest.$ac_ext
3664 if $ac_preproc_ok; then
3666 else
3667 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3668 See \`config.log' for more details." >&5
3669 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3670 See \`config.log' for more details." >&2;}
3671 { (exit 1); exit 1; }; }
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 # Check for a compatible awk
3682 for ac_prog in gawk nawk
3684 # Extract the first word of "$ac_prog", so it can be a program name with args.
3685 set dummy $ac_prog; ac_word=$2
3686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_AWK+set}" = set; then
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$AWK"; then
3692 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_AWK="$ac_prog"
3702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3705 done
3706 done
3707 IFS=$as_save_IFS
3711 AWK=$ac_cv_prog_AWK
3712 if test -n "$AWK"; then
3713 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3714 $as_echo "$AWK" >&6; }
3715 else
3716 { $as_echo "$as_me:$LINENO: result: no" >&5
3717 $as_echo "no" >&6; }
3721 test -n "$AWK" && break
3722 done
3724 if test "$AWK" = ""; then
3725 { { $as_echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3726 $as_echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3727 { (exit 1); exit 1; }; }
3729 # Extract the first word of "mmake", so it can be a program name with args.
3730 set dummy mmake; ac_word=$2
3731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_MMAKE+set}" = set; then
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$MMAKE"; then
3737 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_MMAKE="mmake "
3747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3750 done
3751 done
3752 IFS=$as_save_IFS
3756 MMAKE=$ac_cv_prog_MMAKE
3757 if test -n "$MMAKE"; then
3758 { $as_echo "$as_me:$LINENO: result: $MMAKE" >&5
3759 $as_echo "$MMAKE" >&6; }
3760 else
3761 { $as_echo "$as_me:$LINENO: result: no" >&5
3762 $as_echo "no" >&6; }
3767 # Perform some default variable assignments. Note all of these will be
3768 # Regenerated from the script, so there is no need to cache them.
3770 aros_host_cc="$CC"
3771 if test "$GCC" = "yes"; then
3772 aros_gcc_ld=`$CC -print-prog-name=ld`
3773 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3774 set dummy `basename $aros_gcc_ld`; ac_word=$2
3775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3776 $as_echo_n "checking for $ac_word... " >&6; }
3777 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3778 $as_echo_n "(cached) " >&6
3779 else
3780 case $aros_host_ld in
3781 [\\/]* | ?:[\\/]*)
3782 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in `dirname $aros_gcc_ld`
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3792 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3793 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3796 done
3797 done
3798 IFS=$as_save_IFS
3801 esac
3803 aros_host_ld=$ac_cv_path_aros_host_ld
3804 if test -n "$aros_host_ld"; then
3805 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3806 $as_echo "$aros_host_ld" >&6; }
3807 else
3808 { $as_echo "$as_me:$LINENO: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test "$aros_host_ld" = ""; then
3815 # Extract the first word of "ld", so it can be a program name with args.
3816 set dummy ld; ac_word=$2
3817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3820 $as_echo_n "(cached) " >&6
3821 else
3822 case $aros_host_ld in
3823 [\\/]* | ?:[\\/]*)
3824 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3838 done
3839 done
3840 IFS=$as_save_IFS
3843 esac
3845 aros_host_ld=$ac_cv_path_aros_host_ld
3846 if test -n "$aros_host_ld"; then
3847 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3848 $as_echo "$aros_host_ld" >&6; }
3849 else
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851 $as_echo "no" >&6; }
3856 if test "$aros_host_ld" = ""; then
3857 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3858 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3859 { (exit 1); exit 1; }; }
3861 aros_host_make="make"
3862 aros_host_cflags=$CFLAGS
3863 aros_host_ldflags=$LDFLAGS
3864 aros_host_debug="-g -O0"
3865 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3866 aros_host_mkargs="--no-print-directory"
3867 aros_host_incl="/usr/include"
3868 aros_host_exe_suffix="$EXEEXT"
3869 aros_host_lib_suffix=""
3871 for ac_prog in aclocal aclocal19
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$aros_host_aclocal"; then
3881 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3890 ac_cv_prog_aros_host_aclocal="$ac_prog"
3891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3894 done
3895 done
3896 IFS=$as_save_IFS
3900 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3901 if test -n "$aros_host_aclocal"; then
3902 { $as_echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3903 $as_echo "$aros_host_aclocal" >&6; }
3904 else
3905 { $as_echo "$as_me:$LINENO: result: no" >&5
3906 $as_echo "no" >&6; }
3910 test -n "$aros_host_aclocal" && break
3911 done
3913 for ac_prog in autoconf autoconf259 autoconf253
3915 # Extract the first word of "$ac_prog", so it can be a program name with args.
3916 set dummy $ac_prog; ac_word=$2
3917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$aros_host_autoconf"; then
3923 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_aros_host_autoconf="$ac_prog"
3933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3936 done
3937 done
3938 IFS=$as_save_IFS
3942 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3943 if test -n "$aros_host_autoconf"; then
3944 { $as_echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3945 $as_echo "$aros_host_autoconf" >&6; }
3946 else
3947 { $as_echo "$as_me:$LINENO: result: no" >&5
3948 $as_echo "no" >&6; }
3952 test -n "$aros_host_autoconf" && break
3953 done
3955 for ac_prog in autoheader autoheader259 autoheader253
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3962 $as_echo_n "(cached) " >&6
3963 else
3964 if test -n "$aros_host_autoheader"; then
3965 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974 ac_cv_prog_aros_host_autoheader="$ac_prog"
3975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3978 done
3979 done
3980 IFS=$as_save_IFS
3984 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3985 if test -n "$aros_host_autoheader"; then
3986 { $as_echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3987 $as_echo "$aros_host_autoheader" >&6; }
3988 else
3989 { $as_echo "$as_me:$LINENO: result: no" >&5
3990 $as_echo "no" >&6; }
3994 test -n "$aros_host_autoheader" && break
3995 done
3997 for ac_prog in automake automake19
3999 # Extract the first word of "$ac_prog", so it can be a program name with args.
4000 set dummy $ac_prog; ac_word=$2
4001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if test -n "$aros_host_automake"; then
4007 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_aros_host_automake="$ac_prog"
4017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4022 IFS=$as_save_IFS
4026 aros_host_automake=$ac_cv_prog_aros_host_automake
4027 if test -n "$aros_host_automake"; then
4028 { $as_echo "$as_me:$LINENO: result: $aros_host_automake" >&5
4029 $as_echo "$aros_host_automake" >&6; }
4030 else
4031 { $as_echo "$as_me:$LINENO: result: no" >&5
4032 $as_echo "no" >&6; }
4036 test -n "$aros_host_automake" && break
4037 done
4040 case "$aros_host_cc" in
4041 *gcc*)
4042 aros_host_cc_pipe="-pipe"
4044 icc)
4045 aros_host_cc_pipe=""
4048 aros_host_cc_pipe=""
4050 esac
4052 aros_target_cc_includes=""
4054 # This is the main host configuration section. It is where the host
4055 # can change the values of any variables it needs to change. We do
4056 # not look at anything that compiles to the target yet, we'll get
4057 # to that later.
4059 case "$host_os" in
4060 linux*)
4061 aros_host_arch="linux"
4062 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4063 case "$host_cpu" in
4064 *i?86*)
4065 aros_host_cpu="i386"
4067 *x86_64*)
4068 aros_host_cpu="x86_64"
4070 *m68k*)
4071 aros_host_cpu="m68k"
4073 *powerpc*)
4074 aros_host_cpu="ppc"
4077 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4078 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4079 aros_host_cpu="$host_cpu"
4081 esac
4084 freebsd*)
4085 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4086 aros_host_make="gmake"
4087 aros_host_arch="freebsd"
4088 aros_host_cpu="i386"
4090 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4093 case $host_os in
4094 freebsd[234]*)
4095 aros_object_format="elf_i386"
4099 aros_object_format="elf_i386_fbsd"
4101 esac
4105 darwin*)
4106 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4107 aros_host_arch="darwin"
4108 case "$host_cpu" in
4109 *i?86*)
4110 aros_host_cpu="i386"
4112 *powerpc*)
4113 aros_host_cpu="ppc"
4116 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4117 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4118 aros_host_cpu="$host_cpu"
4120 esac
4122 aros_host_ldflags="$aros_host_ldflags -liconv"
4126 netbsd*)
4127 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4128 aros_host_make="gmake"
4129 aros_host_arch="netbsd"
4130 case "$host_cpu" in
4131 *i?86*)
4132 aros_host_cpu="i386"
4134 *m68k*)
4135 aros_host_cpu="m68k"
4138 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4139 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4140 aros_host_cpu="$host_cpu"
4142 esac
4143 aros_host_lib_suffix=".0.0"
4146 openbsd*)
4147 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4148 aros_host_make="gmake"
4149 aros_host_arch="openbsd"
4150 case "$host_cpu" in
4151 *i?86*)
4152 aros_host_cpu="i386"
4155 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4156 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4157 aros_host_cpu="$host_cpu"
4159 esac
4162 solaris*)
4163 aros_host_arch="solaris"
4164 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4165 case "$host_cpu" in
4166 *i?86*)
4167 aros_host_cpu="i386"
4169 *sparc*)
4170 aros_host_cpu="sparc"
4173 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4174 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4175 aros_host_cpu="$host_cpu"
4177 esac
4180 morphos*)
4181 aros_host_arch="morphos"
4182 aros_host_cpu="ppc"
4185 amiga*)
4186 aros_host_arch="amiga"
4187 SORT="/gg/bin/sort"
4188 TEST="/gg/bin/test"
4189 UNIQ="/gg/bin/uniq"
4190 FOR="for"
4191 TOUCH="/gg/bin/touch"
4192 case "$host_cpu" in
4193 *m68k*)
4194 aros_host_cpu="m68k"
4196 *powerpc*)
4197 aros_host_cpu="ppc"
4200 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4201 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4202 aros_host_cpu="$host_cpu"
4204 esac
4207 cygwin*)
4208 aros_host_arch="cygwin"
4209 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4210 case "$host_cpu" in
4211 *i?86*)
4212 aros_host_cpu="i386"
4215 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4216 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4217 aros_host_cpu="$host_cpu"
4219 esac
4222 mingw32*)
4223 aros_host_arch="mingw32"
4224 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4225 case "$host_cpu" in
4226 *i?86*)
4227 aros_host_cpu="i386"
4230 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4231 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4232 aros_host_cpu="$host_cpu"
4234 esac
4237 { { $as_echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4238 $as_echo "$as_me: error: Unsupported host architecture $host" >&2;}
4239 { (exit 1); exit 1; }; }
4241 esac
4243 # Extract the first word of "ar", so it can be a program name with args.
4244 set dummy ar; ac_word=$2
4245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$aros_host_ar"; then
4251 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_aros_host_ar="ar cr"
4261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 aros_host_ar=$ac_cv_prog_aros_host_ar
4271 if test -n "$aros_host_ar"; then
4272 { $as_echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4273 $as_echo "$aros_host_ar" >&6; }
4274 else
4275 { $as_echo "$as_me:$LINENO: result: no" >&5
4276 $as_echo "no" >&6; }
4280 if test "$aros_host_ar" = ""; then
4281 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4282 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4283 { (exit 1); exit 1; }; }
4285 # Extract the first word of "ranlib", so it can be a program name with args.
4286 set dummy ranlib; ac_word=$2
4287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$aros_host_ranlib"; then
4293 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_aros_host_ranlib="ranlib "
4303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4313 if test -n "$aros_host_ranlib"; then
4314 { $as_echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4315 $as_echo "$aros_host_ranlib" >&6; }
4316 else
4317 { $as_echo "$as_me:$LINENO: result: no" >&5
4318 $as_echo "no" >&6; }
4322 if test "$aros_host_ranlib" = ""; then
4323 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4324 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4325 { (exit 1); exit 1; }; }
4327 # Extract the first word of "strip", so it can be a program name with args.
4328 set dummy strip; ac_word=$2
4329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if test -n "$aros_host_strip"; then
4335 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_aros_host_strip="strip "
4345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4348 done
4349 done
4350 IFS=$as_save_IFS
4354 aros_host_strip=$ac_cv_prog_aros_host_strip
4355 if test -n "$aros_host_strip"; then
4356 { $as_echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4357 $as_echo "$aros_host_strip" >&6; }
4358 else
4359 { $as_echo "$as_me:$LINENO: result: no" >&5
4360 $as_echo "no" >&6; }
4364 if test "$aros_host_strip" = ""; then
4365 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4366 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4367 { (exit 1); exit 1; }; }
4370 # Extract the first word of "rm", so it can be a program name with args.
4371 set dummy rm; ac_word=$2
4372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if test "${ac_cv_prog_RM+set}" = set; then
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if test -n "$RM"; then
4378 ac_cv_prog_RM="$RM" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_prog_RM="rm -rf"
4388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4391 done
4392 done
4393 IFS=$as_save_IFS
4397 RM=$ac_cv_prog_RM
4398 if test -n "$RM"; then
4399 { $as_echo "$as_me:$LINENO: result: $RM" >&5
4400 $as_echo "$RM" >&6; }
4401 else
4402 { $as_echo "$as_me:$LINENO: result: no" >&5
4403 $as_echo "no" >&6; }
4407 if test "$RM" = ""; then
4408 { { $as_echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4409 $as_echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4410 { (exit 1); exit 1; }; }
4412 # Extract the first word of "cp", so it can be a program name with args.
4413 set dummy cp; ac_word=$2
4414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_CP+set}" = set; then
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$CP"; then
4420 ac_cv_prog_CP="$CP" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_CP="cp "
4430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4435 IFS=$as_save_IFS
4439 CP=$ac_cv_prog_CP
4440 if test -n "$CP"; then
4441 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4442 $as_echo "$CP" >&6; }
4443 else
4444 { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4449 if test "$CP" = ""; then
4450 { { $as_echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4451 $as_echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4452 { (exit 1); exit 1; }; }
4454 # Extract the first word of "mv", so it can be a program name with args.
4455 set dummy mv; ac_word=$2
4456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_MV+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$MV"; then
4462 ac_cv_prog_MV="$MV" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_MV="mv "
4472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 MV=$ac_cv_prog_MV
4482 if test -n "$MV"; then
4483 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4484 $as_echo "$MV" >&6; }
4485 else
4486 { $as_echo "$as_me:$LINENO: result: no" >&5
4487 $as_echo "no" >&6; }
4491 if test "$MV" = ""; then
4492 { { $as_echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4493 $as_echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4494 { (exit 1); exit 1; }; }
4496 # Extract the first word of "echo", so it can be a program name with args.
4497 set dummy echo; ac_word=$2
4498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if test "${ac_cv_prog_ECHO+set}" = set; then
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -n "$ECHO"; then
4504 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ECHO="echo "
4514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4517 done
4518 done
4519 IFS=$as_save_IFS
4523 ECHO=$ac_cv_prog_ECHO
4524 if test -n "$ECHO"; then
4525 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4526 $as_echo "$ECHO" >&6; }
4527 else
4528 { $as_echo "$as_me:$LINENO: result: no" >&5
4529 $as_echo "no" >&6; }
4533 if test "$ECHO" = ""; then
4534 { { $as_echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4535 $as_echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4536 { (exit 1); exit 1; }; }
4538 # Extract the first word of "mkdir", so it can be a program name with args.
4539 set dummy mkdir; ac_word=$2
4540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_MKDIR+set}" = set; then
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$MKDIR"; then
4546 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_MKDIR="mkdir -p"
4556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 MKDIR=$ac_cv_prog_MKDIR
4566 if test -n "$MKDIR"; then
4567 { $as_echo "$as_me:$LINENO: result: $MKDIR" >&5
4568 $as_echo "$MKDIR" >&6; }
4569 else
4570 { $as_echo "$as_me:$LINENO: result: no" >&5
4571 $as_echo "no" >&6; }
4575 if test "$MKDIR" = ""; then
4576 { { $as_echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4577 $as_echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4578 { (exit 1); exit 1; }; }
4580 # Extract the first word of "touch", so it can be a program name with args.
4581 set dummy touch; ac_word=$2
4582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_TOUCH+set}" = set; then
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$TOUCH"; then
4588 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_TOUCH="touch "
4598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 TOUCH=$ac_cv_prog_TOUCH
4608 if test -n "$TOUCH"; then
4609 { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
4610 $as_echo "$TOUCH" >&6; }
4611 else
4612 { $as_echo "$as_me:$LINENO: result: no" >&5
4613 $as_echo "no" >&6; }
4617 if test "$TOUCH" = ""; then
4618 { { $as_echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4619 $as_echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4620 { (exit 1); exit 1; }; }
4622 # Extract the first word of "sort", so it can be a program name with args.
4623 set dummy sort; ac_word=$2
4624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if test "${ac_cv_prog_SORT+set}" = set; then
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -n "$SORT"; then
4630 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_SORT="sort "
4640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4643 done
4644 done
4645 IFS=$as_save_IFS
4649 SORT=$ac_cv_prog_SORT
4650 if test -n "$SORT"; then
4651 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
4652 $as_echo "$SORT" >&6; }
4653 else
4654 { $as_echo "$as_me:$LINENO: result: no" >&5
4655 $as_echo "no" >&6; }
4659 if test "$SORT" = ""; then
4660 { { $as_echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4661 $as_echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4662 { (exit 1); exit 1; }; }
4664 # Extract the first word of "uniq", so it can be a program name with args.
4665 set dummy uniq; ac_word=$2
4666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_UNIQ+set}" = set; then
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$UNIQ"; then
4672 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_UNIQ="uniq "
4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4685 done
4686 done
4687 IFS=$as_save_IFS
4691 UNIQ=$ac_cv_prog_UNIQ
4692 if test -n "$UNIQ"; then
4693 { $as_echo "$as_me:$LINENO: result: $UNIQ" >&5
4694 $as_echo "$UNIQ" >&6; }
4695 else
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697 $as_echo "no" >&6; }
4701 if test "$UNIQ" = ""; then
4702 { { $as_echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4703 $as_echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4704 { (exit 1); exit 1; }; }
4706 # Extract the first word of "true", so it can be a program name with args.
4707 set dummy true; ac_word=$2
4708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if test "${ac_cv_prog_NOP+set}" = set; then
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$NOP"; then
4714 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_NOP="true "
4724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4727 done
4728 done
4729 IFS=$as_save_IFS
4733 NOP=$ac_cv_prog_NOP
4734 if test -n "$NOP"; then
4735 { $as_echo "$as_me:$LINENO: result: $NOP" >&5
4736 $as_echo "$NOP" >&6; }
4737 else
4738 { $as_echo "$as_me:$LINENO: result: no" >&5
4739 $as_echo "no" >&6; }
4743 if test "$NOP" = ""; then
4744 { { $as_echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4745 $as_echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4746 { (exit 1); exit 1; }; }
4748 # Extract the first word of "cat", so it can be a program name with args.
4749 set dummy cat; ac_word=$2
4750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if test "${ac_cv_prog_CAT+set}" = set; then
4753 $as_echo_n "(cached) " >&6
4754 else
4755 if test -n "$CAT"; then
4756 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_CAT="cat "
4766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4769 done
4770 done
4771 IFS=$as_save_IFS
4775 CAT=$ac_cv_prog_CAT
4776 if test -n "$CAT"; then
4777 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
4778 $as_echo "$CAT" >&6; }
4779 else
4780 { $as_echo "$as_me:$LINENO: result: no" >&5
4781 $as_echo "no" >&6; }
4785 if test "$CAT" = ""; then
4786 { { $as_echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4787 $as_echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4788 { (exit 1); exit 1; }; }
4790 # Extract the first word of "bison", so it can be a program name with args.
4791 set dummy bison; ac_word=$2
4792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_BISON+set}" = set; then
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$BISON"; then
4798 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_BISON="bison "
4808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4811 done
4812 done
4813 IFS=$as_save_IFS
4817 BISON=$ac_cv_prog_BISON
4818 if test -n "$BISON"; then
4819 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
4820 $as_echo "$BISON" >&6; }
4821 else
4822 { $as_echo "$as_me:$LINENO: result: no" >&5
4823 $as_echo "no" >&6; }
4827 if test "$BISON" = ""; then
4828 { { $as_echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4829 $as_echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4830 { (exit 1); exit 1; }; }
4832 # Extract the first word of "flex", so it can be a program name with args.
4833 set dummy flex; ac_word=$2
4834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_FLEX+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$FLEX"; then
4840 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_FLEX="flex "
4850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4855 IFS=$as_save_IFS
4859 FLEX=$ac_cv_prog_FLEX
4860 if test -n "$FLEX"; then
4861 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
4862 $as_echo "$FLEX" >&6; }
4863 else
4864 { $as_echo "$as_me:$LINENO: result: no" >&5
4865 $as_echo "no" >&6; }
4869 if test "$FLEX" = ""; then
4870 { { $as_echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4871 $as_echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4872 { (exit 1); exit 1; }; }
4874 # Extract the first word of "pngtopnm", so it can be a program name with args.
4875 set dummy pngtopnm; ac_word=$2
4876 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$PNGTOPNM"; then
4882 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_PNGTOPNM="pngtopnm "
4892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4902 if test -n "$PNGTOPNM"; then
4903 { $as_echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4904 $as_echo "$PNGTOPNM" >&6; }
4905 else
4906 { $as_echo "$as_me:$LINENO: result: no" >&5
4907 $as_echo "no" >&6; }
4911 if test "$PNGTOPNM" = ""; then
4912 { { $as_echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4913 $as_echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4914 { (exit 1); exit 1; }; }
4916 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4917 set dummy ppmtoilbm; ac_word=$2
4918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if test -n "$PPMTOILBM"; then
4924 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4939 IFS=$as_save_IFS
4943 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4944 if test -n "$PPMTOILBM"; then
4945 { $as_echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4946 $as_echo "$PPMTOILBM" >&6; }
4947 else
4948 { $as_echo "$as_me:$LINENO: result: no" >&5
4949 $as_echo "no" >&6; }
4953 if test "$PPMTOILBM" = ""; then
4954 { { $as_echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4955 $as_echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4956 { (exit 1); exit 1; }; }
4958 # Extract the first word of "sed", so it can be a program name with args.
4959 set dummy sed; ac_word=$2
4960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_SED+set}" = set; then
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$SED"; then
4966 ac_cv_prog_SED="$SED" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_SED="sed "
4976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4979 done
4980 done
4981 IFS=$as_save_IFS
4985 SED=$ac_cv_prog_SED
4986 if test -n "$SED"; then
4987 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4988 $as_echo "$SED" >&6; }
4989 else
4990 { $as_echo "$as_me:$LINENO: result: no" >&5
4991 $as_echo "no" >&6; }
4995 if test "$SED" = ""; then
4996 { { $as_echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4997 $as_echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4998 { (exit 1); exit 1; }; }
5000 # Extract the first word of "chmod", so it can be a program name with args.
5001 set dummy chmod; ac_word=$2
5002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_CHMOD+set}" = set; then
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$CHMOD"; then
5008 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_CHMOD="chmod "
5018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 CHMOD=$ac_cv_prog_CHMOD
5028 if test -n "$CHMOD"; then
5029 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
5030 $as_echo "$CHMOD" >&6; }
5031 else
5032 { $as_echo "$as_me:$LINENO: result: no" >&5
5033 $as_echo "no" >&6; }
5037 if test "$CHMOD" = ""; then
5038 { { $as_echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
5039 $as_echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
5040 { (exit 1); exit 1; }; }
5047 if test -n "$PYTHON"; then
5048 # If the user set $PYTHON, use it and don't search something else.
5049 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
5050 $as_echo_n "checking whether $PYTHON version >= 2.2.1... " >&6; }
5051 prog="import sys, string
5052 # split strings by '.' and convert to numeric. Append some zeros
5053 # because we need at least 4 digits for the hex conversion.
5054 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5055 minverhex = 0
5056 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5057 sys.exit(sys.hexversion < minverhex)"
5058 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5059 ($PYTHON -c "$prog") >&5 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; then
5063 { $as_echo "$as_me:$LINENO: result: yes" >&5
5064 $as_echo "yes" >&6; }
5065 else
5066 { { $as_echo "$as_me:$LINENO: error: too old" >&5
5067 $as_echo "$as_me: error: too old" >&2;}
5068 { (exit 1); exit 1; }; }
5071 am_display_PYTHON=$PYTHON
5072 else
5073 # Otherwise, try each interpreter until we find one that satisfies
5074 # VERSION.
5075 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
5076 $as_echo_n "checking for a Python interpreter with version >= 2.2.1... " >&6; }
5077 if test "${am_cv_pathless_PYTHON+set}" = set; then
5078 $as_echo_n "(cached) " >&6
5079 else
5081 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
5082 test "$am_cv_pathless_PYTHON" = none && break
5083 prog="import sys, string
5084 # split strings by '.' and convert to numeric. Append some zeros
5085 # because we need at least 4 digits for the hex conversion.
5086 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5087 minverhex = 0
5088 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5089 sys.exit(sys.hexversion < minverhex)"
5090 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5091 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; then
5095 break
5098 done
5100 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5101 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5102 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5103 if test "$am_cv_pathless_PYTHON" = none; then
5104 PYTHON=:
5105 else
5106 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5107 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_path_PYTHON+set}" = set; then
5111 $as_echo_n "(cached) " >&6
5112 else
5113 case $PYTHON in
5114 [\\/]* | ?:[\\/]*)
5115 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5129 done
5130 done
5131 IFS=$as_save_IFS
5134 esac
5136 PYTHON=$ac_cv_path_PYTHON
5137 if test -n "$PYTHON"; then
5138 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5139 $as_echo "$PYTHON" >&6; }
5140 else
5141 { $as_echo "$as_me:$LINENO: result: no" >&5
5142 $as_echo "no" >&6; }
5147 am_display_PYTHON=$am_cv_pathless_PYTHON
5151 if test "$PYTHON" = :; then
5152 { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5153 $as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
5154 { (exit 1); exit 1; }; }
5155 else
5158 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5159 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5160 if test "${am_cv_python_version+set}" = set; then
5161 $as_echo_n "(cached) " >&6
5162 else
5163 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5165 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5166 $as_echo "$am_cv_python_version" >&6; }
5167 PYTHON_VERSION=$am_cv_python_version
5171 PYTHON_PREFIX='${prefix}'
5173 PYTHON_EXEC_PREFIX='${exec_prefix}'
5177 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5178 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5179 if test "${am_cv_python_platform+set}" = set; then
5180 $as_echo_n "(cached) " >&6
5181 else
5182 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5184 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5185 $as_echo "$am_cv_python_platform" >&6; }
5186 PYTHON_PLATFORM=$am_cv_python_platform
5191 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5192 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5193 if test "${am_cv_python_pythondir+set}" = set; then
5194 $as_echo_n "(cached) " >&6
5195 else
5196 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5197 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5199 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5200 $as_echo "$am_cv_python_pythondir" >&6; }
5201 pythondir=$am_cv_python_pythondir
5205 pkgpythondir=\${pythondir}/$PACKAGE
5208 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5209 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5210 if test "${am_cv_python_pyexecdir+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5212 else
5213 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5214 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5216 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5217 $as_echo "$am_cv_python_pyexecdir" >&6; }
5218 pyexecdir=$am_cv_python_pyexecdir
5222 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5230 FOR=for
5232 IF=if
5234 TEST=test
5236 CMP=cmp
5240 # Check for some includes for the X11 HIDD and the kernel
5243 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5245 if test "${ac_cv_path_GREP+set}" = set; then
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -z "$GREP"; then
5249 ac_path_GREP_found=false
5250 # Loop through the user's path and test for each of PROGNAME-LIST
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_prog in grep ggrep; do
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5259 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5260 # Check for GNU ac_path_GREP and select it if it is found.
5261 # Check for GNU $ac_path_GREP
5262 case `"$ac_path_GREP" --version 2>&1` in
5263 *GNU*)
5264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5266 ac_count=0
5267 $as_echo_n 0123456789 >"conftest.in"
5268 while :
5270 cat "conftest.in" "conftest.in" >"conftest.tmp"
5271 mv "conftest.tmp" "conftest.in"
5272 cp "conftest.in" "conftest.nl"
5273 $as_echo 'GREP' >> "conftest.nl"
5274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5276 ac_count=`expr $ac_count + 1`
5277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5278 # Best one so far, save it but keep looking for a better one
5279 ac_cv_path_GREP="$ac_path_GREP"
5280 ac_path_GREP_max=$ac_count
5282 # 10*(2^10) chars as input seems more than enough
5283 test $ac_count -gt 10 && break
5284 done
5285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5286 esac
5288 $ac_path_GREP_found && break 3
5289 done
5290 done
5291 done
5292 IFS=$as_save_IFS
5293 if test -z "$ac_cv_path_GREP"; then
5294 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5295 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5296 { (exit 1); exit 1; }; }
5298 else
5299 ac_cv_path_GREP=$GREP
5303 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5304 $as_echo "$ac_cv_path_GREP" >&6; }
5305 GREP="$ac_cv_path_GREP"
5308 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5309 $as_echo_n "checking for egrep... " >&6; }
5310 if test "${ac_cv_path_EGREP+set}" = set; then
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5314 then ac_cv_path_EGREP="$GREP -E"
5315 else
5316 if test -z "$EGREP"; then
5317 ac_path_EGREP_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_prog in egrep; do
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5327 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5328 # Check for GNU ac_path_EGREP and select it if it is found.
5329 # Check for GNU $ac_path_EGREP
5330 case `"$ac_path_EGREP" --version 2>&1` in
5331 *GNU*)
5332 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5334 ac_count=0
5335 $as_echo_n 0123456789 >"conftest.in"
5336 while :
5338 cat "conftest.in" "conftest.in" >"conftest.tmp"
5339 mv "conftest.tmp" "conftest.in"
5340 cp "conftest.in" "conftest.nl"
5341 $as_echo 'EGREP' >> "conftest.nl"
5342 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5344 ac_count=`expr $ac_count + 1`
5345 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5346 # Best one so far, save it but keep looking for a better one
5347 ac_cv_path_EGREP="$ac_path_EGREP"
5348 ac_path_EGREP_max=$ac_count
5350 # 10*(2^10) chars as input seems more than enough
5351 test $ac_count -gt 10 && break
5352 done
5353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5354 esac
5356 $ac_path_EGREP_found && break 3
5357 done
5358 done
5359 done
5360 IFS=$as_save_IFS
5361 if test -z "$ac_cv_path_EGREP"; then
5362 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5363 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5364 { (exit 1); exit 1; }; }
5366 else
5367 ac_cv_path_EGREP=$EGREP
5372 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5373 $as_echo "$ac_cv_path_EGREP" >&6; }
5374 EGREP="$ac_cv_path_EGREP"
5377 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5378 $as_echo_n "checking for ANSI C header files... " >&6; }
5379 if test "${ac_cv_header_stdc+set}" = set; then
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 #include <stdlib.h>
5389 #include <stdarg.h>
5390 #include <string.h>
5391 #include <float.h>
5394 main ()
5398 return 0;
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (ac_try="$ac_compile"
5403 case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406 esac
5407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5408 $as_echo "$ac_try_echo") >&5
5409 (eval "$ac_compile") 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && {
5416 test -z "$ac_c_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest.$ac_objext; then
5419 ac_cv_header_stdc=yes
5420 else
5421 $as_echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_cv_header_stdc=no
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 if test $ac_cv_header_stdc = yes; then
5430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 #include <string.h>
5439 _ACEOF
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 $EGREP "memchr" >/dev/null 2>&1; then
5443 else
5444 ac_cv_header_stdc=no
5446 rm -f conftest*
5450 if test $ac_cv_header_stdc = yes; then
5451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <stdlib.h>
5460 _ACEOF
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "free" >/dev/null 2>&1; then
5464 else
5465 ac_cv_header_stdc=no
5467 rm -f conftest*
5471 if test $ac_cv_header_stdc = yes; then
5472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5473 if test "$cross_compiling" = yes; then
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 #include <ctype.h>
5483 #include <stdlib.h>
5484 #if ((' ' & 0x0FF) == 0x020)
5485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5487 #else
5488 # define ISLOWER(c) \
5489 (('a' <= (c) && (c) <= 'i') \
5490 || ('j' <= (c) && (c) <= 'r') \
5491 || ('s' <= (c) && (c) <= 'z'))
5492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5493 #endif
5495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5497 main ()
5499 int i;
5500 for (i = 0; i < 256; i++)
5501 if (XOR (islower (i), ISLOWER (i))
5502 || toupper (i) != TOUPPER (i))
5503 return 2;
5504 return 0;
5506 _ACEOF
5507 rm -f conftest$ac_exeext
5508 if { (ac_try="$ac_link"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5514 $as_echo "$ac_try_echo") >&5
5515 (eval "$ac_link") 2>&5
5516 ac_status=$?
5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5519 { (case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5524 $as_echo "$ac_try_echo") >&5
5525 (eval "$ac_try") 2>&5
5526 ac_status=$?
5527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5530 else
5531 $as_echo "$as_me: program exited with status $ac_status" >&5
5532 $as_echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ( exit $ac_status )
5536 ac_cv_header_stdc=no
5538 rm -rf conftest.dSYM
5539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5545 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5546 $as_echo "$ac_cv_header_stdc" >&6; }
5547 if test $ac_cv_header_stdc = yes; then
5549 cat >>confdefs.h <<\_ACEOF
5550 #define STDC_HEADERS 1
5551 _ACEOF
5555 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5565 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5566 inttypes.h stdint.h unistd.h
5568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5570 $as_echo_n "checking for $ac_header... " >&6; }
5571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572 $as_echo_n "(cached) " >&6
5573 else
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5582 #include <$ac_header>
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 eval "$as_ac_Header=yes"
5603 else
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 eval "$as_ac_Header=no"
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 ac_res=`eval 'as_val=${'$as_ac_Header'}
5613 $as_echo "$as_val"'`
5614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5615 $as_echo "$ac_res" >&6; }
5616 if test `eval 'as_val=${'$as_ac_Header'}
5617 $as_echo "$as_val"'` = yes; then
5618 cat >>confdefs.h <<_ACEOF
5619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5620 _ACEOF
5624 done
5636 for ac_header in sys/ipc.h sys/shm.h \
5637 sys/mmap.h sys/mman.h sysexits.h \
5638 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5644 $as_echo_n "checking for $ac_header... " >&6; }
5645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5646 $as_echo_n "(cached) " >&6
5648 ac_res=`eval 'as_val=${'$as_ac_Header'}
5649 $as_echo "$as_val"'`
5650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5651 $as_echo "$ac_res" >&6; }
5652 else
5653 # Is the header compilable?
5654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 $as_echo_n "checking $ac_header usability... " >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5672 $as_echo "$ac_try_echo") >&5
5673 (eval "$ac_compile") 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } && {
5680 test -z "$ac_c_werror_flag" ||
5681 test ! -s conftest.err
5682 } && test -s conftest.$ac_objext; then
5683 ac_header_compiler=yes
5684 else
5685 $as_echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 ac_header_compiler=no
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5693 $as_echo "$ac_header_compiler" >&6; }
5695 # Is the header present?
5696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5697 $as_echo_n "checking $ac_header presence... " >&6; }
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <$ac_header>
5705 _ACEOF
5706 if { (ac_try="$ac_cpp conftest.$ac_ext"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5712 $as_echo "$ac_try_echo") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
5723 ac_header_preproc=yes
5724 else
5725 $as_echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_header_preproc=no
5731 rm -f conftest.err conftest.$ac_ext
5732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5733 $as_echo "$ac_header_preproc" >&6; }
5735 # So? What about this header?
5736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5737 yes:no: )
5738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5742 ac_header_preproc=yes
5744 no:yes:* )
5745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5748 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5752 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5759 esac
5760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5761 $as_echo_n "checking for $ac_header... " >&6; }
5762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 $as_echo_n "(cached) " >&6
5764 else
5765 eval "$as_ac_Header=\$ac_header_preproc"
5767 ac_res=`eval 'as_val=${'$as_ac_Header'}
5768 $as_echo "$as_val"'`
5769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5770 $as_echo "$ac_res" >&6; }
5773 if test `eval 'as_val=${'$as_ac_Header'}
5774 $as_echo "$as_val"'` = yes; then
5775 cat >>confdefs.h <<_ACEOF
5776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5777 _ACEOF
5781 done
5785 for ac_header in sys/mount.h
5787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 $as_echo_n "checking for $ac_header... " >&6; }
5790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5791 $as_echo_n "(cached) " >&6
5792 else
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <sys/param.h>
5801 #include <$ac_header>
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5810 $as_echo "$ac_try_echo") >&5
5811 (eval "$ac_compile") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest.$ac_objext; then
5821 eval "$as_ac_Header=yes"
5822 else
5823 $as_echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 eval "$as_ac_Header=no"
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 ac_res=`eval 'as_val=${'$as_ac_Header'}
5832 $as_echo "$as_val"'`
5833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5834 $as_echo "$ac_res" >&6; }
5835 if test `eval 'as_val=${'$as_ac_Header'}
5836 $as_echo "$as_val"'` = yes; then
5837 cat >>confdefs.h <<_ACEOF
5838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5839 _ACEOF
5843 done
5851 ac_header_dirent=no
5852 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5853 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5854 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5855 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5857 $as_echo_n "(cached) " >&6
5858 else
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <sys/types.h>
5866 #include <$ac_hdr>
5869 main ()
5871 if ((DIR *) 0)
5872 return 0;
5874 return 0;
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5884 $as_echo "$ac_try_echo") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest.$ac_objext; then
5895 eval "$as_ac_Header=yes"
5896 else
5897 $as_echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 eval "$as_ac_Header=no"
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_res=`eval 'as_val=${'$as_ac_Header'}
5906 $as_echo "$as_val"'`
5907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5908 $as_echo "$ac_res" >&6; }
5909 if test `eval 'as_val=${'$as_ac_Header'}
5910 $as_echo "$as_val"'` = yes; then
5911 cat >>confdefs.h <<_ACEOF
5912 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5913 _ACEOF
5915 ac_header_dirent=$ac_hdr; break
5918 done
5919 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5920 if test $ac_header_dirent = dirent.h; then
5921 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5922 $as_echo_n "checking for library containing opendir... " >&6; }
5923 if test "${ac_cv_search_opendir+set}" = set; then
5924 $as_echo_n "(cached) " >&6
5925 else
5926 ac_func_search_save_LIBS=$LIBS
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5934 /* Override any GCC internal prototype to avoid an error.
5935 Use char because int might match the return type of a GCC
5936 builtin and then its argument prototype would still apply. */
5937 #ifdef __cplusplus
5938 extern "C"
5939 #endif
5940 char opendir ();
5942 main ()
5944 return opendir ();
5946 return 0;
5948 _ACEOF
5949 for ac_lib in '' dir; do
5950 if test -z "$ac_lib"; then
5951 ac_res="none required"
5952 else
5953 ac_res=-l$ac_lib
5954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (ac_try="$ac_link"
5958 case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5963 $as_echo "$ac_try_echo") >&5
5964 (eval "$ac_link") 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && {
5971 test -z "$ac_c_werror_flag" ||
5972 test ! -s conftest.err
5973 } && test -s conftest$ac_exeext && {
5974 test "$cross_compiling" = yes ||
5975 $as_test_x conftest$ac_exeext
5976 }; then
5977 ac_cv_search_opendir=$ac_res
5978 else
5979 $as_echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5985 rm -rf conftest.dSYM
5986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5987 conftest$ac_exeext
5988 if test "${ac_cv_search_opendir+set}" = set; then
5989 break
5991 done
5992 if test "${ac_cv_search_opendir+set}" = set; then
5994 else
5995 ac_cv_search_opendir=no
5997 rm conftest.$ac_ext
5998 LIBS=$ac_func_search_save_LIBS
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6001 $as_echo "$ac_cv_search_opendir" >&6; }
6002 ac_res=$ac_cv_search_opendir
6003 if test "$ac_res" != no; then
6004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6008 else
6009 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6010 $as_echo_n "checking for library containing opendir... " >&6; }
6011 if test "${ac_cv_search_opendir+set}" = set; then
6012 $as_echo_n "(cached) " >&6
6013 else
6014 ac_func_search_save_LIBS=$LIBS
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6022 /* Override any GCC internal prototype to avoid an error.
6023 Use char because int might match the return type of a GCC
6024 builtin and then its argument prototype would still apply. */
6025 #ifdef __cplusplus
6026 extern "C"
6027 #endif
6028 char opendir ();
6030 main ()
6032 return opendir ();
6034 return 0;
6036 _ACEOF
6037 for ac_lib in '' x; do
6038 if test -z "$ac_lib"; then
6039 ac_res="none required"
6040 else
6041 ac_res=-l$ac_lib
6042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6044 rm -f conftest.$ac_objext conftest$ac_exeext
6045 if { (ac_try="$ac_link"
6046 case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6051 $as_echo "$ac_try_echo") >&5
6052 (eval "$ac_link") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest$ac_exeext && {
6062 test "$cross_compiling" = yes ||
6063 $as_test_x conftest$ac_exeext
6064 }; then
6065 ac_cv_search_opendir=$ac_res
6066 else
6067 $as_echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6073 rm -rf conftest.dSYM
6074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6075 conftest$ac_exeext
6076 if test "${ac_cv_search_opendir+set}" = set; then
6077 break
6079 done
6080 if test "${ac_cv_search_opendir+set}" = set; then
6082 else
6083 ac_cv_search_opendir=no
6085 rm conftest.$ac_ext
6086 LIBS=$ac_func_search_save_LIBS
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6089 $as_echo "$ac_cv_search_opendir" >&6; }
6090 ac_res=$ac_cv_search_opendir
6091 if test "$ac_res" != no; then
6092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6098 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6099 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6100 if test "${ac_cv_header_stat_broken+set}" = set; then
6101 $as_echo_n "(cached) " >&6
6102 else
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #include <sys/types.h>
6110 #include <sys/stat.h>
6112 #if defined S_ISBLK && defined S_IFDIR
6113 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6114 #endif
6116 #if defined S_ISBLK && defined S_IFCHR
6117 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6118 #endif
6120 #if defined S_ISLNK && defined S_IFREG
6121 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6122 #endif
6124 #if defined S_ISSOCK && defined S_IFREG
6125 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6126 #endif
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6136 $as_echo "$ac_try_echo") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
6147 ac_cv_header_stat_broken=no
6148 else
6149 $as_echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ac_cv_header_stat_broken=yes
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6158 $as_echo "$ac_cv_header_stat_broken" >&6; }
6159 if test $ac_cv_header_stat_broken = yes; then
6161 cat >>confdefs.h <<\_ACEOF
6162 #define STAT_MACROS_BROKEN 1
6163 _ACEOF
6167 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6168 $as_echo_n "checking for ANSI C header files... " >&6; }
6169 if test "${ac_cv_header_stdc+set}" = set; then
6170 $as_echo_n "(cached) " >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <stdlib.h>
6179 #include <stdarg.h>
6180 #include <string.h>
6181 #include <float.h>
6184 main ()
6188 return 0;
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6198 $as_echo "$ac_try_echo") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
6209 ac_cv_header_stdc=yes
6210 else
6211 $as_echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 ac_cv_header_stdc=no
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 if test $ac_cv_header_stdc = yes; then
6220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <string.h>
6229 _ACEOF
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 $EGREP "memchr" >/dev/null 2>&1; then
6233 else
6234 ac_cv_header_stdc=no
6236 rm -f conftest*
6240 if test $ac_cv_header_stdc = yes; then
6241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <stdlib.h>
6250 _ACEOF
6251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6252 $EGREP "free" >/dev/null 2>&1; then
6254 else
6255 ac_cv_header_stdc=no
6257 rm -f conftest*
6261 if test $ac_cv_header_stdc = yes; then
6262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6263 if test "$cross_compiling" = yes; then
6265 else
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 #include <ctype.h>
6273 #include <stdlib.h>
6274 #if ((' ' & 0x0FF) == 0x020)
6275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6277 #else
6278 # define ISLOWER(c) \
6279 (('a' <= (c) && (c) <= 'i') \
6280 || ('j' <= (c) && (c) <= 'r') \
6281 || ('s' <= (c) && (c) <= 'z'))
6282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6283 #endif
6285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6287 main ()
6289 int i;
6290 for (i = 0; i < 256; i++)
6291 if (XOR (islower (i), ISLOWER (i))
6292 || toupper (i) != TOUPPER (i))
6293 return 2;
6294 return 0;
6296 _ACEOF
6297 rm -f conftest$ac_exeext
6298 if { (ac_try="$ac_link"
6299 case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302 esac
6303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6304 $as_echo "$ac_try_echo") >&5
6305 (eval "$ac_link") 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312 esac
6313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6314 $as_echo "$ac_try_echo") >&5
6315 (eval "$ac_try") 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6320 else
6321 $as_echo "$as_me: program exited with status $ac_status" >&5
6322 $as_echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ( exit $ac_status )
6326 ac_cv_header_stdc=no
6328 rm -rf conftest.dSYM
6329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6335 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6336 $as_echo "$ac_cv_header_stdc" >&6; }
6337 if test $ac_cv_header_stdc = yes; then
6339 cat >>confdefs.h <<\_ACEOF
6340 #define STDC_HEADERS 1
6341 _ACEOF
6345 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6346 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6347 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h. */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 #include <sys/types.h>
6357 #include <sys/wait.h>
6358 #ifndef WEXITSTATUS
6359 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6360 #endif
6361 #ifndef WIFEXITED
6362 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6363 #endif
6366 main ()
6368 int s;
6369 wait (&s);
6370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6372 return 0;
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_compile") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest.$ac_objext; then
6393 ac_cv_header_sys_wait_h=yes
6394 else
6395 $as_echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 ac_cv_header_sys_wait_h=no
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6404 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6405 if test $ac_cv_header_sys_wait_h = yes; then
6407 cat >>confdefs.h <<\_ACEOF
6408 #define HAVE_SYS_WAIT_H 1
6409 _ACEOF
6413 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6414 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6415 if test "${ac_cv_header_time+set}" = set; then
6416 $as_echo_n "(cached) " >&6
6417 else
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <sys/types.h>
6425 #include <sys/time.h>
6426 #include <time.h>
6429 main ()
6431 if ((struct tm *) 0)
6432 return 0;
6434 return 0;
6436 _ACEOF
6437 rm -f conftest.$ac_objext
6438 if { (ac_try="$ac_compile"
6439 case "(($ac_try" in
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442 esac
6443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6444 $as_echo "$ac_try_echo") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest.$ac_objext; then
6455 ac_cv_header_time=yes
6456 else
6457 $as_echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 ac_cv_header_time=no
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6466 $as_echo "$ac_cv_header_time" >&6; }
6467 if test $ac_cv_header_time = yes; then
6469 cat >>confdefs.h <<\_ACEOF
6470 #define TIME_WITH_SYS_TIME 1
6471 _ACEOF
6475 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6476 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
6477 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6478 $as_echo_n "(cached) " >&6
6479 else
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 $ac_includes_default
6488 main ()
6490 static struct stat ac_aggr;
6491 if (ac_aggr.st_blksize)
6492 return 0;
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (ac_try="$ac_compile"
6499 case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502 esac
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest.$ac_objext; then
6515 ac_cv_member_struct_stat_st_blksize=yes
6516 else
6517 $as_echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6528 main ()
6530 static struct stat ac_aggr;
6531 if (sizeof ac_aggr.st_blksize)
6532 return 0;
6534 return 0;
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 ac_cv_member_struct_stat_st_blksize=yes
6556 else
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 ac_cv_member_struct_stat_st_blksize=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6569 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
6570 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6574 _ACEOF
6577 cat >>confdefs.h <<\_ACEOF
6578 #define HAVE_ST_BLKSIZE 1
6579 _ACEOF
6584 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6585 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
6586 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6587 $as_echo_n "(cached) " >&6
6588 else
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 $ac_includes_default
6597 main ()
6599 static struct stat ac_aggr;
6600 if (ac_aggr.st_blocks)
6601 return 0;
6603 return 0;
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6608 case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611 esac
6612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613 $as_echo "$ac_try_echo") >&5
6614 (eval "$ac_compile") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest.$ac_objext; then
6624 ac_cv_member_struct_stat_st_blocks=yes
6625 else
6626 $as_echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6637 main ()
6639 static struct stat ac_aggr;
6640 if (sizeof ac_aggr.st_blocks)
6641 return 0;
6643 return 0;
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 if { (ac_try="$ac_compile"
6648 case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6651 esac
6652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6653 $as_echo "$ac_try_echo") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_cv_member_struct_stat_st_blocks=yes
6665 else
6666 $as_echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_cv_member_struct_stat_st_blocks=no
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6678 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
6679 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6681 cat >>confdefs.h <<_ACEOF
6682 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6683 _ACEOF
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_ST_BLOCKS 1
6688 _ACEOF
6690 else
6691 case " $LIBOBJS " in
6692 *" fileblocks.$ac_objext "* ) ;;
6693 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6695 esac
6700 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6701 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6702 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6703 $as_echo_n "(cached) " >&6
6704 else
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 $ac_includes_default
6713 main ()
6715 static struct stat ac_aggr;
6716 if (ac_aggr.st_rdev)
6717 return 0;
6719 return 0;
6721 _ACEOF
6722 rm -f conftest.$ac_objext
6723 if { (ac_try="$ac_compile"
6724 case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 ac_cv_member_struct_stat_st_rdev=yes
6741 else
6742 $as_echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 $ac_includes_default
6753 main ()
6755 static struct stat ac_aggr;
6756 if (sizeof ac_aggr.st_rdev)
6757 return 0;
6759 return 0;
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (ac_try="$ac_compile"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769 $as_echo "$ac_try_echo") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_cv_member_struct_stat_st_rdev=yes
6781 else
6782 $as_echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ac_cv_member_struct_stat_st_rdev=no
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6794 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6795 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_STRUCT_STAT_ST_RDEV 1
6799 _ACEOF
6802 cat >>confdefs.h <<\_ACEOF
6803 #define HAVE_ST_RDEV 1
6804 _ACEOF
6809 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6810 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6811 if test "${ac_cv_struct_tm+set}" = set; then
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 #include <sys/types.h>
6821 #include <time.h>
6824 main ()
6826 struct tm tm;
6827 int *p = &tm.tm_sec;
6828 return !p;
6830 return 0;
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
6851 ac_cv_struct_tm=time.h
6852 else
6853 $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_cv_struct_tm=sys/time.h
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6862 $as_echo "$ac_cv_struct_tm" >&6; }
6863 if test $ac_cv_struct_tm = sys/time.h; then
6865 cat >>confdefs.h <<\_ACEOF
6866 #define TM_IN_SYS_TIME 1
6867 _ACEOF
6871 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6872 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
6873 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6874 $as_echo_n "(cached) " >&6
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <sys/types.h>
6883 #include <$ac_cv_struct_tm>
6887 main ()
6889 static struct tm ac_aggr;
6890 if (ac_aggr.tm_zone)
6891 return 0;
6893 return 0;
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6903 $as_echo "$ac_try_echo") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 ac_cv_member_struct_tm_tm_zone=yes
6915 else
6916 $as_echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <sys/types.h>
6926 #include <$ac_cv_struct_tm>
6930 main ()
6932 static struct tm ac_aggr;
6933 if (sizeof ac_aggr.tm_zone)
6934 return 0;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6946 $as_echo "$ac_try_echo") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
6957 ac_cv_member_struct_tm_tm_zone=yes
6958 else
6959 $as_echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_cv_member_struct_tm_tm_zone=no
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6971 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
6972 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define HAVE_STRUCT_TM_TM_ZONE 1
6976 _ACEOF
6981 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6983 cat >>confdefs.h <<\_ACEOF
6984 #define HAVE_TM_ZONE 1
6985 _ACEOF
6987 else
6988 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6989 $as_echo_n "checking whether tzname is declared... " >&6; }
6990 if test "${ac_cv_have_decl_tzname+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <time.h>
7002 main ()
7004 #ifndef tzname
7005 (void) tzname;
7006 #endif
7009 return 0;
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7019 $as_echo "$ac_try_echo") >&5
7020 (eval "$ac_compile") 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
7030 ac_cv_have_decl_tzname=yes
7031 else
7032 $as_echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_have_decl_tzname=no
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7041 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7042 if test $ac_cv_have_decl_tzname = yes; then
7044 cat >>confdefs.h <<_ACEOF
7045 #define HAVE_DECL_TZNAME 1
7046 _ACEOF
7049 else
7050 cat >>confdefs.h <<_ACEOF
7051 #define HAVE_DECL_TZNAME 0
7052 _ACEOF
7058 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
7059 $as_echo_n "checking for tzname... " >&6; }
7060 if test "${ac_cv_var_tzname+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7062 else
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h. */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <time.h>
7070 #if !HAVE_DECL_TZNAME
7071 extern char *tzname[];
7072 #endif
7075 main ()
7077 return tzname[0][0];
7079 return 0;
7081 _ACEOF
7082 rm -f conftest.$ac_objext conftest$ac_exeext
7083 if { (ac_try="$ac_link"
7084 case "(($ac_try" in
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7087 esac
7088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7089 $as_echo "$ac_try_echo") >&5
7090 (eval "$ac_link") 2>conftest.er1
7091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
7095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && {
7097 test -z "$ac_c_werror_flag" ||
7098 test ! -s conftest.err
7099 } && test -s conftest$ac_exeext && {
7100 test "$cross_compiling" = yes ||
7101 $as_test_x conftest$ac_exeext
7102 }; then
7103 ac_cv_var_tzname=yes
7104 else
7105 $as_echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_cv_var_tzname=no
7111 rm -rf conftest.dSYM
7112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7113 conftest$ac_exeext conftest.$ac_ext
7115 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7116 $as_echo "$ac_cv_var_tzname" >&6; }
7117 if test $ac_cv_var_tzname = yes; then
7119 cat >>confdefs.h <<\_ACEOF
7120 #define HAVE_TZNAME 1
7121 _ACEOF
7126 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7127 $as_echo_n "checking for off_t... " >&6; }
7128 if test "${ac_cv_type_off_t+set}" = set; then
7129 $as_echo_n "(cached) " >&6
7130 else
7131 ac_cv_type_off_t=no
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7140 main ()
7142 if (sizeof (off_t))
7143 return 0;
7145 return 0;
7147 _ACEOF
7148 rm -f conftest.$ac_objext
7149 if { (ac_try="$ac_compile"
7150 case "(($ac_try" in
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7153 esac
7154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7155 $as_echo "$ac_try_echo") >&5
7156 (eval "$ac_compile") 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } && {
7163 test -z "$ac_c_werror_flag" ||
7164 test ! -s conftest.err
7165 } && test -s conftest.$ac_objext; then
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 $ac_includes_default
7174 main ()
7176 if (sizeof ((off_t)))
7177 return 0;
7179 return 0;
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189 $as_echo "$ac_try_echo") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
7201 else
7202 $as_echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 ac_cv_type_off_t=yes
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 else
7210 $as_echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7219 $as_echo "$ac_cv_type_off_t" >&6; }
7220 if test $ac_cv_type_off_t = yes; then
7222 else
7224 cat >>confdefs.h <<_ACEOF
7225 #define off_t long int
7226 _ACEOF
7230 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7231 $as_echo_n "checking for pid_t... " >&6; }
7232 if test "${ac_cv_type_pid_t+set}" = set; then
7233 $as_echo_n "(cached) " >&6
7234 else
7235 ac_cv_type_pid_t=no
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 $ac_includes_default
7244 main ()
7246 if (sizeof (pid_t))
7247 return 0;
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7259 $as_echo "$ac_try_echo") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7261 ac_status=$?
7262 grep -v '^ *+' conftest.er1 >conftest.err
7263 rm -f conftest.er1
7264 cat conftest.err >&5
7265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest.$ac_objext; then
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7278 main ()
7280 if (sizeof ((pid_t)))
7281 return 0;
7283 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (ac_try="$ac_compile"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7305 else
7306 $as_echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 ac_cv_type_pid_t=yes
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 else
7314 $as_echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7323 $as_echo "$ac_cv_type_pid_t" >&6; }
7324 if test $ac_cv_type_pid_t = yes; then
7326 else
7328 cat >>confdefs.h <<_ACEOF
7329 #define pid_t int
7330 _ACEOF
7334 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7335 $as_echo_n "checking for size_t... " >&6; }
7336 if test "${ac_cv_type_size_t+set}" = set; then
7337 $as_echo_n "(cached) " >&6
7338 else
7339 ac_cv_type_size_t=no
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 $ac_includes_default
7348 main ()
7350 if (sizeof (size_t))
7351 return 0;
7353 return 0;
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7358 case "(($ac_try" in
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7361 esac
7362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7363 $as_echo "$ac_try_echo") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7382 main ()
7384 if (sizeof ((size_t)))
7385 return 0;
7387 return 0;
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7392 case "(($ac_try" in
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7395 esac
7396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7397 $as_echo "$ac_try_echo") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7409 else
7410 $as_echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 ac_cv_type_size_t=yes
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 else
7418 $as_echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7427 $as_echo "$ac_cv_type_size_t" >&6; }
7428 if test $ac_cv_type_size_t = yes; then
7430 else
7432 cat >>confdefs.h <<_ACEOF
7433 #define size_t unsigned int
7434 _ACEOF
7438 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7439 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7440 if test "${ac_cv_type_uid_t+set}" = set; then
7441 $as_echo_n "(cached) " >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #include <sys/types.h>
7451 _ACEOF
7452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7453 $EGREP "uid_t" >/dev/null 2>&1; then
7454 ac_cv_type_uid_t=yes
7455 else
7456 ac_cv_type_uid_t=no
7458 rm -f conftest*
7461 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7462 $as_echo "$ac_cv_type_uid_t" >&6; }
7463 if test $ac_cv_type_uid_t = no; then
7465 cat >>confdefs.h <<\_ACEOF
7466 #define uid_t int
7467 _ACEOF
7470 cat >>confdefs.h <<\_ACEOF
7471 #define gid_t int
7472 _ACEOF
7477 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7478 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
7479 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7480 $as_echo_n "(cached) " >&6
7481 else
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h. */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 $ac_includes_default
7490 main ()
7492 static struct tm ac_aggr;
7493 if (ac_aggr.tm_gmtoff)
7494 return 0;
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 ac_cv_member_struct_tm_tm_gmtoff=yes
7518 else
7519 $as_echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7530 main ()
7532 static struct tm ac_aggr;
7533 if (sizeof ac_aggr.tm_gmtoff)
7534 return 0;
7536 return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7541 case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544 esac
7545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7546 $as_echo "$ac_try_echo") >&5
7547 (eval "$ac_compile") 2>conftest.er1
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
7552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } && {
7554 test -z "$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 } && test -s conftest.$ac_objext; then
7557 ac_cv_member_struct_tm_tm_gmtoff=yes
7558 else
7559 $as_echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 ac_cv_member_struct_tm_tm_gmtoff=no
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7571 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7572 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7576 _ACEOF
7582 # Look for some functions
7597 for ac_func in getpagesize kqueue statfs statvfs \
7598 clone kse_create rfork_thread thr_create sa_register \
7599 getcontext makecontext setcontext sigaltstack swapcontext
7601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7602 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7603 $as_echo_n "checking for $ac_func... " >&6; }
7604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7605 $as_echo_n "(cached) " >&6
7606 else
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7615 #define $ac_func innocuous_$ac_func
7617 /* System header to define __stub macros and hopefully few prototypes,
7618 which can conflict with char $ac_func (); below.
7619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7620 <limits.h> exists even on freestanding compilers. */
7622 #ifdef __STDC__
7623 # include <limits.h>
7624 #else
7625 # include <assert.h>
7626 #endif
7628 #undef $ac_func
7630 /* Override any GCC internal prototype to avoid an error.
7631 Use char because int might match the return type of a GCC
7632 builtin and then its argument prototype would still apply. */
7633 #ifdef __cplusplus
7634 extern "C"
7635 #endif
7636 char $ac_func ();
7637 /* The GNU C library defines this for functions which it implements
7638 to always fail with ENOSYS. Some functions are actually named
7639 something starting with __ and the normal name is an alias. */
7640 #if defined __stub_$ac_func || defined __stub___$ac_func
7641 choke me
7642 #endif
7645 main ()
7647 return $ac_func ();
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659 $as_echo "$ac_try_echo") >&5
7660 (eval "$ac_link") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest$ac_exeext && {
7670 test "$cross_compiling" = yes ||
7671 $as_test_x conftest$ac_exeext
7672 }; then
7673 eval "$as_ac_var=yes"
7674 else
7675 $as_echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 eval "$as_ac_var=no"
7681 rm -rf conftest.dSYM
7682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7683 conftest$ac_exeext conftest.$ac_ext
7685 ac_res=`eval 'as_val=${'$as_ac_var'}
7686 $as_echo "$as_val"'`
7687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7688 $as_echo "$ac_res" >&6; }
7689 if test `eval 'as_val=${'$as_ac_var'}
7690 $as_echo "$as_val"'` = yes; then
7691 cat >>confdefs.h <<_ACEOF
7692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7693 _ACEOF
7696 done
7701 for ac_header in stdlib.h unistd.h
7703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7706 $as_echo_n "checking for $ac_header... " >&6; }
7707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7708 $as_echo_n "(cached) " >&6
7710 ac_res=`eval 'as_val=${'$as_ac_Header'}
7711 $as_echo "$as_val"'`
7712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7713 $as_echo "$ac_res" >&6; }
7714 else
7715 # Is the header compilable?
7716 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7717 $as_echo_n "checking $ac_header usability... " >&6; }
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 $ac_includes_default
7725 #include <$ac_header>
7726 _ACEOF
7727 rm -f conftest.$ac_objext
7728 if { (ac_try="$ac_compile"
7729 case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 ac_header_compiler=yes
7746 else
7747 $as_echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_header_compiler=no
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7755 $as_echo "$ac_header_compiler" >&6; }
7757 # Is the header present?
7758 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7759 $as_echo_n "checking $ac_header presence... " >&6; }
7760 cat >conftest.$ac_ext <<_ACEOF
7761 /* confdefs.h. */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7766 #include <$ac_header>
7767 _ACEOF
7768 if { (ac_try="$ac_cpp conftest.$ac_ext"
7769 case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772 esac
7773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7774 $as_echo "$ac_try_echo") >&5
7775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7776 ac_status=$?
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
7780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } >/dev/null && {
7782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 }; then
7785 ac_header_preproc=yes
7786 else
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_header_preproc=no
7793 rm -f conftest.err conftest.$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7795 $as_echo "$ac_header_preproc" >&6; }
7797 # So? What about this header?
7798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7799 yes:no: )
7800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7801 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7803 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7804 ac_header_preproc=yes
7806 no:yes:* )
7807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7808 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7810 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7812 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7814 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7816 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7818 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7821 esac
7822 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7823 $as_echo_n "checking for $ac_header... " >&6; }
7824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7825 $as_echo_n "(cached) " >&6
7826 else
7827 eval "$as_ac_Header=\$ac_header_preproc"
7829 ac_res=`eval 'as_val=${'$as_ac_Header'}
7830 $as_echo "$as_val"'`
7831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7832 $as_echo "$ac_res" >&6; }
7835 if test `eval 'as_val=${'$as_ac_Header'}
7836 $as_echo "$as_val"'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839 _ACEOF
7843 done
7846 for ac_func in getpagesize
7848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7849 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7850 $as_echo_n "checking for $ac_func... " >&6; }
7851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7852 $as_echo_n "(cached) " >&6
7853 else
7854 cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h. */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7862 #define $ac_func innocuous_$ac_func
7864 /* System header to define __stub macros and hopefully few prototypes,
7865 which can conflict with char $ac_func (); below.
7866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7867 <limits.h> exists even on freestanding compilers. */
7869 #ifdef __STDC__
7870 # include <limits.h>
7871 #else
7872 # include <assert.h>
7873 #endif
7875 #undef $ac_func
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7880 #ifdef __cplusplus
7881 extern "C"
7882 #endif
7883 char $ac_func ();
7884 /* The GNU C library defines this for functions which it implements
7885 to always fail with ENOSYS. Some functions are actually named
7886 something starting with __ and the normal name is an alias. */
7887 #if defined __stub_$ac_func || defined __stub___$ac_func
7888 choke me
7889 #endif
7892 main ()
7894 return $ac_func ();
7896 return 0;
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (ac_try="$ac_link"
7901 case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904 esac
7905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7906 $as_echo "$ac_try_echo") >&5
7907 (eval "$ac_link") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest$ac_exeext && {
7917 test "$cross_compiling" = yes ||
7918 $as_test_x conftest$ac_exeext
7919 }; then
7920 eval "$as_ac_var=yes"
7921 else
7922 $as_echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 eval "$as_ac_var=no"
7928 rm -rf conftest.dSYM
7929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7930 conftest$ac_exeext conftest.$ac_ext
7932 ac_res=`eval 'as_val=${'$as_ac_var'}
7933 $as_echo "$as_val"'`
7934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7935 $as_echo "$ac_res" >&6; }
7936 if test `eval 'as_val=${'$as_ac_var'}
7937 $as_echo "$as_val"'` = yes; then
7938 cat >>confdefs.h <<_ACEOF
7939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7940 _ACEOF
7943 done
7945 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7946 $as_echo_n "checking for working mmap... " >&6; }
7947 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test "$cross_compiling" = yes; then
7951 ac_cv_func_mmap_fixed_mapped=no
7952 else
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 $ac_includes_default
7960 /* malloc might have been renamed as rpl_malloc. */
7961 #undef malloc
7963 /* Thanks to Mike Haertel and Jim Avera for this test.
7964 Here is a matrix of mmap possibilities:
7965 mmap private not fixed
7966 mmap private fixed at somewhere currently unmapped
7967 mmap private fixed at somewhere already mapped
7968 mmap shared not fixed
7969 mmap shared fixed at somewhere currently unmapped
7970 mmap shared fixed at somewhere already mapped
7971 For private mappings, we should verify that changes cannot be read()
7972 back from the file, nor mmap's back from the file at a different
7973 address. (There have been systems where private was not correctly
7974 implemented like the infamous i386 svr4.0, and systems where the
7975 VM page cache was not coherent with the file system buffer cache
7976 like early versions of FreeBSD and possibly contemporary NetBSD.)
7977 For shared mappings, we should conversely verify that changes get
7978 propagated back to all the places they're supposed to be.
7980 Grep wants private fixed already mapped.
7981 The main things grep needs to know about mmap are:
7982 * does it exist and is it safe to write into the mmap'd area
7983 * how to use it (BSD variants) */
7985 #include <fcntl.h>
7986 #include <sys/mman.h>
7988 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7989 char *malloc ();
7990 #endif
7992 /* This mess was copied from the GNU getpagesize.h. */
7993 #ifndef HAVE_GETPAGESIZE
7994 /* Assume that all systems that can run configure have sys/param.h. */
7995 # ifndef HAVE_SYS_PARAM_H
7996 # define HAVE_SYS_PARAM_H 1
7997 # endif
7999 # ifdef _SC_PAGESIZE
8000 # define getpagesize() sysconf(_SC_PAGESIZE)
8001 # else /* no _SC_PAGESIZE */
8002 # ifdef HAVE_SYS_PARAM_H
8003 # include <sys/param.h>
8004 # ifdef EXEC_PAGESIZE
8005 # define getpagesize() EXEC_PAGESIZE
8006 # else /* no EXEC_PAGESIZE */
8007 # ifdef NBPG
8008 # define getpagesize() NBPG * CLSIZE
8009 # ifndef CLSIZE
8010 # define CLSIZE 1
8011 # endif /* no CLSIZE */
8012 # else /* no NBPG */
8013 # ifdef NBPC
8014 # define getpagesize() NBPC
8015 # else /* no NBPC */
8016 # ifdef PAGESIZE
8017 # define getpagesize() PAGESIZE
8018 # endif /* PAGESIZE */
8019 # endif /* no NBPC */
8020 # endif /* no NBPG */
8021 # endif /* no EXEC_PAGESIZE */
8022 # else /* no HAVE_SYS_PARAM_H */
8023 # define getpagesize() 8192 /* punt totally */
8024 # endif /* no HAVE_SYS_PARAM_H */
8025 # endif /* no _SC_PAGESIZE */
8027 #endif /* no HAVE_GETPAGESIZE */
8030 main ()
8032 char *data, *data2, *data3;
8033 int i, pagesize;
8034 int fd;
8036 pagesize = getpagesize ();
8038 /* First, make a file with some known garbage in it. */
8039 data = (char *) malloc (pagesize);
8040 if (!data)
8041 return 1;
8042 for (i = 0; i < pagesize; ++i)
8043 *(data + i) = rand ();
8044 umask (0);
8045 fd = creat ("conftest.mmap", 0600);
8046 if (fd < 0)
8047 return 1;
8048 if (write (fd, data, pagesize) != pagesize)
8049 return 1;
8050 close (fd);
8052 /* Next, try to mmap the file at a fixed address which already has
8053 something else allocated at it. If we can, also make sure that
8054 we see the same garbage. */
8055 fd = open ("conftest.mmap", O_RDWR);
8056 if (fd < 0)
8057 return 1;
8058 data2 = (char *) malloc (2 * pagesize);
8059 if (!data2)
8060 return 1;
8061 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8062 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8063 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8064 return 1;
8065 for (i = 0; i < pagesize; ++i)
8066 if (*(data + i) != *(data2 + i))
8067 return 1;
8069 /* Finally, make sure that changes to the mapped area do not
8070 percolate back to the file as seen by read(). (This is a bug on
8071 some variants of i386 svr4.0.) */
8072 for (i = 0; i < pagesize; ++i)
8073 *(data2 + i) = *(data2 + i) + 1;
8074 data3 = (char *) malloc (pagesize);
8075 if (!data3)
8076 return 1;
8077 if (read (fd, data3, pagesize) != pagesize)
8078 return 1;
8079 for (i = 0; i < pagesize; ++i)
8080 if (*(data + i) != *(data3 + i))
8081 return 1;
8082 close (fd);
8083 return 0;
8085 _ACEOF
8086 rm -f conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8088 case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091 esac
8092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093 $as_echo "$ac_try_echo") >&5
8094 (eval "$ac_link") 2>&5
8095 ac_status=$?
8096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8101 esac
8102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8103 $as_echo "$ac_try_echo") >&5
8104 (eval "$ac_try") 2>&5
8105 ac_status=$?
8106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_cv_func_mmap_fixed_mapped=yes
8109 else
8110 $as_echo "$as_me: program exited with status $ac_status" >&5
8111 $as_echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 ( exit $ac_status )
8115 ac_cv_func_mmap_fixed_mapped=no
8117 rm -rf conftest.dSYM
8118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8123 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8124 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8125 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8127 cat >>confdefs.h <<\_ACEOF
8128 #define HAVE_MMAP 1
8129 _ACEOF
8132 rm -f conftest.mmap
8137 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8138 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8139 aros_config_ldflags=""
8141 aros_shared_default=yes
8143 aros_shared_cflags="-fPIC"
8144 aros_shared_aflags=""
8145 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8146 aros_kernel_ldflags="-Wl,-rpath,./lib"
8148 aros_target_ar_flags="cr"
8149 aros_target_nm_flags="-C -ul"
8150 aros_target_strip_flags="--strip-unneeded -R.comment"
8152 aros_compiler_libs=
8154 aros_target_genmap="-Wl,-Map -Xlinker"
8156 # Native flavour stuff
8157 aros_bochs_hack="0"
8158 aros_serial_debug="0"
8160 # Palm native flavour stuff
8161 aros_palm_debug_hack="0"
8163 # Unix flavour stuff
8164 aros_nesting_supervisor="0"
8166 # Collect-aros stuff: "-ius" to ignore undefined symbols
8167 ignore_undefined_symbols=""
8169 #-----------------------------------------------------------------------------
8172 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
8173 # it switched on by default, and we use the host compiler, so it compiles AROS
8174 # code with this enabled resulting in link failures as we don't have support
8175 # for it.
8177 # We use two methods to disable it. For the host compiler (used to compile
8178 # some hosted modules), we test to see if the compiler supports stack
8179 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
8180 # work on all platforms.
8182 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
8183 # (this is done unconditionally, as it should have no effect on compilers
8184 # without the stack protection feature). This may be specific to the way that
8185 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
8186 # strong enough to disable it in a generic way though, so we'll live with it
8187 # until another vendor ships GCC with it enabled in a different way, and deal
8188 # with it then.
8191 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8192 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
8193 save_cflags="$CFLAGS"
8194 CFLAGS="$CFLAGS -fno-stack-protector"
8195 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h. */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8203 main ()
8207 return 0;
8209 _ACEOF
8210 rm -f conftest.$ac_objext
8211 if { (ac_try="$ac_compile"
8212 case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215 esac
8216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8217 $as_echo "$ac_try_echo") >&5
8218 (eval "$ac_compile") 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && {
8225 test -z "$ac_c_werror_flag" ||
8226 test ! -s conftest.err
8227 } && test -s conftest.$ac_objext; then
8228 use_no_stack_protector="yes"
8229 else
8230 $as_echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8233 use_no_stack_protector="no"
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 { $as_echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8238 $as_echo "$use_no_stack_protector" >&6; }
8239 if test "x-$use_no_stack_protector" = "x-yes" ; then
8240 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8242 CFLAGS="$save_cflags"
8245 #-----------------------------------------------------------------------------
8247 # Disable pointer-signedness warnings if the compiler recognises the option
8248 # (this only works for the host compiler at the moment)
8250 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8251 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8252 save_cflags="$CFLAGS"
8253 CFLAGS="$CFLAGS -Wno-pointer-sign"
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8262 main ()
8266 return 0;
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8271 case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274 esac
8275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8276 $as_echo "$ac_try_echo") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest.$ac_objext; then
8287 use_no_sign_warning="yes"
8288 else
8289 $as_echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 use_no_sign_warning="no"
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8297 $as_echo "$use_no_sign_warning" >&6; }
8298 if test "x-$use_no_sign_warning" = "x-yes" ; then
8299 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8301 CFLAGS="$save_cflags"
8303 #-----------------------------------------------------------------------------
8305 { $as_echo "$as_me:$LINENO: checking for type of build" >&5
8306 $as_echo_n "checking for type of build... " >&6; }
8307 # Check whether --enable-build_type was given.
8308 if test "${enable_build_type+set}" = set; then
8309 enableval=$enable_build_type; build_type=$enableval
8310 else
8311 build_type="personal"
8315 if test "$build_type" = "nightly"; then
8316 build_type_string="NIGHTLY"
8317 elif test "$build_type" = "snapshot"; then
8318 build_type_string="SNAPSHOT"
8319 elif test "$build_type" = "milestone"; then
8320 build_type_string="MILESTONE"
8321 elif test "$build_type" = "release"; then
8322 build_type_string="RELEASE"
8323 else
8324 build_type_string="PERSONAL"
8325 build_type="personal"
8328 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8330 { $as_echo "$as_me:$LINENO: result: $build_type" >&5
8331 $as_echo "$build_type" >&6; }
8333 #-----------------------------------------------------------------------------
8334 all_debug_types="messages stack mungwall modules symbols"
8336 { $as_echo "$as_me:$LINENO: checking which debug types to enable" >&5
8337 $as_echo_n "checking which debug types to enable... " >&6; }
8338 # Check whether --enable-debug was given.
8339 if test "${enable_debug+set}" = set; then
8340 enableval=$enable_debug; debug="$enableval"
8341 else
8342 debug=""
8346 if test "$debug" = "" -o "$debug" = "no"; then
8347 debug="none"
8348 elif test "$debug" = "yes"; then
8349 debug="all"
8352 if test "$debug" = "all" ; then
8353 debug=$all_debug_types
8354 for d in $all_debug_types; do
8355 export aros_${d}_debug="1"
8356 done
8357 else
8358 for d in $all_debug_types; do
8359 export aros_${d}_debug="0"
8360 done
8363 if test "$debug" != "none"; then
8364 debug=`echo $debug | sed s/,/\ /g`
8365 for d in $debug; do
8366 found="0"
8367 for d2 in $all_debug_types; do
8368 if test "$d2" = "$d"; then
8369 found="1"
8370 break
8372 done
8373 if test "$found" = "0"; then
8374 { { $as_echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8375 $as_echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8376 { (exit 1); exit 1; }; }
8378 export aros_${d}_debug="1"
8379 done
8380 aros_debug="yes"
8382 { $as_echo "$as_me:$LINENO: result: $debug" >&5
8383 $as_echo "$debug" >&6; }
8385 if test "$aros_messages_debug" = "1"; then
8386 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8387 else
8388 aros_messages_debug=""
8390 if test "$aros_symbols_debug" = "1"; then
8391 aros_symbols_debug="-g"
8392 else
8393 aros_symbols_debug=""
8396 # These are the flags to pass when compiling debugged programs
8397 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8398 aros_debug_aflags=""
8399 aros_debug_ldflags="$aros_symbols_debug"
8401 #-----------------------------------------------------------------------------
8402 # Checking for distcc and ccache.
8404 # Always apply the transforms in this particular order. Basically you should
8405 # always run 'ccache distcc compiler' in that order for the best performance.
8407 { $as_echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8408 $as_echo_n "checking whether to enable distcc... " >&6; }
8409 # Check whether --enable-distcc was given.
8410 if test "${enable_distcc+set}" = set; then
8411 enableval=$enable_distcc; distcc="$enableval"
8412 else
8413 distcc="no"
8416 if test "$distcc" != "" -a "$distcc" != "no"; then
8417 # AC_CHECK_PROG will print out the result in this case
8418 # Extract the first word of "distcc", so it can be a program name with args.
8419 set dummy distcc; ac_word=$2
8420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8421 $as_echo_n "checking for $ac_word... " >&6; }
8422 if test "${ac_cv_path_DISTCC+set}" = set; then
8423 $as_echo_n "(cached) " >&6
8424 else
8425 case $DISTCC in
8426 [\\/]* | ?:[\\/]*)
8427 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8441 done
8442 done
8443 IFS=$as_save_IFS
8445 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8447 esac
8449 DISTCC=$ac_cv_path_DISTCC
8450 if test -n "$DISTCC"; then
8451 { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
8452 $as_echo "$DISTCC" >&6; }
8453 else
8454 { $as_echo "$as_me:$LINENO: result: no" >&5
8455 $as_echo "no" >&6; }
8459 else
8460 { $as_echo "$as_me:$LINENO: result: no" >&5
8461 $as_echo "no" >&6; }
8464 { $as_echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8465 $as_echo_n "checking whether to enable ccache... " >&6; }
8466 # Check whether --enable-ccache was given.
8467 if test "${enable_ccache+set}" = set; then
8468 enableval=$enable_ccache; ccache="$enableval"
8469 else
8470 ccache="no"
8473 if test "$ccache" != "" -a "$ccache" != "no"; then
8474 # AC_CHECK_PROG will print out the result in this case
8475 # Extract the first word of "ccache", so it can be a program name with args.
8476 set dummy ccache; ac_word=$2
8477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if test "${ac_cv_prog_CCACHE+set}" = set; then
8480 $as_echo_n "(cached) " >&6
8481 else
8482 if test -n "$CCACHE"; then
8483 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8484 else
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492 ac_cv_prog_CCACHE="ccache"
8493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 break 2
8496 done
8497 done
8498 IFS=$as_save_IFS
8502 CCACHE=$ac_cv_prog_CCACHE
8503 if test -n "$CCACHE"; then
8504 { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
8505 $as_echo "$CCACHE" >&6; }
8506 else
8507 { $as_echo "$as_me:$LINENO: result: no" >&5
8508 $as_echo "no" >&6; }
8512 else
8513 { $as_echo "$as_me:$LINENO: result: no" >&5
8514 $as_echo "no" >&6; }
8517 #-----------------------------------------------------------------------------
8518 { $as_echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8519 $as_echo_n "checking what optimization flags to use... " >&6; }
8521 # Check whether --with-optimization was given.
8522 if test "${with_optimization+set}" = set; then
8523 withval=$with_optimization; optimization="$withval"
8524 else
8525 optimization="unknown"
8528 if test "$optimization" = "unknown"; then
8529 if test "$debug" != "none"; then
8530 optimization="-O0"
8531 else
8532 optimization="-O2"
8535 aros_config_cflags="$aros_config_cflags $optimization"
8536 { $as_echo "$as_me:$LINENO: result: $optimization" >&5
8537 $as_echo "$optimization" >&6; }
8539 #-----------------------------------------------------------------------------
8540 { $as_echo "$as_me:$LINENO: checking what target variant to enable" >&5
8541 $as_echo_n "checking what target variant to enable... " >&6; }
8542 # Check whether --enable-target_variant was given.
8543 if test "${enable_target_variant+set}" = set; then
8544 enableval=$enable_target_variant; target_variant=$enableval
8545 else
8546 target_variant="none"
8549 if test "$target_variant" = "none"; then
8550 aros_target_variant=""
8551 aros_target_suffix=""
8552 else
8553 aros_target_variant="$target_variant"
8554 aros_target_suffix="-$target_variant"
8556 { $as_echo "$as_me:$LINENO: result: $enableval" >&5
8557 $as_echo "$enableval" >&6; }
8559 target_bootloader="none"
8561 #-----------------------------------------------------------------------------
8562 # This is the target configuration switch.
8563 case "$target_os" in
8564 linux*)
8565 aros_target_arch="linux"
8566 case "$target_cpu" in
8567 *m68k*)
8568 aros_target_cpu="m68k"
8569 aros_object_format="m68kelf"
8570 aros_flavour="emulcompat"
8571 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8572 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8573 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8574 gcc_target_cpu="mc68000"
8576 *i?86*)
8577 aros_target_cpu="i386"
8578 aros_object_format="elf_i386"
8579 aros_flavour="emulation"
8580 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8581 aros_default_wbdepth=8
8582 gcc_target_cpu="i386"
8584 *x86_64*)
8585 aros_target_cpu="x86_64"
8586 aros_object_format="elf_x86_64"
8587 aros_flavour="emulation"
8588 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8589 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8590 aros_default_wbdepth=8
8591 gcc_target_cpu="x86_64"
8593 *powerpc*)
8594 aros_target_cpu="ppc"
8595 aros_object_format="elf32ppc"
8596 aros_flavour="emulation"
8597 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8598 aros_default_wbdepth=8
8599 gcc_target_cpu="ppc"
8601 # TODO
8602 # Same as powerpc, but I need this for the nightly build to work again.
8603 # Actually, the nightly should be made working with powerpc target.
8604 # That just was too much work for the moment, another week or two.
8605 *ppc*)
8606 aros_target_cpu="ppc"
8607 aros_object_format="elf32ppc"
8608 aros_flavour="emulation"
8609 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8610 aros_default_wbdepth=8
8611 gcc_target_cpu="ppc"
8614 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8615 $as_echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8616 { (exit 1); exit 1; }; }
8618 esac
8622 aros_target_arch="pc"
8623 aros_shared_default="no"
8624 target_bootloader="grub"
8625 case "$target_cpu" in
8626 *i?86*)
8627 aros_target_cpu="i386"
8630 if test "$aros_object_format" = "" ; then
8631 aros_object_format="elf_i386"
8633 aros_flavour="standalone"
8634 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8635 aros_kernel_ldflags=""
8636 aros_default_wbwidth=640
8637 aros_default_wbheight=480
8638 gcc_target_cpu="i386"
8640 *x86_64*)
8641 aros_target_cpu="x86_64"
8642 aros_serial_debug=1
8643 if test "$aros_object_format" = "" ; then
8644 aros_object_format="elf_x86_64"
8646 aros_flavour="standalone"
8647 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8648 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8649 aros_kernel_ldflags=""
8650 aros_default_wbwidth=640
8651 aros_default_wbheight=480
8652 gcc_target_cpu="x86_64"
8655 { { $as_echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8656 $as_echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8657 { (exit 1); exit 1; }; }
8659 esac
8662 prep)
8663 aros_target_arch="prep"
8664 aros_shared_default="no"
8665 aros_target_cpu="ppc"
8666 aros_object_format="elf32ppc"
8667 aros_flavour="ppcnative"
8668 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8669 aros_kernel_ldflags=""
8670 aros_default_wbwidth=640
8671 aros_default_wbheight=480
8672 gcc_target_cpu="ppc"
8673 case "$target_cpu" in
8674 *cross*)
8675 aros_target_cc="ppc-linux-gcc -pipe"
8676 aros_target_ld="ppc-linux-ld"
8677 aros_target_as="ppc-linux-as"
8678 aros_target_ar="ppc-linux-ar"
8679 aros_target_ranlib="ppc-linux-ranlib"
8680 aros_target_nm="ppc-linux-nm"
8681 aros_target_strip="ppc-linux-strip"
8682 aros_target_objcopy="ppc-linux-objcopy"
8683 aros_target_objdump="ppc-linux-objdump"
8684 aros_shared_ld="ppc-linux-ld"
8685 aros_kernel_ld="ppc-linux-ld"
8689 esac
8692 freebsd*)
8693 aros_target_arch="freebsd"
8694 aros_target_cpu="i386"
8695 aros_flavour="emulation"
8696 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8697 gcc_target_cpu="i386"
8699 aros_target_strip_flags="-x"
8702 darwin*)
8703 aros_target_arch="darwin"
8704 aros_target_cpu="i386"
8705 aros_flavour="emulation"
8706 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8707 gcc_target_cpu="i386"
8709 aros_target_strip_flags="-x"
8712 netbsd*)
8713 aros_target_arch="netbsd"
8714 case "$target_cpu" in
8715 *m68k*)
8716 aros_target_cpu="m68k"
8717 aros_object_format="m68kelf"
8718 aros_flavour="emulcompat"
8719 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8720 gcc_target_cpu="mc68000"
8722 *i?86*)
8723 aros_target_cpu="i386"
8724 aros_object_format="elf_i386"
8725 aros_flavour="emulation"
8726 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8727 aros_default_wbdepth=8
8728 gcc_target_cpu="i386"
8731 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8732 $as_echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8733 { (exit 1); exit 1; }; }
8735 esac
8736 aros_target_genmap="-Wl,-M -Xlinker >"
8737 aros_flavour="emulation"
8738 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8741 openbsd*)
8742 aros_target_arch="openbsd"
8743 case "$target_cpu" in
8744 *i?86*)
8745 aros_target_cpu="i386"
8746 aros_object_format="elf_i386"
8747 aros_flavour="emulation"
8748 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8749 gcc_target_cpu="i386"
8752 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8753 $as_echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8754 { (exit 1); exit 1; }; }
8756 esac
8757 aros_target_genmap="-Wl,-M -Xlinker >"
8758 aros_target_nm_flags="-u"
8759 aros_flavour="emulation"
8762 solaris*)
8763 aros_target_arch="solaris"
8764 case "$target_cpu" in
8765 *i?86*)
8766 aros_target_cpu="i386"
8767 aros_object_format="elf_i386"
8768 aros_flavour="emulation"
8769 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8770 aros_default_wbdepth=8
8771 gcc_target_cpu="i386"
8773 *sparc*)
8774 aros_target_cpu="sparc"
8775 aros_object_format="elf_sparc"
8776 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8777 gcc_target_cpu="sparc"
8780 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8781 $as_echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8782 { (exit 1); exit 1; }; }
8784 esac
8785 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8786 aros_flavour="emulation"
8789 morphos*)
8790 aros_target_arch="morphos"
8791 aros_shared_default="no"
8792 aros_target_cpu="ppc"
8793 aros_object_format="elf_ppc"
8794 aros_flavour="nativecompat"
8795 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8796 gcc_target_cpu="ppc"
8799 sam440)
8800 aros_target_arch="sam440"
8801 aros_shared_default="no"
8802 aros_target_cpu="ppc"
8803 aros_object_format="elf32ppc"
8804 aros_flavour="ppcnative"
8805 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8806 aros_kernel_ldflags=""
8807 aros_default_wbwidth=640
8808 aros_default_wbheight=480
8809 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8810 gcc_target_cpu="powerpc"
8811 case "$target_cpu" in
8812 *powerpc*)
8813 aros_target_cc="powerpc-linux-gcc -pipe"
8814 aros_target_ld="powerpc-linux-ld"
8815 aros_target_as="powerpc-linux-as"
8816 aros_target_ar="powerpc-linux-ar"
8817 aros_target_ranlib="powerpc-linux-ranlib"
8818 aros_target_nm="powerpc-linux-nm"
8819 aros_target_strip="powerpc-linux-strip"
8820 aros_target_objcopy="powerpc-linux-objcopy"
8821 aros_target_objdump="powerpc-linux-objdump"
8822 aros_shared_ld="powerpc-linux-ld"
8823 aros_kernel_ld="powerpc-linux-ld"
8827 esac
8830 amiga*)
8831 aros_target_arch="amiga"
8832 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8833 aros_shared_default="no"
8835 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8837 case "$target_cpu" in
8838 *m68k*)
8839 aros_target_cpu="m68k"
8840 aros_object_format="m68kelf"
8841 aros_flavour="nativecompat"
8842 gcc_target_cpu="mc68000"
8844 *ppc*)
8845 aros_cpu="ppc"
8846 aros_flavour="native"
8847 gcc_target_cpu="ppc"
8850 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8851 $as_echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8852 { (exit 1); exit 1; }; }
8854 esac
8857 cygwin*)
8858 aros_target_arch="cygwin"
8859 aros_shared_default="no"
8860 case "$target_cpu" in
8861 *i?86*)
8862 aros_target_cpu="i386"
8863 aros_object_format="elf_i386"
8864 aros_flavour="emulation"
8865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8866 aros_shared_cflags=""
8867 aros_default_wbdepth=8
8868 gcc_target_cpu="i386"
8871 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8872 $as_echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8873 { (exit 1); exit 1; }; }
8875 esac
8878 mingw32*)
8879 aros_target_arch="mingw32"
8880 aros_shared_default="no"
8881 case "$target_cpu" in
8882 *i?86*)
8883 aros_target_cpu="i386"
8884 aros_object_format="elf_i386"
8885 aros_flavour="emulation"
8886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8887 aros_shared_cflags=""
8888 aros_default_wbdepth=8
8889 gcc_target_cpu="i386"
8892 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8893 $as_echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8894 { (exit 1); exit 1; }; }
8896 esac
8897 if test $host_os = "cygwin"; then
8898 aros_config_cflags="$aros_config_cflags -mno-cygwin"
8899 aros_config_ldflags="$aros_config_ldflags -mno-cygwin"
8900 aros_kernel_ldflags="$aros_kernel_ldflags -mno-cygwin"
8903 pp*)
8904 aros_target_arch="pp"
8905 aros_shared_default="no"
8906 case "$target_cpu" in
8907 *m68k*)
8908 aros_target_cpu="m68k"
8909 aros_object_format="m68kelf"
8910 aros_flavour="palmnative"
8911 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8912 aros_kernel_ldflags=""
8913 aros_default_wbwidth=160
8914 aros_default_wbheight=160
8915 aros_default_wbdepth=1
8916 aros_target_cc="m68k-elf-gcc -pipe"
8917 aros_target_ld="$(which m68k-elf-ld)"
8918 aros_target_as="m68k-elf-gcc -pipe"
8919 aros_shared_ld="m68k-elf-gcc"
8920 aros_kernel_ld="m68k-elf-gcc"
8921 aros_target_ar="m68k-elf-ar"
8922 aros_target_ar_flags="cru"
8923 aros_target_ranlib="m68k-elf-ranlib"
8924 aros_target_nm="m68k-elf-nm"
8925 aros_target_objcopy="m68k-elf-objcopy"
8926 aros_target_objdump="m68k-elf-objdump"
8927 aros_compiler_libs="-lgcc1"
8928 aros_shared_default=no
8929 aros_shared_cflags="-fpic"
8930 aros_shared_aflags=""
8931 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8932 aros_kernel_ldflags="-Wl,-rpath,./lib"
8933 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8934 aros_debug_aflags=""
8935 aros_debug_ldflags="$aros_symbols_debug"
8936 aros_mungwall_debug="0"
8937 aros_modules_debug="0"
8938 gcc_target_cpu="mc68000"
8939 ignore_undefined_symbols="-ius"
8942 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8943 $as_echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8944 { (exit 1); exit 1; }; }
8946 esac
8949 mac*)
8950 aros_target_arch="mac"
8951 aros_shared_default="no"
8952 case "$target_cpu" in
8953 *m68k*)
8954 aros_target_cpu="m68k"
8955 aros_object_format="m68kelf"
8956 aros_flavour="mac68knative"
8957 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8958 aros_default_wbwidth=512
8959 aros_default_wbheight=384
8960 aros_default_wbdepth=8
8961 aros_target_cc="m68k-elf-gcc -pipe"
8962 aros_target_ld="$(which m68k-elf-ld)"
8963 aros_target_as="m68k-elf-gcc -pipe"
8964 aros_shared_ld="m68k-elf-gcc"
8965 aros_kernel_ld="m68k-elf-gcc"
8966 aros_target_ar="m68k-elf-ar"
8967 aros_target_ar_flags="cru"
8968 aros_target_ranlib="m68k-elf-ranlib"
8969 aros_target_nm="m68k-elf-nm"
8970 aros_target_objcopy="m68k-elf-objcopy"
8971 aros_target_objdump="m68k-elf-objdump"
8972 aros_compiler_libs="-lgcc1"
8973 aros_shared_default=no
8974 aros_shared_cflags="-fpic"
8975 aros_shared_aflags=""
8976 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8977 aros_kernel_ldflags="-Wl,-rpath,./lib"
8978 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8979 aros_debug_aflags=""
8980 aros_debug_ldflags="$aros_symbols_debug"
8981 aros_mungwall_debug="0"
8982 aros_modules_debug="0"
8983 gcc_target_cpu="mc68000"
8984 ignore_undefined_symbols="-ius"
8987 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8988 $as_echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8989 { (exit 1); exit 1; }; }
8991 esac
8995 { { $as_echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8996 $as_echo "$as_me: error: Unsupported target architecture $target" >&2;}
8997 { (exit 1); exit 1; }; }
8999 esac
9001 { $as_echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9002 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
9004 # Check whether --with-portssources was given.
9005 if test "${with_portssources+set}" = set; then
9006 withval=$with_portssources; with_portssrcdir=$withval
9007 else
9008 with_portssrcdir="default"
9011 if test "$with_portssrcdir" = "default"; then
9012 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
9013 else
9014 AROS_PORTSSRCDIR="$with_portssrcdir"
9016 { $as_echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9017 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9019 { $as_echo "$as_me:$LINENO: checking which bootloader to use" >&5
9020 $as_echo_n "checking which bootloader to use... " >&6; }
9022 # Check whether --with-bootloader was given.
9023 if test "${with_bootloader+set}" = set; then
9024 withval=$with_bootloader; target_bootloader=$withval
9025 else
9026 target_bootloader=$target_bootloader
9029 if test "$target_bootloader" = "none"; then
9030 aros_target_bootloader=""
9031 else
9032 aros_target_bootloader="$target_bootloader"
9034 { $as_echo "$as_me:$LINENO: result: $target_bootloader" >&5
9035 $as_echo "$target_bootloader" >&6; }
9037 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
9038 aros_liblzo_check="no"
9039 case "$aros_target_bootloader" in
9040 grub2*)
9041 case "$target_cpu" in
9042 *i?86*)
9043 aros_liblzo_check="yes"
9045 *x86_64*)
9046 aros_liblzo_check="yes"
9050 esac
9055 esac
9057 if test "$aros_liblzo_check" = "yes"; then
9058 # There are three possibilities. LZO version 2 installed with the name
9059 # liblzo2, with the name liblzo, and LZO version 1.
9060 { $as_echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
9061 $as_echo_n "checking for __lzo_init_v2 in -llzo2... " >&6; }
9062 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
9063 $as_echo_n "(cached) " >&6
9064 else
9065 ac_check_lib_save_LIBS=$LIBS
9066 LIBS="-llzo2 $LIBS"
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. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char __lzo_init_v2 ();
9082 main ()
9084 return __lzo_init_v2 ();
9086 return 0;
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (ac_try="$ac_link"
9091 case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094 esac
9095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9096 $as_echo "$ac_try_echo") >&5
9097 (eval "$ac_link") 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest$ac_exeext && {
9107 test "$cross_compiling" = yes ||
9108 $as_test_x conftest$ac_exeext
9109 }; then
9110 ac_cv_lib_lzo2___lzo_init_v2=yes
9111 else
9112 $as_echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 ac_cv_lib_lzo2___lzo_init_v2=no
9118 rm -rf conftest.dSYM
9119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9120 conftest$ac_exeext conftest.$ac_ext
9121 LIBS=$ac_check_lib_save_LIBS
9123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
9124 $as_echo "$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
9125 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
9126 LIBLZO="-llzo2"
9127 else
9128 { $as_echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
9129 $as_echo_n "checking for __lzo_init_v2 in -llzo... " >&6; }
9130 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
9131 $as_echo_n "(cached) " >&6
9132 else
9133 ac_check_lib_save_LIBS=$LIBS
9134 LIBS="-llzo $LIBS"
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9142 /* Override any GCC internal prototype to avoid an error.
9143 Use char because int might match the return type of a GCC
9144 builtin and then its argument prototype would still apply. */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 char __lzo_init_v2 ();
9150 main ()
9152 return __lzo_init_v2 ();
9154 return 0;
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9159 case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162 esac
9163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9164 $as_echo "$ac_try_echo") >&5
9165 (eval "$ac_link") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest$ac_exeext && {
9175 test "$cross_compiling" = yes ||
9176 $as_test_x conftest$ac_exeext
9177 }; then
9178 ac_cv_lib_lzo___lzo_init_v2=yes
9179 else
9180 $as_echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_cv_lib_lzo___lzo_init_v2=no
9186 rm -rf conftest.dSYM
9187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9188 conftest$ac_exeext conftest.$ac_ext
9189 LIBS=$ac_check_lib_save_LIBS
9191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
9192 $as_echo "$ac_cv_lib_lzo___lzo_init_v2" >&6; }
9193 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
9194 LIBLZO="-llzo"
9195 else
9196 { $as_echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
9197 $as_echo_n "checking for __lzo_init2 in -llzo... " >&6; }
9198 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
9199 $as_echo_n "(cached) " >&6
9200 else
9201 ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-llzo $LIBS"
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h. */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9210 /* Override any GCC internal prototype to avoid an error.
9211 Use char because int might match the return type of a GCC
9212 builtin and then its argument prototype would still apply. */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char __lzo_init2 ();
9218 main ()
9220 return __lzo_init2 ();
9222 return 0;
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (ac_try="$ac_link"
9227 case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9230 esac
9231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9232 $as_echo "$ac_try_echo") >&5
9233 (eval "$ac_link") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext && {
9243 test "$cross_compiling" = yes ||
9244 $as_test_x conftest$ac_exeext
9245 }; then
9246 ac_cv_lib_lzo___lzo_init2=yes
9247 else
9248 $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_cv_lib_lzo___lzo_init2=no
9254 rm -rf conftest.dSYM
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
9260 $as_echo "$ac_cv_lib_lzo___lzo_init2" >&6; }
9261 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
9262 LIBLZO="-llzo"
9263 else
9264 { { $as_echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
9265 $as_echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
9266 { (exit 1); exit 1; }; }
9275 LIBS="$LIBS $LIBLZO"
9276 { $as_echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
9277 $as_echo_n "checking for lzo1x_999_compress... " >&6; }
9278 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
9279 $as_echo_n "(cached) " >&6
9280 else
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
9288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9289 #define lzo1x_999_compress innocuous_lzo1x_999_compress
9291 /* System header to define __stub macros and hopefully few prototypes,
9292 which can conflict with char lzo1x_999_compress (); below.
9293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294 <limits.h> exists even on freestanding compilers. */
9296 #ifdef __STDC__
9297 # include <limits.h>
9298 #else
9299 # include <assert.h>
9300 #endif
9302 #undef lzo1x_999_compress
9304 /* Override any GCC internal prototype to avoid an error.
9305 Use char because int might match the return type of a GCC
9306 builtin and then its argument prototype would still apply. */
9307 #ifdef __cplusplus
9308 extern "C"
9309 #endif
9310 char lzo1x_999_compress ();
9311 /* The GNU C library defines this for functions which it implements
9312 to always fail with ENOSYS. Some functions are actually named
9313 something starting with __ and the normal name is an alias. */
9314 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
9315 choke me
9316 #endif
9319 main ()
9321 return lzo1x_999_compress ();
9323 return 0;
9325 _ACEOF
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9328 case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9331 esac
9332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9333 $as_echo "$ac_try_echo") >&5
9334 (eval "$ac_link") 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest$ac_exeext && {
9344 test "$cross_compiling" = yes ||
9345 $as_test_x conftest$ac_exeext
9346 }; then
9347 ac_cv_func_lzo1x_999_compress=yes
9348 else
9349 $as_echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_func_lzo1x_999_compress=no
9355 rm -rf conftest.dSYM
9356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9357 conftest$ac_exeext conftest.$ac_ext
9359 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9360 $as_echo "$ac_cv_func_lzo1x_999_compress" >&6; }
9361 if test $ac_cv_func_lzo1x_999_compress = yes; then
9363 else
9364 { { $as_echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9365 $as_echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9366 { (exit 1); exit 1; }; }
9370 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9373 for ac_header in lzo/lzo1x.h lzo1x.h
9375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9378 $as_echo_n "checking for $ac_header... " >&6; }
9379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9380 $as_echo_n "(cached) " >&6
9382 ac_res=`eval 'as_val=${'$as_ac_Header'}
9383 $as_echo "$as_val"'`
9384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9385 $as_echo "$ac_res" >&6; }
9386 else
9387 # Is the header compilable?
9388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9389 $as_echo_n "checking $ac_header usability... " >&6; }
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 #include <$ac_header>
9398 _ACEOF
9399 rm -f conftest.$ac_objext
9400 if { (ac_try="$ac_compile"
9401 case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404 esac
9405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9406 $as_echo "$ac_try_echo") >&5
9407 (eval "$ac_compile") 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } && {
9414 test -z "$ac_c_werror_flag" ||
9415 test ! -s conftest.err
9416 } && test -s conftest.$ac_objext; then
9417 ac_header_compiler=yes
9418 else
9419 $as_echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_header_compiler=no
9425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427 $as_echo "$ac_header_compiler" >&6; }
9429 # Is the header present?
9430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9431 $as_echo_n "checking $ac_header presence... " >&6; }
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 #include <$ac_header>
9439 _ACEOF
9440 if { (ac_try="$ac_cpp conftest.$ac_ext"
9441 case "(($ac_try" in
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9444 esac
9445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9446 $as_echo "$ac_try_echo") >&5
9447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev/null && {
9454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 }; then
9457 ac_header_preproc=yes
9458 else
9459 $as_echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_header_preproc=no
9465 rm -f conftest.err conftest.$ac_ext
9466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467 $as_echo "$ac_header_preproc" >&6; }
9469 # So? What about this header?
9470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9471 yes:no: )
9472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9476 ac_header_preproc=yes
9478 no:yes:* )
9479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9482 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9486 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9493 esac
9494 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9495 $as_echo_n "checking for $ac_header... " >&6; }
9496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9497 $as_echo_n "(cached) " >&6
9498 else
9499 eval "$as_ac_Header=\$ac_header_preproc"
9501 ac_res=`eval 'as_val=${'$as_ac_Header'}
9502 $as_echo "$as_val"'`
9503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9504 $as_echo "$ac_res" >&6; }
9507 if test `eval 'as_val=${'$as_ac_Header'}
9508 $as_echo "$as_val"'` = yes; then
9509 cat >>confdefs.h <<_ACEOF
9510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9511 _ACEOF
9515 done
9519 { $as_echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9520 $as_echo_n "checking which GUI Theme to use... " >&6; }
9522 # Check whether --with-theme was given.
9523 if test "${with_theme+set}" = set; then
9524 withval=$with_theme; target_guitheme=$withval
9525 else
9526 target_guitheme="default"
9529 if test "$target_guitheme" = "default"; then
9530 aros_target_guitheme="Ice"
9531 else
9532 aros_target_guitheme="$target_guitheme"
9534 { $as_echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9535 $as_echo "$aros_target_guitheme" >&6; }
9537 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9538 # for target code)
9539 cross_compiling=no
9540 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9541 cross_compiling=yes
9543 if test "$aros_host_arch" == "darwin" ; then
9544 cross_compiling=yes
9547 # Set prefix for target compiler etc. if we're cross-compiling
9548 # (should possibly be earlier but needs to be after AC_PROG_CC)
9549 if test "$cross_compiling" = "yes" ; then
9550 target_tool_prefix=${target_cpu}-elf-
9551 CC=${target_tool_prefix}gcc
9554 # Find all the tools we need to compile. This could be cross-compiling
9555 # though! If that is the case we use the GNU form of the target and
9556 # simply add this to the front of the binary name. This is rather simple,
9557 # but it should work under most circumstances.
9559 # The default tools are to use the same as the host, but only if the
9560 # host and target CPU are the same. With GCC this is normally enough.
9563 aros_cc_pre=""
9564 aros_shared_ld="$aros_host_ld"
9566 aros_target_mkdep="$aros_host_mkdep"
9567 aros_target_incl_def="$aros_host_incl"
9569 # Extract the first word of "$CC", so it can be a program name with args.
9570 set dummy $CC; ac_word=$2
9571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9574 $as_echo_n "(cached) " >&6
9575 else
9576 case $aros_kernel_cc in
9577 [\\/]* | ?:[\\/]*)
9578 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582 for as_dir in $PATH
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9588 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9592 done
9593 done
9594 IFS=$as_save_IFS
9597 esac
9599 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9600 if test -n "$aros_kernel_cc"; then
9601 { $as_echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9602 $as_echo "$aros_kernel_cc" >&6; }
9603 else
9604 { $as_echo "$as_me:$LINENO: result: no" >&5
9605 $as_echo "no" >&6; }
9610 # The default tools executables to be linked to.
9612 if test "$cross_compiling" = "yes" ; then
9613 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9614 set dummy ${target_tool_prefix}as; ac_word=$2
9615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9618 $as_echo_n "(cached) " >&6
9619 else
9620 case $aros_target_as_ln in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9636 done
9637 done
9638 IFS=$as_save_IFS
9641 esac
9643 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9644 if test -n "$aros_target_as_ln"; then
9645 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9646 $as_echo "$aros_target_as_ln" >&6; }
9647 else
9648 { $as_echo "$as_me:$LINENO: result: no" >&5
9649 $as_echo "no" >&6; }
9653 else
9654 if test "$GCC" = "yes"; then
9655 aros_gcc_as=`$CC -print-prog-name=as`
9656 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9657 set dummy `basename $aros_gcc_as`; ac_word=$2
9658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9661 $as_echo_n "(cached) " >&6
9662 else
9663 case $aros_target_as_ln in
9664 [\\/]* | ?:[\\/]*)
9665 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in `dirname $aros_gcc_as`
9671 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2
9679 done
9680 done
9681 IFS=$as_save_IFS
9684 esac
9686 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9687 if test -n "$aros_target_as_ln"; then
9688 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9689 $as_echo "$aros_target_as_ln" >&6; }
9690 else
9691 { $as_echo "$as_me:$LINENO: result: no" >&5
9692 $as_echo "no" >&6; }
9697 if test "$aros_target_as_ln" = ""; then
9698 # Extract the first word of "as", so it can be a program name with args.
9699 set dummy as; ac_word=$2
9700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9703 $as_echo_n "(cached) " >&6
9704 else
9705 case $aros_target_as_ln in
9706 [\\/]* | ?:[\\/]*)
9707 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9721 done
9722 done
9723 IFS=$as_save_IFS
9726 esac
9728 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9729 if test -n "$aros_target_as_ln"; then
9730 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9731 $as_echo "$aros_target_as_ln" >&6; }
9732 else
9733 { $as_echo "$as_me:$LINENO: result: no" >&5
9734 $as_echo "no" >&6; }
9741 if test "$aros_target_as_ln" = ""; then
9742 { { $as_echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9743 $as_echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9744 { (exit 1); exit 1; }; }
9747 if test "$cross_compiling" = "yes" ; then
9748 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9749 set dummy ${target_tool_prefix}ld; ac_word=$2
9750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9753 $as_echo_n "(cached) " >&6
9754 else
9755 case $aros_kernel_ld in
9756 [\\/]* | ?:[\\/]*)
9757 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9776 esac
9778 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9779 if test -n "$aros_kernel_ld"; then
9780 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9781 $as_echo "$aros_kernel_ld" >&6; }
9782 else
9783 { $as_echo "$as_me:$LINENO: result: no" >&5
9784 $as_echo "no" >&6; }
9788 else
9789 if test "$GCC" = "yes"; then
9790 aros_gcc_ld=`$CC -print-prog-name=ld`
9791 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9792 set dummy `basename $aros_gcc_ld`; ac_word=$2
9793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9796 $as_echo_n "(cached) " >&6
9797 else
9798 case $aros_kernel_ld in
9799 [\\/]* | ?:[\\/]*)
9800 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in `dirname $aros_gcc_ld`
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9814 done
9815 done
9816 IFS=$as_save_IFS
9819 esac
9821 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9822 if test -n "$aros_kernel_ld"; then
9823 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9824 $as_echo "$aros_kernel_ld" >&6; }
9825 else
9826 { $as_echo "$as_me:$LINENO: result: no" >&5
9827 $as_echo "no" >&6; }
9832 if test "$aros_kernel_ld" = ""; then
9833 # Extract the first word of "ld", so it can be a program name with args.
9834 set dummy ld; ac_word=$2
9835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9838 $as_echo_n "(cached) " >&6
9839 else
9840 case $aros_kernel_ld in
9841 [\\/]* | ?:[\\/]*)
9842 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9852 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9856 done
9857 done
9858 IFS=$as_save_IFS
9861 esac
9863 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9864 if test -n "$aros_kernel_ld"; then
9865 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9866 $as_echo "$aros_kernel_ld" >&6; }
9867 else
9868 { $as_echo "$as_me:$LINENO: result: no" >&5
9869 $as_echo "no" >&6; }
9876 if test "$aros_kernel_ld" = ""; then
9877 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9878 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9879 { (exit 1); exit 1; }; }
9882 if test "$cross_compiling" = "yes" ; then
9883 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9884 set dummy ${target_tool_prefix}ar; ac_word=$2
9885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9888 $as_echo_n "(cached) " >&6
9889 else
9890 case $aros_target_ar_ln in
9891 [\\/]* | ?:[\\/]*)
9892 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9902 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 break 2
9906 done
9907 done
9908 IFS=$as_save_IFS
9911 esac
9913 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9914 if test -n "$aros_target_ar_ln"; then
9915 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9916 $as_echo "$aros_target_ar_ln" >&6; }
9917 else
9918 { $as_echo "$as_me:$LINENO: result: no" >&5
9919 $as_echo "no" >&6; }
9923 else
9924 if test "$GCC" = "yes"; then
9925 aros_gcc_ar=`$CC -print-prog-name=ar`
9926 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9927 set dummy `basename $aros_gcc_ar`; ac_word=$2
9928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9931 $as_echo_n "(cached) " >&6
9932 else
9933 case $aros_target_ar_ln in
9934 [\\/]* | ?:[\\/]*)
9935 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 for as_dir in `dirname $aros_gcc_ar`
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 for ac_exec_ext in '' $ac_executable_extensions; do
9944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9945 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 break 2
9949 done
9950 done
9951 IFS=$as_save_IFS
9954 esac
9956 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9957 if test -n "$aros_target_ar_ln"; then
9958 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9959 $as_echo "$aros_target_ar_ln" >&6; }
9960 else
9961 { $as_echo "$as_me:$LINENO: result: no" >&5
9962 $as_echo "no" >&6; }
9967 if test "$aros_target_ar_ln" = ""; then
9968 # Extract the first word of "ar", so it can be a program name with args.
9969 set dummy ar; ac_word=$2
9970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9974 else
9975 case $aros_target_ar_ln in
9976 [\\/]* | ?:[\\/]*)
9977 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9991 done
9992 done
9993 IFS=$as_save_IFS
9996 esac
9998 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9999 if test -n "$aros_target_ar_ln"; then
10000 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10001 $as_echo "$aros_target_ar_ln" >&6; }
10002 else
10003 { $as_echo "$as_me:$LINENO: result: no" >&5
10004 $as_echo "no" >&6; }
10011 if test "$aros_target_ar_ln" = ""; then
10012 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10013 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10014 { (exit 1); exit 1; }; }
10017 if test "$cross_compiling" = "yes" ; then
10018 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10019 set dummy ${target_tool_prefix}nm; ac_word=$2
10020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10023 $as_echo_n "(cached) " >&6
10024 else
10025 case $aros_target_nm_ln in
10026 [\\/]* | ?:[\\/]*)
10027 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10041 done
10042 done
10043 IFS=$as_save_IFS
10046 esac
10048 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10049 if test -n "$aros_target_nm_ln"; then
10050 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10051 $as_echo "$aros_target_nm_ln" >&6; }
10052 else
10053 { $as_echo "$as_me:$LINENO: result: no" >&5
10054 $as_echo "no" >&6; }
10058 else
10059 if test "$GCC" = "yes"; then
10060 aros_gcc_nm=`$CC -print-prog-name=nm`
10061 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10062 set dummy `basename $aros_gcc_nm`; ac_word=$2
10063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10066 $as_echo_n "(cached) " >&6
10067 else
10068 case $aros_target_nm_ln in
10069 [\\/]* | ?:[\\/]*)
10070 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in `dirname $aros_gcc_nm`
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
10078 for ac_exec_ext in '' $ac_executable_extensions; do
10079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10080 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 break 2
10084 done
10085 done
10086 IFS=$as_save_IFS
10089 esac
10091 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10092 if test -n "$aros_target_nm_ln"; then
10093 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10094 $as_echo "$aros_target_nm_ln" >&6; }
10095 else
10096 { $as_echo "$as_me:$LINENO: result: no" >&5
10097 $as_echo "no" >&6; }
10102 if test "$aros_target_nm_ln" = ""; then
10103 # Extract the first word of "nm", so it can be a program name with args.
10104 set dummy nm; ac_word=$2
10105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10106 $as_echo_n "checking for $ac_word... " >&6; }
10107 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10108 $as_echo_n "(cached) " >&6
10109 else
10110 case $aros_target_nm_ln in
10111 [\\/]* | ?:[\\/]*)
10112 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10126 done
10127 done
10128 IFS=$as_save_IFS
10131 esac
10133 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10134 if test -n "$aros_target_nm_ln"; then
10135 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10136 $as_echo "$aros_target_nm_ln" >&6; }
10137 else
10138 { $as_echo "$as_me:$LINENO: result: no" >&5
10139 $as_echo "no" >&6; }
10146 if test "$aros_target_nm_ln" = ""; then
10147 { { $as_echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10148 $as_echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10149 { (exit 1); exit 1; }; }
10152 if test "$cross_compiling" = "yes" ; then
10153 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10154 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10158 $as_echo_n "(cached) " >&6
10159 else
10160 case $aros_target_objcopy_ln in
10161 [\\/]* | ?:[\\/]*)
10162 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10172 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 break 2
10176 done
10177 done
10178 IFS=$as_save_IFS
10181 esac
10183 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10184 if test -n "$aros_target_objcopy_ln"; then
10185 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10186 $as_echo "$aros_target_objcopy_ln" >&6; }
10187 else
10188 { $as_echo "$as_me:$LINENO: result: no" >&5
10189 $as_echo "no" >&6; }
10193 else
10194 if test "$GCC" = "yes"; then
10195 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10196 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10197 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10201 $as_echo_n "(cached) " >&6
10202 else
10203 case $aros_target_objcopy_ln in
10204 [\\/]* | ?:[\\/]*)
10205 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in `dirname $aros_gcc_objcopy`
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10219 done
10220 done
10221 IFS=$as_save_IFS
10224 esac
10226 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10227 if test -n "$aros_target_objcopy_ln"; then
10228 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10229 $as_echo "$aros_target_objcopy_ln" >&6; }
10230 else
10231 { $as_echo "$as_me:$LINENO: result: no" >&5
10232 $as_echo "no" >&6; }
10237 if test "$aros_target_objcopy_ln" = ""; then
10238 # Extract the first word of "objcopy", so it can be a program name with args.
10239 set dummy objcopy; ac_word=$2
10240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10243 $as_echo_n "(cached) " >&6
10244 else
10245 case $aros_target_objcopy_ln in
10246 [\\/]* | ?:[\\/]*)
10247 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10261 done
10262 done
10263 IFS=$as_save_IFS
10266 esac
10268 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10269 if test -n "$aros_target_objcopy_ln"; then
10270 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10271 $as_echo "$aros_target_objcopy_ln" >&6; }
10272 else
10273 { $as_echo "$as_me:$LINENO: result: no" >&5
10274 $as_echo "no" >&6; }
10281 if test "$aros_target_objcopy_ln" = ""; then
10282 { { $as_echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10283 $as_echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10284 { (exit 1); exit 1; }; }
10287 if test "$cross_compiling" = "yes" ; then
10288 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10289 set dummy ${target_tool_prefix}objdump; ac_word=$2
10290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10293 $as_echo_n "(cached) " >&6
10294 else
10295 case $aros_target_objdump_ln in
10296 [\\/]* | ?:[\\/]*)
10297 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10307 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 break 2
10311 done
10312 done
10313 IFS=$as_save_IFS
10316 esac
10318 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10319 if test -n "$aros_target_objdump_ln"; then
10320 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10321 $as_echo "$aros_target_objdump_ln" >&6; }
10322 else
10323 { $as_echo "$as_me:$LINENO: result: no" >&5
10324 $as_echo "no" >&6; }
10328 else
10329 if test "$GCC" = "yes"; then
10330 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10331 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10332 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10336 $as_echo_n "(cached) " >&6
10337 else
10338 case $aros_target_objdump_ln in
10339 [\\/]* | ?:[\\/]*)
10340 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in `dirname $aros_gcc_objdump`
10346 IFS=$as_save_IFS
10347 test -z "$as_dir" && as_dir=.
10348 for ac_exec_ext in '' $ac_executable_extensions; do
10349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10350 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 break 2
10354 done
10355 done
10356 IFS=$as_save_IFS
10359 esac
10361 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10362 if test -n "$aros_target_objdump_ln"; then
10363 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10364 $as_echo "$aros_target_objdump_ln" >&6; }
10365 else
10366 { $as_echo "$as_me:$LINENO: result: no" >&5
10367 $as_echo "no" >&6; }
10372 if test "$aros_target_objdump_ln" = ""; then
10373 # Extract the first word of "objdump", so it can be a program name with args.
10374 set dummy objdump; ac_word=$2
10375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10376 $as_echo_n "checking for $ac_word... " >&6; }
10377 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10378 $as_echo_n "(cached) " >&6
10379 else
10380 case $aros_target_objdump_ln in
10381 [\\/]* | ?:[\\/]*)
10382 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10396 done
10397 done
10398 IFS=$as_save_IFS
10401 esac
10403 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10404 if test -n "$aros_target_objdump_ln"; then
10405 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10406 $as_echo "$aros_target_objdump_ln" >&6; }
10407 else
10408 { $as_echo "$as_me:$LINENO: result: no" >&5
10409 $as_echo "no" >&6; }
10416 if test "$aros_target_objdump_ln" = ""; then
10417 { { $as_echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10418 $as_echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10419 { (exit 1); exit 1; }; }
10422 if test "$cross_compiling" = "yes" ; then
10423 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10424 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10426 $as_echo_n "checking for $ac_word... " >&6; }
10427 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10428 $as_echo_n "(cached) " >&6
10429 else
10430 case $aros_target_ranlib_ln in
10431 [\\/]* | ?:[\\/]*)
10432 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10446 done
10447 done
10448 IFS=$as_save_IFS
10451 esac
10453 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10454 if test -n "$aros_target_ranlib_ln"; then
10455 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10456 $as_echo "$aros_target_ranlib_ln" >&6; }
10457 else
10458 { $as_echo "$as_me:$LINENO: result: no" >&5
10459 $as_echo "no" >&6; }
10463 else
10464 if test "$GCC" = "yes"; then
10465 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10466 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10467 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10471 $as_echo_n "(cached) " >&6
10472 else
10473 case $aros_target_ranlib_ln in
10474 [\\/]* | ?:[\\/]*)
10475 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in `dirname $aros_gcc_ranlib`
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10489 done
10490 done
10491 IFS=$as_save_IFS
10494 esac
10496 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10497 if test -n "$aros_target_ranlib_ln"; then
10498 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10499 $as_echo "$aros_target_ranlib_ln" >&6; }
10500 else
10501 { $as_echo "$as_me:$LINENO: result: no" >&5
10502 $as_echo "no" >&6; }
10507 if test "$aros_target_ranlib_ln" = ""; then
10508 # Extract the first word of "ranlib", so it can be a program name with args.
10509 set dummy ranlib; ac_word=$2
10510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10513 $as_echo_n "(cached) " >&6
10514 else
10515 case $aros_target_ranlib_ln in
10516 [\\/]* | ?:[\\/]*)
10517 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10527 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10531 done
10532 done
10533 IFS=$as_save_IFS
10536 esac
10538 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10539 if test -n "$aros_target_ranlib_ln"; then
10540 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10541 $as_echo "$aros_target_ranlib_ln" >&6; }
10542 else
10543 { $as_echo "$as_me:$LINENO: result: no" >&5
10544 $as_echo "no" >&6; }
10551 if test "$aros_target_ranlib_ln" = ""; then
10552 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10553 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10554 { (exit 1); exit 1; }; }
10557 if test "$cross_compiling" = "yes" ; then
10558 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10559 set dummy ${target_tool_prefix}strip; ac_word=$2
10560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10563 $as_echo_n "(cached) " >&6
10564 else
10565 case $aros_target_strip_ln in
10566 [\\/]* | ?:[\\/]*)
10567 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10581 done
10582 done
10583 IFS=$as_save_IFS
10586 esac
10588 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10589 if test -n "$aros_target_strip_ln"; then
10590 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10591 $as_echo "$aros_target_strip_ln" >&6; }
10592 else
10593 { $as_echo "$as_me:$LINENO: result: no" >&5
10594 $as_echo "no" >&6; }
10598 else
10599 if test "$GCC" = "yes"; then
10600 aros_gcc_strip=`$CC -print-prog-name=strip`
10601 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10602 set dummy `basename $aros_gcc_strip`; ac_word=$2
10603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10606 $as_echo_n "(cached) " >&6
10607 else
10608 case $aros_target_strip_ln in
10609 [\\/]* | ?:[\\/]*)
10610 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in `dirname $aros_gcc_strip`
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10624 done
10625 done
10626 IFS=$as_save_IFS
10629 esac
10631 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10632 if test -n "$aros_target_strip_ln"; then
10633 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10634 $as_echo "$aros_target_strip_ln" >&6; }
10635 else
10636 { $as_echo "$as_me:$LINENO: result: no" >&5
10637 $as_echo "no" >&6; }
10642 if test "$aros_target_strip_ln" = ""; then
10643 # Extract the first word of "strip", so it can be a program name with args.
10644 set dummy strip; ac_word=$2
10645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10646 $as_echo_n "checking for $ac_word... " >&6; }
10647 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10648 $as_echo_n "(cached) " >&6
10649 else
10650 case $aros_target_strip_ln in
10651 [\\/]* | ?:[\\/]*)
10652 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10662 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 break 2
10666 done
10667 done
10668 IFS=$as_save_IFS
10671 esac
10673 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10674 if test -n "$aros_target_strip_ln"; then
10675 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10676 $as_echo "$aros_target_strip_ln" >&6; }
10677 else
10678 { $as_echo "$as_me:$LINENO: result: no" >&5
10679 $as_echo "no" >&6; }
10686 if test "$aros_target_strip_ln" = ""; then
10687 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10688 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10689 { (exit 1); exit 1; }; }
10692 if test "$GCC" = "yes"; then
10693 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10696 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10697 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10698 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10699 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10700 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10701 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10702 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10704 # aros_cc_pre is a variable that is added to the front of the compiler name
10705 # in the generated aros-gcc shell script. We need this to enable the cache
10706 # to work across cleaned builds. Also, support DISTCC using the correct
10707 # environment variable.
10710 if test "x${DISTCC}" != "x" ; then
10711 if test "x${CCACHE}" != "x" ; then
10712 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10713 else
10714 aros_cc_pre="${DISTCC} "
10716 else
10717 if test "x${CCACHE}" != "x" ; then
10718 aros_cc_pre="${CCACHE} "
10722 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10724 aros_target_nostdinc_cflags=-nostdinc
10726 aros_target_nostartup_ldflags=-nostartfiles
10728 aros_target_nix_ldflags=-nix
10730 aros_target_detach_ldflags=-detach
10732 aros_target_nostdlib_ldflags=-nostdlib
10735 # Target tools
10736 aros_target_cc="${prefix}-gcc"
10737 aros_target_as="${prefix}-as"
10738 aros_target_ld="${prefix}-ld"
10739 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10740 aros_target_objcopy=${prefix}-objcopy
10741 aros_target_objdump=${prefix}-objdump
10742 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10743 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10744 aros_kernel_nm="${prefix}-nm"
10745 aros_target_strip=${prefix}-strip
10747 # Find the system include path. We can suggest that an alternative is
10748 # used if we don't get it correct. The default is to use /usr/include.
10749 # Which is set in the aros_target_incl_def variable.
10751 # Check whether --enable-includes was given.
10752 if test "${enable_includes+set}" = set; then
10753 enableval=$enable_includes; aros_target_incl=$enable_includes
10754 else
10755 aros_target_incl=$aros_target_incl_def
10759 { $as_echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10760 $as_echo_n "checking for the target compiler's include path... " >&6; }
10761 if test "$aros_target_cc_includes" = "" ; then
10762 #try to guess where the directory is
10763 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10764 if ! test -d $aros_target_cc_includes; then
10765 #the directory doesn't exist, we need to do some more work
10766 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10768 #these are the headers we're looling for
10769 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10770 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10771 zutil.h"
10773 dirs=
10774 for h in $headers; do
10775 #which other headers each of the above headers needs?
10776 deps=$(echo "#include <$h>" | \
10777 $aros_host_cc -E -M - 2>/dev/null | \
10778 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10780 #copy all the needed headers to a directory beneath gendir
10781 for d in $deps; do
10782 h=$(basename $d)
10783 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10784 sed -n "s,^.*/include\(/.*\),\1,p")
10785 ! test -d $dir && mkdir -p $dir
10786 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10787 done
10788 done
10791 { $as_echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10792 $as_echo "$aros_target_cc_includes" >&6; }
10795 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10796 # On GCC >= 4.0 -iquote should be used
10799 save_cc="$CC"
10800 save_cflags="$CFLAGS"
10801 CC="$aros_kernel_cc"
10802 CFLAGS="-iquote."
10803 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10804 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10805 cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h. */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10813 main ()
10817 return 0;
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (ac_try="$ac_compile"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10827 $as_echo "$ac_try_echo") >&5
10828 (eval "$ac_compile") 2>conftest.er1
10829 ac_status=$?
10830 grep -v '^ *+' conftest.er1 >conftest.err
10831 rm -f conftest.er1
10832 cat conftest.err >&5
10833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } && {
10835 test -z "$ac_c_werror_flag" ||
10836 test ! -s conftest.err
10837 } && test -s conftest.$ac_objext; then
10838 has_iquote="yes"
10839 else
10840 $as_echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10843 has_iquote="no"
10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
10848 $as_echo "$has_iquote" >&6; }
10849 if test "x-$has_iquote" = "x-yes" ; then
10850 aros_cflags_iquote=-iquote
10851 aros_cflags_iquote_end=
10852 else
10853 aros_cflags_iquote=-I
10854 aros_cflags_iquote_end=-I-
10856 CC="$save_cc"
10857 CFLAGS="$save_cflags"
10863 { $as_echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10864 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10866 # Check whether --with-resolution was given.
10867 if test "${with_resolution+set}" = set; then
10868 withval=$with_resolution; resolution=$withval
10869 else
10870 resolution=none
10873 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10874 if test "$resolution" = "yes" ; then
10875 resolution="none"
10877 if test "$resolution" = "no" ; then
10878 resolution="none"
10880 if test "$resolution" != "none" ; then
10881 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10882 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10883 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10885 { $as_echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10886 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10887 aros_cv_default_wbwidth=$aros_default_wbwidth
10888 aros_cv_default_wbheight=$aros_default_wbheight
10889 aros_cv_default_wbdepth=$aros_default_wbdepth
10891 { $as_echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
10892 $as_echo_n "checking if bochs hack is enabled... " >&6; }
10893 # Check whether --enable-bochs_hack was given.
10894 if test "${enable_bochs_hack+set}" = set; then
10895 enableval=$enable_bochs_hack; bochs_hack="yes"
10896 else
10897 bochs_hack="no"
10900 if test "$bochs_hack" = "yes" ; then
10901 aros_bochs_hack="1"
10903 { $as_echo "$as_me:$LINENO: result: $bochs_hack" >&5
10904 $as_echo "$bochs_hack" >&6; }
10906 { $as_echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
10907 $as_echo_n "checking if serial debug is enabled... " >&6; }
10909 # Check whether --with-serial-debug was given.
10910 if test "${with_serial_debug+set}" = set; then
10911 withval=$with_serial_debug; serial_debug=$withval
10912 else
10913 serial_debug=none
10916 if test "$aros_serial_debug" = 0 ; then
10917 serial_debug_forced=""
10918 if test "$serial_debug" = "yes" ; then
10919 serial_debug="2"
10921 if test "$serial_debug" = "no" ; then
10922 serial_debug="none"
10924 else
10925 serial_debug_forced="(forced)"
10926 serial_debug=$aros_serial_debug
10928 if test "$serial_debug" != "none" ; then
10929 aros_serial_debug=$serial_debug
10930 { $as_echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
10931 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10932 else
10933 { $as_echo "$as_me:$LINENO: result: no" >&5
10934 $as_echo "no" >&6; }
10937 { $as_echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
10938 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10939 # Check whether --enable-palm_debug_hack was given.
10940 if test "${enable_palm_debug_hack+set}" = set; then
10941 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10942 else
10943 palm_debug_hack="no"
10946 if test "$palm_debug_hack" = "yes" ; then
10947 aros_palm_debug_hack="1"
10949 { $as_echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
10950 $as_echo "$palm_debug_hack" >&6; }
10953 { $as_echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
10954 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10955 # Check whether --enable-nesting_supervisor was given.
10956 if test "${enable_nesting_supervisor+set}" = set; then
10957 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10958 else
10959 nesting_supervisor="no"
10962 if test "$nesting_supervisor" = "yes" ; then
10963 aros_nesting_supervisor="1"
10965 { $as_echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
10966 $as_echo "$nesting_supervisor" >&6; }
10969 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10971 if test "x-$aros_host_arch" != "x-darwin" ; then
10972 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10973 $as_echo_n "checking for dlopen... " >&6; }
10974 if test "${ac_cv_func_dlopen+set}" = set; then
10975 $as_echo_n "(cached) " >&6
10976 else
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10985 #define dlopen innocuous_dlopen
10987 /* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char dlopen (); below.
10989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10990 <limits.h> exists even on freestanding compilers. */
10992 #ifdef __STDC__
10993 # include <limits.h>
10994 #else
10995 # include <assert.h>
10996 #endif
10998 #undef dlopen
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char dlopen ();
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined __stub_dlopen || defined __stub___dlopen
11011 choke me
11012 #endif
11015 main ()
11017 return dlopen ();
11019 return 0;
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027 esac
11028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11029 $as_echo "$ac_try_echo") >&5
11030 (eval "$ac_link") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest$ac_exeext && {
11040 test "$cross_compiling" = yes ||
11041 $as_test_x conftest$ac_exeext
11042 }; then
11043 ac_cv_func_dlopen=yes
11044 else
11045 $as_echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_cv_func_dlopen=no
11051 rm -rf conftest.dSYM
11052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11053 conftest$ac_exeext conftest.$ac_ext
11055 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11056 $as_echo "$ac_cv_func_dlopen" >&6; }
11057 if test $ac_cv_func_dlopen = yes; then
11058 have_dl="yes"
11059 else
11060 have_dl="no"
11063 if test "x-$have_dl" = "x-no" ; then
11064 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11067 $as_echo_n "(cached) " >&6
11068 else
11069 ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-ldl $LIBS"
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11078 /* Override any GCC internal prototype to avoid an error.
11079 Use char because int might match the return type of a GCC
11080 builtin and then its argument prototype would still apply. */
11081 #ifdef __cplusplus
11082 extern "C"
11083 #endif
11084 char dlopen ();
11086 main ()
11088 return dlopen ();
11090 return 0;
11092 _ACEOF
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11100 $as_echo "$ac_try_echo") >&5
11101 (eval "$ac_link") 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && {
11108 test -z "$ac_c_werror_flag" ||
11109 test ! -s conftest.err
11110 } && test -s conftest$ac_exeext && {
11111 test "$cross_compiling" = yes ||
11112 $as_test_x conftest$ac_exeext
11113 }; then
11114 ac_cv_lib_dl_dlopen=yes
11115 else
11116 $as_echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_cv_lib_dl_dlopen=no
11122 rm -rf conftest.dSYM
11123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11124 conftest$ac_exeext conftest.$ac_ext
11125 LIBS=$ac_check_lib_save_LIBS
11127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11128 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11129 if test $ac_cv_lib_dl_dlopen = yes; then
11130 have_dl="yes"
11131 aros_host_ldflags="$aros_host_ldflags -ldl"
11132 else
11133 have_dl="no"
11137 if test "x-$have_dl" = "x-no" ; then
11138 { { $as_echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11139 $as_echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11140 { (exit 1); exit 1; }; }
11145 # Check whether --enable-x11_hidd was given.
11146 if test "${enable_x11_hidd+set}" = set; then
11147 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11148 else
11149 x11_hidd="auto"
11152 case "x-$x11_hidd" in
11153 x-yes|x-no|x-auto) ;;
11154 *) x11_hidd="auto" ;;
11155 esac
11157 if test "x-$x11_hidd" != "x-no" ; then
11159 { $as_echo "$as_me:$LINENO: checking for X" >&5
11160 $as_echo_n "checking for X... " >&6; }
11163 # Check whether --with-x was given.
11164 if test "${with_x+set}" = set; then
11165 withval=$with_x;
11168 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11169 if test "x$with_x" = xno; then
11170 # The user explicitly disabled X.
11171 have_x=disabled
11172 else
11173 case $x_includes,$x_libraries in #(
11174 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11175 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11176 { (exit 1); exit 1; }; };; #(
11177 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11178 $as_echo_n "(cached) " >&6
11179 else
11180 # One or both of the vars are not set, and there is no cached value.
11181 ac_x_includes=no ac_x_libraries=no
11182 rm -f -r conftest.dir
11183 if mkdir conftest.dir; then
11184 cd conftest.dir
11185 cat >Imakefile <<'_ACEOF'
11186 incroot:
11187 @echo incroot='${INCROOT}'
11188 usrlibdir:
11189 @echo usrlibdir='${USRLIBDIR}'
11190 libdir:
11191 @echo libdir='${LIBDIR}'
11192 _ACEOF
11193 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11194 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11195 for ac_var in incroot usrlibdir libdir; do
11196 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11197 done
11198 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11199 for ac_extension in a so sl dylib la dll; do
11200 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11201 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11202 ac_im_usrlibdir=$ac_im_libdir; break
11204 done
11205 # Screen out bogus values from the imake configuration. They are
11206 # bogus both because they are the default anyway, and because
11207 # using them would break gcc on systems where it needs fixed includes.
11208 case $ac_im_incroot in
11209 /usr/include) ac_x_includes= ;;
11210 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11211 esac
11212 case $ac_im_usrlibdir in
11213 /usr/lib | /lib) ;;
11214 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11215 esac
11217 cd ..
11218 rm -f -r conftest.dir
11221 # Standard set of common directories for X headers.
11222 # Check X11 before X11Rn because it is often a symlink to the current release.
11223 ac_x_header_dirs='
11224 /usr/X11/include
11225 /usr/X11R6/include
11226 /usr/X11R5/include
11227 /usr/X11R4/include
11229 /usr/include/X11
11230 /usr/include/X11R6
11231 /usr/include/X11R5
11232 /usr/include/X11R4
11234 /usr/local/X11/include
11235 /usr/local/X11R6/include
11236 /usr/local/X11R5/include
11237 /usr/local/X11R4/include
11239 /usr/local/include/X11
11240 /usr/local/include/X11R6
11241 /usr/local/include/X11R5
11242 /usr/local/include/X11R4
11244 /usr/X386/include
11245 /usr/x386/include
11246 /usr/XFree86/include/X11
11248 /usr/include
11249 /usr/local/include
11250 /usr/unsupported/include
11251 /usr/athena/include
11252 /usr/local/x11r5/include
11253 /usr/lpp/Xamples/include
11255 /usr/openwin/include
11256 /usr/openwin/share/include'
11258 if test "$ac_x_includes" = no; then
11259 # Guess where to find include files, by looking for Xlib.h.
11260 # First, try using that file with no special directory specified.
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <X11/Xlib.h>
11268 _ACEOF
11269 if { (ac_try="$ac_cpp conftest.$ac_ext"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273 esac
11274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11275 $as_echo "$ac_try_echo") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null && {
11283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11285 }; then
11286 # We can compile using X headers with no special include directory.
11287 ac_x_includes=
11288 else
11289 $as_echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 for ac_dir in $ac_x_header_dirs; do
11293 if test -r "$ac_dir/X11/Xlib.h"; then
11294 ac_x_includes=$ac_dir
11295 break
11297 done
11300 rm -f conftest.err conftest.$ac_ext
11301 fi # $ac_x_includes = no
11303 if test "$ac_x_libraries" = no; then
11304 # Check for the libraries.
11305 # See if we find them without any special options.
11306 # Don't add to $LIBS permanently.
11307 ac_save_LIBS=$LIBS
11308 LIBS="-lX11 $LIBS"
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <X11/Xlib.h>
11317 main ()
11319 XrmInitialize ()
11321 return 0;
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (ac_try="$ac_link"
11326 case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11331 $as_echo "$ac_try_echo") >&5
11332 (eval "$ac_link") 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest$ac_exeext && {
11342 test "$cross_compiling" = yes ||
11343 $as_test_x conftest$ac_exeext
11344 }; then
11345 LIBS=$ac_save_LIBS
11346 # We can link X programs with no special library path.
11347 ac_x_libraries=
11348 else
11349 $as_echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 LIBS=$ac_save_LIBS
11353 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11355 # Don't even attempt the hair of trying to link an X program!
11356 for ac_extension in a so sl dylib la dll; do
11357 if test -r "$ac_dir/libX11.$ac_extension"; then
11358 ac_x_libraries=$ac_dir
11359 break 2
11361 done
11362 done
11365 rm -rf conftest.dSYM
11366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11367 conftest$ac_exeext conftest.$ac_ext
11368 fi # $ac_x_libraries = no
11370 case $ac_x_includes,$ac_x_libraries in #(
11371 no,* | *,no | *\'*)
11372 # Didn't find X, or a directory has "'" in its name.
11373 ac_cv_have_x="have_x=no";; #(
11375 # Record where we found X for the cache.
11376 ac_cv_have_x="have_x=yes\
11377 ac_x_includes='$ac_x_includes'\
11378 ac_x_libraries='$ac_x_libraries'"
11379 esac
11381 ;; #(
11382 *) have_x=yes;;
11383 esac
11384 eval "$ac_cv_have_x"
11385 fi # $with_x != no
11387 if test "$have_x" != yes; then
11388 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
11389 $as_echo "$have_x" >&6; }
11390 no_x=yes
11391 else
11392 # If each of the values was on the command line, it overrides each guess.
11393 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11394 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11395 # Update the cache value to reflect the command line values.
11396 ac_cv_have_x="have_x=yes\
11397 ac_x_includes='$x_includes'\
11398 ac_x_libraries='$x_libraries'"
11399 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11400 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11404 x_cflags=
11405 for path in $x_libraries
11407 x_cflags="$x_cflags -L$path"
11408 done
11410 for path in $x_includes
11412 x_cflags="$x_cflags -I$path"
11413 done
11415 if test "x-$no_x" = "x-yes" ; then
11417 if test "x-$x11_hidd" != "x-auto" ; then
11418 { { $as_echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11419 $as_echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11420 { (exit 1); exit 1; }; }
11423 else
11424 x11_hidd_target=kernel-x11gfx
11427 # Check whether --enable-x11_shm was given.
11428 if test "${enable_x11_shm+set}" = set; then
11429 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11430 else
11431 x11_hidd_shm="auto"
11434 case "x-$x11_hidd_shm" in
11435 x-yes|x-no|x-auto) ;;
11436 *) x11_hidd_shm="auto" ;;
11437 esac
11439 have_xshm=no
11441 if test "x-$x11_hidd_shm" != "x-no" ; then
11444 for ac_header in sys/ipc.h
11446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11449 $as_echo_n "checking for $ac_header... " >&6; }
11450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451 $as_echo_n "(cached) " >&6
11453 ac_res=`eval 'as_val=${'$as_ac_Header'}
11454 $as_echo "$as_val"'`
11455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11456 $as_echo "$ac_res" >&6; }
11457 else
11458 # Is the header compilable?
11459 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11460 $as_echo_n "checking $ac_header usability... " >&6; }
11461 cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 $ac_includes_default
11468 #include <$ac_header>
11469 _ACEOF
11470 rm -f conftest.$ac_objext
11471 if { (ac_try="$ac_compile"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475 esac
11476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11477 $as_echo "$ac_try_echo") >&5
11478 (eval "$ac_compile") 2>conftest.er1
11479 ac_status=$?
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
11483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } && {
11485 test -z "$ac_c_werror_flag" ||
11486 test ! -s conftest.err
11487 } && test -s conftest.$ac_objext; then
11488 ac_header_compiler=yes
11489 else
11490 $as_echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11493 ac_header_compiler=no
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11498 $as_echo "$ac_header_compiler" >&6; }
11500 # Is the header present?
11501 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11502 $as_echo_n "checking $ac_header presence... " >&6; }
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 #include <$ac_header>
11510 _ACEOF
11511 if { (ac_try="$ac_cpp conftest.$ac_ext"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515 esac
11516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11517 $as_echo "$ac_try_echo") >&5
11518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } >/dev/null && {
11525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 }; then
11528 ac_header_preproc=yes
11529 else
11530 $as_echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ac_header_preproc=no
11536 rm -f conftest.err conftest.$ac_ext
11537 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538 $as_echo "$ac_header_preproc" >&6; }
11540 # So? What about this header?
11541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11542 yes:no: )
11543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11546 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11547 ac_header_preproc=yes
11549 no:yes:* )
11550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11551 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11553 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11555 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11557 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11559 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11561 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11564 esac
11565 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11566 $as_echo_n "checking for $ac_header... " >&6; }
11567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11568 $as_echo_n "(cached) " >&6
11569 else
11570 eval "$as_ac_Header=\$ac_header_preproc"
11572 ac_res=`eval 'as_val=${'$as_ac_Header'}
11573 $as_echo "$as_val"'`
11574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11575 $as_echo "$ac_res" >&6; }
11578 if test `eval 'as_val=${'$as_ac_Header'}
11579 $as_echo "$as_val"'` = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11582 _ACEOF
11586 done
11589 for ac_header in sys/shm.h
11591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11594 $as_echo_n "checking for $ac_header... " >&6; }
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 $as_echo_n "(cached) " >&6
11598 ac_res=`eval 'as_val=${'$as_ac_Header'}
11599 $as_echo "$as_val"'`
11600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11601 $as_echo "$ac_res" >&6; }
11602 else
11603 # Is the header compilable?
11604 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11605 $as_echo_n "checking $ac_header usability... " >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11622 $as_echo "$ac_try_echo") >&5
11623 (eval "$ac_compile") 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && {
11630 test -z "$ac_c_werror_flag" ||
11631 test ! -s conftest.err
11632 } && test -s conftest.$ac_objext; then
11633 ac_header_compiler=yes
11634 else
11635 $as_echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_header_compiler=no
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11643 $as_echo "$ac_header_compiler" >&6; }
11645 # Is the header present?
11646 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11647 $as_echo_n "checking $ac_header presence... " >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <$ac_header>
11655 _ACEOF
11656 if { (ac_try="$ac_cpp conftest.$ac_ext"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660 esac
11661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11662 $as_echo "$ac_try_echo") >&5
11663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null && {
11670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11672 }; then
11673 ac_header_preproc=yes
11674 else
11675 $as_echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_header_preproc=no
11681 rm -f conftest.err conftest.$ac_ext
11682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11683 $as_echo "$ac_header_preproc" >&6; }
11685 # So? What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687 yes:no: )
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11689 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11692 ac_header_preproc=yes
11694 no:yes:* )
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11700 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11702 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11706 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11709 esac
11710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11711 $as_echo_n "checking for $ac_header... " >&6; }
11712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11713 $as_echo_n "(cached) " >&6
11714 else
11715 eval "$as_ac_Header=\$ac_header_preproc"
11717 ac_res=`eval 'as_val=${'$as_ac_Header'}
11718 $as_echo "$as_val"'`
11719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11720 $as_echo "$ac_res" >&6; }
11723 if test `eval 'as_val=${'$as_ac_Header'}
11724 $as_echo "$as_val"'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727 _ACEOF
11731 done
11734 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11736 save_cflags="$CFLAGS"
11737 CFLAGS="$CFLAGS $x_cflags"
11738 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11739 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11740 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11741 $as_echo_n "(cached) " >&6
11742 else
11743 ac_check_lib_save_LIBS=$LIBS
11744 LIBS="-lXext $LIBS"
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 char XShmQueryExtension ();
11760 main ()
11762 return XShmQueryExtension ();
11764 return 0;
11766 _ACEOF
11767 rm -f conftest.$ac_objext conftest$ac_exeext
11768 if { (ac_try="$ac_link"
11769 case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772 esac
11773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774 $as_echo "$ac_try_echo") >&5
11775 (eval "$ac_link") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest$ac_exeext && {
11785 test "$cross_compiling" = yes ||
11786 $as_test_x conftest$ac_exeext
11787 }; then
11788 ac_cv_lib_Xext_XShmQueryExtension=yes
11789 else
11790 $as_echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 ac_cv_lib_Xext_XShmQueryExtension=no
11796 rm -rf conftest.dSYM
11797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11798 conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11801 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11802 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11803 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11804 have_xshm=yes
11807 CFLAGS="$save_cflags"
11811 if test "x-$have_xshm" = "x-yes" ; then
11812 DO_XSHM_SUPPORT="1"
11813 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11814 { { $as_echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11815 $as_echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11816 { (exit 1); exit 1; }; }
11817 else
11818 DO_XSHM_SUPPORT="0"
11822 # Check whether --enable-x11_vidmode was given.
11823 if test "${enable_x11_vidmode+set}" = set; then
11824 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11825 else
11826 x11_hidd_vidmode="auto"
11829 case "x-$x11_hidd_vidmode" in
11830 x-yes|x-no|x-auto) ;;
11831 *) x11_hidd_vidmode="auto" ;;
11832 esac
11834 have_vidmode=no
11836 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11838 save_cflags="$CFLAGS"
11839 CFLAGS="$CFLAGS $x_cflags"
11840 { $as_echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11841 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11842 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11843 $as_echo_n "(cached) " >&6
11844 else
11845 ac_check_lib_save_LIBS=$LIBS
11846 LIBS="-lXxf86vm $LIBS"
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h. */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11854 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11857 #ifdef __cplusplus
11858 extern "C"
11859 #endif
11860 char XF86VidModeQueryExtension ();
11862 main ()
11864 return XF86VidModeQueryExtension ();
11866 return 0;
11868 _ACEOF
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (ac_try="$ac_link"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874 esac
11875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11876 $as_echo "$ac_try_echo") >&5
11877 (eval "$ac_link") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest$ac_exeext && {
11887 test "$cross_compiling" = yes ||
11888 $as_test_x conftest$ac_exeext
11889 }; then
11890 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11891 else
11892 $as_echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11898 rm -rf conftest.dSYM
11899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11900 conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11904 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11905 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
11906 have_vidmode=yes
11909 CFLAGS="$save_cflags"
11912 if test "x-$have_vidmode" = "x-yes" ; then
11913 DO_VIDMODE_SUPPORT="1"
11914 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11915 { { $as_echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
11916 $as_echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
11917 { (exit 1); exit 1; }; }
11918 else
11919 DO_VIDMODE_SUPPORT="0"
11923 aros_host_x11_includes=$x_includes
11924 aros_host_x11_libdirs=$x_libraries
11928 # Check whether --enable-sdl_hidd was given.
11929 if test "${enable_sdl_hidd+set}" = set; then
11930 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11931 else
11932 sdl_hidd="auto"
11935 case "x-$sdl_hidd" in
11936 x-yes|x-no|x-auto) ;;
11937 *) sdl_hidd="auto" ;;
11938 esac
11940 if test "x-$sdl_hidd" != "x-no" ; then
11943 # Check whether --with-sdl-prefix was given.
11944 if test "${with_sdl_prefix+set}" = set; then
11945 withval=$with_sdl_prefix; sdl_prefix="$withval"
11946 else
11947 sdl_prefix=""
11951 # Check whether --with-sdl-exec-prefix was given.
11952 if test "${with_sdl_exec_prefix+set}" = set; then
11953 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11954 else
11955 sdl_exec_prefix=""
11958 # Check whether --enable-sdltest was given.
11959 if test "${enable_sdltest+set}" = set; then
11960 enableval=$enable_sdltest;
11961 else
11962 enable_sdltest=yes
11966 if test x$sdl_exec_prefix != x ; then
11967 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11968 if test x${SDL_CONFIG+set} != xset ; then
11969 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11972 if test x$sdl_prefix != x ; then
11973 sdl_args="$sdl_args --prefix=$sdl_prefix"
11974 if test x${SDL_CONFIG+set} != xset ; then
11975 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11979 if test "x$prefix" != xNONE; then
11980 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11982 # Extract the first word of "sdl-config", so it can be a program name with args.
11983 set dummy sdl-config; ac_word=$2
11984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
11987 $as_echo_n "(cached) " >&6
11988 else
11989 case $SDL_CONFIG in
11990 [\\/]* | ?:[\\/]*)
11991 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12005 done
12006 done
12007 IFS=$as_save_IFS
12009 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12011 esac
12013 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12014 if test -n "$SDL_CONFIG"; then
12015 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12016 $as_echo "$SDL_CONFIG" >&6; }
12017 else
12018 { $as_echo "$as_me:$LINENO: result: no" >&5
12019 $as_echo "no" >&6; }
12023 min_sdl_version=1.2.10
12024 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12025 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12026 no_sdl=""
12027 if test "$SDL_CONFIG" = "no" ; then
12028 no_sdl=yes
12029 else
12030 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12031 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12033 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12035 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12037 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12039 if test "x$enable_sdltest" = "xyes" ; then
12040 ac_save_CFLAGS="$CFLAGS"
12041 ac_save_CXXFLAGS="$CXXFLAGS"
12042 ac_save_LIBS="$LIBS"
12043 CFLAGS="$CFLAGS $SDL_CFLAGS"
12044 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12045 LIBS="$LIBS $SDL_LIBS"
12046 rm -f conf.sdltest
12047 if test "$cross_compiling" = yes; then
12048 echo $ac_n "cross compiling; assumed OK... $ac_c"
12049 else
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12057 #include <stdio.h>
12058 #include <stdlib.h>
12059 #include <string.h>
12060 #include "SDL.h"
12062 char*
12063 my_strdup (char *str)
12065 char *new_str;
12067 if (str)
12069 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12070 strcpy (new_str, str);
12072 else
12073 new_str = NULL;
12075 return new_str;
12078 int main (int argc, char *argv[])
12080 int major, minor, micro;
12081 char *tmp_version;
12083 /* This hangs on some systems (?)
12084 system ("touch conf.sdltest");
12086 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12088 /* HP/UX 9 (%@#!) writes to sscanf strings */
12089 tmp_version = my_strdup("$min_sdl_version");
12090 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12091 printf("%s, bad version string\n", "$min_sdl_version");
12092 exit(1);
12095 if (($sdl_major_version > major) ||
12096 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12097 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12099 return 0;
12101 else
12103 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12104 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12105 printf("*** best to upgrade to the required version.\n");
12106 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12107 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12108 printf("*** config.cache before re-running configure\n");
12109 return 1;
12114 _ACEOF
12115 rm -f conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120 esac
12121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12122 $as_echo "$ac_try_echo") >&5
12123 (eval "$ac_link") 2>&5
12124 ac_status=$?
12125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12132 $as_echo "$ac_try_echo") >&5
12133 (eval "$ac_try") 2>&5
12134 ac_status=$?
12135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12138 else
12139 $as_echo "$as_me: program exited with status $ac_status" >&5
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 ( exit $ac_status )
12144 no_sdl=yes
12146 rm -rf conftest.dSYM
12147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12151 CFLAGS="$ac_save_CFLAGS"
12152 CXXFLAGS="$ac_save_CXXFLAGS"
12153 LIBS="$ac_save_LIBS"
12156 if test "x$no_sdl" = x ; then
12157 { $as_echo "$as_me:$LINENO: result: yes" >&5
12158 $as_echo "yes" >&6; }
12159 have_sdl="yes"
12160 else
12161 { $as_echo "$as_me:$LINENO: result: no" >&5
12162 $as_echo "no" >&6; }
12163 if test "$SDL_CONFIG" = "no" ; then
12164 echo "*** The sdl-config script installed by SDL could not be found"
12165 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12166 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12167 echo "*** full path to sdl-config."
12168 else
12169 if test -f conf.sdltest ; then
12171 else
12172 echo "*** Could not run SDL test program, checking why..."
12173 CFLAGS="$CFLAGS $SDL_CFLAGS"
12174 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12175 LIBS="$LIBS $SDL_LIBS"
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12183 #include <stdio.h>
12184 #include "SDL.h"
12186 int main(int argc, char *argv[])
12187 { return 0; }
12188 #undef main
12189 #define main K_and_R_C_main
12192 main ()
12194 return 0;
12196 return 0;
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204 esac
12205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12206 $as_echo "$ac_try_echo") >&5
12207 (eval "$ac_link") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest$ac_exeext && {
12217 test "$cross_compiling" = yes ||
12218 $as_test_x conftest$ac_exeext
12219 }; then
12220 echo "*** The test program compiled, but did not run. This usually means"
12221 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12222 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12223 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12224 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12225 echo "*** is required on your system"
12226 echo "***"
12227 echo "*** If you have an old version installed, it is best to remove it, although"
12228 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12229 else
12230 $as_echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 echo "*** The test program failed to compile or link. See the file config.log for the"
12234 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12235 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12236 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12239 rm -rf conftest.dSYM
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241 conftest$ac_exeext conftest.$ac_ext
12242 CFLAGS="$ac_save_CFLAGS"
12243 CXXFLAGS="$ac_save_CXXFLAGS"
12244 LIBS="$ac_save_LIBS"
12247 SDL_CFLAGS=""
12248 SDL_LIBS=""
12249 have_sdl="no"
12253 rm -f conf.sdltest
12256 if test "x-$have_sdl" != "x-yes" ; then
12258 if test "x-$sdl_hidd" != "x-auto" ; then
12259 { { $as_echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12260 $as_echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12261 { (exit 1); exit 1; }; }
12264 else
12265 sdl_hidd_target=kernel-hidd-sdl
12266 aros_host_sdl_cflags=SDL_CFLAGS
12267 aros_host_sdl_libs=SDL_LIBS
12274 { $as_echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12275 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12276 # Check whether --enable-dbus was given.
12277 if test "${enable_dbus+set}" = set; then
12278 enableval=$enable_dbus; dbus="yes"
12279 else
12280 dbus="no"
12283 if test "$dbus" = "yes" ; then
12284 ENABLE_DBUS=1
12285 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12286 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12287 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12288 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12289 else
12290 ENABLE_DBUS=0
12292 { $as_echo "$as_me:$LINENO: result: $dbus" >&5
12293 $as_echo "$dbus" >&6; }
12297 # Generic
12306 # Host related
12329 # Target Related
12370 # Graphics Related
12385 # Native version related
12389 # Palm native version related
12392 # Unix/Hosted version related
12395 # DBUS related
12402 # Debug related
12408 # Collect-aros stuff: "-ius" to ignore undefined symbols
12411 # C compiler related
12414 case "$aros_flavour" in
12415 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12416 aros_flavour="emulation" ;;
12417 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12418 aros_flavour="emulation" ;;
12419 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12420 aros_flavour="standalone";;
12421 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12422 aros_flavour="native" ;;
12423 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12424 aros_flavour="native" ;;
12425 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12426 aros_flavour="linklib" ;;
12427 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12428 aros_flavour="palmnative" ;;
12429 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12430 aros_flavour="mac68knative" ;;
12431 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12432 aros_flavour="ppcnative" ;;
12433 esac
12435 if test ! -d ${aros_inc_dir} ; then
12436 ${MKDIR} ${aros_inc_dir}
12438 if test ! -d ${aros_geninc_dir} ; then
12439 ${MKDIR} ${aros_geninc_dir}
12441 if test ! -d ${aros_hostcfg_dir} ; then
12442 ${MKDIR} ${aros_hostcfg_dir}
12444 if test ! -d ${aros_targetcfg_dir} ; then
12445 ${MKDIR} ${aros_targetcfg_dir}
12447 if test ! -d ${aros_tools_dir} ; then
12448 ${MKDIR} ${aros_tools_dir}
12450 if test ! -d ${aros_scripts_dir} ; then
12451 ${MKDIR} ${aros_scripts_dir}
12454 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12457 ac_config_commands="$ac_config_commands compiler_executable"
12459 ac_config_commands="$ac_config_commands genshared_executable"
12461 ac_config_commands="$ac_config_commands genmf_executable"
12463 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
12466 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"
12469 cat >confcache <<\_ACEOF
12470 # This file is a shell script that caches the results of configure
12471 # tests run on this system so they can be shared between configure
12472 # scripts and configure runs, see configure's option --config-cache.
12473 # It is not useful on other systems. If it contains results you don't
12474 # want to keep, you may remove or edit it.
12476 # config.status only pays attention to the cache file if you give it
12477 # the --recheck option to rerun configure.
12479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12481 # following values.
12483 _ACEOF
12485 # The following way of writing the cache mishandles newlines in values,
12486 # but we know of no workaround that is simple, portable, and efficient.
12487 # So, we kill variables containing newlines.
12488 # Ultrix sh set writes to stderr and can't be redirected directly,
12489 # and sets the high bit in the cache file unless we assign to the vars.
12491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12492 eval ac_val=\$$ac_var
12493 case $ac_val in #(
12494 *${as_nl}*)
12495 case $ac_var in #(
12496 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12497 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12498 esac
12499 case $ac_var in #(
12500 _ | IFS | as_nl) ;; #(
12501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12502 *) $as_unset $ac_var ;;
12503 esac ;;
12504 esac
12505 done
12507 (set) 2>&1 |
12508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12509 *${as_nl}ac_space=\ *)
12510 # `set' does not quote correctly, so add quotes (double-quote
12511 # substitution turns \\\\ into \\, and sed turns \\ into \).
12512 sed -n \
12513 "s/'/'\\\\''/g;
12514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12515 ;; #(
12517 # `set' quotes correctly as required by POSIX, so do not add quotes.
12518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12520 esac |
12521 sort
12523 sed '
12524 /^ac_cv_env_/b end
12525 t clear
12526 :clear
12527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12528 t end
12529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12530 :end' >>confcache
12531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12532 if test -w "$cache_file"; then
12533 test "x$cache_file" != "x/dev/null" &&
12534 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12535 $as_echo "$as_me: updating cache $cache_file" >&6;}
12536 cat confcache >$cache_file
12537 else
12538 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12542 rm -f confcache
12544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12545 # Let make expand exec_prefix.
12546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12548 DEFS=-DHAVE_CONFIG_H
12550 ac_libobjs=
12551 ac_ltlibobjs=
12552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12553 # 1. Remove the extension, and $U if already installed.
12554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12557 # will be set to the directory where LIBOBJS objects are built.
12558 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12559 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12560 done
12561 LIBOBJS=$ac_libobjs
12563 LTLIBOBJS=$ac_ltlibobjs
12567 : ${CONFIG_STATUS=./config.status}
12568 ac_write_fail=0
12569 ac_clean_files_save=$ac_clean_files
12570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12571 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12572 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12573 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12574 #! $SHELL
12575 # Generated by $as_me.
12576 # Run this file to recreate the current configuration.
12577 # Compiler output produced by configure, useful for debugging
12578 # configure, is in config.log if it exists.
12580 debug=false
12581 ac_cs_recheck=false
12582 ac_cs_silent=false
12583 SHELL=\${CONFIG_SHELL-$SHELL}
12584 _ACEOF
12586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12587 ## --------------------- ##
12588 ## M4sh Initialization. ##
12589 ## --------------------- ##
12591 # Be more Bourne compatible
12592 DUALCASE=1; export DUALCASE # for MKS sh
12593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12594 emulate sh
12595 NULLCMD=:
12596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12597 # is contrary to our usage. Disable this feature.
12598 alias -g '${1+"$@"}'='"$@"'
12599 setopt NO_GLOB_SUBST
12600 else
12601 case `(set -o) 2>/dev/null` in
12602 *posix*) set -o posix ;;
12603 esac
12610 # PATH needs CR
12611 # Avoid depending upon Character Ranges.
12612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12615 as_cr_digits='0123456789'
12616 as_cr_alnum=$as_cr_Letters$as_cr_digits
12618 as_nl='
12620 export as_nl
12621 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12622 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12625 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12626 as_echo='printf %s\n'
12627 as_echo_n='printf %s'
12628 else
12629 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12630 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12631 as_echo_n='/usr/ucb/echo -n'
12632 else
12633 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12634 as_echo_n_body='eval
12635 arg=$1;
12636 case $arg in
12637 *"$as_nl"*)
12638 expr "X$arg" : "X\\(.*\\)$as_nl";
12639 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12640 esac;
12641 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12643 export as_echo_n_body
12644 as_echo_n='sh -c $as_echo_n_body as_echo'
12646 export as_echo_body
12647 as_echo='sh -c $as_echo_body as_echo'
12650 # The user is always right.
12651 if test "${PATH_SEPARATOR+set}" != set; then
12652 PATH_SEPARATOR=:
12653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12654 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12655 PATH_SEPARATOR=';'
12659 # Support unset when possible.
12660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12661 as_unset=unset
12662 else
12663 as_unset=false
12667 # IFS
12668 # We need space, tab and new line, in precisely that order. Quoting is
12669 # there to prevent editors from complaining about space-tab.
12670 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12671 # splitting by setting IFS to empty value.)
12672 IFS=" "" $as_nl"
12674 # Find who we are. Look in the path if we contain no directory separator.
12675 case $0 in
12676 *[\\/]* ) as_myself=$0 ;;
12677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12683 done
12684 IFS=$as_save_IFS
12687 esac
12688 # We did not find ourselves, most probably we were run as `sh COMMAND'
12689 # in which case we are not to be found in the path.
12690 if test "x$as_myself" = x; then
12691 as_myself=$0
12693 if test ! -f "$as_myself"; then
12694 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12695 { (exit 1); exit 1; }
12698 # Work around bugs in pre-3.0 UWIN ksh.
12699 for as_var in ENV MAIL MAILPATH
12700 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12701 done
12702 PS1='$ '
12703 PS2='> '
12704 PS4='+ '
12706 # NLS nuisances.
12707 LC_ALL=C
12708 export LC_ALL
12709 LANGUAGE=C
12710 export LANGUAGE
12712 # Required to use basename.
12713 if expr a : '\(a\)' >/dev/null 2>&1 &&
12714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12715 as_expr=expr
12716 else
12717 as_expr=false
12720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12721 as_basename=basename
12722 else
12723 as_basename=false
12727 # Name of the executable.
12728 as_me=`$as_basename -- "$0" ||
12729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12730 X"$0" : 'X\(//\)$' \| \
12731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12732 $as_echo X/"$0" |
12733 sed '/^.*\/\([^/][^/]*\)\/*$/{
12734 s//\1/
12737 /^X\/\(\/\/\)$/{
12738 s//\1/
12741 /^X\/\(\/\).*/{
12742 s//\1/
12745 s/.*/./; q'`
12747 # CDPATH.
12748 $as_unset CDPATH
12752 as_lineno_1=$LINENO
12753 as_lineno_2=$LINENO
12754 test "x$as_lineno_1" != "x$as_lineno_2" &&
12755 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12758 # uniformly replaced by the line number. The first 'sed' inserts a
12759 # line-number line after each line using $LINENO; the second 'sed'
12760 # does the real work. The second script uses 'N' to pair each
12761 # line-number line with the line containing $LINENO, and appends
12762 # trailing '-' during substitution so that $LINENO is not a special
12763 # case at line end.
12764 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12765 # scripts with optimization help from Paolo Bonzini. Blame Lee
12766 # E. McMahon (1931-1989) for sed's syntax. :-)
12767 sed -n '
12769 /[$]LINENO/=
12770 ' <$as_myself |
12771 sed '
12772 s/[$]LINENO.*/&-/
12773 t lineno
12775 :lineno
12777 :loop
12778 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12779 t loop
12780 s/-\n.*//
12781 ' >$as_me.lineno &&
12782 chmod +x "$as_me.lineno" ||
12783 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12784 { (exit 1); exit 1; }; }
12786 # Don't try to exec as it changes $[0], causing all sort of problems
12787 # (the dirname of $[0] is not the place where we might find the
12788 # original and so on. Autoconf is especially sensitive to this).
12789 . "./$as_me.lineno"
12790 # Exit status is that of the last command.
12791 exit
12795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12796 as_dirname=dirname
12797 else
12798 as_dirname=false
12801 ECHO_C= ECHO_N= ECHO_T=
12802 case `echo -n x` in
12803 -n*)
12804 case `echo 'x\c'` in
12805 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12806 *) ECHO_C='\c';;
12807 esac;;
12809 ECHO_N='-n';;
12810 esac
12811 if expr a : '\(a\)' >/dev/null 2>&1 &&
12812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12813 as_expr=expr
12814 else
12815 as_expr=false
12818 rm -f conf$$ conf$$.exe conf$$.file
12819 if test -d conf$$.dir; then
12820 rm -f conf$$.dir/conf$$.file
12821 else
12822 rm -f conf$$.dir
12823 mkdir conf$$.dir 2>/dev/null
12825 if (echo >conf$$.file) 2>/dev/null; then
12826 if ln -s conf$$.file conf$$ 2>/dev/null; then
12827 as_ln_s='ln -s'
12828 # ... but there are two gotchas:
12829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12831 # In both cases, we have to default to `cp -p'.
12832 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12833 as_ln_s='cp -p'
12834 elif ln conf$$.file conf$$ 2>/dev/null; then
12835 as_ln_s=ln
12836 else
12837 as_ln_s='cp -p'
12839 else
12840 as_ln_s='cp -p'
12842 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12843 rmdir conf$$.dir 2>/dev/null
12845 if mkdir -p . 2>/dev/null; then
12846 as_mkdir_p=:
12847 else
12848 test -d ./-p && rmdir ./-p
12849 as_mkdir_p=false
12852 if test -x / >/dev/null 2>&1; then
12853 as_test_x='test -x'
12854 else
12855 if ls -dL / >/dev/null 2>&1; then
12856 as_ls_L_option=L
12857 else
12858 as_ls_L_option=
12860 as_test_x='
12861 eval sh -c '\''
12862 if test -d "$1"; then
12863 test -d "$1/.";
12864 else
12865 case $1 in
12866 -*)set "./$1";;
12867 esac;
12868 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12869 ???[sx]*):;;*)false;;esac;fi
12870 '\'' sh
12873 as_executable_p=$as_test_x
12875 # Sed expression to map a string onto a valid CPP name.
12876 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12878 # Sed expression to map a string onto a valid variable name.
12879 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12882 exec 6>&1
12884 # Save the log message, to keep $[0] and so on meaningful, and to
12885 # report actual input values of CONFIG_FILES etc. instead of their
12886 # values after options handling.
12887 ac_log="
12888 This file was extended by $as_me, which was
12889 generated by GNU Autoconf 2.62. Invocation command line was
12891 CONFIG_FILES = $CONFIG_FILES
12892 CONFIG_HEADERS = $CONFIG_HEADERS
12893 CONFIG_LINKS = $CONFIG_LINKS
12894 CONFIG_COMMANDS = $CONFIG_COMMANDS
12895 $ $0 $@
12897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12900 _ACEOF
12902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903 # Files that config.status was made for.
12904 config_files="$ac_config_files"
12905 config_headers="$ac_config_headers"
12906 config_commands="$ac_config_commands"
12908 _ACEOF
12910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911 ac_cs_usage="\
12912 \`$as_me' instantiates files from templates according to the
12913 current configuration.
12915 Usage: $0 [OPTIONS] [FILE]...
12917 -h, --help print this help, then exit
12918 -V, --version print version number and configuration settings, then exit
12919 -q, --quiet do not print progress messages
12920 -d, --debug don't remove temporary files
12921 --recheck update $as_me by reconfiguring in the same conditions
12922 --file=FILE[:TEMPLATE]
12923 instantiate the configuration file FILE
12924 --header=FILE[:TEMPLATE]
12925 instantiate the configuration header FILE
12927 Configuration files:
12928 $config_files
12930 Configuration headers:
12931 $config_headers
12933 Configuration commands:
12934 $config_commands
12936 Report bugs to <bug-autoconf@gnu.org>."
12938 _ACEOF
12939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12940 ac_cs_version="\\
12941 config.status
12942 configured by $0, generated by GNU Autoconf 2.62,
12943 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12945 Copyright (C) 2008 Free Software Foundation, Inc.
12946 This config.status script is free software; the Free Software Foundation
12947 gives unlimited permission to copy, distribute and modify it."
12949 ac_pwd='$ac_pwd'
12950 srcdir='$srcdir'
12951 test -n "\$AWK" || AWK=awk
12952 _ACEOF
12954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12955 # The default lists apply if the user does not specify any file.
12956 ac_need_defaults=:
12957 while test $# != 0
12959 case $1 in
12960 --*=*)
12961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12963 ac_shift=:
12966 ac_option=$1
12967 ac_optarg=$2
12968 ac_shift=shift
12970 esac
12972 case $ac_option in
12973 # Handling of the options.
12974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12975 ac_cs_recheck=: ;;
12976 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12977 $as_echo "$ac_cs_version"; exit ;;
12978 --debug | --debu | --deb | --de | --d | -d )
12979 debug=: ;;
12980 --file | --fil | --fi | --f )
12981 $ac_shift
12982 case $ac_optarg in
12983 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12984 esac
12985 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12986 ac_need_defaults=false;;
12987 --header | --heade | --head | --hea )
12988 $ac_shift
12989 case $ac_optarg in
12990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12991 esac
12992 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12993 ac_need_defaults=false;;
12994 --he | --h)
12995 # Conflict between --help and --header
12996 { $as_echo "$as_me: error: ambiguous option: $1
12997 Try \`$0 --help' for more information." >&2
12998 { (exit 1); exit 1; }; };;
12999 --help | --hel | -h )
13000 $as_echo "$ac_cs_usage"; exit ;;
13001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13003 ac_cs_silent=: ;;
13005 # This is an error.
13006 -*) { $as_echo "$as_me: error: unrecognized option: $1
13007 Try \`$0 --help' for more information." >&2
13008 { (exit 1); exit 1; }; } ;;
13010 *) ac_config_targets="$ac_config_targets $1"
13011 ac_need_defaults=false ;;
13013 esac
13014 shift
13015 done
13017 ac_configure_extra_args=
13019 if $ac_cs_silent; then
13020 exec 6>/dev/null
13021 ac_configure_extra_args="$ac_configure_extra_args --silent"
13024 _ACEOF
13025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13026 if \$ac_cs_recheck; then
13027 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13028 shift
13029 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13030 CONFIG_SHELL='$SHELL'
13031 export CONFIG_SHELL
13032 exec "\$@"
13035 _ACEOF
13036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13037 exec 5>>config.log
13039 echo
13040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13041 ## Running $as_me. ##
13042 _ASBOX
13043 $as_echo "$ac_log"
13044 } >&5
13046 _ACEOF
13047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13049 # INIT-COMMANDS
13052 aros_tools_dir=${aros_tools_dir}
13053 aros_target_cpu=${aros_target_cpu}
13054 aros_target_arch=${aros_target_arch}
13055 aros_target_suffix=${aros_target_suffix}
13056 aros_target_nm_ln=${aros_target_nm_ln}
13057 aros_target_as_ln=${aros_target_as_ln}
13058 aros_target_ar_ln=${aros_target_ar_ln}
13059 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13060 aros_target_objdump_ln=${aros_target_objdump_ln}
13061 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13062 aros_target_strip_ln=${aros_target_strip_ln}
13065 aros_scripts_dir=${aros_scripts_dir}
13067 aros_tools_dir=${aros_tools_dir}
13070 _ACEOF
13072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13074 # Handling of arguments.
13075 for ac_config_target in $ac_config_targets
13077 case $ac_config_target in
13078 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13079 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13080 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13081 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13082 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13083 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13084 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
13085 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13086 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13087 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13088 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13089 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13090 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13091 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13092 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13093 "${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" ;;
13094 "${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" ;;
13095 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13096 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13097 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13098 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13100 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13101 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13102 { (exit 1); exit 1; }; };;
13103 esac
13104 done
13107 # If the user did not use the arguments to specify the items to instantiate,
13108 # then the envvar interface is used. Set only those that are not.
13109 # We use the long form for the default assignment because of an extremely
13110 # bizarre bug on SunOS 4.1.3.
13111 if $ac_need_defaults; then
13112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13117 # Have a temporary directory for convenience. Make it in the build tree
13118 # simply because there is no reason against having it here, and in addition,
13119 # creating and moving files from /tmp can sometimes cause problems.
13120 # Hook for its removal unless debugging.
13121 # Note that there is a small window in which the directory will not be cleaned:
13122 # after its creation but before its name has been assigned to `$tmp'.
13123 $debug ||
13125 tmp=
13126 trap 'exit_status=$?
13127 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13129 trap '{ (exit 1); exit 1; }' 1 2 13 15
13131 # Create a (secure) tmp directory for tmp files.
13134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13135 test -n "$tmp" && test -d "$tmp"
13136 } ||
13138 tmp=./conf$$-$RANDOM
13139 (umask 077 && mkdir "$tmp")
13140 } ||
13142 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13143 { (exit 1); exit 1; }
13146 # Set up the scripts for CONFIG_FILES section.
13147 # No need to generate them if there are no CONFIG_FILES.
13148 # This happens for instance with `./config.status config.h'.
13149 if test -n "$CONFIG_FILES"; then
13152 ac_cr='
13154 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13155 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13156 ac_cs_awk_cr='\\r'
13157 else
13158 ac_cs_awk_cr=$ac_cr
13161 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13162 _ACEOF
13166 echo "cat >conf$$subs.awk <<_ACEOF" &&
13167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13168 echo "_ACEOF"
13169 } >conf$$subs.sh ||
13170 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13171 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13172 { (exit 1); exit 1; }; }
13173 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13174 ac_delim='%!_!# '
13175 for ac_last_try in false false false false false :; do
13176 . ./conf$$subs.sh ||
13177 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13178 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13179 { (exit 1); exit 1; }; }
13181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
13182 break
13183 elif $ac_last_try; then
13184 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13185 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13186 { (exit 1); exit 1; }; }
13187 else
13188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13190 done
13191 rm -f conf$$subs.sh
13193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13194 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13195 _ACEOF
13196 sed -n '
13198 s/^/S["/; s/!.*/"]=/
13201 s/^[^!]*!//
13202 :repl
13203 t repl
13204 s/'"$ac_delim"'$//
13205 t delim
13208 s/\(.\{148\}\).*/\1/
13209 t more1
13210 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13213 b repl
13214 :more1
13215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13218 s/.\{148\}//
13219 t nl
13220 :delim
13222 s/\(.\{148\}\).*/\1/
13223 t more2
13224 s/["\\]/\\&/g; s/^/"/; s/$/"/
13227 :more2
13228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13231 s/.\{148\}//
13232 t delim
13233 ' <conf$$subs.awk | sed '
13234 /^[^""]/{
13236 s/\n//
13238 ' >>$CONFIG_STATUS || ac_write_fail=1
13239 rm -f conf$$subs.awk
13240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13241 _ACAWK
13242 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13243 for (key in S) S_is_set[key] = 1
13244 FS = "\a"
13248 line = $ 0
13249 nfields = split(line, field, "@")
13250 substed = 0
13251 len = length(field[1])
13252 for (i = 2; i < nfields; i++) {
13253 key = field[i]
13254 keylen = length(key)
13255 if (S_is_set[key]) {
13256 value = S[key]
13257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13258 len += length(value) + length(field[++i])
13259 substed = 1
13260 } else
13261 len += 1 + keylen
13264 print line
13267 _ACAWK
13268 _ACEOF
13269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13270 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13272 else
13274 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13275 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13276 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13277 { (exit 1); exit 1; }; }
13278 _ACEOF
13280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13282 # trailing colons and then remove the whole line if VPATH becomes empty
13283 # (actually we leave an empty line to preserve line numbers).
13284 if test "x$srcdir" = x.; then
13285 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13286 s/:*\$(srcdir):*/:/
13287 s/:*\${srcdir}:*/:/
13288 s/:*@srcdir@:*/:/
13289 s/^\([^=]*=[ ]*\):*/\1/
13290 s/:*$//
13291 s/^[^=]*=[ ]*$//
13295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13296 fi # test -n "$CONFIG_FILES"
13298 # Set up the scripts for CONFIG_HEADERS section.
13299 # No need to generate them if there are no CONFIG_HEADERS.
13300 # This happens for instance with `./config.status Makefile'.
13301 if test -n "$CONFIG_HEADERS"; then
13302 cat >"$tmp/defines.awk" <<\_ACAWK ||
13303 BEGIN {
13304 _ACEOF
13306 # Transform confdefs.h into an awk script `defines.awk', embedded as
13307 # here-document in config.status, that substitutes the proper values into
13308 # config.h.in to produce config.h.
13310 # Create a delimiter string that does not exist in confdefs.h, to ease
13311 # handling of long lines.
13312 ac_delim='%!_!# '
13313 for ac_last_try in false false :; do
13314 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13315 if test -z "$ac_t"; then
13316 break
13317 elif $ac_last_try; then
13318 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13319 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13320 { (exit 1); exit 1; }; }
13321 else
13322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13324 done
13326 # For the awk script, D is an array of macro values keyed by name,
13327 # likewise P contains macro parameters if any. Preserve backslash
13328 # newline sequences.
13330 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13331 sed -n '
13332 s/.\{148\}/&'"$ac_delim"'/g
13333 t rset
13334 :rset
13335 s/^[ ]*#[ ]*define[ ][ ]*/ /
13336 t def
13338 :def
13339 s/\\$//
13340 t bsnl
13341 s/["\\]/\\&/g
13342 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13343 D["\1"]=" \3"/p
13344 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13346 :bsnl
13347 s/["\\]/\\&/g
13348 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13349 D["\1"]=" \3\\\\\\n"\\/p
13350 t cont
13351 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13352 t cont
13354 :cont
13356 s/.\{148\}/&'"$ac_delim"'/g
13357 t clear
13358 :clear
13359 s/\\$//
13360 t bsnlc
13361 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13363 :bsnlc
13364 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13365 b cont
13366 ' <confdefs.h | sed '
13367 s/'"$ac_delim"'/"\\\
13368 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13371 for (key in D) D_is_set[key] = 1
13372 FS = "\a"
13374 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13375 line = \$ 0
13376 split(line, arg, " ")
13377 if (arg[1] == "#") {
13378 defundef = arg[2]
13379 mac1 = arg[3]
13380 } else {
13381 defundef = substr(arg[1], 2)
13382 mac1 = arg[2]
13384 split(mac1, mac2, "(") #)
13385 macro = mac2[1]
13386 if (D_is_set[macro]) {
13387 # Preserve the white space surrounding the "#".
13388 prefix = substr(line, 1, index(line, defundef) - 1)
13389 print prefix "define", macro P[macro] D[macro]
13390 next
13391 } else {
13392 # Replace #undef with comments. This is necessary, for example,
13393 # in the case of _POSIX_SOURCE, which is predefined and required
13394 # on some systems where configure will not decide to define it.
13395 if (defundef == "undef") {
13396 print "/*", line, "*/"
13397 next
13401 { print }
13402 _ACAWK
13403 _ACEOF
13404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13405 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13406 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13407 { (exit 1); exit 1; }; }
13408 fi # test -n "$CONFIG_HEADERS"
13411 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13412 shift
13413 for ac_tag
13415 case $ac_tag in
13416 :[FHLC]) ac_mode=$ac_tag; continue;;
13417 esac
13418 case $ac_mode$ac_tag in
13419 :[FHL]*:*);;
13420 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13421 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13422 { (exit 1); exit 1; }; };;
13423 :[FH]-) ac_tag=-:-;;
13424 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13425 esac
13426 ac_save_IFS=$IFS
13427 IFS=:
13428 set x $ac_tag
13429 IFS=$ac_save_IFS
13430 shift
13431 ac_file=$1
13432 shift
13434 case $ac_mode in
13435 :L) ac_source=$1;;
13436 :[FH])
13437 ac_file_inputs=
13438 for ac_f
13440 case $ac_f in
13441 -) ac_f="$tmp/stdin";;
13442 *) # Look for the file first in the build tree, then in the source tree
13443 # (if the path is not absolute). The absolute path cannot be DOS-style,
13444 # because $ac_f cannot contain `:'.
13445 test -f "$ac_f" ||
13446 case $ac_f in
13447 [\\/$]*) false;;
13448 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13449 esac ||
13450 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13451 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13452 { (exit 1); exit 1; }; };;
13453 esac
13454 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13455 ac_file_inputs="$ac_file_inputs '$ac_f'"
13456 done
13458 # Let's still pretend it is `configure' which instantiates (i.e., don't
13459 # use $as_me), people would be surprised to read:
13460 # /* config.h. Generated by config.status. */
13461 configure_input='Generated from '`
13462 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13463 `' by configure.'
13464 if test x"$ac_file" != x-; then
13465 configure_input="$ac_file. $configure_input"
13466 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13467 $as_echo "$as_me: creating $ac_file" >&6;}
13469 # Neutralize special characters interpreted by sed in replacement strings.
13470 case $configure_input in #(
13471 *\&* | *\|* | *\\* )
13472 ac_sed_conf_input=`$as_echo "$configure_input" |
13473 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13474 *) ac_sed_conf_input=$configure_input;;
13475 esac
13477 case $ac_tag in
13478 *:-:* | *:-) cat >"$tmp/stdin" \
13479 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13480 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13481 { (exit 1); exit 1; }; } ;;
13482 esac
13484 esac
13486 ac_dir=`$as_dirname -- "$ac_file" ||
13487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13488 X"$ac_file" : 'X\(//\)[^/]' \| \
13489 X"$ac_file" : 'X\(//\)$' \| \
13490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13491 $as_echo X"$ac_file" |
13492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13493 s//\1/
13496 /^X\(\/\/\)[^/].*/{
13497 s//\1/
13500 /^X\(\/\/\)$/{
13501 s//\1/
13504 /^X\(\/\).*/{
13505 s//\1/
13508 s/.*/./; q'`
13509 { as_dir="$ac_dir"
13510 case $as_dir in #(
13511 -*) as_dir=./$as_dir;;
13512 esac
13513 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13514 as_dirs=
13515 while :; do
13516 case $as_dir in #(
13517 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13518 *) as_qdir=$as_dir;;
13519 esac
13520 as_dirs="'$as_qdir' $as_dirs"
13521 as_dir=`$as_dirname -- "$as_dir" ||
13522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13523 X"$as_dir" : 'X\(//\)[^/]' \| \
13524 X"$as_dir" : 'X\(//\)$' \| \
13525 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13526 $as_echo X"$as_dir" |
13527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13528 s//\1/
13531 /^X\(\/\/\)[^/].*/{
13532 s//\1/
13535 /^X\(\/\/\)$/{
13536 s//\1/
13539 /^X\(\/\).*/{
13540 s//\1/
13543 s/.*/./; q'`
13544 test -d "$as_dir" && break
13545 done
13546 test -z "$as_dirs" || eval "mkdir $as_dirs"
13547 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13548 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13549 { (exit 1); exit 1; }; }; }
13550 ac_builddir=.
13552 case "$ac_dir" in
13553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13556 # A ".." for each directory in $ac_dir_suffix.
13557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13558 case $ac_top_builddir_sub in
13559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13561 esac ;;
13562 esac
13563 ac_abs_top_builddir=$ac_pwd
13564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13565 # for backward compatibility:
13566 ac_top_builddir=$ac_top_build_prefix
13568 case $srcdir in
13569 .) # We are building in place.
13570 ac_srcdir=.
13571 ac_top_srcdir=$ac_top_builddir_sub
13572 ac_abs_top_srcdir=$ac_pwd ;;
13573 [\\/]* | ?:[\\/]* ) # Absolute name.
13574 ac_srcdir=$srcdir$ac_dir_suffix;
13575 ac_top_srcdir=$srcdir
13576 ac_abs_top_srcdir=$srcdir ;;
13577 *) # Relative name.
13578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13579 ac_top_srcdir=$ac_top_build_prefix$srcdir
13580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13581 esac
13582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13585 case $ac_mode in
13588 # CONFIG_FILE
13591 _ACEOF
13593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13594 # If the template does not know about datarootdir, expand it.
13595 # FIXME: This hack should be removed a few years after 2.60.
13596 ac_datarootdir_hack=; ac_datarootdir_seen=
13598 ac_sed_dataroot='
13599 /datarootdir/ {
13603 /@datadir@/p
13604 /@docdir@/p
13605 /@infodir@/p
13606 /@localedir@/p
13607 /@mandir@/p
13609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13610 *datarootdir*) ac_datarootdir_seen=yes;;
13611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13612 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13613 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13614 _ACEOF
13615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13616 ac_datarootdir_hack='
13617 s&@datadir@&$datadir&g
13618 s&@docdir@&$docdir&g
13619 s&@infodir@&$infodir&g
13620 s&@localedir@&$localedir&g
13621 s&@mandir@&$mandir&g
13622 s&\\\${datarootdir}&$datarootdir&g' ;;
13623 esac
13624 _ACEOF
13626 # Neutralize VPATH when `$srcdir' = `.'.
13627 # Shell code in configure.ac might set extrasub.
13628 # FIXME: do we really want to maintain this feature?
13629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13630 ac_sed_extra="$ac_vpsub
13631 $extrasub
13632 _ACEOF
13633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13636 s|@configure_input@|$ac_sed_conf_input|;t t
13637 s&@top_builddir@&$ac_top_builddir_sub&;t t
13638 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13639 s&@srcdir@&$ac_srcdir&;t t
13640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13641 s&@top_srcdir@&$ac_top_srcdir&;t t
13642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13643 s&@builddir@&$ac_builddir&;t t
13644 s&@abs_builddir@&$ac_abs_builddir&;t t
13645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13646 $ac_datarootdir_hack
13648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13649 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13650 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13651 { (exit 1); exit 1; }; }
13653 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13654 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13656 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13657 which seems to be undefined. Please make sure it is defined." >&5
13658 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13659 which seems to be undefined. Please make sure it is defined." >&2;}
13661 rm -f "$tmp/stdin"
13662 case $ac_file in
13663 -) cat "$tmp/out" && rm -f "$tmp/out";;
13664 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13665 esac \
13666 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13667 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13668 { (exit 1); exit 1; }; }
13672 # CONFIG_HEADER
13674 if test x"$ac_file" != x-; then
13676 $as_echo "/* $configure_input */" \
13677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13678 } >"$tmp/config.h" \
13679 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13680 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13681 { (exit 1); exit 1; }; }
13682 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13683 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13684 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13685 else
13686 rm -f "$ac_file"
13687 mv "$tmp/config.h" "$ac_file" \
13688 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13689 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13690 { (exit 1); exit 1; }; }
13692 else
13693 $as_echo "/* $configure_input */" \
13694 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13695 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13696 $as_echo "$as_me: error: could not create -" >&2;}
13697 { (exit 1); exit 1; }; }
13701 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13702 $as_echo "$as_me: executing $ac_file commands" >&6;}
13704 esac
13707 case $ac_file$ac_mode in
13708 "compiler_executable":C)
13709 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13710 mkdir -p $prefix
13711 prefix="${prefix}/${aros_target_cpu}-aros"
13712 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13714 echo ${prefix}
13715 echo ${prefix2}
13716 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13718 ln -sf ${prefix2}-gcc ${prefix}-gcc
13719 ln -sf ${prefix2}-ld ${prefix}-ld
13721 ln -sf $aros_target_as_ln ${prefix}-as
13722 ln -sf $aros_target_nm_ln ${prefix}-nm
13723 ln -sf $aros_target_ar_ln ${prefix}-ar
13724 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
13725 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
13726 ln -sf $aros_target_objdump_ln ${prefix}-objdump
13727 ln -sf $aros_target_strip_ln ${prefix}-strip
13729 ln -sf $aros_target_as_ln ${prefix2}-as
13730 ln -sf $aros_target_nm_ln ${prefix2}-nm
13731 ln -sf $aros_target_ar_ln ${prefix2}-ar
13732 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
13733 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
13734 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
13735 ln -sf $aros_target_strip_ln ${prefix2}-strip
13737 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
13738 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13739 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
13742 esac
13743 done # for ac_tag
13746 { (exit 0); exit 0; }
13747 _ACEOF
13748 chmod +x $CONFIG_STATUS
13749 ac_clean_files=$ac_clean_files_save
13751 test $ac_write_fail = 0 ||
13752 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13753 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13754 { (exit 1); exit 1; }; }
13757 # configure is writing to config.log, and then calls config.status.
13758 # config.status does its own redirection, appending to config.log.
13759 # Unfortunately, on DOS this fails, as config.log is still kept open
13760 # by configure, so config.status won't be able to write to it; its
13761 # output is simply discarded. So we exec the FD to /dev/null,
13762 # effectively closing config.log, so it can be properly (re)opened and
13763 # appended to by config.status. When coming back to configure, we
13764 # need to make the FD available again.
13765 if test "$no_create" != yes; then
13766 ac_cs_success=:
13767 ac_config_status_args=
13768 test "$silent" = yes &&
13769 ac_config_status_args="$ac_config_status_args --quiet"
13770 exec 5>/dev/null
13771 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13772 exec 5>>config.log
13773 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13774 # would make configure fail if this is the last instruction.
13775 $ac_cs_success || { (exit 1); exit 1; }
13777 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13778 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13779 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
13784 #XXX compatability...
13785 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13787 if test -n "$aros_shared_cflags" ; then
13788 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13789 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg