seperate function for getting the stack pointer. moving towards a platform-specific...
[cake.git] / configure
blob99235b8f09d188c5fcca3fc163dc54ef77d59ccd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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='LTLIBOBJS
639 gcc_target_cpu
640 ignore_undefined_symbols
641 aros_modules_debug
642 aros_stack_debug
643 aros_mungwall_debug
644 aros_debug
645 ENABLE_X11
646 KERNEL_DBUS_INCLUDES
647 KERNEL_DBUS_KOBJ
648 DBUS_LIBFLAGS
649 DBUS_CFLAGS
650 ENABLE_DBUS
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 aros_serial_debug
654 aros_bochs_hack
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_libdirs
658 aros_host_x11_includes
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_default_wbdepth
662 aros_default_wbheight
663 aros_default_wbwidth
664 sdl_hidd_target
665 x11_hidd_target
666 aros_target_strip_flags
667 aros_target_genmap
668 aros_debug_ldflags
669 aros_debug_aflags
670 aros_debug_cflags
671 aros_kernel_ldflags
672 aros_kernel_cflags
673 aros_shared_ldflags
674 aros_shared_aflags
675 aros_shared_cflags
676 aros_config_ldflags
677 aros_config_aflags
678 aros_config_cflags
679 aros_compiler_libs
680 aros_object_format
681 aros_shared_ld
682 aros_shared_default
683 aros_target_nm
684 aros_target_strip
685 aros_target_objcopy
686 aros_target_objdump
687 aros_target_cc_path
688 aros_target_cc_includes
689 orig_target_ld
690 aros_target_as
691 orig_target_cc
692 aros_kernel_nm
693 aros_target_ranlib
694 aros_target_ar
695 aros_target_incl
696 aros_target_suffix
697 aros_target_variant
698 aros_target_cpu
699 aros_target_arch
700 aros_target_bootloader
701 aros_target_iconset
702 aros_target_guitheme
703 aros_tools_dir
704 aros_host_lib_suffix
705 aros_host_exe_suffix
706 aros_host_mkargs
707 aros_host_mkdep
708 aros_host_debug
709 aros_host_ldflags
710 aros_host_cflags
711 aros_host_make
712 aros_host_cc
713 aros_host_cpu
714 aros_host_arch
715 aros_cc_pre
716 AROS_PORTSSRCDIR
717 SRCDIR
718 AROS_BUILDDIR
719 aros_flavour_uc
720 aros_flavour
721 aros_cpu
722 aros_arch
723 SDL_LIBS
724 SDL_CFLAGS
725 SDL_CONFIG
726 XMKMF
727 aros_cflags_iquote_end
728 aros_cflags_iquote
729 kernel_cflags_iquote_end
730 kernel_cflags_iquote
731 host_cflags_iquote_end
732 host_cflags_iquote
733 aros_target_nostdlib_ldflags
734 aros_target_detach_ldflags
735 aros_target_nix_ldflags
736 aros_target_nostartup_ldflags
737 aros_target_nostdinc_cflags
738 aros_kernel_rescomp
739 aros_target_strip_ln
740 aros_target_ranlib_ln
741 aros_target_objdump_ln
742 aros_target_objcopy_ln
743 aros_target_nm_ln
744 aros_target_ar_ln
745 aros_kernel_ld
746 aros_target_as_ln
747 aros_target_ld
748 aros_target_cc
749 aros_kernel_cc
750 LIBLZO
751 CCACHE
752 DISTCC
753 LIBOBJS
754 EGREP
755 GREP
757 TEST
760 pkgpyexecdir
761 pyexecdir
762 pkgpythondir
763 pythondir
764 PYTHON_PLATFORM
765 PYTHON_EXEC_PREFIX
766 PYTHON_PREFIX
767 PYTHON_VERSION
768 PYTHON
769 CHMOD
771 PPMTOILBM
772 PNGTOPNM
773 FLEX
774 BISON
777 UNIQ
778 SORT
779 TOUCH
780 MKDIR
781 ECHO
785 aros_host_strip
786 aros_host_ranlib
787 aros_host_ar
788 aros_host_automake
789 aros_host_autoheader
790 aros_host_autoconf
791 aros_host_aclocal
792 aros_host_ld
793 MMAKE
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 host_os
804 host_vendor
805 host_cpu
806 host
807 build_os
808 build_vendor
809 build_cpu
810 build
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_BUGREPORT
842 PACKAGE_STRING
843 PACKAGE_VERSION
844 PACKAGE_TARNAME
845 PACKAGE_NAME
846 PATH_SEPARATOR
847 SHELL'
848 ac_subst_files=''
849 ac_user_opts='
850 enable_option_checking
851 enable_build_type
852 enable_debug
853 enable_crosstools
854 enable_distcc
855 enable_ccache
856 with_optimization
857 enable_target_variant
858 with_portssources
859 with_bootloader
860 with_iconset
861 with_theme
862 enable_includes
863 with_resolution
864 enable_bochs_hack
865 with_serial_debug
866 enable_palm_debug_hack
867 enable_nesting_supervisor
868 enable_x11_hidd
869 with_x
870 enable_x11_shm
871 enable_x11_vidmode
872 enable_sdl_hidd
873 with_sdl_prefix
874 with_sdl_exec_prefix
875 enable_sdltest
876 enable_dbus
878 ac_precious_vars='build_alias
879 host_alias
880 target_alias
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
887 XMKMF'
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
938 ac_prev=
939 ac_dashdash=
940 for ac_option
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
949 case $ac_option in
950 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *) ac_optarg=yes ;;
952 esac
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
958 ac_dashdash=yes ;;
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
977 --config-cache | -C)
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1024 { (exit 1); exit 1; }; }
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1251 "with_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=no ;;
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1276 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1277 Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1291 # FIXME: should be removed in autoconf 3.0.
1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298 esac
1299 done
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1311 { (exit 1); exit 1; }; } ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1335 { (exit 1); exit 1; }; }
1336 done
1338 # There might be people who depend on the old broken behavior: `$host'
1339 # used to hold the argument of --host etc.
1340 # FIXME: To remove some day.
1341 build=$build_alias
1342 host=$host_alias
1343 target=$target_alias
1345 # FIXME: To remove some day.
1346 if test "x$host_alias" != x; then
1347 if test "x$build_alias" = x; then
1348 cross_compiling=maybe
1349 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1350 If a cross compiler is detected then cross compile mode will be used." >&2
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1356 ac_tool_prefix=
1357 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359 test "$silent" = yes && exec 6>/dev/null
1362 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di=`ls -di .` &&
1364 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1365 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1366 { (exit 1); exit 1; }; }
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1369 { (exit 1); exit 1; }; }
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1390 /^X\(\/\/\)$/{
1391 s//\1/
1394 /^X\(\/\).*/{
1395 s//\1/
1398 s/.*/./; q'`
1399 srcdir=$ac_confdir
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 srcdir=..
1403 else
1404 ac_srcdir_defaulted=no
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1409 { (exit 1); exit 1; }; }
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1414 { (exit 1); exit 1; }; }
1415 pwd)`
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 srcdir=.
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1423 case $srcdir in
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 esac
1426 for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1439 cat <<_ACEOF
1440 \`configure' configures this package to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1449 Configuration:
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 [PREFIX]
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1493 _ACEOF
1495 cat <<\_ACEOF
1497 X features:
1498 --x-includes=DIR X include files are in DIR
1499 --x-libraries=DIR X library files are in DIR
1501 System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 _ACEOF
1507 if test -n "$ac_init_help"; then
1509 cat <<\_ACEOF
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-build-type=TYPE
1516 Select the build type. Available types are:
1517 personal, nightly, snapshot, milestone, release. Do
1518 NOT use this option unless you know what you are
1519 doing! (default=personal)
1520 --enable-debug=list Enable different types of debug. Commas or
1521 whitespaces can be used to separate the items in the
1522 list. Available types of debug are: all, none,
1523 messages, stack, mungwall, modules, symbols. If no
1524 list is provided then "all" is assumed.
1525 (default=none)
1526 --enable-crosstools Build cross-compiler toolchains if necessary
1527 (default=no).
1528 --enable-distcc Use distcc as a front end to the compiler
1529 (default=no).
1530 --enable-ccache Use ccache as a front end to the compiler
1531 (default=no).
1532 --enable-target-variant=NAME
1533 Enable a specific target variant(default=none)
1534 --enable-includes=dir Alternative system include directory
1535 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1536 (default=no)
1537 --enable-palm-debug-hack
1538 Enable palm debug output hack in palm native
1539 (default=no)
1540 --enable-nesting-supervisor
1541 Enable nesting supervisor support in unix
1542 (default=no)
1543 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1544 --enable-x11-shm use X11 shared memory (default=auto)
1545 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1546 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1547 --disable-sdltest Do not try to compile and run a test SDL program
1548 --enable-dbus Enable DBUS support via dbus.library (default=no)
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-optimization=FLAGS
1554 Use optimization flags FLAGS (default=-O2).
1555 --with-portssources=DIR Where to download sourcecode for external ports
1556 --with-bootloader=NAME Use a specific bootloader
1557 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1558 --with-theme=NAME Use a specific GUI Theme
1559 --with-resolution=XRESxYRESxDEPTH
1560 Default resolution of the initial WorkbenchScreen
1561 --with-serial-debug Enable serial debug output in native (default=no)
1562 --with-x use the X Window System
1563 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1564 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CPP C preprocessor
1575 XMKMF Path to xmkmf, Makefile generator for X Window System
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1580 _ACEOF
1581 ac_status=$?
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
1590 ac_builddir=.
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1608 case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 configure
1643 generated by GNU Autoconf 2.63
1645 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1646 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650 exit
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by $as_me, which was
1657 generated by GNU Autoconf 2.63. Invocation command line was
1659 $ $0 $@
1661 _ACEOF
1662 exec 5>>config.log
1664 cat <<_ASUNAME
1665 ## --------- ##
1666 ## Platform. ##
1667 ## --------- ##
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1686 _ASUNAME
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 $as_echo "PATH: $as_dir"
1694 done
1695 IFS=$as_save_IFS
1697 } >&5
1699 cat >&5 <<_ACEOF
1702 ## ----------- ##
1703 ## Core tests. ##
1704 ## ----------- ##
1706 _ACEOF
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_configure_args=
1715 ac_configure_args0=
1716 ac_configure_args1=
1717 ac_must_keep_next=false
1718 for ac_pass in 1 2
1720 for ac_arg
1722 case $ac_arg in
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1726 continue ;;
1727 *\'*)
1728 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 esac
1730 case $ac_pass in
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1736 else
1737 case $ac_arg in
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 esac
1746 -* ) ac_must_keep_next=true ;;
1747 esac
1749 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 esac
1752 done
1753 done
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1765 echo
1767 cat <<\_ASBOX
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1771 _ASBOX
1772 echo
1773 # The following way of writing the cache mishandles newlines in values,
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in #(
1778 *${as_nl}*)
1779 case $ac_var in #(
1780 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1782 esac
1783 case $ac_var in #(
1784 _ | IFS | as_nl) ;; #(
1785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1786 *) $as_unset $ac_var ;;
1787 esac ;;
1788 esac
1789 done
1790 (set) 2>&1 |
1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1793 sed -n \
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 ;; #(
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800 esac |
1801 sort
1803 echo
1805 cat <<\_ASBOX
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1809 _ASBOX
1810 echo
1811 for ac_var in $ac_subst_vars
1813 eval ac_val=\$$ac_var
1814 case $ac_val in
1815 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 esac
1817 $as_echo "$ac_var='\''$ac_val'\''"
1818 done | sort
1819 echo
1821 if test -n "$ac_subst_files"; then
1822 cat <<\_ASBOX
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1826 _ASBOX
1827 echo
1828 for ac_var in $ac_subst_files
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 $as_echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1839 if test -s confdefs.h; then
1840 cat <<\_ASBOX
1841 ## ----------- ##
1842 ## confdefs.h. ##
1843 ## ----------- ##
1844 _ASBOX
1845 echo
1846 cat confdefs.h
1847 echo
1849 test "$ac_signal" != 0 &&
1850 $as_echo "$as_me: caught signal $ac_signal"
1851 $as_echo "$as_me: exit $exit_status"
1852 } >&5
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855 exit $exit_status
1857 for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859 done
1860 ac_signal=0
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1865 # Predefined preprocessor variables.
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874 _ACEOF
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1879 _ACEOF
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1884 _ACEOF
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 _ACEOF
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer an explicitly selected file to automatically selected ones.
1894 ac_site_file1=NONE
1895 ac_site_file2=NONE
1896 if test -n "$CONFIG_SITE"; then
1897 ac_site_file1=$CONFIG_SITE
1898 elif test "x$prefix" != xNONE; then
1899 ac_site_file1=$prefix/share/config.site
1900 ac_site_file2=$prefix/etc/config.site
1901 else
1902 ac_site_file1=$ac_default_prefix/share/config.site
1903 ac_site_file2=$ac_default_prefix/etc/config.site
1905 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1907 test "x$ac_site_file" = xNONE && continue
1908 if test -r "$ac_site_file"; then
1909 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1912 . "$ac_site_file"
1914 done
1916 if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 $as_echo "$as_me: loading cache $cache_file" >&6;}
1922 case $cache_file in
1923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
1925 esac
1927 else
1928 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 $as_echo "$as_me: creating cache $cache_file" >&6;}
1930 >$cache_file
1933 # Check that the precious variables saved in the cache have kept the same
1934 # value.
1935 ac_cache_corrupted=false
1936 for ac_var in $ac_precious_vars; do
1937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938 eval ac_new_set=\$ac_env_${ac_var}_set
1939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940 eval ac_new_val=\$ac_env_${ac_var}_value
1941 case $ac_old_set,$ac_new_set in
1942 set,)
1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1946 ,set)
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1950 ,);;
1952 if test "x$ac_old_val" != "x$ac_new_val"; then
1953 # differences in whitespace do not lead to failure.
1954 ac_old_val_w=`echo x $ac_old_val`
1955 ac_new_val_w=`echo x $ac_new_val`
1956 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1958 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1959 ac_cache_corrupted=:
1960 else
1961 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1962 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1963 eval $ac_var=\$ac_old_val
1965 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1966 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1967 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1968 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1969 fi;;
1970 esac
1971 # Pass precious variables to config.status.
1972 if test "$ac_new_set" = set; then
1973 case $ac_new_val in
1974 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 *) ac_arg=$ac_var=$ac_new_val ;;
1976 esac
1977 case " $ac_configure_args " in
1978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1979 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1980 esac
1982 done
1983 if $ac_cache_corrupted; then
1984 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1986 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1990 { (exit 1); exit 1; }; }
2009 ac_ext=c
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017 ac_aux_dir=
2018 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2019 if test -f "$ac_dir/install-sh"; then
2020 ac_aux_dir=$ac_dir
2021 ac_install_sh="$ac_aux_dir/install-sh -c"
2022 break
2023 elif test -f "$ac_dir/install.sh"; then
2024 ac_aux_dir=$ac_dir
2025 ac_install_sh="$ac_aux_dir/install.sh -c"
2026 break
2027 elif test -f "$ac_dir/shtool"; then
2028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 break
2032 done
2033 if test -z "$ac_aux_dir"; then
2034 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
2035 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
2036 { (exit 1); exit 1; }; }
2039 # These three variables are undocumented and unsupported,
2040 # and are intended to be withdrawn in a future Autoconf release.
2041 # They can cause serious problems if a builder's source tree is in a directory
2042 # whose full name contains unusual characters.
2043 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2044 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2045 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2049 # Check what host we are running on.
2050 # If a target is not suggested, we use this one.
2051 # Note that what we call a target, Autoconf calls a host.
2052 # Make sure we can run config.sub.
2053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2054 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2055 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2056 { (exit 1); exit 1; }; }
2058 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2059 $as_echo_n "checking build system type... " >&6; }
2060 if test "${ac_cv_build+set}" = set; then
2061 $as_echo_n "(cached) " >&6
2062 else
2063 ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2068 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2069 { (exit 1); exit 1; }; }
2070 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2071 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2072 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2076 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2077 $as_echo "$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2079 *-*-*) ;;
2080 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2081 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2082 { (exit 1); exit 1; }; };;
2083 esac
2084 build=$ac_cv_build
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_build
2087 shift
2088 build_cpu=$1
2089 build_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 build_os=$*
2094 IFS=$ac_save_IFS
2095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2098 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2099 $as_echo_n "checking host system type... " >&6; }
2100 if test "${ac_cv_host+set}" = set; then
2101 $as_echo_n "(cached) " >&6
2102 else
2103 if test "x$host_alias" = x; then
2104 ac_cv_host=$ac_cv_build
2105 else
2106 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2108 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 $as_echo "$ac_cv_host" >&6; }
2115 case $ac_cv_host in
2116 *-*-*) ;;
2117 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2118 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2119 { (exit 1); exit 1; }; };;
2120 esac
2121 host=$ac_cv_host
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_host
2124 shift
2125 host_cpu=$1
2126 host_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 host_os=$*
2131 IFS=$ac_save_IFS
2132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136 # The AROS target is slightly different to the normal GNU style
2137 # format. We don't have the middle part, and we reverse the order
2138 # of the $(CPU) and $(OS) bits.
2140 # Don't strip the version of the target yet, it might be
2141 # useful on some systems.
2143 { $as_echo "$as_me:$LINENO: checking for AROS style target" >&5
2144 $as_echo_n "checking for AROS style target... " >&6; }
2146 if test "$target" = "NONE" ; then
2147 target=$host_os-$host_cpu
2148 cross_compile=no
2149 else
2150 if test "$target" = "" ; then
2151 target=$host_os-$host_cpu
2152 cross_compile=no
2153 else
2154 cross_compile=yes
2157 { $as_echo "$as_me:$LINENO: result: $target" >&5
2158 $as_echo "$target" >&6; }
2160 #don't know where else to put this...
2161 { $as_echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2162 $as_echo_n "checking Building AROS in .. ... " >&6; }
2163 AROS_BUILDDIR=$PWD
2164 { $as_echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2165 $as_echo "$AROS_BUILDDIR" >&6; }
2167 { $as_echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2168 $as_echo_n "checking AROS Source in .. ... " >&6; }
2169 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2170 SRCDIR=${srcpwd}
2171 { $as_echo "$as_me:$LINENO: result: $SRCDIR" >&5
2172 $as_echo "$SRCDIR" >&6; }
2174 # Parse the target field into something useful.
2176 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2177 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2180 aros_default_wbwidth=800
2181 aros_default_wbheight=600
2182 aros_default_wbdepth=4
2185 # The first step is to find the host binaries.
2186 # Check for a compiler.
2187 ac_ext=c
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 $as_echo_n "checking for $ac_word... " >&6; }
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198 $as_echo_n "(cached) " >&6
2199 else
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2214 done
2215 done
2216 IFS=$as_save_IFS
2220 CC=$ac_cv_prog_CC
2221 if test -n "$CC"; then
2222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2223 $as_echo "$CC" >&6; }
2224 else
2225 { $as_echo "$as_me:$LINENO: result: no" >&5
2226 $as_echo "no" >&6; }
2231 if test -z "$ac_cv_prog_CC"; then
2232 ac_ct_CC=$CC
2233 # Extract the first word of "gcc", so it can be a program name with args.
2234 set dummy gcc; ac_word=$2
2235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 $as_echo_n "checking for $ac_word... " >&6; }
2237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 $as_echo_n "(cached) " >&6
2239 else
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_ac_ct_CC="gcc"
2251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2254 done
2255 done
2256 IFS=$as_save_IFS
2260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261 if test -n "$ac_ct_CC"; then
2262 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263 $as_echo "$ac_ct_CC" >&6; }
2264 else
2265 { $as_echo "$as_me:$LINENO: result: no" >&5
2266 $as_echo "no" >&6; }
2269 if test "x$ac_ct_CC" = x; then
2270 CC=""
2271 else
2272 case $cross_compiling:$ac_tool_warned in
2273 yes:)
2274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2276 ac_tool_warned=yes ;;
2277 esac
2278 CC=$ac_ct_CC
2280 else
2281 CC="$ac_cv_prog_CC"
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}cc; ac_word=$2
2288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 $as_echo_n "(cached) " >&6
2292 else
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="${ac_tool_prefix}cc"
2304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2307 done
2308 done
2309 IFS=$as_save_IFS
2313 CC=$ac_cv_prog_CC
2314 if test -n "$CC"; then
2315 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2316 $as_echo "$CC" >&6; }
2317 else
2318 { $as_echo "$as_me:$LINENO: result: no" >&5
2319 $as_echo "no" >&6; }
2325 if test -z "$CC"; then
2326 # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 $as_echo_n "checking for $ac_word... " >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 $as_echo_n "(cached) " >&6
2332 else
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 ac_prog_rejected=no
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345 ac_prog_rejected=yes
2346 continue
2348 ac_cv_prog_CC="cc"
2349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2352 done
2353 done
2354 IFS=$as_save_IFS
2356 if test $ac_prog_rejected = yes; then
2357 # We found a bogon in the path, so make sure we never use it.
2358 set dummy $ac_cv_prog_CC
2359 shift
2360 if test $# != 0; then
2361 # We chose a different compiler from the bogus one.
2362 # However, it has the same basename, so the bogon will be chosen
2363 # first if we set CC to just the basename; use the full file name.
2364 shift
2365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370 CC=$ac_cv_prog_CC
2371 if test -n "$CC"; then
2372 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2373 $as_echo "$CC" >&6; }
2374 else
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 for ac_prog in cl.exe
2385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 $as_echo_n "checking for $ac_word... " >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2406 done
2407 done
2408 IFS=$as_save_IFS
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2415 $as_echo "$CC" >&6; }
2416 else
2417 { $as_echo "$as_me:$LINENO: result: no" >&5
2418 $as_echo "no" >&6; }
2422 test -n "$CC" && break
2423 done
2425 if test -z "$CC"; then
2426 ac_ct_CC=$CC
2427 for ac_prog in cl.exe
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$ac_ct_CC"; then
2437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_ac_ct_CC="$ac_prog"
2447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2450 done
2451 done
2452 IFS=$as_save_IFS
2456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2457 if test -n "$ac_ct_CC"; then
2458 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2459 $as_echo "$ac_ct_CC" >&6; }
2460 else
2461 { $as_echo "$as_me:$LINENO: result: no" >&5
2462 $as_echo "no" >&6; }
2466 test -n "$ac_ct_CC" && break
2467 done
2469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2476 ac_tool_warned=yes ;;
2477 esac
2478 CC=$ac_ct_CC
2485 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2488 See \`config.log' for more details." >&5
2489 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2490 See \`config.log' for more details." >&2;}
2491 { (exit 1); exit 1; }; }; }
2493 # Provide some information about the compiler.
2494 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2495 set X $ac_compile
2496 ac_compiler=$2
2497 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2519 { (ac_try="$ac_compiler -V >&5"
2520 case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523 esac
2524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2525 $as_echo "$ac_try_echo") >&5
2526 (eval "$ac_compiler -V >&5") 2>&5
2527 ac_status=$?
2528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h. */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2539 main ()
2543 return 0;
2545 _ACEOF
2546 ac_clean_files_save=$ac_clean_files
2547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2548 # Try to create an executable without -o first, disregard a.out.
2549 # It will help us diagnose broken compilers, and finding out an intuition
2550 # of exeext.
2551 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2552 $as_echo_n "checking for C compiler default output file name... " >&6; }
2553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2555 # The possible output files:
2556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2558 ac_rmfiles=
2559 for ac_file in $ac_files
2561 case $ac_file in
2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2564 esac
2565 done
2566 rm -f $ac_rmfiles
2568 if { (ac_try="$ac_link_default"
2569 case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2572 esac
2573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2574 $as_echo "$ac_try_echo") >&5
2575 (eval "$ac_link_default") 2>&5
2576 ac_status=$?
2577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; then
2579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2582 # so that the user can short-circuit this test for compilers unknown to
2583 # Autoconf.
2584 for ac_file in $ac_files ''
2586 test -f "$ac_file" || continue
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2590 [ab].out )
2591 # We found the default executable, but exeext='' is most
2592 # certainly right.
2593 break;;
2594 *.* )
2595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2596 then :; else
2597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599 # We set ac_cv_exeext here because the later test for it is not
2600 # safe: cross compilers may not add the suffix if given an `-o'
2601 # argument, so we may need to know it at that point already.
2602 # Even if this section looks crufty: it has the advantage of
2603 # actually working.
2604 break;;
2606 break;;
2607 esac
2608 done
2609 test "$ac_cv_exeext" = no && ac_cv_exeext=
2611 else
2612 ac_file=''
2615 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2616 $as_echo "$ac_file" >&6; }
2617 if test -z "$ac_file"; then
2618 $as_echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2624 See \`config.log' for more details." >&5
2625 $as_echo "$as_me: error: C compiler cannot create executables
2626 See \`config.log' for more details." >&2;}
2627 { (exit 77); exit 77; }; }; }
2630 ac_exeext=$ac_cv_exeext
2632 # Check that the compiler produces executables we can run. If not, either
2633 # the compiler is broken, or we cross compile.
2634 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2635 $as_echo_n "checking whether the C compiler works... " >&6; }
2636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2637 # If not cross compiling, check that we can run a simple program.
2638 if test "$cross_compiling" != yes; then
2639 if { ac_try='./$ac_file'
2640 { (case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2645 $as_echo "$ac_try_echo") >&5
2646 (eval "$ac_try") 2>&5
2647 ac_status=$?
2648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 cross_compiling=no
2651 else
2652 if test "$cross_compiling" = maybe; then
2653 cross_compiling=yes
2654 else
2655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&5
2660 $as_echo "$as_me: error: cannot run C compiled programs.
2661 If you meant to cross compile, use \`--host'.
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }; }
2667 { $as_echo "$as_me:$LINENO: result: yes" >&5
2668 $as_echo "yes" >&6; }
2670 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2671 ac_clean_files=$ac_clean_files_save
2672 # Check that the compiler produces executables we can run. If not, either
2673 # the compiler is broken, or we cross compile.
2674 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2675 $as_echo_n "checking whether we are cross compiling... " >&6; }
2676 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2677 $as_echo "$cross_compiling" >&6; }
2679 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2680 $as_echo_n "checking for suffix of executables... " >&6; }
2681 if { (ac_try="$ac_link"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2687 $as_echo "$ac_try_echo") >&5
2688 (eval "$ac_link") 2>&5
2689 ac_status=$?
2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; then
2692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2694 # work properly (i.e., refer to `conftest.exe'), while it won't with
2695 # `rm'.
2696 for ac_file in conftest.exe conftest conftest.*; do
2697 test -f "$ac_file" || continue
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 break;;
2702 * ) break;;
2703 esac
2704 done
2705 else
2706 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details." >&5
2710 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }; }
2715 rm -f conftest$ac_cv_exeext
2716 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2717 $as_echo "$ac_cv_exeext" >&6; }
2719 rm -f conftest.$ac_ext
2720 EXEEXT=$ac_cv_exeext
2721 ac_exeext=$EXEEXT
2722 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2723 $as_echo_n "checking for suffix of object files... " >&6; }
2724 if test "${ac_cv_objext+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726 else
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2735 main ()
2739 return 0;
2741 _ACEOF
2742 rm -f conftest.o conftest.obj
2743 if { (ac_try="$ac_compile"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749 $as_echo "$ac_try_echo") >&5
2750 (eval "$ac_compile") 2>&5
2751 ac_status=$?
2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 for ac_file in conftest.o conftest.obj conftest.*; do
2755 test -f "$ac_file" || continue;
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2759 break;;
2760 esac
2761 done
2762 else
2763 $as_echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2769 See \`config.log' for more details." >&5
2770 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2771 See \`config.log' for more details." >&2;}
2772 { (exit 1); exit 1; }; }; }
2775 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2777 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2778 $as_echo "$ac_cv_objext" >&6; }
2779 OBJEXT=$ac_cv_objext
2780 ac_objext=$OBJEXT
2781 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2782 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2783 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2794 main ()
2796 #ifndef __GNUC__
2797 choke me
2798 #endif
2801 return 0;
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811 $as_echo "$ac_try_echo") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2822 ac_compiler_gnu=yes
2823 else
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 ac_compiler_gnu=no
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2834 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2836 if test $ac_compiler_gnu = yes; then
2837 GCC=yes
2838 else
2839 GCC=
2841 ac_test_CFLAGS=${CFLAGS+set}
2842 ac_save_CFLAGS=$CFLAGS
2843 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2845 if test "${ac_cv_prog_cc_g+set}" = set; then
2846 $as_echo_n "(cached) " >&6
2847 else
2848 ac_save_c_werror_flag=$ac_c_werror_flag
2849 ac_c_werror_flag=yes
2850 ac_cv_prog_cc_g=no
2851 CFLAGS="-g"
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2860 main ()
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (ac_try="$ac_compile"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2874 $as_echo "$ac_try_echo") >&5
2875 (eval "$ac_compile") 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } && {
2882 test -z "$ac_c_werror_flag" ||
2883 test ! -s conftest.err
2884 } && test -s conftest.$ac_objext; then
2885 ac_cv_prog_cc_g=yes
2886 else
2887 $as_echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2890 CFLAGS=""
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2899 main ()
2903 return 0;
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (ac_try="$ac_compile"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2913 $as_echo "$ac_try_echo") >&5
2914 (eval "$ac_compile") 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
2925 else
2926 $as_echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 ac_c_werror_flag=$ac_save_c_werror_flag
2930 CFLAGS="-g"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2939 main ()
2943 return 0;
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2953 $as_echo "$ac_try_echo") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.$ac_objext; then
2964 ac_cv_prog_cc_g=yes
2965 else
2966 $as_echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_c_werror_flag=$ac_save_c_werror_flag
2981 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2982 $as_echo "$ac_cv_prog_cc_g" >&6; }
2983 if test "$ac_test_CFLAGS" = set; then
2984 CFLAGS=$ac_save_CFLAGS
2985 elif test $ac_cv_prog_cc_g = yes; then
2986 if test "$GCC" = yes; then
2987 CFLAGS="-g -O2"
2988 else
2989 CFLAGS="-g"
2991 else
2992 if test "$GCC" = yes; then
2993 CFLAGS="-O2"
2994 else
2995 CFLAGS=
2998 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3000 if test "${ac_cv_prog_cc_c89+set}" = set; then
3001 $as_echo_n "(cached) " >&6
3002 else
3003 ac_cv_prog_cc_c89=no
3004 ac_save_CC=$CC
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #include <stdarg.h>
3012 #include <stdio.h>
3013 #include <sys/types.h>
3014 #include <sys/stat.h>
3015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3016 struct buf { int x; };
3017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3018 static char *e (p, i)
3019 char **p;
3020 int i;
3022 return p[i];
3024 static char *f (char * (*g) (char **, int), char **p, ...)
3026 char *s;
3027 va_list v;
3028 va_start (v,p);
3029 s = g (p, va_arg (v,int));
3030 va_end (v);
3031 return s;
3034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3035 function prototypes and stuff, but not '\xHH' hex character constants.
3036 These don't provoke an error unfortunately, instead are silently treated
3037 as 'x'. The following induces an error, until -std is added to get
3038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3039 array size at least. It's necessary to write '\x00'==0 to get something
3040 that's true only with -std. */
3041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3044 inside strings and character constants. */
3045 #define FOO(x) 'x'
3046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3048 int test (int i, double x);
3049 struct s1 {int (*f) (int a);};
3050 struct s2 {int (*f) (double a);};
3051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3052 int argc;
3053 char **argv;
3055 main ()
3057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3059 return 0;
3061 _ACEOF
3062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3065 CC="$ac_save_CC $ac_arg"
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073 $as_echo "$ac_try_echo") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } && {
3081 test -z "$ac_c_werror_flag" ||
3082 test ! -s conftest.err
3083 } && test -s conftest.$ac_objext; then
3084 ac_cv_prog_cc_c89=$ac_arg
3085 else
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3092 rm -f core conftest.err conftest.$ac_objext
3093 test "x$ac_cv_prog_cc_c89" != "xno" && break
3094 done
3095 rm -f conftest.$ac_ext
3096 CC=$ac_save_CC
3099 # AC_CACHE_VAL
3100 case "x$ac_cv_prog_cc_c89" in
3102 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3103 $as_echo "none needed" >&6; } ;;
3104 xno)
3105 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3106 $as_echo "unsupported" >&6; } ;;
3108 CC="$CC $ac_cv_prog_cc_c89"
3109 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3110 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3111 esac
3114 ac_ext=c
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120 case $ac_cv_prog_cc_stdc in
3121 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3122 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3123 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3124 if test "${ac_cv_prog_cc_c99+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3126 else
3127 ac_cv_prog_cc_c99=no
3128 ac_save_CC=$CC
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <stdarg.h>
3136 #include <stdbool.h>
3137 #include <stdlib.h>
3138 #include <wchar.h>
3139 #include <stdio.h>
3141 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3142 #define debug(...) fprintf (stderr, __VA_ARGS__)
3143 #define showlist(...) puts (#__VA_ARGS__)
3144 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3145 static void
3146 test_varargs_macros (void)
3148 int x = 1234;
3149 int y = 5678;
3150 debug ("Flag");
3151 debug ("X = %d\n", x);
3152 showlist (The first, second, and third items.);
3153 report (x>y, "x is %d but y is %d", x, y);
3156 // Check long long types.
3157 #define BIG64 18446744073709551615ull
3158 #define BIG32 4294967295ul
3159 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3160 #if !BIG_OK
3161 your preprocessor is broken;
3162 #endif
3163 #if BIG_OK
3164 #else
3165 your preprocessor is broken;
3166 #endif
3167 static long long int bignum = -9223372036854775807LL;
3168 static unsigned long long int ubignum = BIG64;
3170 struct incomplete_array
3172 int datasize;
3173 double data[];
3176 struct named_init {
3177 int number;
3178 const wchar_t *name;
3179 double average;
3182 typedef const char *ccp;
3184 static inline int
3185 test_restrict (ccp restrict text)
3187 // See if C++-style comments work.
3188 // Iterate through items via the restricted pointer.
3189 // Also check for declarations in for loops.
3190 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3191 continue;
3192 return 0;
3195 // Check varargs and va_copy.
3196 static void
3197 test_varargs (const char *format, ...)
3199 va_list args;
3200 va_start (args, format);
3201 va_list args_copy;
3202 va_copy (args_copy, args);
3204 const char *str;
3205 int number;
3206 float fnumber;
3208 while (*format)
3210 switch (*format++)
3212 case 's': // string
3213 str = va_arg (args_copy, const char *);
3214 break;
3215 case 'd': // int
3216 number = va_arg (args_copy, int);
3217 break;
3218 case 'f': // float
3219 fnumber = va_arg (args_copy, double);
3220 break;
3221 default:
3222 break;
3225 va_end (args_copy);
3226 va_end (args);
3230 main ()
3233 // Check bool.
3234 _Bool success = false;
3236 // Check restrict.
3237 if (test_restrict ("String literal") == 0)
3238 success = true;
3239 char *restrict newvar = "Another string";
3241 // Check varargs.
3242 test_varargs ("s, d' f .", "string", 65, 34.234);
3243 test_varargs_macros ();
3245 // Check flexible array members.
3246 struct incomplete_array *ia =
3247 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3248 ia->datasize = 10;
3249 for (int i = 0; i < ia->datasize; ++i)
3250 ia->data[i] = i * 1.234;
3252 // Check named initializers.
3253 struct named_init ni = {
3254 .number = 34,
3255 .name = L"Test wide string",
3256 .average = 543.34343,
3259 ni.number = 58;
3261 int dynamic_array[ni.number];
3262 dynamic_array[ni.number - 1] = 543;
3264 // work around unused variable warnings
3265 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3266 || dynamic_array[ni.number - 1] != 543);
3269 return 0;
3271 _ACEOF
3272 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3274 CC="$ac_save_CC $ac_arg"
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 ac_cv_prog_cc_c99=$ac_arg
3294 else
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f core conftest.err conftest.$ac_objext
3302 test "x$ac_cv_prog_cc_c99" != "xno" && break
3303 done
3304 rm -f conftest.$ac_ext
3305 CC=$ac_save_CC
3308 # AC_CACHE_VAL
3309 case "x$ac_cv_prog_cc_c99" in
3311 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3312 $as_echo "none needed" >&6; } ;;
3313 xno)
3314 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3315 $as_echo "unsupported" >&6; } ;;
3317 CC="$CC $ac_cv_prog_cc_c99"
3318 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3319 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3320 esac
3321 if test "x$ac_cv_prog_cc_c99" != xno; then
3322 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3323 else
3324 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3325 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3326 if test "${ac_cv_prog_cc_c89+set}" = set; then
3327 $as_echo_n "(cached) " >&6
3328 else
3329 ac_cv_prog_cc_c89=no
3330 ac_save_CC=$CC
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #include <stdarg.h>
3338 #include <stdio.h>
3339 #include <sys/types.h>
3340 #include <sys/stat.h>
3341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3342 struct buf { int x; };
3343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3344 static char *e (p, i)
3345 char **p;
3346 int i;
3348 return p[i];
3350 static char *f (char * (*g) (char **, int), char **p, ...)
3352 char *s;
3353 va_list v;
3354 va_start (v,p);
3355 s = g (p, va_arg (v,int));
3356 va_end (v);
3357 return s;
3360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3361 function prototypes and stuff, but not '\xHH' hex character constants.
3362 These don't provoke an error unfortunately, instead are silently treated
3363 as 'x'. The following induces an error, until -std is added to get
3364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3365 array size at least. It's necessary to write '\x00'==0 to get something
3366 that's true only with -std. */
3367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3370 inside strings and character constants. */
3371 #define FOO(x) 'x'
3372 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3374 int test (int i, double x);
3375 struct s1 {int (*f) (int a);};
3376 struct s2 {int (*f) (double a);};
3377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3378 int argc;
3379 char **argv;
3381 main ()
3383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3385 return 0;
3387 _ACEOF
3388 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3391 CC="$ac_save_CC $ac_arg"
3392 rm -f conftest.$ac_objext
3393 if { (ac_try="$ac_compile"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3399 $as_echo "$ac_try_echo") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } && {
3407 test -z "$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 } && test -s conftest.$ac_objext; then
3410 ac_cv_prog_cc_c89=$ac_arg
3411 else
3412 $as_echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3418 rm -f core conftest.err conftest.$ac_objext
3419 test "x$ac_cv_prog_cc_c89" != "xno" && break
3420 done
3421 rm -f conftest.$ac_ext
3422 CC=$ac_save_CC
3425 # AC_CACHE_VAL
3426 case "x$ac_cv_prog_cc_c89" in
3428 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3429 $as_echo "none needed" >&6; } ;;
3430 xno)
3431 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3432 $as_echo "unsupported" >&6; } ;;
3434 CC="$CC $ac_cv_prog_cc_c89"
3435 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3436 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 esac
3438 if test "x$ac_cv_prog_cc_c89" != xno; then
3439 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3440 else
3441 ac_cv_prog_cc_stdc=no
3448 esac
3449 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3450 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3451 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3452 $as_echo_n "(cached) " >&6
3455 case $ac_cv_prog_cc_stdc in
3456 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3457 $as_echo "unsupported" >&6; } ;;
3458 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
3459 $as_echo "none needed" >&6; } ;;
3460 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3461 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3462 esac
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3471 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3472 # On Suns, sometimes $CPP names a directory.
3473 if test -n "$CPP" && test -d "$CPP"; then
3474 CPP=
3476 if test -z "$CPP"; then
3477 if test "${ac_cv_prog_CPP+set}" = set; then
3478 $as_echo_n "(cached) " >&6
3479 else
3480 # Double quotes because CPP needs to be expanded
3481 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483 ac_preproc_ok=false
3484 for ac_c_preproc_warn_flag in '' yes
3486 # Use a header file that comes with gcc, so configuring glibc
3487 # with a fresh cross-compiler works.
3488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3489 # <limits.h> exists even on freestanding compilers.
3490 # On the NeXT, cc -E runs the code through the compiler's parser,
3491 # not just through cpp. "Syntax error" is here to catch this case.
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 #ifdef __STDC__
3499 # include <limits.h>
3500 #else
3501 # include <assert.h>
3502 #endif
3503 Syntax error
3504 _ACEOF
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511 $as_echo "$ac_try_echo") >&5
3512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } >/dev/null && {
3519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3521 }; then
3523 else
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Broken: fails on valid input.
3528 continue
3531 rm -f conftest.err conftest.$ac_ext
3533 # OK, works on sane cases. Now check whether nonexistent headers
3534 # can be detected and how.
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <ac_nonexistent.h>
3542 _ACEOF
3543 if { (ac_try="$ac_cpp conftest.$ac_ext"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549 $as_echo "$ac_try_echo") >&5
3550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null && {
3557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3558 test ! -s conftest.err
3559 }; then
3560 # Broken: success on invalid input.
3561 continue
3562 else
3563 $as_echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 # Passes both tests.
3567 ac_preproc_ok=:
3568 break
3571 rm -f conftest.err conftest.$ac_ext
3573 done
3574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3575 rm -f conftest.err conftest.$ac_ext
3576 if $ac_preproc_ok; then
3577 break
3580 done
3581 ac_cv_prog_CPP=$CPP
3584 CPP=$ac_cv_prog_CPP
3585 else
3586 ac_cv_prog_CPP=$CPP
3588 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3589 $as_echo "$CPP" >&6; }
3590 ac_preproc_ok=false
3591 for ac_c_preproc_warn_flag in '' yes
3593 # Use a header file that comes with gcc, so configuring glibc
3594 # with a fresh cross-compiler works.
3595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3596 # <limits.h> exists even on freestanding compilers.
3597 # On the NeXT, cc -E runs the code through the compiler's parser,
3598 # not just through cpp. "Syntax error" is here to catch this case.
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #ifdef __STDC__
3606 # include <limits.h>
3607 #else
3608 # include <assert.h>
3609 #endif
3610 Syntax error
3611 _ACEOF
3612 if { (ac_try="$ac_cpp conftest.$ac_ext"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3618 $as_echo "$ac_try_echo") >&5
3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null && {
3626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 }; then
3630 else
3631 $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 # Broken: fails on valid input.
3635 continue
3638 rm -f conftest.err conftest.$ac_ext
3640 # OK, works on sane cases. Now check whether nonexistent headers
3641 # can be detected and how.
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <ac_nonexistent.h>
3649 _ACEOF
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null && {
3664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 }; then
3667 # Broken: success on invalid input.
3668 continue
3669 else
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 # Passes both tests.
3674 ac_preproc_ok=:
3675 break
3678 rm -f conftest.err conftest.$ac_ext
3680 done
3681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682 rm -f conftest.err conftest.$ac_ext
3683 if $ac_preproc_ok; then
3685 else
3686 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3689 See \`config.log' for more details." >&5
3690 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3691 See \`config.log' for more details." >&2;}
3692 { (exit 1); exit 1; }; }; }
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 # Check for a compatible awk
3703 for ac_prog in gawk nawk
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy $ac_prog; ac_word=$2
3707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if test "${ac_cv_prog_AWK+set}" = set; then
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$AWK"; then
3713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_AWK="$ac_prog"
3723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3726 done
3727 done
3728 IFS=$as_save_IFS
3732 AWK=$ac_cv_prog_AWK
3733 if test -n "$AWK"; then
3734 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3735 $as_echo "$AWK" >&6; }
3736 else
3737 { $as_echo "$as_me:$LINENO: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$AWK" && break
3743 done
3745 if test "$AWK" = ""; then
3746 { { $as_echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3747 $as_echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3748 { (exit 1); exit 1; }; }
3750 # Extract the first word of "mmake", so it can be a program name with args.
3751 set dummy mmake; ac_word=$2
3752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if test "${ac_cv_prog_MMAKE+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$MMAKE"; then
3758 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_MMAKE="mmake "
3768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 MMAKE=$ac_cv_prog_MMAKE
3778 if test -n "$MMAKE"; then
3779 { $as_echo "$as_me:$LINENO: result: $MMAKE" >&5
3780 $as_echo "$MMAKE" >&6; }
3781 else
3782 { $as_echo "$as_me:$LINENO: result: no" >&5
3783 $as_echo "no" >&6; }
3788 # Perform some default variable assignments. Note all of these will be
3789 # Regenerated from the script, so there is no need to cache them.
3791 aros_host_cc="$CC"
3792 if test "$GCC" = "yes"; then
3793 aros_gcc_ld=`$CC -print-prog-name=ld`
3794 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3795 set dummy `basename $aros_gcc_ld`; ac_word=$2
3796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3799 $as_echo_n "(cached) " >&6
3800 else
3801 case $aros_host_ld in
3802 [\\/]* | ?:[\\/]*)
3803 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in `dirname $aros_gcc_ld`
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3817 done
3818 done
3819 IFS=$as_save_IFS
3822 esac
3824 aros_host_ld=$ac_cv_path_aros_host_ld
3825 if test -n "$aros_host_ld"; then
3826 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3827 $as_echo "$aros_host_ld" >&6; }
3828 else
3829 { $as_echo "$as_me:$LINENO: result: no" >&5
3830 $as_echo "no" >&6; }
3835 if test "$aros_host_ld" = ""; then
3836 # Extract the first word of "ld", so it can be a program name with args.
3837 set dummy ld; ac_word=$2
3838 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3841 $as_echo_n "(cached) " >&6
3842 else
3843 case $aros_host_ld in
3844 [\\/]* | ?:[\\/]*)
3845 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3855 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3859 done
3860 done
3861 IFS=$as_save_IFS
3864 esac
3866 aros_host_ld=$ac_cv_path_aros_host_ld
3867 if test -n "$aros_host_ld"; then
3868 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3869 $as_echo "$aros_host_ld" >&6; }
3870 else
3871 { $as_echo "$as_me:$LINENO: result: no" >&5
3872 $as_echo "no" >&6; }
3877 if test "$aros_host_ld" = ""; then
3878 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3879 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3880 { (exit 1); exit 1; }; }
3882 aros_host_make="make"
3883 aros_host_cflags=$CFLAGS
3884 aros_host_ldflags=$LDFLAGS
3885 aros_host_debug="-g -O0"
3886 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3887 aros_host_mkargs="--no-print-directory"
3888 aros_host_incl="/usr/include"
3889 aros_host_exe_suffix="$EXEEXT"
3890 aros_host_lib_suffix=""
3892 for ac_prog in aclocal aclocal19 aclocal-1.9
3894 # Extract the first word of "$ac_prog", so it can be a program name with args.
3895 set dummy $ac_prog; ac_word=$2
3896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3899 $as_echo_n "(cached) " >&6
3900 else
3901 if test -n "$aros_host_aclocal"; then
3902 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_aros_host_aclocal="$ac_prog"
3912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3915 done
3916 done
3917 IFS=$as_save_IFS
3921 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3922 if test -n "$aros_host_aclocal"; then
3923 { $as_echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3924 $as_echo "$aros_host_aclocal" >&6; }
3925 else
3926 { $as_echo "$as_me:$LINENO: result: no" >&5
3927 $as_echo "no" >&6; }
3931 test -n "$aros_host_aclocal" && break
3932 done
3934 for ac_prog in autoconf autoconf259 autoconf253
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$aros_host_autoconf"; then
3944 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_aros_host_autoconf="$ac_prog"
3954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3957 done
3958 done
3959 IFS=$as_save_IFS
3963 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3964 if test -n "$aros_host_autoconf"; then
3965 { $as_echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3966 $as_echo "$aros_host_autoconf" >&6; }
3967 else
3968 { $as_echo "$as_me:$LINENO: result: no" >&5
3969 $as_echo "no" >&6; }
3973 test -n "$aros_host_autoconf" && break
3974 done
3976 for ac_prog in autoheader autoheader259 autoheader253
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$aros_host_autoheader"; then
3986 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_aros_host_autoheader="$ac_prog"
3996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4005 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4006 if test -n "$aros_host_autoheader"; then
4007 { $as_echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
4008 $as_echo "$aros_host_autoheader" >&6; }
4009 else
4010 { $as_echo "$as_me:$LINENO: result: no" >&5
4011 $as_echo "no" >&6; }
4015 test -n "$aros_host_autoheader" && break
4016 done
4018 for ac_prog in automake automake19 automake-1.9
4020 # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -n "$aros_host_automake"; then
4028 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037 ac_cv_prog_aros_host_automake="$ac_prog"
4038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4043 IFS=$as_save_IFS
4047 aros_host_automake=$ac_cv_prog_aros_host_automake
4048 if test -n "$aros_host_automake"; then
4049 { $as_echo "$as_me:$LINENO: result: $aros_host_automake" >&5
4050 $as_echo "$aros_host_automake" >&6; }
4051 else
4052 { $as_echo "$as_me:$LINENO: result: no" >&5
4053 $as_echo "no" >&6; }
4057 test -n "$aros_host_automake" && break
4058 done
4061 if test "$aros_host_aclocal" = ""; then
4062 { { $as_echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
4063 $as_echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
4064 { (exit 1); exit 1; }; }
4066 if test "$aros_host_automake" = ""; then
4067 { { $as_echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
4068 $as_echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
4069 { (exit 1); exit 1; }; }
4072 case "$aros_host_cc" in
4073 *gcc*)
4074 aros_host_cc_pipe="-pipe"
4076 icc)
4077 aros_host_cc_pipe=""
4080 aros_host_cc_pipe=""
4082 esac
4084 aros_target_cc_includes=""
4086 # This is the main host configuration section. It is where the host
4087 # can change the values of any variables it needs to change. We do
4088 # not look at anything that compiles to the target yet, we'll get
4089 # to that later.
4091 case "$host_os" in
4092 aros*)
4093 aros_host_arch="aros"
4094 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4095 case "$host_cpu" in
4096 *i?86*)
4097 aros_host_cpu="i386"
4099 *x86_64*)
4100 aros_host_cpu="x86_64"
4103 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4104 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4105 aros_host_cpu="$host_cpu"
4107 esac
4110 linux*)
4111 aros_host_arch="linux"
4112 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4113 case "$host_cpu" in
4114 *i?86*)
4115 aros_host_cpu="i386"
4117 *x86_64*)
4118 aros_host_cpu="x86_64"
4120 *m68k*)
4121 aros_host_cpu="m68k"
4123 *powerpc*)
4124 aros_host_cpu="ppc"
4127 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4128 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4129 aros_host_cpu="$host_cpu"
4131 esac
4134 freebsd*)
4135 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4136 aros_host_make="gmake"
4137 aros_host_arch="freebsd"
4138 aros_host_cpu="i386"
4140 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4143 case $host_os in
4144 freebsd[234]*)
4145 aros_object_format="elf_i386"
4149 aros_object_format="elf_i386_fbsd"
4151 esac
4155 darwin*)
4156 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4157 aros_host_arch="darwin"
4158 case "$host_cpu" in
4159 *i?86*)
4160 aros_host_cpu="i386"
4162 *powerpc*)
4163 aros_host_cpu="ppc"
4166 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4167 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4168 aros_host_cpu="$host_cpu"
4170 esac
4172 aros_host_ldflags="$aros_host_ldflags -liconv"
4176 netbsd*)
4177 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4178 aros_host_make="gmake"
4179 aros_host_arch="netbsd"
4180 case "$host_cpu" in
4181 *i?86*)
4182 aros_host_cpu="i386"
4184 *m68k*)
4185 aros_host_cpu="m68k"
4188 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4189 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4190 aros_host_cpu="$host_cpu"
4192 esac
4193 aros_host_lib_suffix=".0.0"
4196 openbsd*)
4197 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4198 aros_host_make="gmake"
4199 aros_host_arch="openbsd"
4200 case "$host_cpu" in
4201 *i?86*)
4202 aros_host_cpu="i386"
4205 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4206 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4207 aros_host_cpu="$host_cpu"
4209 esac
4212 solaris*)
4213 aros_host_arch="solaris"
4214 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4215 case "$host_cpu" in
4216 *i?86*)
4217 aros_host_cpu="i386"
4219 *sparc*)
4220 aros_host_cpu="sparc"
4223 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4224 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4225 aros_host_cpu="$host_cpu"
4227 esac
4230 morphos*)
4231 aros_host_arch="morphos"
4232 aros_host_cpu="ppc"
4235 amiga*)
4236 aros_host_arch="amiga"
4237 SORT="/gg/bin/sort"
4238 TEST="/gg/bin/test"
4239 UNIQ="/gg/bin/uniq"
4240 FOR="for"
4241 TOUCH="/gg/bin/touch"
4242 case "$host_cpu" in
4243 *m68k*)
4244 aros_host_cpu="m68k"
4246 *powerpc*)
4247 aros_host_cpu="ppc"
4250 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4251 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4252 aros_host_cpu="$host_cpu"
4254 esac
4257 cygwin*)
4258 aros_host_arch="cygwin"
4259 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4260 case "$host_cpu" in
4261 *i?86*)
4262 aros_host_cpu="i386"
4265 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4266 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4267 aros_host_cpu="$host_cpu"
4269 esac
4272 mingw32*)
4273 aros_host_arch="mingw32"
4274 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4275 case "$host_cpu" in
4276 *i?86*)
4277 aros_host_cpu="i386"
4280 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4281 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4282 aros_host_cpu="$host_cpu"
4284 esac
4287 { { $as_echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4288 $as_echo "$as_me: error: Unsupported host architecture $host" >&2;}
4289 { (exit 1); exit 1; }; }
4291 esac
4293 # Extract the first word of "ar", so it can be a program name with args.
4294 set dummy ar; ac_word=$2
4295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$aros_host_ar"; then
4301 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_aros_host_ar="ar cr"
4311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4316 IFS=$as_save_IFS
4320 aros_host_ar=$ac_cv_prog_aros_host_ar
4321 if test -n "$aros_host_ar"; then
4322 { $as_echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4323 $as_echo "$aros_host_ar" >&6; }
4324 else
4325 { $as_echo "$as_me:$LINENO: result: no" >&5
4326 $as_echo "no" >&6; }
4330 if test "$aros_host_ar" = ""; then
4331 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4332 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4333 { (exit 1); exit 1; }; }
4335 # Extract the first word of "ranlib", so it can be a program name with args.
4336 set dummy ranlib; ac_word=$2
4337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$aros_host_ranlib"; then
4343 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_aros_host_ranlib="ranlib "
4353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4356 done
4357 done
4358 IFS=$as_save_IFS
4362 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4363 if test -n "$aros_host_ranlib"; then
4364 { $as_echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4365 $as_echo "$aros_host_ranlib" >&6; }
4366 else
4367 { $as_echo "$as_me:$LINENO: result: no" >&5
4368 $as_echo "no" >&6; }
4372 if test "$aros_host_ranlib" = ""; then
4373 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4374 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4375 { (exit 1); exit 1; }; }
4377 # Extract the first word of "strip", so it can be a program name with args.
4378 set dummy strip; ac_word=$2
4379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$aros_host_strip"; then
4385 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_aros_host_strip="strip "
4395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 aros_host_strip=$ac_cv_prog_aros_host_strip
4405 if test -n "$aros_host_strip"; then
4406 { $as_echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4407 $as_echo "$aros_host_strip" >&6; }
4408 else
4409 { $as_echo "$as_me:$LINENO: result: no" >&5
4410 $as_echo "no" >&6; }
4414 if test "$aros_host_strip" = ""; then
4415 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4416 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4417 { (exit 1); exit 1; }; }
4420 # Extract the first word of "rm", so it can be a program name with args.
4421 set dummy rm; ac_word=$2
4422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if test "${ac_cv_prog_RM+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if test -n "$RM"; then
4428 ac_cv_prog_RM="$RM" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_prog_RM="rm -rf"
4438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 RM=$ac_cv_prog_RM
4448 if test -n "$RM"; then
4449 { $as_echo "$as_me:$LINENO: result: $RM" >&5
4450 $as_echo "$RM" >&6; }
4451 else
4452 { $as_echo "$as_me:$LINENO: result: no" >&5
4453 $as_echo "no" >&6; }
4457 if test "$RM" = ""; then
4458 { { $as_echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4459 $as_echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4460 { (exit 1); exit 1; }; }
4462 # Extract the first word of "cp", so it can be a program name with args.
4463 set dummy cp; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_CP+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -n "$CP"; then
4470 ac_cv_prog_CP="$CP" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_CP="cp "
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4483 done
4484 done
4485 IFS=$as_save_IFS
4489 CP=$ac_cv_prog_CP
4490 if test -n "$CP"; then
4491 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4492 $as_echo "$CP" >&6; }
4493 else
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4499 if test "$CP" = ""; then
4500 { { $as_echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4501 $as_echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4502 { (exit 1); exit 1; }; }
4504 # Extract the first word of "mv", so it can be a program name with args.
4505 set dummy mv; ac_word=$2
4506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if test "${ac_cv_prog_MV+set}" = set; then
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$MV"; then
4512 ac_cv_prog_MV="$MV" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_prog_MV="mv "
4522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 MV=$ac_cv_prog_MV
4532 if test -n "$MV"; then
4533 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4534 $as_echo "$MV" >&6; }
4535 else
4536 { $as_echo "$as_me:$LINENO: result: no" >&5
4537 $as_echo "no" >&6; }
4541 if test "$MV" = ""; then
4542 { { $as_echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4543 $as_echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4544 { (exit 1); exit 1; }; }
4546 # Extract the first word of "echo", so it can be a program name with args.
4547 set dummy echo; ac_word=$2
4548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if test "${ac_cv_prog_ECHO+set}" = set; then
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$ECHO"; then
4554 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_ECHO="echo "
4564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 ECHO=$ac_cv_prog_ECHO
4574 if test -n "$ECHO"; then
4575 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4576 $as_echo "$ECHO" >&6; }
4577 else
4578 { $as_echo "$as_me:$LINENO: result: no" >&5
4579 $as_echo "no" >&6; }
4583 if test "$ECHO" = ""; then
4584 { { $as_echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4585 $as_echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4586 { (exit 1); exit 1; }; }
4588 # Extract the first word of "mkdir", so it can be a program name with args.
4589 set dummy mkdir; ac_word=$2
4590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_MKDIR+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -n "$MKDIR"; then
4596 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_MKDIR="mkdir -p"
4606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4611 IFS=$as_save_IFS
4615 MKDIR=$ac_cv_prog_MKDIR
4616 if test -n "$MKDIR"; then
4617 { $as_echo "$as_me:$LINENO: result: $MKDIR" >&5
4618 $as_echo "$MKDIR" >&6; }
4619 else
4620 { $as_echo "$as_me:$LINENO: result: no" >&5
4621 $as_echo "no" >&6; }
4625 if test "$MKDIR" = ""; then
4626 { { $as_echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4627 $as_echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4628 { (exit 1); exit 1; }; }
4630 # Extract the first word of "touch", so it can be a program name with args.
4631 set dummy touch; ac_word=$2
4632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_TOUCH+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$TOUCH"; then
4638 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_TOUCH="touch "
4648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4653 IFS=$as_save_IFS
4657 TOUCH=$ac_cv_prog_TOUCH
4658 if test -n "$TOUCH"; then
4659 { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
4660 $as_echo "$TOUCH" >&6; }
4661 else
4662 { $as_echo "$as_me:$LINENO: result: no" >&5
4663 $as_echo "no" >&6; }
4667 if test "$TOUCH" = ""; then
4668 { { $as_echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4669 $as_echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4670 { (exit 1); exit 1; }; }
4672 # Extract the first word of "sort", so it can be a program name with args.
4673 set dummy sort; ac_word=$2
4674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_SORT+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$SORT"; then
4680 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_SORT="sort "
4690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4699 SORT=$ac_cv_prog_SORT
4700 if test -n "$SORT"; then
4701 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
4702 $as_echo "$SORT" >&6; }
4703 else
4704 { $as_echo "$as_me:$LINENO: result: no" >&5
4705 $as_echo "no" >&6; }
4709 if test "$SORT" = ""; then
4710 { { $as_echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4711 $as_echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4712 { (exit 1); exit 1; }; }
4714 # Extract the first word of "uniq", so it can be a program name with args.
4715 set dummy uniq; ac_word=$2
4716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_UNIQ+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$UNIQ"; then
4722 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_UNIQ="uniq "
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4741 UNIQ=$ac_cv_prog_UNIQ
4742 if test -n "$UNIQ"; then
4743 { $as_echo "$as_me:$LINENO: result: $UNIQ" >&5
4744 $as_echo "$UNIQ" >&6; }
4745 else
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747 $as_echo "no" >&6; }
4751 if test "$UNIQ" = ""; then
4752 { { $as_echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4753 $as_echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4754 { (exit 1); exit 1; }; }
4756 # Extract the first word of "true", so it can be a program name with args.
4757 set dummy true; ac_word=$2
4758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_NOP+set}" = set; then
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$NOP"; then
4764 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_NOP="true "
4774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4779 IFS=$as_save_IFS
4783 NOP=$ac_cv_prog_NOP
4784 if test -n "$NOP"; then
4785 { $as_echo "$as_me:$LINENO: result: $NOP" >&5
4786 $as_echo "$NOP" >&6; }
4787 else
4788 { $as_echo "$as_me:$LINENO: result: no" >&5
4789 $as_echo "no" >&6; }
4793 if test "$NOP" = ""; then
4794 { { $as_echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4795 $as_echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4796 { (exit 1); exit 1; }; }
4798 # Extract the first word of "cat", so it can be a program name with args.
4799 set dummy cat; ac_word=$2
4800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if test "${ac_cv_prog_CAT+set}" = set; then
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$CAT"; then
4806 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_prog_CAT="cat "
4816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4821 IFS=$as_save_IFS
4825 CAT=$ac_cv_prog_CAT
4826 if test -n "$CAT"; then
4827 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
4828 $as_echo "$CAT" >&6; }
4829 else
4830 { $as_echo "$as_me:$LINENO: result: no" >&5
4831 $as_echo "no" >&6; }
4835 if test "$CAT" = ""; then
4836 { { $as_echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4837 $as_echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4838 { (exit 1); exit 1; }; }
4840 # Extract the first word of "bison", so it can be a program name with args.
4841 set dummy bison; ac_word=$2
4842 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if test "${ac_cv_prog_BISON+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$BISON"; then
4848 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_BISON="bison "
4858 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4861 done
4862 done
4863 IFS=$as_save_IFS
4867 BISON=$ac_cv_prog_BISON
4868 if test -n "$BISON"; then
4869 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
4870 $as_echo "$BISON" >&6; }
4871 else
4872 { $as_echo "$as_me:$LINENO: result: no" >&5
4873 $as_echo "no" >&6; }
4877 if test "$BISON" = ""; then
4878 { { $as_echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4879 $as_echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4880 { (exit 1); exit 1; }; }
4882 # Extract the first word of "flex", so it can be a program name with args.
4883 set dummy flex; ac_word=$2
4884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_FLEX+set}" = set; then
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$FLEX"; then
4890 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_FLEX="flex "
4900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 FLEX=$ac_cv_prog_FLEX
4910 if test -n "$FLEX"; then
4911 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
4912 $as_echo "$FLEX" >&6; }
4913 else
4914 { $as_echo "$as_me:$LINENO: result: no" >&5
4915 $as_echo "no" >&6; }
4919 if test "$FLEX" = ""; then
4920 { { $as_echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4921 $as_echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4922 { (exit 1); exit 1; }; }
4924 # Extract the first word of "pngtopnm", so it can be a program name with args.
4925 set dummy pngtopnm; ac_word=$2
4926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$PNGTOPNM"; then
4932 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_PNGTOPNM="pngtopnm "
4942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4952 if test -n "$PNGTOPNM"; then
4953 { $as_echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4954 $as_echo "$PNGTOPNM" >&6; }
4955 else
4956 { $as_echo "$as_me:$LINENO: result: no" >&5
4957 $as_echo "no" >&6; }
4961 if test "$PNGTOPNM" = ""; then
4962 { { $as_echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4963 $as_echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4964 { (exit 1); exit 1; }; }
4966 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4967 set dummy ppmtoilbm; ac_word=$2
4968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$PPMTOILBM"; then
4974 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4994 if test -n "$PPMTOILBM"; then
4995 { $as_echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4996 $as_echo "$PPMTOILBM" >&6; }
4997 else
4998 { $as_echo "$as_me:$LINENO: result: no" >&5
4999 $as_echo "no" >&6; }
5003 if test "$PPMTOILBM" = ""; then
5004 { { $as_echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
5005 $as_echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
5006 { (exit 1); exit 1; }; }
5008 # Extract the first word of "sed", so it can be a program name with args.
5009 set dummy sed; ac_word=$2
5010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if test "${ac_cv_prog_SED+set}" = set; then
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$SED"; then
5016 ac_cv_prog_SED="$SED" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_SED="sed "
5026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5029 done
5030 done
5031 IFS=$as_save_IFS
5035 SED=$ac_cv_prog_SED
5036 if test -n "$SED"; then
5037 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5038 $as_echo "$SED" >&6; }
5039 else
5040 { $as_echo "$as_me:$LINENO: result: no" >&5
5041 $as_echo "no" >&6; }
5045 if test "$SED" = ""; then
5046 { { $as_echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
5047 $as_echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
5048 { (exit 1); exit 1; }; }
5050 # Extract the first word of "chmod", so it can be a program name with args.
5051 set dummy chmod; ac_word=$2
5052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if test "${ac_cv_prog_CHMOD+set}" = set; then
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$CHMOD"; then
5058 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_CHMOD="chmod "
5068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5077 CHMOD=$ac_cv_prog_CHMOD
5078 if test -n "$CHMOD"; then
5079 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
5080 $as_echo "$CHMOD" >&6; }
5081 else
5082 { $as_echo "$as_me:$LINENO: result: no" >&5
5083 $as_echo "no" >&6; }
5087 if test "$CHMOD" = ""; then
5088 { { $as_echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
5089 $as_echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
5090 { (exit 1); exit 1; }; }
5097 if test -n "$PYTHON"; then
5098 # If the user set $PYTHON, use it and don't search something else.
5099 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
5100 $as_echo_n "checking whether $PYTHON version >= 2.2.1... " >&6; }
5101 prog="import sys, string
5102 # split strings by '.' and convert to numeric. Append some zeros
5103 # because we need at least 4 digits for the hex conversion.
5104 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5105 minverhex = 0
5106 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5107 sys.exit(sys.hexversion < minverhex)"
5108 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5109 ($PYTHON -c "$prog") >&5 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; then
5113 { $as_echo "$as_me:$LINENO: result: yes" >&5
5114 $as_echo "yes" >&6; }
5115 else
5116 { { $as_echo "$as_me:$LINENO: error: too old" >&5
5117 $as_echo "$as_me: error: too old" >&2;}
5118 { (exit 1); exit 1; }; }
5121 am_display_PYTHON=$PYTHON
5122 else
5123 # Otherwise, try each interpreter until we find one that satisfies
5124 # VERSION.
5125 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
5126 $as_echo_n "checking for a Python interpreter with version >= 2.2.1... " >&6; }
5127 if test "${am_cv_pathless_PYTHON+set}" = set; then
5128 $as_echo_n "(cached) " >&6
5129 else
5131 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
5132 test "$am_cv_pathless_PYTHON" = none && break
5133 prog="import sys, string
5134 # split strings by '.' and convert to numeric. Append some zeros
5135 # because we need at least 4 digits for the hex conversion.
5136 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5137 minverhex = 0
5138 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5139 sys.exit(sys.hexversion < minverhex)"
5140 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5141 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; then
5145 break
5148 done
5150 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5151 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5152 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5153 if test "$am_cv_pathless_PYTHON" = none; then
5154 PYTHON=:
5155 else
5156 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5157 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_path_PYTHON+set}" = set; then
5161 $as_echo_n "(cached) " >&6
5162 else
5163 case $PYTHON in
5164 [\\/]* | ?:[\\/]*)
5165 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5184 esac
5186 PYTHON=$ac_cv_path_PYTHON
5187 if test -n "$PYTHON"; then
5188 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5189 $as_echo "$PYTHON" >&6; }
5190 else
5191 { $as_echo "$as_me:$LINENO: result: no" >&5
5192 $as_echo "no" >&6; }
5197 am_display_PYTHON=$am_cv_pathless_PYTHON
5201 if test "$PYTHON" = :; then
5202 { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5203 $as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
5204 { (exit 1); exit 1; }; }
5205 else
5208 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5209 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5210 if test "${am_cv_python_version+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5212 else
5213 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5215 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5216 $as_echo "$am_cv_python_version" >&6; }
5217 PYTHON_VERSION=$am_cv_python_version
5221 PYTHON_PREFIX='${prefix}'
5223 PYTHON_EXEC_PREFIX='${exec_prefix}'
5227 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5228 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5229 if test "${am_cv_python_platform+set}" = set; then
5230 $as_echo_n "(cached) " >&6
5231 else
5232 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5234 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5235 $as_echo "$am_cv_python_platform" >&6; }
5236 PYTHON_PLATFORM=$am_cv_python_platform
5241 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5242 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5243 if test "${am_cv_python_pythondir+set}" = set; then
5244 $as_echo_n "(cached) " >&6
5245 else
5246 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5247 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5249 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5250 $as_echo "$am_cv_python_pythondir" >&6; }
5251 pythondir=$am_cv_python_pythondir
5255 pkgpythondir=\${pythondir}/$PACKAGE
5258 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5259 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5260 if test "${am_cv_python_pyexecdir+set}" = set; then
5261 $as_echo_n "(cached) " >&6
5262 else
5263 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5264 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5266 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5267 $as_echo "$am_cv_python_pyexecdir" >&6; }
5268 pyexecdir=$am_cv_python_pyexecdir
5272 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5280 FOR=for
5282 IF=if
5284 TEST=test
5286 CMP=cmp
5290 # Check for some includes for the X11 HIDD and the kernel
5293 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5295 if test "${ac_cv_path_GREP+set}" = set; then
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -z "$GREP"; then
5299 ac_path_GREP_found=false
5300 # Loop through the user's path and test for each of PROGNAME-LIST
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_prog in grep ggrep; do
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5310 # Check for GNU ac_path_GREP and select it if it is found.
5311 # Check for GNU $ac_path_GREP
5312 case `"$ac_path_GREP" --version 2>&1` in
5313 *GNU*)
5314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5316 ac_count=0
5317 $as_echo_n 0123456789 >"conftest.in"
5318 while :
5320 cat "conftest.in" "conftest.in" >"conftest.tmp"
5321 mv "conftest.tmp" "conftest.in"
5322 cp "conftest.in" "conftest.nl"
5323 $as_echo 'GREP' >> "conftest.nl"
5324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326 ac_count=`expr $ac_count + 1`
5327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5328 # Best one so far, save it but keep looking for a better one
5329 ac_cv_path_GREP="$ac_path_GREP"
5330 ac_path_GREP_max=$ac_count
5332 # 10*(2^10) chars as input seems more than enough
5333 test $ac_count -gt 10 && break
5334 done
5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5338 $ac_path_GREP_found && break 3
5339 done
5340 done
5341 done
5342 IFS=$as_save_IFS
5343 if test -z "$ac_cv_path_GREP"; then
5344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5345 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5346 { (exit 1); exit 1; }; }
5348 else
5349 ac_cv_path_GREP=$GREP
5353 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5354 $as_echo "$ac_cv_path_GREP" >&6; }
5355 GREP="$ac_cv_path_GREP"
5358 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5359 $as_echo_n "checking for egrep... " >&6; }
5360 if test "${ac_cv_path_EGREP+set}" = set; then
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5364 then ac_cv_path_EGREP="$GREP -E"
5365 else
5366 if test -z "$EGREP"; then
5367 ac_path_EGREP_found=false
5368 # Loop through the user's path and test for each of PROGNAME-LIST
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_prog in egrep; do
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5378 # Check for GNU ac_path_EGREP and select it if it is found.
5379 # Check for GNU $ac_path_EGREP
5380 case `"$ac_path_EGREP" --version 2>&1` in
5381 *GNU*)
5382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5384 ac_count=0
5385 $as_echo_n 0123456789 >"conftest.in"
5386 while :
5388 cat "conftest.in" "conftest.in" >"conftest.tmp"
5389 mv "conftest.tmp" "conftest.in"
5390 cp "conftest.in" "conftest.nl"
5391 $as_echo 'EGREP' >> "conftest.nl"
5392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394 ac_count=`expr $ac_count + 1`
5395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5396 # Best one so far, save it but keep looking for a better one
5397 ac_cv_path_EGREP="$ac_path_EGREP"
5398 ac_path_EGREP_max=$ac_count
5400 # 10*(2^10) chars as input seems more than enough
5401 test $ac_count -gt 10 && break
5402 done
5403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404 esac
5406 $ac_path_EGREP_found && break 3
5407 done
5408 done
5409 done
5410 IFS=$as_save_IFS
5411 if test -z "$ac_cv_path_EGREP"; then
5412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5413 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5414 { (exit 1); exit 1; }; }
5416 else
5417 ac_cv_path_EGREP=$EGREP
5422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5423 $as_echo "$ac_cv_path_EGREP" >&6; }
5424 EGREP="$ac_cv_path_EGREP"
5427 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5428 $as_echo_n "checking for ANSI C header files... " >&6; }
5429 if test "${ac_cv_header_stdc+set}" = set; then
5430 $as_echo_n "(cached) " >&6
5431 else
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <stdlib.h>
5439 #include <stdarg.h>
5440 #include <string.h>
5441 #include <float.h>
5444 main ()
5448 return 0;
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5458 $as_echo "$ac_try_echo") >&5
5459 (eval "$ac_compile") 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && {
5466 test -z "$ac_c_werror_flag" ||
5467 test ! -s conftest.err
5468 } && test -s conftest.$ac_objext; then
5469 ac_cv_header_stdc=yes
5470 else
5471 $as_echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 ac_cv_header_stdc=no
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 if test $ac_cv_header_stdc = yes; then
5480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 #include <string.h>
5489 _ACEOF
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "memchr" >/dev/null 2>&1; then
5493 else
5494 ac_cv_header_stdc=no
5496 rm -f conftest*
5500 if test $ac_cv_header_stdc = yes; then
5501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #include <stdlib.h>
5510 _ACEOF
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512 $EGREP "free" >/dev/null 2>&1; then
5514 else
5515 ac_cv_header_stdc=no
5517 rm -f conftest*
5521 if test $ac_cv_header_stdc = yes; then
5522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5523 if test "$cross_compiling" = yes; then
5525 else
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h. */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532 #include <ctype.h>
5533 #include <stdlib.h>
5534 #if ((' ' & 0x0FF) == 0x020)
5535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5537 #else
5538 # define ISLOWER(c) \
5539 (('a' <= (c) && (c) <= 'i') \
5540 || ('j' <= (c) && (c) <= 'r') \
5541 || ('s' <= (c) && (c) <= 'z'))
5542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5543 #endif
5545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5547 main ()
5549 int i;
5550 for (i = 0; i < 256; i++)
5551 if (XOR (islower (i), ISLOWER (i))
5552 || toupper (i) != TOUPPER (i))
5553 return 2;
5554 return 0;
5556 _ACEOF
5557 rm -f conftest$ac_exeext
5558 if { (ac_try="$ac_link"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564 $as_echo "$ac_try_echo") >&5
5565 (eval "$ac_link") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5569 { (case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574 $as_echo "$ac_try_echo") >&5
5575 (eval "$ac_try") 2>&5
5576 ac_status=$?
5577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5580 else
5581 $as_echo "$as_me: program exited with status $ac_status" >&5
5582 $as_echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 ( exit $ac_status )
5586 ac_cv_header_stdc=no
5588 rm -rf conftest.dSYM
5589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5596 $as_echo "$ac_cv_header_stdc" >&6; }
5597 if test $ac_cv_header_stdc = yes; then
5599 cat >>confdefs.h <<\_ACEOF
5600 #define STDC_HEADERS 1
5601 _ACEOF
5605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5616 inttypes.h stdint.h unistd.h
5618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 $as_echo_n "checking for $ac_header... " >&6; }
5621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5622 $as_echo_n "(cached) " >&6
5623 else
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 $ac_includes_default
5632 #include <$ac_header>
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5636 case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641 $as_echo "$ac_try_echo") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_c_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.$ac_objext; then
5652 eval "$as_ac_Header=yes"
5653 else
5654 $as_echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 eval "$as_ac_Header=no"
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 ac_res=`eval 'as_val=${'$as_ac_Header'}
5663 $as_echo "$as_val"'`
5664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5665 $as_echo "$ac_res" >&6; }
5666 as_val=`eval 'as_val=${'$as_ac_Header'}
5667 $as_echo "$as_val"'`
5668 if test "x$as_val" = x""yes; then
5669 cat >>confdefs.h <<_ACEOF
5670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5671 _ACEOF
5675 done
5687 for ac_header in sys/ipc.h sys/shm.h \
5688 sys/mmap.h sys/mman.h sysexits.h \
5689 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5695 $as_echo_n "checking for $ac_header... " >&6; }
5696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5697 $as_echo_n "(cached) " >&6
5699 ac_res=`eval 'as_val=${'$as_ac_Header'}
5700 $as_echo "$as_val"'`
5701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5702 $as_echo "$ac_res" >&6; }
5703 else
5704 # Is the header compilable?
5705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5706 $as_echo_n "checking $ac_header usability... " >&6; }
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5714 #include <$ac_header>
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_header_compiler=yes
5735 else
5736 $as_echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_header_compiler=no
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5744 $as_echo "$ac_header_compiler" >&6; }
5746 # Is the header present?
5747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5748 $as_echo_n "checking $ac_header presence... " >&6; }
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <$ac_header>
5756 _ACEOF
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5758 case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763 $as_echo "$ac_try_echo") >&5
5764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } >/dev/null && {
5771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 }; then
5774 ac_header_preproc=yes
5775 else
5776 $as_echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_header_preproc=no
5782 rm -f conftest.err conftest.$ac_ext
5783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5784 $as_echo "$ac_header_preproc" >&6; }
5786 # So? What about this header?
5787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5788 yes:no: )
5789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5793 ac_header_preproc=yes
5795 no:yes:* )
5796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5810 esac
5811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5812 $as_echo_n "checking for $ac_header... " >&6; }
5813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5814 $as_echo_n "(cached) " >&6
5815 else
5816 eval "$as_ac_Header=\$ac_header_preproc"
5818 ac_res=`eval 'as_val=${'$as_ac_Header'}
5819 $as_echo "$as_val"'`
5820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5821 $as_echo "$ac_res" >&6; }
5824 as_val=`eval 'as_val=${'$as_ac_Header'}
5825 $as_echo "$as_val"'`
5826 if test "x$as_val" = x""yes; then
5827 cat >>confdefs.h <<_ACEOF
5828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5829 _ACEOF
5833 done
5837 for ac_header in sys/mount.h
5839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 $as_echo_n "checking for $ac_header... " >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 $as_echo_n "(cached) " >&6
5844 else
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 #include <sys/param.h>
5853 #include <$ac_header>
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (ac_try="$ac_compile"
5857 case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860 esac
5861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5862 $as_echo "$ac_try_echo") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 eval "$as_ac_Header=yes"
5874 else
5875 $as_echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 eval "$as_ac_Header=no"
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_res=`eval 'as_val=${'$as_ac_Header'}
5884 $as_echo "$as_val"'`
5885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5886 $as_echo "$ac_res" >&6; }
5887 as_val=`eval 'as_val=${'$as_ac_Header'}
5888 $as_echo "$as_val"'`
5889 if test "x$as_val" = x""yes; then
5890 cat >>confdefs.h <<_ACEOF
5891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5892 _ACEOF
5896 done
5904 ac_header_dirent=no
5905 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5906 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5907 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5908 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5910 $as_echo_n "(cached) " >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <sys/types.h>
5919 #include <$ac_hdr>
5922 main ()
5924 if ((DIR *) 0)
5925 return 0;
5927 return 0;
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5937 $as_echo "$ac_try_echo") >&5
5938 (eval "$ac_compile") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && {
5945 test -z "$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 } && test -s conftest.$ac_objext; then
5948 eval "$as_ac_Header=yes"
5949 else
5950 $as_echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 eval "$as_ac_Header=no"
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 ac_res=`eval 'as_val=${'$as_ac_Header'}
5959 $as_echo "$as_val"'`
5960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5961 $as_echo "$ac_res" >&6; }
5962 as_val=`eval 'as_val=${'$as_ac_Header'}
5963 $as_echo "$as_val"'`
5964 if test "x$as_val" = x""yes; then
5965 cat >>confdefs.h <<_ACEOF
5966 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5967 _ACEOF
5969 ac_header_dirent=$ac_hdr; break
5972 done
5973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5974 if test $ac_header_dirent = dirent.h; then
5975 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5976 $as_echo_n "checking for library containing opendir... " >&6; }
5977 if test "${ac_cv_search_opendir+set}" = set; then
5978 $as_echo_n "(cached) " >&6
5979 else
5980 ac_func_search_save_LIBS=$LIBS
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5988 /* Override any GCC internal prototype to avoid an error.
5989 Use char because int might match the return type of a GCC
5990 builtin and then its argument prototype would still apply. */
5991 #ifdef __cplusplus
5992 extern "C"
5993 #endif
5994 char opendir ();
5996 main ()
5998 return opendir ();
6000 return 0;
6002 _ACEOF
6003 for ac_lib in '' dir; do
6004 if test -z "$ac_lib"; then
6005 ac_res="none required"
6006 else
6007 ac_res=-l$ac_lib
6008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (ac_try="$ac_link"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018 (eval "$ac_link") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest$ac_exeext && {
6028 test "$cross_compiling" = yes ||
6029 $as_test_x conftest$ac_exeext
6030 }; then
6031 ac_cv_search_opendir=$ac_res
6032 else
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6039 rm -rf conftest.dSYM
6040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6041 conftest$ac_exeext
6042 if test "${ac_cv_search_opendir+set}" = set; then
6043 break
6045 done
6046 if test "${ac_cv_search_opendir+set}" = set; then
6048 else
6049 ac_cv_search_opendir=no
6051 rm conftest.$ac_ext
6052 LIBS=$ac_func_search_save_LIBS
6054 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6055 $as_echo "$ac_cv_search_opendir" >&6; }
6056 ac_res=$ac_cv_search_opendir
6057 if test "$ac_res" != no; then
6058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6062 else
6063 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6064 $as_echo_n "checking for library containing opendir... " >&6; }
6065 if test "${ac_cv_search_opendir+set}" = set; then
6066 $as_echo_n "(cached) " >&6
6067 else
6068 ac_func_search_save_LIBS=$LIBS
6069 cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6076 /* Override any GCC internal prototype to avoid an error.
6077 Use char because int might match the return type of a GCC
6078 builtin and then its argument prototype would still apply. */
6079 #ifdef __cplusplus
6080 extern "C"
6081 #endif
6082 char opendir ();
6084 main ()
6086 return opendir ();
6088 return 0;
6090 _ACEOF
6091 for ac_lib in '' x; do
6092 if test -z "$ac_lib"; then
6093 ac_res="none required"
6094 else
6095 ac_res=-l$ac_lib
6096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6098 rm -f conftest.$ac_objext conftest$ac_exeext
6099 if { (ac_try="$ac_link"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_link") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest$ac_exeext && {
6116 test "$cross_compiling" = yes ||
6117 $as_test_x conftest$ac_exeext
6118 }; then
6119 ac_cv_search_opendir=$ac_res
6120 else
6121 $as_echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6127 rm -rf conftest.dSYM
6128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6129 conftest$ac_exeext
6130 if test "${ac_cv_search_opendir+set}" = set; then
6131 break
6133 done
6134 if test "${ac_cv_search_opendir+set}" = set; then
6136 else
6137 ac_cv_search_opendir=no
6139 rm conftest.$ac_ext
6140 LIBS=$ac_func_search_save_LIBS
6142 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6143 $as_echo "$ac_cv_search_opendir" >&6; }
6144 ac_res=$ac_cv_search_opendir
6145 if test "$ac_res" != no; then
6146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6152 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6153 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6154 if test "${ac_cv_header_stat_broken+set}" = set; then
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <sys/types.h>
6164 #include <sys/stat.h>
6166 #if defined S_ISBLK && defined S_IFDIR
6167 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6168 #endif
6170 #if defined S_ISBLK && defined S_IFCHR
6171 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6172 #endif
6174 #if defined S_ISLNK && defined S_IFREG
6175 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6176 #endif
6178 #if defined S_ISSOCK && defined S_IFREG
6179 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6180 #endif
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (ac_try="$ac_compile"
6185 case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188 esac
6189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6190 $as_echo "$ac_try_echo") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest.$ac_objext; then
6201 ac_cv_header_stat_broken=no
6202 else
6203 $as_echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ac_cv_header_stat_broken=yes
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6212 $as_echo "$ac_cv_header_stat_broken" >&6; }
6213 if test $ac_cv_header_stat_broken = yes; then
6215 cat >>confdefs.h <<\_ACEOF
6216 #define STAT_MACROS_BROKEN 1
6217 _ACEOF
6221 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6222 $as_echo_n "checking for ANSI C header files... " >&6; }
6223 if test "${ac_cv_header_stdc+set}" = set; then
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h. */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <stdlib.h>
6233 #include <stdarg.h>
6234 #include <string.h>
6235 #include <float.h>
6238 main ()
6242 return 0;
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (ac_try="$ac_compile"
6247 case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250 esac
6251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6252 $as_echo "$ac_try_echo") >&5
6253 (eval "$ac_compile") 2>conftest.er1
6254 ac_status=$?
6255 grep -v '^ *+' conftest.er1 >conftest.err
6256 rm -f conftest.er1
6257 cat conftest.err >&5
6258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest.$ac_objext; then
6263 ac_cv_header_stdc=yes
6264 else
6265 $as_echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 ac_cv_header_stdc=no
6271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 if test $ac_cv_header_stdc = yes; then
6274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <string.h>
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "memchr" >/dev/null 2>&1; then
6287 else
6288 ac_cv_header_stdc=no
6290 rm -f conftest*
6294 if test $ac_cv_header_stdc = yes; then
6295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6296 cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h. */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 #include <stdlib.h>
6304 _ACEOF
6305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6306 $EGREP "free" >/dev/null 2>&1; then
6308 else
6309 ac_cv_header_stdc=no
6311 rm -f conftest*
6315 if test $ac_cv_header_stdc = yes; then
6316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6317 if test "$cross_compiling" = yes; then
6319 else
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <ctype.h>
6327 #include <stdlib.h>
6328 #if ((' ' & 0x0FF) == 0x020)
6329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6331 #else
6332 # define ISLOWER(c) \
6333 (('a' <= (c) && (c) <= 'i') \
6334 || ('j' <= (c) && (c) <= 'r') \
6335 || ('s' <= (c) && (c) <= 'z'))
6336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6337 #endif
6339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6341 main ()
6343 int i;
6344 for (i = 0; i < 256; i++)
6345 if (XOR (islower (i), ISLOWER (i))
6346 || toupper (i) != TOUPPER (i))
6347 return 2;
6348 return 0;
6350 _ACEOF
6351 rm -f conftest$ac_exeext
6352 if { (ac_try="$ac_link"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6358 $as_echo "$ac_try_echo") >&5
6359 (eval "$ac_link") 2>&5
6360 ac_status=$?
6361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6363 { (case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366 esac
6367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6368 $as_echo "$ac_try_echo") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6374 else
6375 $as_echo "$as_me: program exited with status $ac_status" >&5
6376 $as_echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ( exit $ac_status )
6380 ac_cv_header_stdc=no
6382 rm -rf conftest.dSYM
6383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6389 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6390 $as_echo "$ac_cv_header_stdc" >&6; }
6391 if test $ac_cv_header_stdc = yes; then
6393 cat >>confdefs.h <<\_ACEOF
6394 #define STDC_HEADERS 1
6395 _ACEOF
6399 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6400 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6401 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6402 $as_echo_n "(cached) " >&6
6403 else
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <sys/types.h>
6411 #include <sys/wait.h>
6412 #ifndef WEXITSTATUS
6413 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6414 #endif
6415 #ifndef WIFEXITED
6416 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6417 #endif
6420 main ()
6422 int s;
6423 wait (&s);
6424 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6426 return 0;
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (ac_try="$ac_compile"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6436 $as_echo "$ac_try_echo") >&5
6437 (eval "$ac_compile") 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && {
6444 test -z "$ac_c_werror_flag" ||
6445 test ! -s conftest.err
6446 } && test -s conftest.$ac_objext; then
6447 ac_cv_header_sys_wait_h=yes
6448 else
6449 $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_cv_header_sys_wait_h=no
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6458 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6459 if test $ac_cv_header_sys_wait_h = yes; then
6461 cat >>confdefs.h <<\_ACEOF
6462 #define HAVE_SYS_WAIT_H 1
6463 _ACEOF
6467 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6468 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6469 if test "${ac_cv_header_time+set}" = set; then
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h. */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478 #include <sys/types.h>
6479 #include <sys/time.h>
6480 #include <time.h>
6483 main ()
6485 if ((struct tm *) 0)
6486 return 0;
6488 return 0;
6490 _ACEOF
6491 rm -f conftest.$ac_objext
6492 if { (ac_try="$ac_compile"
6493 case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496 esac
6497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6498 $as_echo "$ac_try_echo") >&5
6499 (eval "$ac_compile") 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest.$ac_objext; then
6509 ac_cv_header_time=yes
6510 else
6511 $as_echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ac_cv_header_time=no
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6520 $as_echo "$ac_cv_header_time" >&6; }
6521 if test $ac_cv_header_time = yes; then
6523 cat >>confdefs.h <<\_ACEOF
6524 #define TIME_WITH_SYS_TIME 1
6525 _ACEOF
6529 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6530 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
6531 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6532 $as_echo_n "(cached) " >&6
6533 else
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 $ac_includes_default
6542 main ()
6544 static struct stat ac_aggr;
6545 if (ac_aggr.st_blksize)
6546 return 0;
6548 return 0;
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6558 $as_echo "$ac_try_echo") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_member_struct_stat_st_blksize=yes
6570 else
6571 $as_echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 $ac_includes_default
6582 main ()
6584 static struct stat ac_aggr;
6585 if (sizeof ac_aggr.st_blksize)
6586 return 0;
6588 return 0;
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6598 $as_echo "$ac_try_echo") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_member_struct_stat_st_blksize=yes
6610 else
6611 $as_echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_cv_member_struct_stat_st_blksize=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6623 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
6624 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
6626 cat >>confdefs.h <<_ACEOF
6627 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6628 _ACEOF
6631 cat >>confdefs.h <<\_ACEOF
6632 #define HAVE_ST_BLKSIZE 1
6633 _ACEOF
6638 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6639 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
6640 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6641 $as_echo_n "(cached) " >&6
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 $ac_includes_default
6651 main ()
6653 static struct stat ac_aggr;
6654 if (ac_aggr.st_blocks)
6655 return 0;
6657 return 0;
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (ac_try="$ac_compile"
6662 case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665 esac
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 ac_cv_member_struct_stat_st_blocks=yes
6679 else
6680 $as_echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 $ac_includes_default
6691 main ()
6693 static struct stat ac_aggr;
6694 if (sizeof ac_aggr.st_blocks)
6695 return 0;
6697 return 0;
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (ac_try="$ac_compile"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6707 $as_echo "$ac_try_echo") >&5
6708 (eval "$ac_compile") 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest.$ac_objext; then
6718 ac_cv_member_struct_stat_st_blocks=yes
6719 else
6720 $as_echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 ac_cv_member_struct_stat_st_blocks=no
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6732 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
6733 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6737 _ACEOF
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_ST_BLOCKS 1
6742 _ACEOF
6744 else
6745 case " $LIBOBJS " in
6746 *" fileblocks.$ac_objext "* ) ;;
6747 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6749 esac
6754 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6755 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6756 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 $ac_includes_default
6767 main ()
6769 static struct stat ac_aggr;
6770 if (ac_aggr.st_rdev)
6771 return 0;
6773 return 0;
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6778 case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781 esac
6782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6783 $as_echo "$ac_try_echo") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_cv_member_struct_stat_st_rdev=yes
6795 else
6796 $as_echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6807 main ()
6809 static struct stat ac_aggr;
6810 if (sizeof ac_aggr.st_rdev)
6811 return 0;
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (ac_try="$ac_compile"
6818 case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821 esac
6822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 ac_cv_member_struct_stat_st_rdev=yes
6835 else
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_cv_member_struct_stat_st_rdev=no
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6848 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6849 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_STRUCT_STAT_ST_RDEV 1
6853 _ACEOF
6856 cat >>confdefs.h <<\_ACEOF
6857 #define HAVE_ST_RDEV 1
6858 _ACEOF
6863 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6864 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6865 if test "${ac_cv_struct_tm+set}" = set; then
6866 $as_echo_n "(cached) " >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <sys/types.h>
6875 #include <time.h>
6878 main ()
6880 struct tm tm;
6881 int *p = &tm.tm_sec;
6882 return !p;
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6894 $as_echo "$ac_try_echo") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
6905 ac_cv_struct_tm=time.h
6906 else
6907 $as_echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 ac_cv_struct_tm=sys/time.h
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6916 $as_echo "$ac_cv_struct_tm" >&6; }
6917 if test $ac_cv_struct_tm = sys/time.h; then
6919 cat >>confdefs.h <<\_ACEOF
6920 #define TM_IN_SYS_TIME 1
6921 _ACEOF
6925 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6926 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
6927 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6928 $as_echo_n "(cached) " >&6
6929 else
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936 #include <sys/types.h>
6937 #include <$ac_cv_struct_tm>
6941 main ()
6943 static struct tm ac_aggr;
6944 if (ac_aggr.tm_zone)
6945 return 0;
6947 return 0;
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_member_struct_tm_tm_zone=yes
6969 else
6970 $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 #include <sys/types.h>
6980 #include <$ac_cv_struct_tm>
6984 main ()
6986 static struct tm ac_aggr;
6987 if (sizeof ac_aggr.tm_zone)
6988 return 0;
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (ac_try="$ac_compile"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000 $as_echo "$ac_try_echo") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 ac_cv_member_struct_tm_tm_zone=yes
7012 else
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_member_struct_tm_tm_zone=no
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7025 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7026 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
7028 cat >>confdefs.h <<_ACEOF
7029 #define HAVE_STRUCT_TM_TM_ZONE 1
7030 _ACEOF
7035 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7037 cat >>confdefs.h <<\_ACEOF
7038 #define HAVE_TM_ZONE 1
7039 _ACEOF
7041 else
7042 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7043 $as_echo_n "checking whether tzname is declared... " >&6; }
7044 if test "${ac_cv_have_decl_tzname+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 #include <time.h>
7056 main ()
7058 #ifndef tzname
7059 (void) tzname;
7060 #endif
7063 return 0;
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_have_decl_tzname=yes
7085 else
7086 $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_have_decl_tzname=no
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7095 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7096 if test "x$ac_cv_have_decl_tzname" = x""yes; then
7098 cat >>confdefs.h <<_ACEOF
7099 #define HAVE_DECL_TZNAME 1
7100 _ACEOF
7103 else
7104 cat >>confdefs.h <<_ACEOF
7105 #define HAVE_DECL_TZNAME 0
7106 _ACEOF
7112 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
7113 $as_echo_n "checking for tzname... " >&6; }
7114 if test "${ac_cv_var_tzname+set}" = set; then
7115 $as_echo_n "(cached) " >&6
7116 else
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 #include <time.h>
7124 #if !HAVE_DECL_TZNAME
7125 extern char *tzname[];
7126 #endif
7129 main ()
7131 return tzname[0][0];
7133 return 0;
7135 _ACEOF
7136 rm -f conftest.$ac_objext conftest$ac_exeext
7137 if { (ac_try="$ac_link"
7138 case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141 esac
7142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7143 $as_echo "$ac_try_echo") >&5
7144 (eval "$ac_link") 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest$ac_exeext && {
7154 test "$cross_compiling" = yes ||
7155 $as_test_x conftest$ac_exeext
7156 }; then
7157 ac_cv_var_tzname=yes
7158 else
7159 $as_echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_var_tzname=no
7165 rm -rf conftest.dSYM
7166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7167 conftest$ac_exeext conftest.$ac_ext
7169 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7170 $as_echo "$ac_cv_var_tzname" >&6; }
7171 if test $ac_cv_var_tzname = yes; then
7173 cat >>confdefs.h <<\_ACEOF
7174 #define HAVE_TZNAME 1
7175 _ACEOF
7180 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7181 $as_echo_n "checking for off_t... " >&6; }
7182 if test "${ac_cv_type_off_t+set}" = set; then
7183 $as_echo_n "(cached) " >&6
7184 else
7185 ac_cv_type_off_t=no
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7194 main ()
7196 if (sizeof (off_t))
7197 return 0;
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207 esac
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7228 main ()
7230 if (sizeof ((off_t)))
7231 return 0;
7233 return 0;
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (ac_try="$ac_compile"
7238 case "(($ac_try" in
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7241 esac
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244 (eval "$ac_compile") 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && {
7251 test -z "$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 } && test -s conftest.$ac_objext; then
7255 else
7256 $as_echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7259 ac_cv_type_off_t=yes
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 else
7264 $as_echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7273 $as_echo "$ac_cv_type_off_t" >&6; }
7274 if test "x$ac_cv_type_off_t" = x""yes; then
7276 else
7278 cat >>confdefs.h <<_ACEOF
7279 #define off_t long int
7280 _ACEOF
7284 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7285 $as_echo_n "checking for pid_t... " >&6; }
7286 if test "${ac_cv_type_pid_t+set}" = set; then
7287 $as_echo_n "(cached) " >&6
7288 else
7289 ac_cv_type_pid_t=no
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h. */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 $ac_includes_default
7298 main ()
7300 if (sizeof (pid_t))
7301 return 0;
7303 return 0;
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (ac_try="$ac_compile"
7308 case "(($ac_try" in
7309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7311 esac
7312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313 $as_echo "$ac_try_echo") >&5
7314 (eval "$ac_compile") 2>conftest.er1
7315 ac_status=$?
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
7319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } && {
7321 test -z "$ac_c_werror_flag" ||
7322 test ! -s conftest.err
7323 } && test -s conftest.$ac_objext; then
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7332 main ()
7334 if (sizeof ((pid_t)))
7335 return 0;
7337 return 0;
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (ac_try="$ac_compile"
7342 case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345 esac
7346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7347 $as_echo "$ac_try_echo") >&5
7348 (eval "$ac_compile") 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } && {
7355 test -z "$ac_c_werror_flag" ||
7356 test ! -s conftest.err
7357 } && test -s conftest.$ac_objext; then
7359 else
7360 $as_echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7363 ac_cv_type_pid_t=yes
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 else
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7377 $as_echo "$ac_cv_type_pid_t" >&6; }
7378 if test "x$ac_cv_type_pid_t" = x""yes; then
7380 else
7382 cat >>confdefs.h <<_ACEOF
7383 #define pid_t int
7384 _ACEOF
7388 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7389 $as_echo_n "checking for size_t... " >&6; }
7390 if test "${ac_cv_type_size_t+set}" = set; then
7391 $as_echo_n "(cached) " >&6
7392 else
7393 ac_cv_type_size_t=no
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 $ac_includes_default
7402 main ()
7404 if (sizeof (size_t))
7405 return 0;
7407 return 0;
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 $ac_includes_default
7436 main ()
7438 if (sizeof ((size_t)))
7439 return 0;
7441 return 0;
7443 _ACEOF
7444 rm -f conftest.$ac_objext
7445 if { (ac_try="$ac_compile"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7451 $as_echo "$ac_try_echo") >&5
7452 (eval "$ac_compile") 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
7463 else
7464 $as_echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 ac_cv_type_size_t=yes
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 else
7472 $as_echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7481 $as_echo "$ac_cv_type_size_t" >&6; }
7482 if test "x$ac_cv_type_size_t" = x""yes; then
7484 else
7486 cat >>confdefs.h <<_ACEOF
7487 #define size_t unsigned int
7488 _ACEOF
7492 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7493 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7494 if test "${ac_cv_type_uid_t+set}" = set; then
7495 $as_echo_n "(cached) " >&6
7496 else
7497 cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h. */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 #include <sys/types.h>
7505 _ACEOF
7506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7507 $EGREP "uid_t" >/dev/null 2>&1; then
7508 ac_cv_type_uid_t=yes
7509 else
7510 ac_cv_type_uid_t=no
7512 rm -f conftest*
7515 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7516 $as_echo "$ac_cv_type_uid_t" >&6; }
7517 if test $ac_cv_type_uid_t = no; then
7519 cat >>confdefs.h <<\_ACEOF
7520 #define uid_t int
7521 _ACEOF
7524 cat >>confdefs.h <<\_ACEOF
7525 #define gid_t int
7526 _ACEOF
7531 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7532 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
7533 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7534 $as_echo_n "(cached) " >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 $ac_includes_default
7544 main ()
7546 static struct tm ac_aggr;
7547 if (ac_aggr.tm_gmtoff)
7548 return 0;
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_cv_member_struct_tm_tm_gmtoff=yes
7572 else
7573 $as_echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7584 main ()
7586 static struct tm ac_aggr;
7587 if (sizeof ac_aggr.tm_gmtoff)
7588 return 0;
7590 return 0;
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7595 case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598 esac
7599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7600 $as_echo "$ac_try_echo") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_cv_member_struct_tm_tm_gmtoff=yes
7612 else
7613 $as_echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_cv_member_struct_tm_tm_gmtoff=no
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7625 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7626 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7630 _ACEOF
7636 # Look for some functions
7651 for ac_func in getpagesize kqueue statfs statvfs \
7652 clone kse_create rfork_thread thr_create sa_register \
7653 getcontext makecontext setcontext sigaltstack swapcontext
7655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7656 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7657 $as_echo_n "checking for $ac_func... " >&6; }
7658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h. */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7669 #define $ac_func innocuous_$ac_func
7671 /* System header to define __stub macros and hopefully few prototypes,
7672 which can conflict with char $ac_func (); below.
7673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7674 <limits.h> exists even on freestanding compilers. */
7676 #ifdef __STDC__
7677 # include <limits.h>
7678 #else
7679 # include <assert.h>
7680 #endif
7682 #undef $ac_func
7684 /* Override any GCC internal prototype to avoid an error.
7685 Use char because int might match the return type of a GCC
7686 builtin and then its argument prototype would still apply. */
7687 #ifdef __cplusplus
7688 extern "C"
7689 #endif
7690 char $ac_func ();
7691 /* The GNU C library defines this for functions which it implements
7692 to always fail with ENOSYS. Some functions are actually named
7693 something starting with __ and the normal name is an alias. */
7694 #if defined __stub_$ac_func || defined __stub___$ac_func
7695 choke me
7696 #endif
7699 main ()
7701 return $ac_func ();
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (ac_try="$ac_link"
7708 case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711 esac
7712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714 (eval "$ac_link") 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest$ac_exeext && {
7724 test "$cross_compiling" = yes ||
7725 $as_test_x conftest$ac_exeext
7726 }; then
7727 eval "$as_ac_var=yes"
7728 else
7729 $as_echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 eval "$as_ac_var=no"
7735 rm -rf conftest.dSYM
7736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7737 conftest$ac_exeext conftest.$ac_ext
7739 ac_res=`eval 'as_val=${'$as_ac_var'}
7740 $as_echo "$as_val"'`
7741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7742 $as_echo "$ac_res" >&6; }
7743 as_val=`eval 'as_val=${'$as_ac_var'}
7744 $as_echo "$as_val"'`
7745 if test "x$as_val" = x""yes; then
7746 cat >>confdefs.h <<_ACEOF
7747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7748 _ACEOF
7751 done
7756 for ac_header in stdlib.h unistd.h
7758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7761 $as_echo_n "checking for $ac_header... " >&6; }
7762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7763 $as_echo_n "(cached) " >&6
7765 ac_res=`eval 'as_val=${'$as_ac_Header'}
7766 $as_echo "$as_val"'`
7767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7768 $as_echo "$ac_res" >&6; }
7769 else
7770 # Is the header compilable?
7771 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7772 $as_echo_n "checking $ac_header usability... " >&6; }
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 $ac_includes_default
7780 #include <$ac_header>
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (ac_try="$ac_compile"
7784 case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787 esac
7788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7789 $as_echo "$ac_try_echo") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
7800 ac_header_compiler=yes
7801 else
7802 $as_echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 ac_header_compiler=no
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7810 $as_echo "$ac_header_compiler" >&6; }
7812 # Is the header present?
7813 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7814 $as_echo_n "checking $ac_header presence... " >&6; }
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #include <$ac_header>
7822 _ACEOF
7823 if { (ac_try="$ac_cpp conftest.$ac_ext"
7824 case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827 esac
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } >/dev/null && {
7837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 }; then
7840 ac_header_preproc=yes
7841 else
7842 $as_echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_header_preproc=no
7848 rm -f conftest.err conftest.$ac_ext
7849 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7850 $as_echo "$ac_header_preproc" >&6; }
7852 # So? What about this header?
7853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7854 yes:no: )
7855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7856 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7858 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7859 ac_header_preproc=yes
7861 no:yes:* )
7862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7863 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7865 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7867 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7869 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7873 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7876 esac
7877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7878 $as_echo_n "checking for $ac_header... " >&6; }
7879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7880 $as_echo_n "(cached) " >&6
7881 else
7882 eval "$as_ac_Header=\$ac_header_preproc"
7884 ac_res=`eval 'as_val=${'$as_ac_Header'}
7885 $as_echo "$as_val"'`
7886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7887 $as_echo "$ac_res" >&6; }
7890 as_val=`eval 'as_val=${'$as_ac_Header'}
7891 $as_echo "$as_val"'`
7892 if test "x$as_val" = x""yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7895 _ACEOF
7899 done
7902 for ac_func in getpagesize
7904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7905 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7906 $as_echo_n "checking for $ac_func... " >&6; }
7907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7908 $as_echo_n "(cached) " >&6
7909 else
7910 cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h. */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7918 #define $ac_func innocuous_$ac_func
7920 /* System header to define __stub macros and hopefully few prototypes,
7921 which can conflict with char $ac_func (); below.
7922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7923 <limits.h> exists even on freestanding compilers. */
7925 #ifdef __STDC__
7926 # include <limits.h>
7927 #else
7928 # include <assert.h>
7929 #endif
7931 #undef $ac_func
7933 /* Override any GCC internal prototype to avoid an error.
7934 Use char because int might match the return type of a GCC
7935 builtin and then its argument prototype would still apply. */
7936 #ifdef __cplusplus
7937 extern "C"
7938 #endif
7939 char $ac_func ();
7940 /* The GNU C library defines this for functions which it implements
7941 to always fail with ENOSYS. Some functions are actually named
7942 something starting with __ and the normal name is an alias. */
7943 #if defined __stub_$ac_func || defined __stub___$ac_func
7944 choke me
7945 #endif
7948 main ()
7950 return $ac_func ();
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_link") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest$ac_exeext && {
7973 test "$cross_compiling" = yes ||
7974 $as_test_x conftest$ac_exeext
7975 }; then
7976 eval "$as_ac_var=yes"
7977 else
7978 $as_echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 eval "$as_ac_var=no"
7984 rm -rf conftest.dSYM
7985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7986 conftest$ac_exeext conftest.$ac_ext
7988 ac_res=`eval 'as_val=${'$as_ac_var'}
7989 $as_echo "$as_val"'`
7990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7991 $as_echo "$ac_res" >&6; }
7992 as_val=`eval 'as_val=${'$as_ac_var'}
7993 $as_echo "$as_val"'`
7994 if test "x$as_val" = x""yes; then
7995 cat >>confdefs.h <<_ACEOF
7996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7997 _ACEOF
8000 done
8002 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8003 $as_echo_n "checking for working mmap... " >&6; }
8004 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8005 $as_echo_n "(cached) " >&6
8006 else
8007 if test "$cross_compiling" = yes; then
8008 ac_cv_func_mmap_fixed_mapped=no
8009 else
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 /* malloc might have been renamed as rpl_malloc. */
8018 #undef malloc
8020 /* Thanks to Mike Haertel and Jim Avera for this test.
8021 Here is a matrix of mmap possibilities:
8022 mmap private not fixed
8023 mmap private fixed at somewhere currently unmapped
8024 mmap private fixed at somewhere already mapped
8025 mmap shared not fixed
8026 mmap shared fixed at somewhere currently unmapped
8027 mmap shared fixed at somewhere already mapped
8028 For private mappings, we should verify that changes cannot be read()
8029 back from the file, nor mmap's back from the file at a different
8030 address. (There have been systems where private was not correctly
8031 implemented like the infamous i386 svr4.0, and systems where the
8032 VM page cache was not coherent with the file system buffer cache
8033 like early versions of FreeBSD and possibly contemporary NetBSD.)
8034 For shared mappings, we should conversely verify that changes get
8035 propagated back to all the places they're supposed to be.
8037 Grep wants private fixed already mapped.
8038 The main things grep needs to know about mmap are:
8039 * does it exist and is it safe to write into the mmap'd area
8040 * how to use it (BSD variants) */
8042 #include <fcntl.h>
8043 #include <sys/mman.h>
8045 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8046 char *malloc ();
8047 #endif
8049 /* This mess was copied from the GNU getpagesize.h. */
8050 #ifndef HAVE_GETPAGESIZE
8051 /* Assume that all systems that can run configure have sys/param.h. */
8052 # ifndef HAVE_SYS_PARAM_H
8053 # define HAVE_SYS_PARAM_H 1
8054 # endif
8056 # ifdef _SC_PAGESIZE
8057 # define getpagesize() sysconf(_SC_PAGESIZE)
8058 # else /* no _SC_PAGESIZE */
8059 # ifdef HAVE_SYS_PARAM_H
8060 # include <sys/param.h>
8061 # ifdef EXEC_PAGESIZE
8062 # define getpagesize() EXEC_PAGESIZE
8063 # else /* no EXEC_PAGESIZE */
8064 # ifdef NBPG
8065 # define getpagesize() NBPG * CLSIZE
8066 # ifndef CLSIZE
8067 # define CLSIZE 1
8068 # endif /* no CLSIZE */
8069 # else /* no NBPG */
8070 # ifdef NBPC
8071 # define getpagesize() NBPC
8072 # else /* no NBPC */
8073 # ifdef PAGESIZE
8074 # define getpagesize() PAGESIZE
8075 # endif /* PAGESIZE */
8076 # endif /* no NBPC */
8077 # endif /* no NBPG */
8078 # endif /* no EXEC_PAGESIZE */
8079 # else /* no HAVE_SYS_PARAM_H */
8080 # define getpagesize() 8192 /* punt totally */
8081 # endif /* no HAVE_SYS_PARAM_H */
8082 # endif /* no _SC_PAGESIZE */
8084 #endif /* no HAVE_GETPAGESIZE */
8087 main ()
8089 char *data, *data2, *data3;
8090 int i, pagesize;
8091 int fd;
8093 pagesize = getpagesize ();
8095 /* First, make a file with some known garbage in it. */
8096 data = (char *) malloc (pagesize);
8097 if (!data)
8098 return 1;
8099 for (i = 0; i < pagesize; ++i)
8100 *(data + i) = rand ();
8101 umask (0);
8102 fd = creat ("conftest.mmap", 0600);
8103 if (fd < 0)
8104 return 1;
8105 if (write (fd, data, pagesize) != pagesize)
8106 return 1;
8107 close (fd);
8109 /* Next, try to mmap the file at a fixed address which already has
8110 something else allocated at it. If we can, also make sure that
8111 we see the same garbage. */
8112 fd = open ("conftest.mmap", O_RDWR);
8113 if (fd < 0)
8114 return 1;
8115 data2 = (char *) malloc (2 * pagesize);
8116 if (!data2)
8117 return 1;
8118 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8119 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8120 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8121 return 1;
8122 for (i = 0; i < pagesize; ++i)
8123 if (*(data + i) != *(data2 + i))
8124 return 1;
8126 /* Finally, make sure that changes to the mapped area do not
8127 percolate back to the file as seen by read(). (This is a bug on
8128 some variants of i386 svr4.0.) */
8129 for (i = 0; i < pagesize; ++i)
8130 *(data2 + i) = *(data2 + i) + 1;
8131 data3 = (char *) malloc (pagesize);
8132 if (!data3)
8133 return 1;
8134 if (read (fd, data3, pagesize) != pagesize)
8135 return 1;
8136 for (i = 0; i < pagesize; ++i)
8137 if (*(data + i) != *(data3 + i))
8138 return 1;
8139 close (fd);
8140 return 0;
8142 _ACEOF
8143 rm -f conftest$ac_exeext
8144 if { (ac_try="$ac_link"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150 $as_echo "$ac_try_echo") >&5
8151 (eval "$ac_link") 2>&5
8152 ac_status=$?
8153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_try") 2>&5
8162 ac_status=$?
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_cv_func_mmap_fixed_mapped=yes
8166 else
8167 $as_echo "$as_me: program exited with status $ac_status" >&5
8168 $as_echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ( exit $ac_status )
8172 ac_cv_func_mmap_fixed_mapped=no
8174 rm -rf conftest.dSYM
8175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8180 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8181 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8184 cat >>confdefs.h <<\_ACEOF
8185 #define HAVE_MMAP 1
8186 _ACEOF
8189 rm -f conftest.mmap
8194 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8195 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8196 aros_config_ldflags=""
8198 aros_shared_default=yes
8200 aros_shared_cflags="-fPIC"
8201 aros_shared_aflags=""
8202 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8203 aros_kernel_ldflags="-Wl,-rpath,./lib"
8205 aros_target_ar_flags="cr"
8206 aros_target_nm_flags="-C -ul"
8207 aros_target_strip_flags="--strip-unneeded -R.comment"
8209 aros_compiler_libs=
8211 aros_target_genmap="-Wl,-Map -Xlinker"
8213 # Native flavour stuff
8214 aros_bochs_hack="0"
8215 aros_serial_debug="0"
8217 # Palm native flavour stuff
8218 aros_palm_debug_hack="0"
8220 # Unix flavour stuff
8221 aros_nesting_supervisor="0"
8223 # Collect-aros stuff: "-ius" to ignore undefined symbols
8224 ignore_undefined_symbols=""
8226 #-----------------------------------------------------------------------------
8229 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
8230 # it switched on by default, and we use the host compiler, so it compiles AROS
8231 # code with this enabled resulting in link failures as we don't have support
8232 # for it.
8234 # We use two methods to disable it. For the host compiler (used to compile
8235 # some hosted modules), we test to see if the compiler supports stack
8236 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
8237 # work on all platforms.
8239 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
8240 # (this is done unconditionally, as it should have no effect on compilers
8241 # without the stack protection feature). This may be specific to the way that
8242 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
8243 # strong enough to disable it in a generic way though, so we'll live with it
8244 # until another vendor ships GCC with it enabled in a different way, and deal
8245 # with it then.
8248 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8249 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
8250 save_cflags="$CFLAGS"
8251 CFLAGS="$CFLAGS -fno-stack-protector"
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8260 main ()
8264 return 0;
8266 _ACEOF
8267 rm -f conftest.$ac_objext
8268 if { (ac_try="$ac_compile"
8269 case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272 esac
8273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8274 $as_echo "$ac_try_echo") >&5
8275 (eval "$ac_compile") 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
8284 } && test -s conftest.$ac_objext; then
8285 use_no_stack_protector="yes"
8286 else
8287 $as_echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 use_no_stack_protector="no"
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 { $as_echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8295 $as_echo "$use_no_stack_protector" >&6; }
8296 if test "x-$use_no_stack_protector" = "x-yes" ; then
8297 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8299 CFLAGS="$save_cflags"
8302 #-----------------------------------------------------------------------------
8304 # Disable pointer-signedness warnings if the compiler recognises the option
8305 # (this only works for the host compiler at the moment)
8307 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8308 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8309 save_cflags="$CFLAGS"
8310 CFLAGS="$CFLAGS -Wno-pointer-sign"
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8319 main ()
8323 return 0;
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331 esac
8332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8333 $as_echo "$ac_try_echo") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest.$ac_objext; then
8344 use_no_sign_warning="yes"
8345 else
8346 $as_echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 use_no_sign_warning="no"
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8354 $as_echo "$use_no_sign_warning" >&6; }
8355 if test "x-$use_no_sign_warning" = "x-yes" ; then
8356 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8358 CFLAGS="$save_cflags"
8360 #-----------------------------------------------------------------------------
8362 { $as_echo "$as_me:$LINENO: checking for type of build" >&5
8363 $as_echo_n "checking for type of build... " >&6; }
8364 # Check whether --enable-build_type was given.
8365 if test "${enable_build_type+set}" = set; then
8366 enableval=$enable_build_type; build_type=$enableval
8367 else
8368 build_type="personal"
8372 if test "$build_type" = "nightly"; then
8373 build_type_string="NIGHTLY"
8374 elif test "$build_type" = "snapshot"; then
8375 build_type_string="SNAPSHOT"
8376 elif test "$build_type" = "milestone"; then
8377 build_type_string="MILESTONE"
8378 elif test "$build_type" = "release"; then
8379 build_type_string="RELEASE"
8380 else
8381 build_type_string="PERSONAL"
8382 build_type="personal"
8385 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8387 { $as_echo "$as_me:$LINENO: result: $build_type" >&5
8388 $as_echo "$build_type" >&6; }
8390 #-----------------------------------------------------------------------------
8391 all_debug_types="messages stack mungwall modules symbols"
8393 { $as_echo "$as_me:$LINENO: checking which debug types to enable" >&5
8394 $as_echo_n "checking which debug types to enable... " >&6; }
8395 # Check whether --enable-debug was given.
8396 if test "${enable_debug+set}" = set; then
8397 enableval=$enable_debug; debug="$enableval"
8398 else
8399 debug=""
8403 if test "$debug" = "" -o "$debug" = "no"; then
8404 debug="none"
8405 elif test "$debug" = "yes"; then
8406 debug="all"
8409 if test "$debug" = "all" ; then
8410 debug=$all_debug_types
8411 for d in $all_debug_types; do
8412 export aros_${d}_debug="1"
8413 done
8414 else
8415 for d in $all_debug_types; do
8416 export aros_${d}_debug="0"
8417 done
8420 if test "$debug" != "none"; then
8421 debug=`echo $debug | sed s/,/\ /g`
8422 for d in $debug; do
8423 found="0"
8424 for d2 in $all_debug_types; do
8425 if test "$d2" = "$d"; then
8426 found="1"
8427 break
8429 done
8430 if test "$found" = "0"; then
8431 { { $as_echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8432 $as_echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8433 { (exit 1); exit 1; }; }
8435 export aros_${d}_debug="1"
8436 done
8437 aros_debug="yes"
8439 { $as_echo "$as_me:$LINENO: result: $debug" >&5
8440 $as_echo "$debug" >&6; }
8442 if test "$aros_messages_debug" = "1"; then
8443 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8444 else
8445 aros_messages_debug=""
8447 if test "$aros_symbols_debug" = "1"; then
8448 aros_symbols_debug="-g"
8449 else
8450 aros_symbols_debug=""
8453 # These are the flags to pass when compiling debugged programs
8454 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8455 aros_debug_aflags=""
8456 aros_debug_ldflags="$aros_symbols_debug"
8458 aros_crosstools="no"
8460 #-----------------------------------------------------------------------------
8461 # Checking if we should build crosstools..
8462 { $as_echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8463 $as_echo_n "checking whether to build crosstools... " >&6; }
8464 # Check whether --enable-crosstools was given.
8465 if test "${enable_crosstools+set}" = set; then
8466 enableval=$enable_crosstools; crosstools="$enableval"
8467 else
8468 crosstools="no"
8471 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8472 { $as_echo "$as_me:$LINENO: result: yes" >&5
8473 $as_echo "yes" >&6; }
8474 aros_crosstools="yes"
8475 else
8476 { $as_echo "$as_me:$LINENO: result: no" >&5
8477 $as_echo "no" >&6; }
8480 #-----------------------------------------------------------------------------
8481 # Checking for distcc and ccache.
8483 # Always apply the transforms in this particular order. Basically you should
8484 # always run 'ccache distcc compiler' in that order for the best performance.
8486 { $as_echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8487 $as_echo_n "checking whether to enable distcc... " >&6; }
8488 # Check whether --enable-distcc was given.
8489 if test "${enable_distcc+set}" = set; then
8490 enableval=$enable_distcc; distcc="$enableval"
8491 else
8492 distcc="no"
8495 if test "$distcc" != "" -a "$distcc" != "no"; then
8496 # AC_CHECK_PROG will print out the result in this case
8497 # Extract the first word of "distcc", so it can be a program name with args.
8498 set dummy distcc; ac_word=$2
8499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_path_DISTCC+set}" = set; then
8502 $as_echo_n "(cached) " >&6
8503 else
8504 case $DISTCC in
8505 [\\/]* | ?:[\\/]*)
8506 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8520 done
8521 done
8522 IFS=$as_save_IFS
8524 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8526 esac
8528 DISTCC=$ac_cv_path_DISTCC
8529 if test -n "$DISTCC"; then
8530 { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
8531 $as_echo "$DISTCC" >&6; }
8532 else
8533 { $as_echo "$as_me:$LINENO: result: no" >&5
8534 $as_echo "no" >&6; }
8538 else
8539 { $as_echo "$as_me:$LINENO: result: no" >&5
8540 $as_echo "no" >&6; }
8543 { $as_echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8544 $as_echo_n "checking whether to enable ccache... " >&6; }
8545 # Check whether --enable-ccache was given.
8546 if test "${enable_ccache+set}" = set; then
8547 enableval=$enable_ccache; ccache="$enableval"
8548 else
8549 ccache="no"
8552 if test "$ccache" != "" -a "$ccache" != "no"; then
8553 # AC_CHECK_PROG will print out the result in this case
8554 # Extract the first word of "ccache", so it can be a program name with args.
8555 set dummy ccache; ac_word=$2
8556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if test "${ac_cv_prog_CCACHE+set}" = set; then
8559 $as_echo_n "(cached) " >&6
8560 else
8561 if test -n "$CCACHE"; then
8562 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8563 else
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_prog_CCACHE="ccache"
8572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8575 done
8576 done
8577 IFS=$as_save_IFS
8581 CCACHE=$ac_cv_prog_CCACHE
8582 if test -n "$CCACHE"; then
8583 { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
8584 $as_echo "$CCACHE" >&6; }
8585 else
8586 { $as_echo "$as_me:$LINENO: result: no" >&5
8587 $as_echo "no" >&6; }
8591 else
8592 { $as_echo "$as_me:$LINENO: result: no" >&5
8593 $as_echo "no" >&6; }
8596 #-----------------------------------------------------------------------------
8597 { $as_echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8598 $as_echo_n "checking what optimization flags to use... " >&6; }
8600 # Check whether --with-optimization was given.
8601 if test "${with_optimization+set}" = set; then
8602 withval=$with_optimization; optimization="$withval"
8603 else
8604 optimization="unknown"
8607 if test "$optimization" = "unknown"; then
8608 if test "$debug" != "none"; then
8609 optimization="-O0"
8610 else
8611 optimization="-O2"
8614 aros_config_cflags="$aros_config_cflags $optimization"
8615 { $as_echo "$as_me:$LINENO: result: $optimization" >&5
8616 $as_echo "$optimization" >&6; }
8618 #-----------------------------------------------------------------------------
8619 { $as_echo "$as_me:$LINENO: checking what target variant to enable" >&5
8620 $as_echo_n "checking what target variant to enable... " >&6; }
8621 # Check whether --enable-target_variant was given.
8622 if test "${enable_target_variant+set}" = set; then
8623 enableval=$enable_target_variant; target_variant=$enableval
8624 else
8625 target_variant="none"
8628 if test "$target_variant" = "none"; then
8629 aros_target_variant=""
8630 aros_target_suffix=""
8631 else
8632 aros_target_variant="$target_variant"
8633 aros_target_suffix="-$target_variant"
8635 { $as_echo "$as_me:$LINENO: result: $enableval" >&5
8636 $as_echo "$enableval" >&6; }
8638 target_bootloader="none"
8640 #-----------------------------------------------------------------------------
8641 # This is the target configuration switch.
8642 case "$target_os" in
8643 linux*)
8644 aros_target_arch="linux"
8645 case "$target_cpu" in
8646 *m68k*)
8647 aros_target_cpu="m68k"
8648 aros_object_format="m68kelf"
8649 aros_flavour="emulcompat"
8650 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8651 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8652 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8653 gcc_target_cpu="mc68000"
8655 *i?86*)
8656 aros_target_cpu="i386"
8657 aros_object_format="elf_i386"
8658 aros_flavour="emulation"
8659 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8660 aros_default_wbdepth=8
8661 gcc_target_cpu="i386"
8663 *x86_64*)
8664 aros_target_cpu="x86_64"
8665 aros_object_format="elf_x86_64"
8666 aros_flavour="emulation"
8667 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8668 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8669 aros_default_wbdepth=8
8670 gcc_target_cpu="x86_64"
8672 *powerpc*)
8673 aros_target_cpu="ppc"
8674 aros_object_format="elf32ppc"
8675 aros_flavour="emulation"
8676 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8677 aros_default_wbdepth=8
8678 gcc_target_cpu="ppc"
8680 # TODO
8681 # Same as powerpc, but I need this for the nightly build to work again.
8682 # Actually, the nightly should be made working with powerpc target.
8683 # That just was too much work for the moment, another week or two.
8684 *ppc*)
8685 aros_target_cpu="ppc"
8686 aros_object_format="elf32ppc"
8687 aros_flavour="emulation"
8688 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8689 aros_default_wbdepth=8
8690 gcc_target_cpu="ppc"
8693 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8694 $as_echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8695 { (exit 1); exit 1; }; }
8697 esac
8701 aros_target_arch="pc"
8702 aros_shared_default="no"
8703 target_bootloader="grub2"
8704 case "$target_cpu" in
8705 *i?86*)
8706 aros_target_cpu="i386"
8709 if test "$aros_object_format" = "" ; then
8710 aros_object_format="elf_i386"
8712 aros_flavour="standalone"
8713 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8714 aros_kernel_ldflags=""
8715 aros_default_wbwidth=640
8716 aros_default_wbheight=480
8717 gcc_target_cpu="i386"
8719 *x86_64*)
8720 aros_target_cpu="x86_64"
8721 aros_serial_debug=1
8722 if test "$aros_object_format" = "" ; then
8723 aros_object_format="elf_x86_64"
8725 aros_flavour="standalone"
8726 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8727 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8728 aros_kernel_ldflags=""
8729 aros_default_wbwidth=640
8730 aros_default_wbheight=480
8731 gcc_target_cpu="x86_64"
8734 { { $as_echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8735 $as_echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8736 { (exit 1); exit 1; }; }
8738 esac
8741 prep)
8742 aros_target_arch="prep"
8743 aros_shared_default="no"
8744 aros_target_cpu="ppc"
8745 aros_object_format="elf32ppc"
8746 aros_flavour="ppcnative"
8747 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8748 aros_kernel_ldflags=""
8749 aros_default_wbwidth=640
8750 aros_default_wbheight=480
8751 gcc_target_cpu="ppc"
8754 freebsd*)
8755 aros_target_arch="freebsd"
8756 aros_target_cpu="i386"
8757 aros_flavour="emulation"
8758 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8759 gcc_target_cpu="i386"
8761 aros_target_strip_flags="-x"
8764 darwin*)
8765 aros_target_arch="darwin"
8766 aros_flavour="emulation"
8767 need_dlopen="no"
8768 case "$target_cpu" in
8769 *i?86*)
8770 aros_target_cpu="i386"
8771 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8772 gcc_target_cpu="i386"
8773 aros_object_format="elf_i386"
8774 aros_target_strip_flags="-x"
8777 { { $as_echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8778 $as_echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8779 { (exit 1); exit 1; }; }
8781 esac
8783 netbsd*)
8784 aros_target_arch="netbsd"
8785 case "$target_cpu" in
8786 *m68k*)
8787 aros_target_cpu="m68k"
8788 aros_object_format="m68kelf"
8789 aros_flavour="emulcompat"
8790 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8791 gcc_target_cpu="mc68000"
8793 *i?86*)
8794 aros_target_cpu="i386"
8795 aros_object_format="elf_i386"
8796 aros_flavour="emulation"
8797 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8798 aros_default_wbdepth=8
8799 gcc_target_cpu="i386"
8802 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8803 $as_echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8804 { (exit 1); exit 1; }; }
8806 esac
8807 aros_target_genmap="-Wl,-M -Xlinker >"
8808 aros_flavour="emulation"
8809 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8812 openbsd*)
8813 aros_target_arch="openbsd"
8814 case "$target_cpu" in
8815 *i?86*)
8816 aros_target_cpu="i386"
8817 aros_object_format="elf_i386"
8818 aros_flavour="emulation"
8819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8820 gcc_target_cpu="i386"
8823 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8824 $as_echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8825 { (exit 1); exit 1; }; }
8827 esac
8828 aros_target_genmap="-Wl,-M -Xlinker >"
8829 aros_target_nm_flags="-u"
8830 aros_flavour="emulation"
8833 solaris*)
8834 aros_target_arch="solaris"
8835 case "$target_cpu" in
8836 *i?86*)
8837 aros_target_cpu="i386"
8838 aros_object_format="elf_i386"
8839 aros_flavour="emulation"
8840 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8841 aros_default_wbdepth=8
8842 gcc_target_cpu="i386"
8844 *sparc*)
8845 aros_target_cpu="sparc"
8846 aros_object_format="elf_sparc"
8847 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8848 gcc_target_cpu="sparc"
8851 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8852 $as_echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8853 { (exit 1); exit 1; }; }
8855 esac
8856 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8857 aros_flavour="emulation"
8860 morphos*)
8861 aros_target_arch="morphos"
8862 aros_shared_default="no"
8863 aros_target_cpu="ppc"
8864 aros_object_format="elf_ppc"
8865 aros_flavour="nativecompat"
8866 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8867 gcc_target_cpu="ppc"
8870 sam440)
8871 aros_target_arch="sam440"
8872 aros_shared_default="no"
8873 aros_target_cpu="ppc"
8874 aros_object_format="elf32ppc"
8875 aros_flavour="ppcnative"
8876 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8877 aros_kernel_ldflags=""
8878 aros_default_wbwidth=640
8879 aros_default_wbheight=480
8880 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8881 gcc_target_cpu="powerpc"
8884 chrp)
8885 aros_target_arch="chrp"
8886 aros_shared_default="no"
8887 aros_target_cpu="ppc"
8888 aros_object_format="elf32ppc"
8889 aros_flavour="ppcnative"
8890 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8891 aros_kernel_ldflags=""
8892 aros_default_wbwidth=640
8893 aros_default_wbheight=480
8894 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8895 gcc_target_cpu="powerpc"
8896 case "$aros_target_variant" in
8897 efika)
8898 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8900 esac
8903 amiga*)
8904 aros_target_arch="amiga"
8905 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8906 aros_shared_default="no"
8908 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8910 case "$target_cpu" in
8911 *m68k*)
8912 aros_target_cpu="m68k"
8913 aros_object_format="m68kelf"
8914 aros_flavour="nativecompat"
8915 gcc_target_cpu="mc68000"
8917 *ppc*)
8918 aros_cpu="ppc"
8919 aros_flavour="native"
8920 gcc_target_cpu="ppc"
8923 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8924 $as_echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8925 { (exit 1); exit 1; }; }
8927 esac
8930 mingw32*)
8931 aros_target_arch="mingw32"
8932 aros_shared_default="no"
8933 need_dlopen="no"
8934 rescomp="windres"
8935 case "$target_cpu" in
8936 *i?86*)
8937 aros_target_cpu="i386"
8938 aros_object_format="elf_i386"
8939 aros_flavour="emulation"
8940 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8941 aros_shared_cflags=""
8942 aros_default_wbdepth=8
8943 gcc_target_cpu="i386"
8944 aros_target_cc="i386-aros-gcc"
8945 aros_target_ld="i386-aros-ld"
8946 aros_target_as="i386-aros-as"
8947 aros_target_ar="i386-aros-ar"
8948 aros_target_ranlib="i386-aros-ranlib"
8949 aros_target_nm="i386-aros-nm"
8950 aros_target_strip="i386-aros-strip"
8951 aros_target_objcopy="i386-aros-objcopy"
8952 aros_target_objdump="i386-aros-objdump"
8953 target_tool_prefix="i386-mingw32-"
8956 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8957 $as_echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8958 { (exit 1); exit 1; }; }
8960 esac
8961 if test $host_os = "cygwin"; then
8962 aros_kernel_cflags="-mno-cygwin"
8965 pp*)
8966 aros_target_arch="pp"
8967 aros_shared_default="no"
8968 case "$target_cpu" in
8969 *m68k*)
8970 aros_target_cpu="m68k"
8971 aros_object_format="m68kelf"
8972 aros_flavour="palmnative"
8973 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8974 aros_kernel_ldflags=""
8975 aros_default_wbwidth=160
8976 aros_default_wbheight=160
8977 aros_default_wbdepth=1
8978 aros_target_ar_flags="cru"
8979 aros_compiler_libs="-lgcc1"
8980 aros_shared_default=no
8981 aros_shared_cflags="-fpic"
8982 aros_shared_aflags=""
8983 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8984 aros_kernel_ldflags="-Wl,-rpath,./lib"
8985 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8986 aros_debug_aflags=""
8987 aros_debug_ldflags="$aros_symbols_debug"
8988 aros_mungwall_debug="0"
8989 aros_modules_debug="0"
8990 gcc_target_cpu="mc68000"
8991 ignore_undefined_symbols="-ius"
8994 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8995 $as_echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8996 { (exit 1); exit 1; }; }
8998 esac
9001 mac*)
9002 aros_target_arch="mac"
9003 aros_shared_default="no"
9004 case "$target_cpu" in
9005 *m68k*)
9006 aros_target_cpu="m68k"
9007 aros_object_format="m68kelf"
9008 aros_flavour="mac68knative"
9009 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9010 aros_default_wbwidth=512
9011 aros_default_wbheight=384
9012 aros_default_wbdepth=8
9013 aros_target_ar_flags="cru"
9014 aros_compiler_libs="-lgcc1"
9015 aros_shared_default=no
9016 aros_shared_cflags="-fpic"
9017 aros_shared_aflags=""
9018 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9019 aros_kernel_ldflags="-Wl,-rpath,./lib"
9020 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9021 aros_debug_aflags=""
9022 aros_debug_ldflags="$aros_symbols_debug"
9023 aros_mungwall_debug="0"
9024 aros_modules_debug="0"
9025 gcc_target_cpu="mc68000"
9026 ignore_undefined_symbols="-ius"
9029 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9030 $as_echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9031 { (exit 1); exit 1; }; }
9033 esac
9037 { { $as_echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9038 $as_echo "$as_me: error: Unsupported target architecture $target" >&2;}
9039 { (exit 1); exit 1; }; }
9041 esac
9043 { $as_echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9044 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
9046 # Check whether --with-portssources was given.
9047 if test "${with_portssources+set}" = set; then
9048 withval=$with_portssources; with_portssrcdir=$withval
9049 else
9050 with_portssrcdir="default"
9053 if test "$with_portssrcdir" = "default"; then
9054 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
9055 else
9056 AROS_PORTSSRCDIR="$with_portssrcdir"
9058 { $as_echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9059 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9061 { $as_echo "$as_me:$LINENO: checking which bootloader to use" >&5
9062 $as_echo_n "checking which bootloader to use... " >&6; }
9064 # Check whether --with-bootloader was given.
9065 if test "${with_bootloader+set}" = set; then
9066 withval=$with_bootloader; target_bootloader=$withval
9067 else
9068 target_bootloader=$target_bootloader
9071 if test "$target_bootloader" = "none"; then
9072 aros_target_bootloader=""
9073 else
9074 aros_target_bootloader="$target_bootloader"
9076 { $as_echo "$as_me:$LINENO: result: $target_bootloader" >&5
9077 $as_echo "$target_bootloader" >&6; }
9079 { $as_echo "$as_me:$LINENO: checking which icon-set to use" >&5
9080 $as_echo_n "checking which icon-set to use... " >&6; }
9082 # Check whether --with-iconset was given.
9083 if test "${with_iconset+set}" = set; then
9084 withval=$with_iconset; target_iconset=$withval
9085 else
9086 target_iconset="default"
9089 if test "$target_iconset" = "default"; then
9090 aros_target_iconset="Gorilla"
9091 target_iconset="default (Gorilla)"
9092 else
9093 aros_target_iconset="$target_iconset"
9095 { $as_echo "$as_me:$LINENO: result: $target_iconset" >&5
9096 $as_echo "$target_iconset" >&6; }
9098 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
9099 aros_liblzo_check="no"
9100 case "$aros_target_bootloader" in
9101 grub2*)
9102 case "$target_cpu" in
9103 *i?86*)
9104 aros_liblzo_check="yes"
9106 *x86_64*)
9107 aros_liblzo_check="yes"
9111 esac
9116 esac
9118 if test "$aros_liblzo_check" = "yes"; then
9119 # There are three possibilities. LZO version 2 installed with the name
9120 # liblzo2, with the name liblzo, and LZO version 1.
9121 { $as_echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
9122 $as_echo_n "checking for __lzo_init_v2 in -llzo2... " >&6; }
9123 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
9124 $as_echo_n "(cached) " >&6
9125 else
9126 ac_check_lib_save_LIBS=$LIBS
9127 LIBS="-llzo2 $LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h. */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 char __lzo_init_v2 ();
9143 main ()
9145 return __lzo_init_v2 ();
9147 return 0;
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (ac_try="$ac_link"
9152 case "(($ac_try" in
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9155 esac
9156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9157 $as_echo "$ac_try_echo") >&5
9158 (eval "$ac_link") 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } && {
9165 test -z "$ac_c_werror_flag" ||
9166 test ! -s conftest.err
9167 } && test -s conftest$ac_exeext && {
9168 test "$cross_compiling" = yes ||
9169 $as_test_x conftest$ac_exeext
9170 }; then
9171 ac_cv_lib_lzo2___lzo_init_v2=yes
9172 else
9173 $as_echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_cv_lib_lzo2___lzo_init_v2=no
9179 rm -rf conftest.dSYM
9180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9181 conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9184 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
9185 $as_echo "$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
9186 if test "x$ac_cv_lib_lzo2___lzo_init_v2" = x""yes; then
9187 LIBLZO="-llzo2"
9188 else
9189 { $as_echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
9190 $as_echo_n "checking for __lzo_init_v2 in -llzo... " >&6; }
9191 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
9192 $as_echo_n "(cached) " >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-llzo $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char __lzo_init_v2 ();
9211 main ()
9213 return __lzo_init_v2 ();
9215 return 0;
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9225 $as_echo "$ac_try_echo") >&5
9226 (eval "$ac_link") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest$ac_exeext && {
9236 test "$cross_compiling" = yes ||
9237 $as_test_x conftest$ac_exeext
9238 }; then
9239 ac_cv_lib_lzo___lzo_init_v2=yes
9240 else
9241 $as_echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_lib_lzo___lzo_init_v2=no
9247 rm -rf conftest.dSYM
9248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9249 conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
9253 $as_echo "$ac_cv_lib_lzo___lzo_init_v2" >&6; }
9254 if test "x$ac_cv_lib_lzo___lzo_init_v2" = x""yes; then
9255 LIBLZO="-llzo"
9256 else
9257 { $as_echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
9258 $as_echo_n "checking for __lzo_init2 in -llzo... " >&6; }
9259 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
9260 $as_echo_n "(cached) " >&6
9261 else
9262 ac_check_lib_save_LIBS=$LIBS
9263 LIBS="-llzo $LIBS"
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 char __lzo_init2 ();
9279 main ()
9281 return __lzo_init2 ();
9283 return 0;
9285 _ACEOF
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (ac_try="$ac_link"
9288 case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291 esac
9292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9293 $as_echo "$ac_try_echo") >&5
9294 (eval "$ac_link") 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && {
9301 test -z "$ac_c_werror_flag" ||
9302 test ! -s conftest.err
9303 } && test -s conftest$ac_exeext && {
9304 test "$cross_compiling" = yes ||
9305 $as_test_x conftest$ac_exeext
9306 }; then
9307 ac_cv_lib_lzo___lzo_init2=yes
9308 else
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 ac_cv_lib_lzo___lzo_init2=no
9315 rm -rf conftest.dSYM
9316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
9321 $as_echo "$ac_cv_lib_lzo___lzo_init2" >&6; }
9322 if test "x$ac_cv_lib_lzo___lzo_init2" = x""yes; then
9323 LIBLZO="-llzo"
9324 else
9325 { { $as_echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
9326 $as_echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
9327 { (exit 1); exit 1; }; }
9336 LIBS="$LIBS $LIBLZO"
9337 { $as_echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
9338 $as_echo_n "checking for lzo1x_999_compress... " >&6; }
9339 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
9349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9350 #define lzo1x_999_compress innocuous_lzo1x_999_compress
9352 /* System header to define __stub macros and hopefully few prototypes,
9353 which can conflict with char lzo1x_999_compress (); below.
9354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355 <limits.h> exists even on freestanding compilers. */
9357 #ifdef __STDC__
9358 # include <limits.h>
9359 #else
9360 # include <assert.h>
9361 #endif
9363 #undef lzo1x_999_compress
9365 /* Override any GCC internal prototype to avoid an error.
9366 Use char because int might match the return type of a GCC
9367 builtin and then its argument prototype would still apply. */
9368 #ifdef __cplusplus
9369 extern "C"
9370 #endif
9371 char lzo1x_999_compress ();
9372 /* The GNU C library defines this for functions which it implements
9373 to always fail with ENOSYS. Some functions are actually named
9374 something starting with __ and the normal name is an alias. */
9375 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
9376 choke me
9377 #endif
9380 main ()
9382 return lzo1x_999_compress ();
9384 return 0;
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9389 case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392 esac
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395 (eval "$ac_link") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest$ac_exeext && {
9405 test "$cross_compiling" = yes ||
9406 $as_test_x conftest$ac_exeext
9407 }; then
9408 ac_cv_func_lzo1x_999_compress=yes
9409 else
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_cv_func_lzo1x_999_compress=no
9416 rm -rf conftest.dSYM
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9420 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9421 $as_echo "$ac_cv_func_lzo1x_999_compress" >&6; }
9422 if test "x$ac_cv_func_lzo1x_999_compress" = x""yes; then
9424 else
9425 { { $as_echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9426 $as_echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9427 { (exit 1); exit 1; }; }
9431 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9434 for ac_header in lzo/lzo1x.h lzo1x.h
9436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 $as_echo_n "checking for $ac_header... " >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441 $as_echo_n "(cached) " >&6
9443 ac_res=`eval 'as_val=${'$as_ac_Header'}
9444 $as_echo "$as_val"'`
9445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9446 $as_echo "$ac_res" >&6; }
9447 else
9448 # Is the header compilable?
9449 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9450 $as_echo_n "checking $ac_header usability... " >&6; }
9451 cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h. */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9457 $ac_includes_default
9458 #include <$ac_header>
9459 _ACEOF
9460 rm -f conftest.$ac_objext
9461 if { (ac_try="$ac_compile"
9462 case "(($ac_try" in
9463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464 *) ac_try_echo=$ac_try;;
9465 esac
9466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9467 $as_echo "$ac_try_echo") >&5
9468 (eval "$ac_compile") 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest.$ac_objext; then
9478 ac_header_compiler=yes
9479 else
9480 $as_echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 ac_header_compiler=no
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9488 $as_echo "$ac_header_compiler" >&6; }
9490 # Is the header present?
9491 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9492 $as_echo_n "checking $ac_header presence... " >&6; }
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499 #include <$ac_header>
9500 _ACEOF
9501 if { (ac_try="$ac_cpp conftest.$ac_ext"
9502 case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505 esac
9506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9507 $as_echo "$ac_try_echo") >&5
9508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } >/dev/null && {
9515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 }; then
9518 ac_header_preproc=yes
9519 else
9520 $as_echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_header_preproc=no
9526 rm -f conftest.err conftest.$ac_ext
9527 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9528 $as_echo "$ac_header_preproc" >&6; }
9530 # So? What about this header?
9531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9532 yes:no: )
9533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9534 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9536 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9537 ac_header_preproc=yes
9539 no:yes:* )
9540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9545 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9547 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9551 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9554 esac
9555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9556 $as_echo_n "checking for $ac_header... " >&6; }
9557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9558 $as_echo_n "(cached) " >&6
9559 else
9560 eval "$as_ac_Header=\$ac_header_preproc"
9562 ac_res=`eval 'as_val=${'$as_ac_Header'}
9563 $as_echo "$as_val"'`
9564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9565 $as_echo "$ac_res" >&6; }
9568 as_val=`eval 'as_val=${'$as_ac_Header'}
9569 $as_echo "$as_val"'`
9570 if test "x$as_val" = x""yes; then
9571 cat >>confdefs.h <<_ACEOF
9572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9573 _ACEOF
9577 done
9581 { $as_echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9582 $as_echo_n "checking which GUI Theme to use... " >&6; }
9584 # Check whether --with-theme was given.
9585 if test "${with_theme+set}" = set; then
9586 withval=$with_theme; target_guitheme=$withval
9587 else
9588 target_guitheme="default"
9591 if test "$target_guitheme" = "default"; then
9592 aros_target_guitheme="Ice"
9593 else
9594 aros_target_guitheme="$target_guitheme"
9596 { $as_echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9597 $as_echo "$aros_target_guitheme" >&6; }
9599 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9600 # for target code)
9601 cross_compiling=no
9602 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9603 cross_compiling=yes
9605 if test "$aros_host_arch" == "darwin" ; then
9606 cross_compiling=yes
9609 # Set prefix for target compiler etc. if we're cross-compiling
9610 # (should possibly be earlier but needs to be after AC_PROG_CC)
9611 if test "$cross_compiling" = "yes" ; then
9612 if test "$target_tool_prefix" = ""; then
9613 target_tool_prefix=${target_cpu}-elf-
9615 CC=${target_tool_prefix}gcc
9618 #-----------------------------------------------------------------------------
9620 # Disable pointer-signedness warnings if the compiler recognises the option
9622 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9623 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
9624 save_cflags="$CFLAGS"
9625 CFLAGS="$CFLAGS -Wno-pointer-sign"
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9634 main ()
9638 return 0;
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (ac_try="$ac_compile"
9643 case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646 esac
9647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9648 $as_echo "$ac_try_echo") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest.$ac_objext; then
9659 use_no_sign_warning="yes"
9660 else
9661 $as_echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 use_no_sign_warning="no"
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9669 $as_echo "$use_no_sign_warning" >&6; }
9670 if test "x-$use_no_sign_warning" = "x-yes" ; then
9671 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9673 CFLAGS="$save_cflags"
9675 #-----------------------------------------------------------------------------
9677 # Find all the tools we need to compile. This could be cross-compiling
9678 # though! If that is the case we use the GNU form of the target and
9679 # simply add this to the front of the binary name. This is rather simple,
9680 # but it should work under most circumstances.
9682 # The default tools are to use the same as the host, but only if the
9683 # host and target CPU are the same. With GCC this is normally enough.
9686 aros_cc_pre=""
9687 aros_shared_ld="$aros_host_ld"
9689 aros_target_mkdep="$aros_host_mkdep"
9690 aros_target_incl_def="$aros_host_incl"
9692 # Extract the first word of "$CC", so it can be a program name with args.
9693 set dummy $CC; ac_word=$2
9694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9695 $as_echo_n "checking for $ac_word... " >&6; }
9696 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9697 $as_echo_n "(cached) " >&6
9698 else
9699 case $aros_kernel_cc in
9700 [\\/]* | ?:[\\/]*)
9701 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705 for as_dir in $PATH
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9711 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 break 2
9715 done
9716 done
9717 IFS=$as_save_IFS
9720 esac
9722 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9723 if test -n "$aros_kernel_cc"; then
9724 { $as_echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9725 $as_echo "$aros_kernel_cc" >&6; }
9726 else
9727 { $as_echo "$as_me:$LINENO: result: no" >&5
9728 $as_echo "no" >&6; }
9733 # The default tools executables to be linked to.
9734 if test "$aros_target_cc" != ""; then
9735 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9736 set dummy $aros_target_cc; ac_word=$2
9737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9740 $as_echo_n "(cached) " >&6
9741 else
9742 case $aros_target_cc in
9743 [\\/]* | ?:[\\/]*)
9744 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 for as_dir in $PATH
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9754 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 break 2
9758 done
9759 done
9760 IFS=$as_save_IFS
9763 esac
9765 aros_target_cc=$ac_cv_path_aros_target_cc
9766 if test -n "$aros_target_cc"; then
9767 { $as_echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9768 $as_echo "$aros_target_cc" >&6; }
9769 else
9770 { $as_echo "$as_me:$LINENO: result: no" >&5
9771 $as_echo "no" >&6; }
9775 if test "$aros_target_cc" = ""; then
9776 { { $as_echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9777 $as_echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9778 { (exit 1); exit 1; }; }
9781 if test "$aros_target_ld" != ""; then
9782 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9783 set dummy $aros_target_ld; ac_word=$2
9784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9785 $as_echo_n "checking for $ac_word... " >&6; }
9786 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9787 $as_echo_n "(cached) " >&6
9788 else
9789 case $aros_target_ld in
9790 [\\/]* | ?:[\\/]*)
9791 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9801 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9805 done
9806 done
9807 IFS=$as_save_IFS
9810 esac
9812 aros_target_ld=$ac_cv_path_aros_target_ld
9813 if test -n "$aros_target_ld"; then
9814 { $as_echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9815 $as_echo "$aros_target_ld" >&6; }
9816 else
9817 { $as_echo "$as_me:$LINENO: result: no" >&5
9818 $as_echo "no" >&6; }
9822 if test "$aros_target_ld" = ""; then
9823 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9824 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9825 { (exit 1); exit 1; }; }
9829 if test "$crosstools" != "yes"; then
9831 if test "$aros_target_as" = ""; then
9832 if test "$cross_compiling" = "yes" ; then
9833 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9834 set dummy ${target_tool_prefix}as; 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_target_as_ln+set}" = set; then
9838 $as_echo_n "(cached) " >&6
9839 else
9840 case $aros_target_as_ln in
9841 [\\/]* | ?:[\\/]*)
9842 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # 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_target_as_ln="$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_target_as_ln=$ac_cv_path_aros_target_as_ln
9864 if test -n "$aros_target_as_ln"; then
9865 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9866 $as_echo "$aros_target_as_ln" >&6; }
9867 else
9868 { $as_echo "$as_me:$LINENO: result: no" >&5
9869 $as_echo "no" >&6; }
9873 else
9874 if test "$GCC" = "yes"; then
9875 aros_gcc_as=`$CC -print-prog-name=as`
9876 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9877 set dummy `basename $aros_gcc_as`; ac_word=$2
9878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9881 $as_echo_n "(cached) " >&6
9882 else
9883 case $aros_target_as_ln in
9884 [\\/]* | ?:[\\/]*)
9885 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in `dirname $aros_gcc_as`
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9895 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9899 done
9900 done
9901 IFS=$as_save_IFS
9904 esac
9906 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9907 if test -n "$aros_target_as_ln"; then
9908 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9909 $as_echo "$aros_target_as_ln" >&6; }
9910 else
9911 { $as_echo "$as_me:$LINENO: result: no" >&5
9912 $as_echo "no" >&6; }
9917 if test "$aros_target_as_ln" = ""; then
9918 # Extract the first word of "as", so it can be a program name with args.
9919 set dummy as; ac_word=$2
9920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9923 $as_echo_n "(cached) " >&6
9924 else
9925 case $aros_target_as_ln in
9926 [\\/]* | ?:[\\/]*)
9927 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9941 done
9942 done
9943 IFS=$as_save_IFS
9946 esac
9948 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9949 if test -n "$aros_target_as_ln"; then
9950 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9951 $as_echo "$aros_target_as_ln" >&6; }
9952 else
9953 { $as_echo "$as_me:$LINENO: result: no" >&5
9954 $as_echo "no" >&6; }
9960 else
9961 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9962 set dummy $aros_target_as; ac_word=$2
9963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9966 $as_echo_n "(cached) " >&6
9967 else
9968 case $aros_target_as_ln in
9969 [\\/]* | ?:[\\/]*)
9970 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9989 esac
9991 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9992 if test -n "$aros_target_as_ln"; then
9993 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9994 $as_echo "$aros_target_as_ln" >&6; }
9995 else
9996 { $as_echo "$as_me:$LINENO: result: no" >&5
9997 $as_echo "no" >&6; }
10003 if test "$aros_target_as_ln" = ""; then
10004 { { $as_echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
10005 $as_echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
10006 { (exit 1); exit 1; }; }
10009 if test "$aros_kernel_ld" = ""; then
10010 if test "$cross_compiling" = "yes" ; then
10011 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10012 set dummy ${target_tool_prefix}ld; ac_word=$2
10013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10016 $as_echo_n "(cached) " >&6
10017 else
10018 case $aros_kernel_ld in
10019 [\\/]* | ?:[\\/]*)
10020 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in $PATH
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10030 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10034 done
10035 done
10036 IFS=$as_save_IFS
10039 esac
10041 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10042 if test -n "$aros_kernel_ld"; then
10043 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10044 $as_echo "$aros_kernel_ld" >&6; }
10045 else
10046 { $as_echo "$as_me:$LINENO: result: no" >&5
10047 $as_echo "no" >&6; }
10051 else
10052 if test "$GCC" = "yes"; then
10053 aros_gcc_ld=`$CC -print-prog-name=ld`
10054 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10055 set dummy `basename $aros_gcc_ld`; ac_word=$2
10056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10059 $as_echo_n "(cached) " >&6
10060 else
10061 case $aros_kernel_ld in
10062 [\\/]* | ?:[\\/]*)
10063 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067 for as_dir in `dirname $aros_gcc_ld`
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10073 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10077 done
10078 done
10079 IFS=$as_save_IFS
10082 esac
10084 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10085 if test -n "$aros_kernel_ld"; then
10086 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10087 $as_echo "$aros_kernel_ld" >&6; }
10088 else
10089 { $as_echo "$as_me:$LINENO: result: no" >&5
10090 $as_echo "no" >&6; }
10095 if test "$aros_kernel_ld" = ""; then
10096 # Extract the first word of "ld", so it can be a program name with args.
10097 set dummy ld; ac_word=$2
10098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10101 $as_echo_n "(cached) " >&6
10102 else
10103 case $aros_kernel_ld in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10119 done
10120 done
10121 IFS=$as_save_IFS
10124 esac
10126 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10127 if test -n "$aros_kernel_ld"; then
10128 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10129 $as_echo "$aros_kernel_ld" >&6; }
10130 else
10131 { $as_echo "$as_me:$LINENO: result: no" >&5
10132 $as_echo "no" >&6; }
10138 else
10139 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10140 set dummy $aros_kernel_ld; ac_word=$2
10141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10144 $as_echo_n "(cached) " >&6
10145 else
10146 case $aros_kernel_ld in
10147 [\\/]* | ?:[\\/]*)
10148 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10164 IFS=$as_save_IFS
10167 esac
10169 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10170 if test -n "$aros_kernel_ld"; then
10171 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10172 $as_echo "$aros_kernel_ld" >&6; }
10173 else
10174 { $as_echo "$as_me:$LINENO: result: no" >&5
10175 $as_echo "no" >&6; }
10181 if test "$aros_kernel_ld" = ""; then
10182 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
10183 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
10184 { (exit 1); exit 1; }; }
10187 if test "$aros_target_ar" = ""; then
10188 if test "$cross_compiling" = "yes" ; then
10189 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10190 set dummy ${target_tool_prefix}ar; ac_word=$2
10191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10194 $as_echo_n "(cached) " >&6
10195 else
10196 case $aros_target_ar_ln in
10197 [\\/]* | ?:[\\/]*)
10198 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10208 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10212 done
10213 done
10214 IFS=$as_save_IFS
10217 esac
10219 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10220 if test -n "$aros_target_ar_ln"; then
10221 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10222 $as_echo "$aros_target_ar_ln" >&6; }
10223 else
10224 { $as_echo "$as_me:$LINENO: result: no" >&5
10225 $as_echo "no" >&6; }
10229 else
10230 if test "$GCC" = "yes"; then
10231 aros_gcc_ar=`$CC -print-prog-name=ar`
10232 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10233 set dummy `basename $aros_gcc_ar`; ac_word=$2
10234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10235 $as_echo_n "checking for $ac_word... " >&6; }
10236 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10237 $as_echo_n "(cached) " >&6
10238 else
10239 case $aros_target_ar_ln in
10240 [\\/]* | ?:[\\/]*)
10241 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in `dirname $aros_gcc_ar`
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10255 done
10256 done
10257 IFS=$as_save_IFS
10260 esac
10262 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10263 if test -n "$aros_target_ar_ln"; then
10264 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10265 $as_echo "$aros_target_ar_ln" >&6; }
10266 else
10267 { $as_echo "$as_me:$LINENO: result: no" >&5
10268 $as_echo "no" >&6; }
10273 if test "$aros_target_ar_ln" = ""; then
10274 # Extract the first word of "ar", so it can be a program name with args.
10275 set dummy ar; ac_word=$2
10276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10277 $as_echo_n "checking for $ac_word... " >&6; }
10278 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10279 $as_echo_n "(cached) " >&6
10280 else
10281 case $aros_target_ar_ln in
10282 [\\/]* | ?:[\\/]*)
10283 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10297 done
10298 done
10299 IFS=$as_save_IFS
10302 esac
10304 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10305 if test -n "$aros_target_ar_ln"; then
10306 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10307 $as_echo "$aros_target_ar_ln" >&6; }
10308 else
10309 { $as_echo "$as_me:$LINENO: result: no" >&5
10310 $as_echo "no" >&6; }
10316 else
10317 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
10318 set dummy $aros_target_ar; ac_word=$2
10319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10322 $as_echo_n "(cached) " >&6
10323 else
10324 case $aros_target_ar_ln in
10325 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10336 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10340 done
10341 done
10342 IFS=$as_save_IFS
10345 esac
10347 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10348 if test -n "$aros_target_ar_ln"; then
10349 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10350 $as_echo "$aros_target_ar_ln" >&6; }
10351 else
10352 { $as_echo "$as_me:$LINENO: result: no" >&5
10353 $as_echo "no" >&6; }
10359 if test "$aros_target_ar_ln" = ""; then
10360 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10361 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10362 { (exit 1); exit 1; }; }
10365 if test "$aros_target_nm" = ""; then
10366 if test "$cross_compiling" = "yes" ; then
10367 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10368 set dummy ${target_tool_prefix}nm; ac_word=$2
10369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10370 $as_echo_n "checking for $ac_word... " >&6; }
10371 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10372 $as_echo_n "(cached) " >&6
10373 else
10374 case $aros_target_nm_ln in
10375 [\\/]* | ?:[\\/]*)
10376 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in $PATH
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10390 done
10391 done
10392 IFS=$as_save_IFS
10395 esac
10397 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10398 if test -n "$aros_target_nm_ln"; then
10399 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10400 $as_echo "$aros_target_nm_ln" >&6; }
10401 else
10402 { $as_echo "$as_me:$LINENO: result: no" >&5
10403 $as_echo "no" >&6; }
10407 else
10408 if test "$GCC" = "yes"; then
10409 aros_gcc_nm=`$CC -print-prog-name=nm`
10410 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10411 set dummy `basename $aros_gcc_nm`; ac_word=$2
10412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10415 $as_echo_n "(cached) " >&6
10416 else
10417 case $aros_target_nm_ln in
10418 [\\/]* | ?:[\\/]*)
10419 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in `dirname $aros_gcc_nm`
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10433 done
10434 done
10435 IFS=$as_save_IFS
10438 esac
10440 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10441 if test -n "$aros_target_nm_ln"; then
10442 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10443 $as_echo "$aros_target_nm_ln" >&6; }
10444 else
10445 { $as_echo "$as_me:$LINENO: result: no" >&5
10446 $as_echo "no" >&6; }
10451 if test "$aros_target_nm_ln" = ""; then
10452 # Extract the first word of "nm", so it can be a program name with args.
10453 set dummy nm; ac_word=$2
10454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10457 $as_echo_n "(cached) " >&6
10458 else
10459 case $aros_target_nm_ln in
10460 [\\/]* | ?:[\\/]*)
10461 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465 for as_dir in $PATH
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10475 done
10476 done
10477 IFS=$as_save_IFS
10480 esac
10482 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10483 if test -n "$aros_target_nm_ln"; then
10484 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10485 $as_echo "$aros_target_nm_ln" >&6; }
10486 else
10487 { $as_echo "$as_me:$LINENO: result: no" >&5
10488 $as_echo "no" >&6; }
10494 else
10495 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10496 set dummy $aros_target_nm; ac_word=$2
10497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10500 $as_echo_n "(cached) " >&6
10501 else
10502 case $aros_target_nm_ln in
10503 [\\/]* | ?:[\\/]*)
10504 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10514 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 break 2
10518 done
10519 done
10520 IFS=$as_save_IFS
10523 esac
10525 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10526 if test -n "$aros_target_nm_ln"; then
10527 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10528 $as_echo "$aros_target_nm_ln" >&6; }
10529 else
10530 { $as_echo "$as_me:$LINENO: result: no" >&5
10531 $as_echo "no" >&6; }
10537 if test "$aros_target_nm_ln" = ""; then
10538 { { $as_echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10539 $as_echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10540 { (exit 1); exit 1; }; }
10543 if test "$aros_target_objcopy" = ""; then
10544 if test "$cross_compiling" = "yes" ; then
10545 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10546 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10550 $as_echo_n "(cached) " >&6
10551 else
10552 case $aros_target_objcopy_ln in
10553 [\\/]* | ?:[\\/]*)
10554 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10564 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10570 IFS=$as_save_IFS
10573 esac
10575 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10576 if test -n "$aros_target_objcopy_ln"; then
10577 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10578 $as_echo "$aros_target_objcopy_ln" >&6; }
10579 else
10580 { $as_echo "$as_me:$LINENO: result: no" >&5
10581 $as_echo "no" >&6; }
10585 else
10586 if test "$GCC" = "yes"; then
10587 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10588 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10589 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10593 $as_echo_n "(cached) " >&6
10594 else
10595 case $aros_target_objcopy_ln in
10596 [\\/]* | ?:[\\/]*)
10597 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in `dirname $aros_gcc_objcopy`
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10607 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10611 done
10612 done
10613 IFS=$as_save_IFS
10616 esac
10618 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10619 if test -n "$aros_target_objcopy_ln"; then
10620 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10621 $as_echo "$aros_target_objcopy_ln" >&6; }
10622 else
10623 { $as_echo "$as_me:$LINENO: result: no" >&5
10624 $as_echo "no" >&6; }
10629 if test "$aros_target_objcopy_ln" = ""; then
10630 # Extract the first word of "objcopy", so it can be a program name with args.
10631 set dummy objcopy; ac_word=$2
10632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10635 $as_echo_n "(cached) " >&6
10636 else
10637 case $aros_target_objcopy_ln in
10638 [\\/]* | ?:[\\/]*)
10639 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10649 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10653 done
10654 done
10655 IFS=$as_save_IFS
10658 esac
10660 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10661 if test -n "$aros_target_objcopy_ln"; then
10662 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10663 $as_echo "$aros_target_objcopy_ln" >&6; }
10664 else
10665 { $as_echo "$as_me:$LINENO: result: no" >&5
10666 $as_echo "no" >&6; }
10672 else
10673 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10674 set dummy $aros_target_objcopy; ac_word=$2
10675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10678 $as_echo_n "(cached) " >&6
10679 else
10680 case $aros_target_objcopy_ln in
10681 [\\/]* | ?:[\\/]*)
10682 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10692 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 break 2
10696 done
10697 done
10698 IFS=$as_save_IFS
10701 esac
10703 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10704 if test -n "$aros_target_objcopy_ln"; then
10705 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10706 $as_echo "$aros_target_objcopy_ln" >&6; }
10707 else
10708 { $as_echo "$as_me:$LINENO: result: no" >&5
10709 $as_echo "no" >&6; }
10715 if test "$aros_target_objcopy_ln" = ""; then
10716 { { $as_echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10717 $as_echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10718 { (exit 1); exit 1; }; }
10721 if test "$aros_target_objdump" = ""; then
10722 if test "$cross_compiling" = "yes" ; then
10723 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10724 set dummy ${target_tool_prefix}objdump; ac_word=$2
10725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10726 $as_echo_n "checking for $ac_word... " >&6; }
10727 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10728 $as_echo_n "(cached) " >&6
10729 else
10730 case $aros_target_objdump_ln in
10731 [\\/]* | ?:[\\/]*)
10732 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10742 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 break 2
10746 done
10747 done
10748 IFS=$as_save_IFS
10751 esac
10753 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10754 if test -n "$aros_target_objdump_ln"; then
10755 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10756 $as_echo "$aros_target_objdump_ln" >&6; }
10757 else
10758 { $as_echo "$as_me:$LINENO: result: no" >&5
10759 $as_echo "no" >&6; }
10763 else
10764 if test "$GCC" = "yes"; then
10765 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10766 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10767 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10771 $as_echo_n "(cached) " >&6
10772 else
10773 case $aros_target_objdump_ln in
10774 [\\/]* | ?:[\\/]*)
10775 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in `dirname $aros_gcc_objdump`
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10789 done
10790 done
10791 IFS=$as_save_IFS
10794 esac
10796 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10797 if test -n "$aros_target_objdump_ln"; then
10798 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10799 $as_echo "$aros_target_objdump_ln" >&6; }
10800 else
10801 { $as_echo "$as_me:$LINENO: result: no" >&5
10802 $as_echo "no" >&6; }
10807 if test "$aros_target_objdump_ln" = ""; then
10808 # Extract the first word of "objdump", so it can be a program name with args.
10809 set dummy objdump; ac_word=$2
10810 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10811 $as_echo_n "checking for $ac_word... " >&6; }
10812 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10813 $as_echo_n "(cached) " >&6
10814 else
10815 case $aros_target_objdump_ln in
10816 [\\/]* | ?:[\\/]*)
10817 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10821 for as_dir in $PATH
10823 IFS=$as_save_IFS
10824 test -z "$as_dir" && as_dir=.
10825 for ac_exec_ext in '' $ac_executable_extensions; do
10826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10827 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10828 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10829 break 2
10831 done
10832 done
10833 IFS=$as_save_IFS
10836 esac
10838 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10839 if test -n "$aros_target_objdump_ln"; then
10840 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10841 $as_echo "$aros_target_objdump_ln" >&6; }
10842 else
10843 { $as_echo "$as_me:$LINENO: result: no" >&5
10844 $as_echo "no" >&6; }
10850 else
10851 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10852 set dummy $aros_target_objdump; ac_word=$2
10853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10856 $as_echo_n "(cached) " >&6
10857 else
10858 case $aros_target_objdump_ln in
10859 [\\/]* | ?:[\\/]*)
10860 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10874 done
10875 done
10876 IFS=$as_save_IFS
10879 esac
10881 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10882 if test -n "$aros_target_objdump_ln"; then
10883 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10884 $as_echo "$aros_target_objdump_ln" >&6; }
10885 else
10886 { $as_echo "$as_me:$LINENO: result: no" >&5
10887 $as_echo "no" >&6; }
10893 if test "$aros_target_objdump_ln" = ""; then
10894 { { $as_echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10895 $as_echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10896 { (exit 1); exit 1; }; }
10899 if test "$aros_target_ranlib" = ""; then
10900 if test "$cross_compiling" = "yes" ; then
10901 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10902 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10904 $as_echo_n "checking for $ac_word... " >&6; }
10905 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10906 $as_echo_n "(cached) " >&6
10907 else
10908 case $aros_target_ranlib_ln in
10909 [\\/]* | ?:[\\/]*)
10910 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10924 done
10925 done
10926 IFS=$as_save_IFS
10929 esac
10931 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10932 if test -n "$aros_target_ranlib_ln"; then
10933 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10934 $as_echo "$aros_target_ranlib_ln" >&6; }
10935 else
10936 { $as_echo "$as_me:$LINENO: result: no" >&5
10937 $as_echo "no" >&6; }
10941 else
10942 if test "$GCC" = "yes"; then
10943 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10944 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10945 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 $as_echo_n "checking for $ac_word... " >&6; }
10948 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10949 $as_echo_n "(cached) " >&6
10950 else
10951 case $aros_target_ranlib_ln in
10952 [\\/]* | ?:[\\/]*)
10953 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957 for as_dir in `dirname $aros_gcc_ranlib`
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10963 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10967 done
10968 done
10969 IFS=$as_save_IFS
10972 esac
10974 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10975 if test -n "$aros_target_ranlib_ln"; then
10976 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10977 $as_echo "$aros_target_ranlib_ln" >&6; }
10978 else
10979 { $as_echo "$as_me:$LINENO: result: no" >&5
10980 $as_echo "no" >&6; }
10985 if test "$aros_target_ranlib_ln" = ""; then
10986 # Extract the first word of "ranlib", so it can be a program name with args.
10987 set dummy ranlib; ac_word=$2
10988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10991 $as_echo_n "(cached) " >&6
10992 else
10993 case $aros_target_ranlib_ln in
10994 [\\/]* | ?:[\\/]*)
10995 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in $PATH
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11005 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11009 done
11010 done
11011 IFS=$as_save_IFS
11014 esac
11016 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11017 if test -n "$aros_target_ranlib_ln"; then
11018 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11019 $as_echo "$aros_target_ranlib_ln" >&6; }
11020 else
11021 { $as_echo "$as_me:$LINENO: result: no" >&5
11022 $as_echo "no" >&6; }
11028 else
11029 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
11030 set dummy $aros_target_ranlib; ac_word=$2
11031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
11034 $as_echo_n "(cached) " >&6
11035 else
11036 case $aros_target_ranlib_ln in
11037 [\\/]* | ?:[\\/]*)
11038 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11052 done
11053 done
11054 IFS=$as_save_IFS
11057 esac
11059 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11060 if test -n "$aros_target_ranlib_ln"; then
11061 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11062 $as_echo "$aros_target_ranlib_ln" >&6; }
11063 else
11064 { $as_echo "$as_me:$LINENO: result: no" >&5
11065 $as_echo "no" >&6; }
11071 if test "$aros_target_ranlib_ln" = ""; then
11072 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
11073 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
11074 { (exit 1); exit 1; }; }
11077 if test "$aros_target_strip" = ""; then
11078 if test "$cross_compiling" = "yes" ; then
11079 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
11080 set dummy ${target_tool_prefix}strip; ac_word=$2
11081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11084 $as_echo_n "(cached) " >&6
11085 else
11086 case $aros_target_strip_ln in
11087 [\\/]* | ?:[\\/]*)
11088 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11098 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11102 done
11103 done
11104 IFS=$as_save_IFS
11107 esac
11109 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11110 if test -n "$aros_target_strip_ln"; then
11111 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11112 $as_echo "$aros_target_strip_ln" >&6; }
11113 else
11114 { $as_echo "$as_me:$LINENO: result: no" >&5
11115 $as_echo "no" >&6; }
11119 else
11120 if test "$GCC" = "yes"; then
11121 aros_gcc_strip=`$CC -print-prog-name=strip`
11122 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11123 set dummy `basename $aros_gcc_strip`; ac_word=$2
11124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11125 $as_echo_n "checking for $ac_word... " >&6; }
11126 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11127 $as_echo_n "(cached) " >&6
11128 else
11129 case $aros_target_strip_ln in
11130 [\\/]* | ?:[\\/]*)
11131 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in `dirname $aros_gcc_strip`
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11141 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11145 done
11146 done
11147 IFS=$as_save_IFS
11150 esac
11152 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11153 if test -n "$aros_target_strip_ln"; then
11154 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11155 $as_echo "$aros_target_strip_ln" >&6; }
11156 else
11157 { $as_echo "$as_me:$LINENO: result: no" >&5
11158 $as_echo "no" >&6; }
11163 if test "$aros_target_strip_ln" = ""; then
11164 # Extract the first word of "strip", so it can be a program name with args.
11165 set dummy strip; ac_word=$2
11166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11169 $as_echo_n "(cached) " >&6
11170 else
11171 case $aros_target_strip_ln in
11172 [\\/]* | ?:[\\/]*)
11173 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11183 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11187 done
11188 done
11189 IFS=$as_save_IFS
11192 esac
11194 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11195 if test -n "$aros_target_strip_ln"; then
11196 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11197 $as_echo "$aros_target_strip_ln" >&6; }
11198 else
11199 { $as_echo "$as_me:$LINENO: result: no" >&5
11200 $as_echo "no" >&6; }
11206 else
11207 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
11208 set dummy $aros_target_strip; ac_word=$2
11209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11212 $as_echo_n "(cached) " >&6
11213 else
11214 case $aros_target_strip_ln in
11215 [\\/]* | ?:[\\/]*)
11216 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11226 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 break 2
11230 done
11231 done
11232 IFS=$as_save_IFS
11235 esac
11237 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11238 if test -n "$aros_target_strip_ln"; then
11239 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11240 $as_echo "$aros_target_strip_ln" >&6; }
11241 else
11242 { $as_echo "$as_me:$LINENO: result: no" >&5
11243 $as_echo "no" >&6; }
11249 if test "$aros_target_strip_ln" = ""; then
11250 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
11251 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
11252 { (exit 1); exit 1; }; }
11256 if test "$rescomp" != ""; then
11257 if test "$cross_compiling" = "yes" ; then
11258 rescomp=${target_tool_prefix}${rescomp}
11260 # Extract the first word of "$rescomp", so it can be a program name with args.
11261 set dummy $rescomp; ac_word=$2
11262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
11265 $as_echo_n "(cached) " >&6
11266 else
11267 case $aros_kernel_rescomp in
11268 [\\/]* | ?:[\\/]*)
11269 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
11280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11283 done
11284 done
11285 IFS=$as_save_IFS
11288 esac
11290 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
11291 if test -n "$aros_kernel_rescomp"; then
11292 { $as_echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
11293 $as_echo "$aros_kernel_rescomp" >&6; }
11294 else
11295 { $as_echo "$as_me:$LINENO: result: no" >&5
11296 $as_echo "no" >&6; }
11300 if test "$aros_kernel_rescomp" = ""; then
11301 { { $as_echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
11302 $as_echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
11303 { (exit 1); exit 1; }; }
11307 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11308 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11309 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11310 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11311 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11312 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11313 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11315 # aros_cc_pre is a variable that is added to the front of the compiler name
11316 # in the generated aros-gcc shell script. We need this to enable the cache
11317 # to work across cleaned builds. Also, support DISTCC using the correct
11318 # environment variable.
11321 if test "x${DISTCC}" != "x" ; then
11322 if test "x${CCACHE}" != "x" ; then
11323 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11324 else
11325 aros_cc_pre="${DISTCC} "
11327 else
11328 if test "x${CCACHE}" != "x" ; then
11329 aros_cc_pre="${CCACHE} "
11333 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
11335 aros_target_nostdinc_cflags=-nostdinc
11337 aros_target_nostartup_ldflags=-nostartfiles
11339 aros_target_nix_ldflags=-nix
11341 aros_target_detach_ldflags=-detach
11343 aros_target_nostdlib_ldflags=-nostdlib
11346 # Target tools
11347 if test "$aros_target_cc" = ""; then
11348 orig_target_cc=$aros_kernel_cc
11349 else
11350 orig_target_cc=$aros_target_cc
11352 if test "$aros_target_ld" = ""; then
11353 orig_target_ld=$aros_kernel_ld
11354 else
11355 orig_target_ld=$aros_target_ld
11357 if test "$GCC" = "yes"; then
11358 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11360 aros_target_cc="${prefix}-gcc"
11361 aros_target_as="${prefix}-as"
11362 aros_target_ld="${prefix}-ld"
11363 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11364 aros_target_objcopy=${prefix}-objcopy
11365 aros_target_objdump=${prefix}-objdump
11366 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11367 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11368 aros_kernel_nm="${prefix}-nm"
11369 aros_target_strip=${prefix}-strip
11371 # Find the system include path. We can suggest that an alternative is
11372 # used if we don't get it correct. The default is to use /usr/include.
11373 # Which is set in the aros_target_incl_def variable.
11375 # Check whether --enable-includes was given.
11376 if test "${enable_includes+set}" = set; then
11377 enableval=$enable_includes; aros_target_incl=$enable_includes
11378 else
11379 aros_target_incl=$aros_target_incl_def
11383 { $as_echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11384 $as_echo_n "checking for the target compiler's include path... " >&6; }
11385 if test "$aros_target_cc_includes" = "" ; then
11386 #try to guess where the directory is
11387 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11388 if ! test -d $aros_target_cc_includes; then
11389 #the directory doesn't exist, we need to do some more work
11390 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11392 #these are the headers we're looling for
11393 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11394 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11395 zutil.h"
11397 dirs=
11398 for h in $headers; do
11399 #which other headers each of the above headers needs?
11400 deps=$(echo "#include <$h>" | \
11401 $aros_host_cc -E -M - 2>/dev/null | \
11402 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11404 #copy all the needed headers to a directory beneath gendir
11405 for d in $deps; do
11406 h=$(basename $d)
11407 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11408 sed -n "s,^.*/include\(/.*\),\1,p")
11409 ! test -d $dir && mkdir -p $dir
11410 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11411 done
11412 done
11415 { $as_echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11416 $as_echo "$aros_target_cc_includes" >&6; }
11419 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11420 # On GCC >= 4.0 -iquote should be used
11423 save_cc="$CC"
11424 save_cflags="$CFLAGS"
11425 CFLAGS="-iquote."
11426 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11427 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h. */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11436 main ()
11440 return 0;
11442 _ACEOF
11443 rm -f conftest.$ac_objext
11444 if { (ac_try="$ac_compile"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448 esac
11449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11450 $as_echo "$ac_try_echo") >&5
11451 (eval "$ac_compile") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest.$ac_objext; then
11461 has_iquote="yes"
11462 else
11463 $as_echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 has_iquote="no"
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11471 $as_echo "$has_iquote" >&6; }
11472 if test "x-$has_iquote" = "x-yes" ; then
11473 host_cflags_iquote=-iquote
11474 host_cflags_iquote_end=
11475 else
11476 host_cflags_iquote=-I
11477 host_cflags_iquote_end=-I-
11479 kernel_cflags_iquote=$host_cflags_iquote
11480 kernel_cflags_iquote_end=$host_cflags_iquote_end
11481 if test "x-$cross_compiling" = "x-yes"; then
11482 CC="$aros_kernel_cc"
11483 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11484 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11493 main ()
11497 return 0;
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (ac_try="$ac_compile"
11502 case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505 esac
11506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11507 $as_echo "$ac_try_echo") >&5
11508 (eval "$ac_compile") 2>conftest.er1
11509 ac_status=$?
11510 grep -v '^ *+' conftest.er1 >conftest.err
11511 rm -f conftest.er1
11512 cat conftest.err >&5
11513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } && {
11515 test -z "$ac_c_werror_flag" ||
11516 test ! -s conftest.err
11517 } && test -s conftest.$ac_objext; then
11518 has_iquote="yes"
11519 else
11520 $as_echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 has_iquote="no"
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11528 $as_echo "$has_iquote" >&6; }
11529 if test "x-$has_iquote" = "x-yes" ; then
11530 kernel_cflags_iquote=-iquote
11531 kernel_cflags_iquote_end=
11532 else
11533 kernel_cflags_iquote=-I
11534 kernel_cflags_iquote_end=-I-
11537 aros_cflags_iquote=$kernel_cflags_iquote
11538 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11539 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11540 CC="$orig_target_cc"
11541 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11542 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11551 main ()
11555 return 0;
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (ac_try="$ac_compile"
11560 case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563 esac
11564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11565 $as_echo "$ac_try_echo") >&5
11566 (eval "$ac_compile") 2>conftest.er1
11567 ac_status=$?
11568 grep -v '^ *+' conftest.er1 >conftest.err
11569 rm -f conftest.er1
11570 cat conftest.err >&5
11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && {
11573 test -z "$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11575 } && test -s conftest.$ac_objext; then
11576 has_iquote="yes"
11577 else
11578 $as_echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 has_iquote="no"
11584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11586 $as_echo "$has_iquote" >&6; }
11587 if test "x-$has_iquote" = "x-yes" ; then
11588 aros_cflags_iquote=-iquote
11589 aros_cflags_iquote_end=
11590 else
11591 aros_cflags_iquote=-I
11592 aros_cflags_iquote_end=-I-
11595 CC="$save_cc"
11596 CFLAGS="$save_cflags"
11606 { $as_echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11607 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11609 # Check whether --with-resolution was given.
11610 if test "${with_resolution+set}" = set; then
11611 withval=$with_resolution; resolution=$withval
11612 else
11613 resolution=none
11616 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11617 if test "$resolution" = "yes" ; then
11618 resolution="none"
11620 if test "$resolution" = "no" ; then
11621 resolution="none"
11623 if test "$resolution" != "none" ; then
11624 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11625 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11626 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11628 { $as_echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11629 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11630 aros_cv_default_wbwidth=$aros_default_wbwidth
11631 aros_cv_default_wbheight=$aros_default_wbheight
11632 aros_cv_default_wbdepth=$aros_default_wbdepth
11634 { $as_echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
11635 $as_echo_n "checking if bochs hack is enabled... " >&6; }
11636 # Check whether --enable-bochs_hack was given.
11637 if test "${enable_bochs_hack+set}" = set; then
11638 enableval=$enable_bochs_hack; bochs_hack="yes"
11639 else
11640 bochs_hack="no"
11643 if test "$bochs_hack" = "yes" ; then
11644 aros_bochs_hack="1"
11646 { $as_echo "$as_me:$LINENO: result: $bochs_hack" >&5
11647 $as_echo "$bochs_hack" >&6; }
11649 { $as_echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11650 $as_echo_n "checking if serial debug is enabled... " >&6; }
11652 # Check whether --with-serial-debug was given.
11653 if test "${with_serial_debug+set}" = set; then
11654 withval=$with_serial_debug; serial_debug=$withval
11655 else
11656 serial_debug=none
11659 if test "$aros_serial_debug" = 0 ; then
11660 serial_debug_forced=""
11661 if test "$serial_debug" = "yes" ; then
11662 serial_debug="2"
11664 if test "$serial_debug" = "no" ; then
11665 serial_debug="none"
11667 else
11668 serial_debug_forced="(forced)"
11669 serial_debug=$aros_serial_debug
11671 if test "$serial_debug" != "none" ; then
11672 aros_serial_debug=$serial_debug
11673 { $as_echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11674 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11675 else
11676 { $as_echo "$as_me:$LINENO: result: no" >&5
11677 $as_echo "no" >&6; }
11680 { $as_echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11681 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11682 # Check whether --enable-palm_debug_hack was given.
11683 if test "${enable_palm_debug_hack+set}" = set; then
11684 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11685 else
11686 palm_debug_hack="no"
11689 if test "$palm_debug_hack" = "yes" ; then
11690 aros_palm_debug_hack="1"
11692 { $as_echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11693 $as_echo "$palm_debug_hack" >&6; }
11696 { $as_echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11697 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11698 # Check whether --enable-nesting_supervisor was given.
11699 if test "${enable_nesting_supervisor+set}" = set; then
11700 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11701 else
11702 nesting_supervisor="no"
11705 if test "$nesting_supervisor" = "yes" ; then
11706 aros_nesting_supervisor="1"
11708 { $as_echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11709 $as_echo "$nesting_supervisor" >&6; }
11712 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11714 if test "x-$need_dlopen" != "x-no" ; then
11715 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11716 $as_echo_n "checking for dlopen... " >&6; }
11717 if test "${ac_cv_func_dlopen+set}" = set; then
11718 $as_echo_n "(cached) " >&6
11719 else
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11728 #define dlopen innocuous_dlopen
11730 /* System header to define __stub macros and hopefully few prototypes,
11731 which can conflict with char dlopen (); below.
11732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11733 <limits.h> exists even on freestanding compilers. */
11735 #ifdef __STDC__
11736 # include <limits.h>
11737 #else
11738 # include <assert.h>
11739 #endif
11741 #undef dlopen
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 char dlopen ();
11750 /* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753 #if defined __stub_dlopen || defined __stub___dlopen
11754 choke me
11755 #endif
11758 main ()
11760 return dlopen ();
11762 return 0;
11764 _ACEOF
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (ac_try="$ac_link"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770 esac
11771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11772 $as_echo "$ac_try_echo") >&5
11773 (eval "$ac_link") 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && {
11780 test -z "$ac_c_werror_flag" ||
11781 test ! -s conftest.err
11782 } && test -s conftest$ac_exeext && {
11783 test "$cross_compiling" = yes ||
11784 $as_test_x conftest$ac_exeext
11785 }; then
11786 ac_cv_func_dlopen=yes
11787 else
11788 $as_echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_cv_func_dlopen=no
11794 rm -rf conftest.dSYM
11795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11796 conftest$ac_exeext conftest.$ac_ext
11798 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11799 $as_echo "$ac_cv_func_dlopen" >&6; }
11800 if test "x$ac_cv_func_dlopen" = x""yes; then
11801 have_dl="yes"
11802 else
11803 have_dl="no"
11806 if test "x-$have_dl" = "x-no" ; then
11807 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11810 $as_echo_n "(cached) " >&6
11811 else
11812 ac_check_lib_save_LIBS=$LIBS
11813 LIBS="-ldl $LIBS"
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dlopen ();
11829 main ()
11831 return dlopen ();
11833 return 0;
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841 esac
11842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843 $as_echo "$ac_try_echo") >&5
11844 (eval "$ac_link") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } && {
11851 test -z "$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 } && test -s conftest$ac_exeext && {
11854 test "$cross_compiling" = yes ||
11855 $as_test_x conftest$ac_exeext
11856 }; then
11857 ac_cv_lib_dl_dlopen=yes
11858 else
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_cv_lib_dl_dlopen=no
11865 rm -rf conftest.dSYM
11866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11871 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11872 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11873 have_dl="yes"
11874 aros_host_ldflags="$aros_host_ldflags -ldl"
11875 else
11876 have_dl="no"
11880 if test "x-$have_dl" = "x-no" ; then
11881 { { $as_echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11882 $as_echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11883 { (exit 1); exit 1; }; }
11888 # Check whether --enable-x11_hidd was given.
11889 if test "${enable_x11_hidd+set}" = set; then
11890 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11891 else
11892 x11_hidd="auto"
11895 case "x-$x11_hidd" in
11896 x-yes|x-no|x-auto) ;;
11897 *) x11_hidd="auto" ;;
11898 esac
11900 ENABLE_X11=0
11902 if test "x-$x11_hidd" != "x-no" ; then
11904 { $as_echo "$as_me:$LINENO: checking for X" >&5
11905 $as_echo_n "checking for X... " >&6; }
11908 # Check whether --with-x was given.
11909 if test "${with_x+set}" = set; then
11910 withval=$with_x;
11913 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11914 if test "x$with_x" = xno; then
11915 # The user explicitly disabled X.
11916 have_x=disabled
11917 else
11918 case $x_includes,$x_libraries in #(
11919 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
11920 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
11921 { (exit 1); exit 1; }; };; #(
11922 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11923 $as_echo_n "(cached) " >&6
11924 else
11925 # One or both of the vars are not set, and there is no cached value.
11926 ac_x_includes=no ac_x_libraries=no
11927 rm -f -r conftest.dir
11928 if mkdir conftest.dir; then
11929 cd conftest.dir
11930 cat >Imakefile <<'_ACEOF'
11931 incroot:
11932 @echo incroot='${INCROOT}'
11933 usrlibdir:
11934 @echo usrlibdir='${USRLIBDIR}'
11935 libdir:
11936 @echo libdir='${LIBDIR}'
11937 _ACEOF
11938 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11939 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11940 for ac_var in incroot usrlibdir libdir; do
11941 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11942 done
11943 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11944 for ac_extension in a so sl dylib la dll; do
11945 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11946 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11947 ac_im_usrlibdir=$ac_im_libdir; break
11949 done
11950 # Screen out bogus values from the imake configuration. They are
11951 # bogus both because they are the default anyway, and because
11952 # using them would break gcc on systems where it needs fixed includes.
11953 case $ac_im_incroot in
11954 /usr/include) ac_x_includes= ;;
11955 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11956 esac
11957 case $ac_im_usrlibdir in
11958 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11959 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11960 esac
11962 cd ..
11963 rm -f -r conftest.dir
11966 # Standard set of common directories for X headers.
11967 # Check X11 before X11Rn because it is often a symlink to the current release.
11968 ac_x_header_dirs='
11969 /usr/X11/include
11970 /usr/X11R6/include
11971 /usr/X11R5/include
11972 /usr/X11R4/include
11974 /usr/include/X11
11975 /usr/include/X11R6
11976 /usr/include/X11R5
11977 /usr/include/X11R4
11979 /usr/local/X11/include
11980 /usr/local/X11R6/include
11981 /usr/local/X11R5/include
11982 /usr/local/X11R4/include
11984 /usr/local/include/X11
11985 /usr/local/include/X11R6
11986 /usr/local/include/X11R5
11987 /usr/local/include/X11R4
11989 /usr/X386/include
11990 /usr/x386/include
11991 /usr/XFree86/include/X11
11993 /usr/include
11994 /usr/local/include
11995 /usr/unsupported/include
11996 /usr/athena/include
11997 /usr/local/x11r5/include
11998 /usr/lpp/Xamples/include
12000 /usr/openwin/include
12001 /usr/openwin/share/include'
12003 if test "$ac_x_includes" = no; then
12004 # Guess where to find include files, by looking for Xlib.h.
12005 # First, try using that file with no special directory specified.
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 #include <X11/Xlib.h>
12013 _ACEOF
12014 if { (ac_try="$ac_cpp conftest.$ac_ext"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12020 $as_echo "$ac_try_echo") >&5
12021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } >/dev/null && {
12028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 }; then
12031 # We can compile using X headers with no special include directory.
12032 ac_x_includes=
12033 else
12034 $as_echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12037 for ac_dir in $ac_x_header_dirs; do
12038 if test -r "$ac_dir/X11/Xlib.h"; then
12039 ac_x_includes=$ac_dir
12040 break
12042 done
12045 rm -f conftest.err conftest.$ac_ext
12046 fi # $ac_x_includes = no
12048 if test "$ac_x_libraries" = no; then
12049 # Check for the libraries.
12050 # See if we find them without any special options.
12051 # Don't add to $LIBS permanently.
12052 ac_save_LIBS=$LIBS
12053 LIBS="-lX11 $LIBS"
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <X11/Xlib.h>
12062 main ()
12064 XrmInitialize ()
12066 return 0;
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074 esac
12075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12076 $as_echo "$ac_try_echo") >&5
12077 (eval "$ac_link") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && {
12084 test -z "$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 } && test -s conftest$ac_exeext && {
12087 test "$cross_compiling" = yes ||
12088 $as_test_x conftest$ac_exeext
12089 }; then
12090 LIBS=$ac_save_LIBS
12091 # We can link X programs with no special library path.
12092 ac_x_libraries=
12093 else
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 LIBS=$ac_save_LIBS
12098 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12100 # Don't even attempt the hair of trying to link an X program!
12101 for ac_extension in a so sl dylib la dll; do
12102 if test -r "$ac_dir/libX11.$ac_extension"; then
12103 ac_x_libraries=$ac_dir
12104 break 2
12106 done
12107 done
12110 rm -rf conftest.dSYM
12111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12112 conftest$ac_exeext conftest.$ac_ext
12113 fi # $ac_x_libraries = no
12115 case $ac_x_includes,$ac_x_libraries in #(
12116 no,* | *,no | *\'*)
12117 # Didn't find X, or a directory has "'" in its name.
12118 ac_cv_have_x="have_x=no";; #(
12120 # Record where we found X for the cache.
12121 ac_cv_have_x="have_x=yes\
12122 ac_x_includes='$ac_x_includes'\
12123 ac_x_libraries='$ac_x_libraries'"
12124 esac
12126 ;; #(
12127 *) have_x=yes;;
12128 esac
12129 eval "$ac_cv_have_x"
12130 fi # $with_x != no
12132 if test "$have_x" != yes; then
12133 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
12134 $as_echo "$have_x" >&6; }
12135 no_x=yes
12136 else
12137 # If each of the values was on the command line, it overrides each guess.
12138 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12139 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12140 # Update the cache value to reflect the command line values.
12141 ac_cv_have_x="have_x=yes\
12142 ac_x_includes='$x_includes'\
12143 ac_x_libraries='$x_libraries'"
12144 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
12145 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12149 x_cflags=
12150 for path in $x_libraries
12152 x_cflags="$x_cflags -L$path"
12153 done
12155 for path in $x_includes
12157 x_cflags="$x_cflags -I$path"
12158 done
12160 if test "x-$no_x" = "x-yes" ; then
12162 if test "x-$x11_hidd" != "x-auto" ; then
12163 { { $as_echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
12164 $as_echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
12165 { (exit 1); exit 1; }; }
12168 else
12169 x11_hidd_target=kernel-x11gfx-kobj
12170 ENABLE_X11=1
12172 # Check whether --enable-x11_shm was given.
12173 if test "${enable_x11_shm+set}" = set; then
12174 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
12175 else
12176 x11_hidd_shm="auto"
12179 case "x-$x11_hidd_shm" in
12180 x-yes|x-no|x-auto) ;;
12181 *) x11_hidd_shm="auto" ;;
12182 esac
12184 have_xshm=no
12186 if test "x-$x11_hidd_shm" != "x-no" ; then
12189 for ac_header in sys/ipc.h
12191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12193 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12194 $as_echo_n "checking for $ac_header... " >&6; }
12195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12196 $as_echo_n "(cached) " >&6
12198 ac_res=`eval 'as_val=${'$as_ac_Header'}
12199 $as_echo "$as_val"'`
12200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12201 $as_echo "$ac_res" >&6; }
12202 else
12203 # Is the header compilable?
12204 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12205 $as_echo_n "checking $ac_header usability... " >&6; }
12206 cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h. */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 $ac_includes_default
12213 #include <$ac_header>
12214 _ACEOF
12215 rm -f conftest.$ac_objext
12216 if { (ac_try="$ac_compile"
12217 case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12220 esac
12221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12222 $as_echo "$ac_try_echo") >&5
12223 (eval "$ac_compile") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest.$ac_objext; then
12233 ac_header_compiler=yes
12234 else
12235 $as_echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 ac_header_compiler=no
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12243 $as_echo "$ac_header_compiler" >&6; }
12245 # Is the header present?
12246 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12247 $as_echo_n "checking $ac_header presence... " >&6; }
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <$ac_header>
12255 _ACEOF
12256 if { (ac_try="$ac_cpp conftest.$ac_ext"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } >/dev/null && {
12270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 }; then
12273 ac_header_preproc=yes
12274 else
12275 $as_echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_header_preproc=no
12281 rm -f conftest.err conftest.$ac_ext
12282 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12283 $as_echo "$ac_header_preproc" >&6; }
12285 # So? What about this header?
12286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12287 yes:no: )
12288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12289 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12292 ac_header_preproc=yes
12294 no:yes:* )
12295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12296 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12298 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12300 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12302 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12306 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12309 esac
12310 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12311 $as_echo_n "checking for $ac_header... " >&6; }
12312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12313 $as_echo_n "(cached) " >&6
12314 else
12315 eval "$as_ac_Header=\$ac_header_preproc"
12317 ac_res=`eval 'as_val=${'$as_ac_Header'}
12318 $as_echo "$as_val"'`
12319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12320 $as_echo "$ac_res" >&6; }
12323 as_val=`eval 'as_val=${'$as_ac_Header'}
12324 $as_echo "$as_val"'`
12325 if test "x$as_val" = x""yes; then
12326 cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12328 _ACEOF
12332 done
12335 for ac_header in sys/shm.h
12337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12340 $as_echo_n "checking for $ac_header... " >&6; }
12341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12342 $as_echo_n "(cached) " >&6
12344 ac_res=`eval 'as_val=${'$as_ac_Header'}
12345 $as_echo "$as_val"'`
12346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12347 $as_echo "$ac_res" >&6; }
12348 else
12349 # Is the header compilable?
12350 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12351 $as_echo_n "checking $ac_header usability... " >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h. */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 $ac_includes_default
12359 #include <$ac_header>
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368 $as_echo "$ac_try_echo") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest.$ac_objext; then
12379 ac_header_compiler=yes
12380 else
12381 $as_echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_header_compiler=no
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12389 $as_echo "$ac_header_compiler" >&6; }
12391 # Is the header present?
12392 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12393 $as_echo_n "checking $ac_header presence... " >&6; }
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 #include <$ac_header>
12401 _ACEOF
12402 if { (ac_try="$ac_cpp conftest.$ac_ext"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406 esac
12407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12408 $as_echo "$ac_try_echo") >&5
12409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } >/dev/null && {
12416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 }; then
12419 ac_header_preproc=yes
12420 else
12421 $as_echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ac_header_preproc=no
12427 rm -f conftest.err conftest.$ac_ext
12428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12429 $as_echo "$ac_header_preproc" >&6; }
12431 # So? What about this header?
12432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12433 yes:no: )
12434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12435 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12438 ac_header_preproc=yes
12440 no:yes:* )
12441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12442 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12444 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12446 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12448 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12452 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12455 esac
12456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12457 $as_echo_n "checking for $ac_header... " >&6; }
12458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12459 $as_echo_n "(cached) " >&6
12460 else
12461 eval "$as_ac_Header=\$ac_header_preproc"
12463 ac_res=`eval 'as_val=${'$as_ac_Header'}
12464 $as_echo "$as_val"'`
12465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12466 $as_echo "$ac_res" >&6; }
12469 as_val=`eval 'as_val=${'$as_ac_Header'}
12470 $as_echo "$as_val"'`
12471 if test "x$as_val" = x""yes; then
12472 cat >>confdefs.h <<_ACEOF
12473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12474 _ACEOF
12478 done
12481 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12483 save_cflags="$CFLAGS"
12484 CFLAGS="$CFLAGS $x_cflags"
12485 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12486 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12487 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12488 $as_echo_n "(cached) " >&6
12489 else
12490 ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-lXext $LIBS"
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h. */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12502 #ifdef __cplusplus
12503 extern "C"
12504 #endif
12505 char XShmQueryExtension ();
12507 main ()
12509 return XShmQueryExtension ();
12511 return 0;
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12519 esac
12520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12521 $as_echo "$ac_try_echo") >&5
12522 (eval "$ac_link") 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } && {
12529 test -z "$ac_c_werror_flag" ||
12530 test ! -s conftest.err
12531 } && test -s conftest$ac_exeext && {
12532 test "$cross_compiling" = yes ||
12533 $as_test_x conftest$ac_exeext
12534 }; then
12535 ac_cv_lib_Xext_XShmQueryExtension=yes
12536 else
12537 $as_echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12540 ac_cv_lib_Xext_XShmQueryExtension=no
12543 rm -rf conftest.dSYM
12544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12545 conftest$ac_exeext conftest.$ac_ext
12546 LIBS=$ac_check_lib_save_LIBS
12548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12549 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12550 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then
12551 have_xshm=yes
12554 CFLAGS="$save_cflags"
12558 if test "x-$have_xshm" = "x-yes" ; then
12559 DO_XSHM_SUPPORT="1"
12560 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12561 { { $as_echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12562 $as_echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12563 { (exit 1); exit 1; }; }
12564 else
12565 DO_XSHM_SUPPORT="0"
12569 # Check whether --enable-x11_vidmode was given.
12570 if test "${enable_x11_vidmode+set}" = set; then
12571 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12572 else
12573 x11_hidd_vidmode="auto"
12576 case "x-$x11_hidd_vidmode" in
12577 x-yes|x-no|x-auto) ;;
12578 *) x11_hidd_vidmode="auto" ;;
12579 esac
12581 have_vidmode=no
12583 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12585 save_cflags="$CFLAGS"
12586 CFLAGS="$CFLAGS $x_cflags"
12587 { $as_echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12588 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12589 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12590 $as_echo_n "(cached) " >&6
12591 else
12592 ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-lXxf86vm $LIBS"
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 char XF86VidModeQueryExtension ();
12609 main ()
12611 return XF86VidModeQueryExtension ();
12613 return 0;
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621 esac
12622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12623 $as_echo "$ac_try_echo") >&5
12624 (eval "$ac_link") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest$ac_exeext && {
12634 test "$cross_compiling" = yes ||
12635 $as_test_x conftest$ac_exeext
12636 }; then
12637 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12638 else
12639 $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12645 rm -rf conftest.dSYM
12646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12647 conftest$ac_exeext conftest.$ac_ext
12648 LIBS=$ac_check_lib_save_LIBS
12650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12651 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12652 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then
12653 have_vidmode=yes
12656 CFLAGS="$save_cflags"
12659 if test "x-$have_vidmode" = "x-yes" ; then
12660 DO_VIDMODE_SUPPORT="1"
12661 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12662 { { $as_echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12663 $as_echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12664 { (exit 1); exit 1; }; }
12665 else
12666 DO_VIDMODE_SUPPORT="0"
12670 aros_host_x11_includes=$x_includes
12671 aros_host_x11_libdirs=$x_libraries
12675 # Check whether --enable-sdl_hidd was given.
12676 if test "${enable_sdl_hidd+set}" = set; then
12677 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12678 else
12679 sdl_hidd="auto"
12682 case "x-$sdl_hidd" in
12683 x-yes|x-no|x-auto) ;;
12684 *) sdl_hidd="auto" ;;
12685 esac
12687 if test "x-$sdl_hidd" != "x-no" ; then
12690 # Check whether --with-sdl-prefix was given.
12691 if test "${with_sdl_prefix+set}" = set; then
12692 withval=$with_sdl_prefix; sdl_prefix="$withval"
12693 else
12694 sdl_prefix=""
12698 # Check whether --with-sdl-exec-prefix was given.
12699 if test "${with_sdl_exec_prefix+set}" = set; then
12700 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12701 else
12702 sdl_exec_prefix=""
12705 # Check whether --enable-sdltest was given.
12706 if test "${enable_sdltest+set}" = set; then
12707 enableval=$enable_sdltest;
12708 else
12709 enable_sdltest=yes
12713 if test x$sdl_exec_prefix != x ; then
12714 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12715 if test x${SDL_CONFIG+set} != xset ; then
12716 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12719 if test x$sdl_prefix != x ; then
12720 sdl_args="$sdl_args --prefix=$sdl_prefix"
12721 if test x${SDL_CONFIG+set} != xset ; then
12722 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12726 if test "x$prefix" != xNONE; then
12727 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12729 # Extract the first word of "sdl-config", so it can be a program name with args.
12730 set dummy sdl-config; ac_word=$2
12731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12734 $as_echo_n "(cached) " >&6
12735 else
12736 case $SDL_CONFIG in
12737 [\\/]* | ?:[\\/]*)
12738 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12752 done
12753 done
12754 IFS=$as_save_IFS
12756 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12758 esac
12760 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12761 if test -n "$SDL_CONFIG"; then
12762 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12763 $as_echo "$SDL_CONFIG" >&6; }
12764 else
12765 { $as_echo "$as_me:$LINENO: result: no" >&5
12766 $as_echo "no" >&6; }
12770 min_sdl_version=1.2.10
12771 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12772 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12773 no_sdl=""
12774 if test "$SDL_CONFIG" = "no" ; then
12775 no_sdl=yes
12776 else
12777 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12778 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12780 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12781 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12782 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12783 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12784 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12785 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12786 if test "x$enable_sdltest" = "xyes" ; then
12787 ac_save_CFLAGS="$CFLAGS"
12788 ac_save_CXXFLAGS="$CXXFLAGS"
12789 ac_save_LIBS="$LIBS"
12790 CFLAGS="$CFLAGS $SDL_CFLAGS"
12791 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12792 LIBS="$LIBS $SDL_LIBS"
12793 rm -f conf.sdltest
12794 if test "$cross_compiling" = yes; then
12795 echo $ac_n "cross compiling; assumed OK... $ac_c"
12796 else
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12804 #include <stdio.h>
12805 #include <stdlib.h>
12806 #include <string.h>
12807 #include "SDL.h"
12809 char*
12810 my_strdup (char *str)
12812 char *new_str;
12814 if (str)
12816 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12817 strcpy (new_str, str);
12819 else
12820 new_str = NULL;
12822 return new_str;
12825 int main (int argc, char *argv[])
12827 int major, minor, micro;
12828 char *tmp_version;
12830 /* This hangs on some systems (?)
12831 system ("touch conf.sdltest");
12833 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12835 /* HP/UX 9 (%@#!) writes to sscanf strings */
12836 tmp_version = my_strdup("$min_sdl_version");
12837 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12838 printf("%s, bad version string\n", "$min_sdl_version");
12839 exit(1);
12842 if (($sdl_major_version > major) ||
12843 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12844 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12846 return 0;
12848 else
12850 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12851 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12852 printf("*** best to upgrade to the required version.\n");
12853 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12854 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12855 printf("*** config.cache before re-running configure\n");
12856 return 1;
12861 _ACEOF
12862 rm -f conftest$ac_exeext
12863 if { (ac_try="$ac_link"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12869 $as_echo "$ac_try_echo") >&5
12870 (eval "$ac_link") 2>&5
12871 ac_status=$?
12872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877 esac
12878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12879 $as_echo "$ac_try_echo") >&5
12880 (eval "$ac_try") 2>&5
12881 ac_status=$?
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12885 else
12886 $as_echo "$as_me: program exited with status $ac_status" >&5
12887 $as_echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12890 ( exit $ac_status )
12891 no_sdl=yes
12893 rm -rf conftest.dSYM
12894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12898 CFLAGS="$ac_save_CFLAGS"
12899 CXXFLAGS="$ac_save_CXXFLAGS"
12900 LIBS="$ac_save_LIBS"
12903 if test "x$no_sdl" = x ; then
12904 { $as_echo "$as_me:$LINENO: result: yes" >&5
12905 $as_echo "yes" >&6; }
12906 have_sdl="yes"
12907 else
12908 { $as_echo "$as_me:$LINENO: result: no" >&5
12909 $as_echo "no" >&6; }
12910 if test "$SDL_CONFIG" = "no" ; then
12911 echo "*** The sdl-config script installed by SDL could not be found"
12912 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12913 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12914 echo "*** full path to sdl-config."
12915 else
12916 if test -f conf.sdltest ; then
12918 else
12919 echo "*** Could not run SDL test program, checking why..."
12920 CFLAGS="$CFLAGS $SDL_CFLAGS"
12921 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12922 LIBS="$LIBS $SDL_LIBS"
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h. */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12930 #include <stdio.h>
12931 #include "SDL.h"
12933 int main(int argc, char *argv[])
12934 { return 0; }
12935 #undef main
12936 #define main K_and_R_C_main
12939 main ()
12941 return 0;
12943 return 0;
12945 _ACEOF
12946 rm -f conftest.$ac_objext conftest$ac_exeext
12947 if { (ac_try="$ac_link"
12948 case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12951 esac
12952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12953 $as_echo "$ac_try_echo") >&5
12954 (eval "$ac_link") 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } && {
12961 test -z "$ac_c_werror_flag" ||
12962 test ! -s conftest.err
12963 } && test -s conftest$ac_exeext && {
12964 test "$cross_compiling" = yes ||
12965 $as_test_x conftest$ac_exeext
12966 }; then
12967 echo "*** The test program compiled, but did not run. This usually means"
12968 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12969 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12970 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12971 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12972 echo "*** is required on your system"
12973 echo "***"
12974 echo "*** If you have an old version installed, it is best to remove it, although"
12975 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12976 else
12977 $as_echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12980 echo "*** The test program failed to compile or link. See the file config.log for the"
12981 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12982 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12983 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12986 rm -rf conftest.dSYM
12987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12988 conftest$ac_exeext conftest.$ac_ext
12989 CFLAGS="$ac_save_CFLAGS"
12990 CXXFLAGS="$ac_save_CXXFLAGS"
12991 LIBS="$ac_save_LIBS"
12994 SDL_CFLAGS=""
12995 SDL_LIBS=""
12996 have_sdl="no"
13000 rm -f conf.sdltest
13003 if test "x-$have_sdl" != "x-yes" ; then
13005 if test "x-$sdl_hidd" != "x-auto" ; then
13006 { { $as_echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
13007 $as_echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
13008 { (exit 1); exit 1; }; }
13011 else
13012 sdl_hidd_target=kernel-hidd-sdl
13013 aros_host_sdl_cflags=SDL_CFLAGS
13014 aros_host_sdl_libs=SDL_LIBS
13021 { $as_echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
13022 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
13023 # Check whether --enable-dbus was given.
13024 if test "${enable_dbus+set}" = set; then
13025 enableval=$enable_dbus; dbus="yes"
13026 else
13027 dbus="no"
13030 if test "$dbus" = "yes" ; then
13031 ENABLE_DBUS=1
13032 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
13033 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
13034 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
13035 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
13036 else
13037 ENABLE_DBUS=0
13039 { $as_echo "$as_me:$LINENO: result: $dbus" >&5
13040 $as_echo "$dbus" >&6; }
13044 # Generic
13053 # Host related
13076 # Target Related
13122 # Graphics Related
13137 # Native version related
13141 # Palm native version related
13144 # Unix/Hosted version related
13147 # DBUS related
13154 #X11 related
13157 # Debug related
13163 # Collect-aros stuff: "-ius" to ignore undefined symbols
13166 # C compiler related
13169 case "$aros_flavour" in
13170 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
13171 aros_flavour="emulation" ;;
13172 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
13173 aros_flavour="emulation" ;;
13174 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
13175 aros_flavour="standalone";;
13176 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
13177 aros_flavour="native" ;;
13178 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
13179 aros_flavour="native" ;;
13180 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
13181 aros_flavour="linklib" ;;
13182 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13183 aros_flavour="palmnative" ;;
13184 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13185 aros_flavour="mac68knative" ;;
13186 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13187 aros_flavour="ppcnative" ;;
13188 esac
13190 if test ! -d ${aros_inc_dir} ; then
13191 ${MKDIR} ${aros_inc_dir}
13193 if test ! -d ${aros_geninc_dir} ; then
13194 ${MKDIR} ${aros_geninc_dir}
13196 if test ! -d ${aros_hostcfg_dir} ; then
13197 ${MKDIR} ${aros_hostcfg_dir}
13199 if test ! -d ${aros_targetcfg_dir} ; then
13200 ${MKDIR} ${aros_targetcfg_dir}
13202 if test ! -d ${aros_tools_dir} ; then
13203 ${MKDIR} ${aros_tools_dir}
13205 if test ! -d ${aros_scripts_dir} ; then
13206 ${MKDIR} ${aros_scripts_dir}
13209 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
13212 ac_config_commands="$ac_config_commands compiler_executable"
13214 ac_config_commands="$ac_config_commands genshared_executable"
13216 ac_config_commands="$ac_config_commands genmf_executable"
13218 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
13221 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/adflib/myconf.aros tools/collect-aros/env.h"
13224 cat >confcache <<\_ACEOF
13225 # This file is a shell script that caches the results of configure
13226 # tests run on this system so they can be shared between configure
13227 # scripts and configure runs, see configure's option --config-cache.
13228 # It is not useful on other systems. If it contains results you don't
13229 # want to keep, you may remove or edit it.
13231 # config.status only pays attention to the cache file if you give it
13232 # the --recheck option to rerun configure.
13234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13236 # following values.
13238 _ACEOF
13240 # The following way of writing the cache mishandles newlines in values,
13241 # but we know of no workaround that is simple, portable, and efficient.
13242 # So, we kill variables containing newlines.
13243 # Ultrix sh set writes to stderr and can't be redirected directly,
13244 # and sets the high bit in the cache file unless we assign to the vars.
13246 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13247 eval ac_val=\$$ac_var
13248 case $ac_val in #(
13249 *${as_nl}*)
13250 case $ac_var in #(
13251 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13253 esac
13254 case $ac_var in #(
13255 _ | IFS | as_nl) ;; #(
13256 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13257 *) $as_unset $ac_var ;;
13258 esac ;;
13259 esac
13260 done
13262 (set) 2>&1 |
13263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13264 *${as_nl}ac_space=\ *)
13265 # `set' does not quote correctly, so add quotes (double-quote
13266 # substitution turns \\\\ into \\, and sed turns \\ into \).
13267 sed -n \
13268 "s/'/'\\\\''/g;
13269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13270 ;; #(
13272 # `set' quotes correctly as required by POSIX, so do not add quotes.
13273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13275 esac |
13276 sort
13278 sed '
13279 /^ac_cv_env_/b end
13280 t clear
13281 :clear
13282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13283 t end
13284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13285 :end' >>confcache
13286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13287 if test -w "$cache_file"; then
13288 test "x$cache_file" != "x/dev/null" &&
13289 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13290 $as_echo "$as_me: updating cache $cache_file" >&6;}
13291 cat confcache >$cache_file
13292 else
13293 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13294 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13297 rm -f confcache
13299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13300 # Let make expand exec_prefix.
13301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13303 DEFS=-DHAVE_CONFIG_H
13305 ac_libobjs=
13306 ac_ltlibobjs=
13307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13308 # 1. Remove the extension, and $U if already installed.
13309 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13310 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13311 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13312 # will be set to the directory where LIBOBJS objects are built.
13313 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13314 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13315 done
13316 LIBOBJS=$ac_libobjs
13318 LTLIBOBJS=$ac_ltlibobjs
13322 : ${CONFIG_STATUS=./config.status}
13323 ac_write_fail=0
13324 ac_clean_files_save=$ac_clean_files
13325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13326 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13327 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13328 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13329 #! $SHELL
13330 # Generated by $as_me.
13331 # Run this file to recreate the current configuration.
13332 # Compiler output produced by configure, useful for debugging
13333 # configure, is in config.log if it exists.
13335 debug=false
13336 ac_cs_recheck=false
13337 ac_cs_silent=false
13338 SHELL=\${CONFIG_SHELL-$SHELL}
13339 _ACEOF
13341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13342 ## --------------------- ##
13343 ## M4sh Initialization. ##
13344 ## --------------------- ##
13346 # Be more Bourne compatible
13347 DUALCASE=1; export DUALCASE # for MKS sh
13348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13349 emulate sh
13350 NULLCMD=:
13351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13352 # is contrary to our usage. Disable this feature.
13353 alias -g '${1+"$@"}'='"$@"'
13354 setopt NO_GLOB_SUBST
13355 else
13356 case `(set -o) 2>/dev/null` in
13357 *posix*) set -o posix ;;
13358 esac
13365 # PATH needs CR
13366 # Avoid depending upon Character Ranges.
13367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13370 as_cr_digits='0123456789'
13371 as_cr_alnum=$as_cr_Letters$as_cr_digits
13373 as_nl='
13375 export as_nl
13376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13377 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13380 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13381 as_echo='printf %s\n'
13382 as_echo_n='printf %s'
13383 else
13384 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13385 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13386 as_echo_n='/usr/ucb/echo -n'
13387 else
13388 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13389 as_echo_n_body='eval
13390 arg=$1;
13391 case $arg in
13392 *"$as_nl"*)
13393 expr "X$arg" : "X\\(.*\\)$as_nl";
13394 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13395 esac;
13396 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13398 export as_echo_n_body
13399 as_echo_n='sh -c $as_echo_n_body as_echo'
13401 export as_echo_body
13402 as_echo='sh -c $as_echo_body as_echo'
13405 # The user is always right.
13406 if test "${PATH_SEPARATOR+set}" != set; then
13407 PATH_SEPARATOR=:
13408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13409 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13410 PATH_SEPARATOR=';'
13414 # Support unset when possible.
13415 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13416 as_unset=unset
13417 else
13418 as_unset=false
13422 # IFS
13423 # We need space, tab and new line, in precisely that order. Quoting is
13424 # there to prevent editors from complaining about space-tab.
13425 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13426 # splitting by setting IFS to empty value.)
13427 IFS=" "" $as_nl"
13429 # Find who we are. Look in the path if we contain no directory separator.
13430 case $0 in
13431 *[\\/]* ) as_myself=$0 ;;
13432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13438 done
13439 IFS=$as_save_IFS
13442 esac
13443 # We did not find ourselves, most probably we were run as `sh COMMAND'
13444 # in which case we are not to be found in the path.
13445 if test "x$as_myself" = x; then
13446 as_myself=$0
13448 if test ! -f "$as_myself"; then
13449 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13450 { (exit 1); exit 1; }
13453 # Work around bugs in pre-3.0 UWIN ksh.
13454 for as_var in ENV MAIL MAILPATH
13455 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13456 done
13457 PS1='$ '
13458 PS2='> '
13459 PS4='+ '
13461 # NLS nuisances.
13462 LC_ALL=C
13463 export LC_ALL
13464 LANGUAGE=C
13465 export LANGUAGE
13467 # Required to use basename.
13468 if expr a : '\(a\)' >/dev/null 2>&1 &&
13469 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13470 as_expr=expr
13471 else
13472 as_expr=false
13475 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13476 as_basename=basename
13477 else
13478 as_basename=false
13482 # Name of the executable.
13483 as_me=`$as_basename -- "$0" ||
13484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13485 X"$0" : 'X\(//\)$' \| \
13486 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13487 $as_echo X/"$0" |
13488 sed '/^.*\/\([^/][^/]*\)\/*$/{
13489 s//\1/
13492 /^X\/\(\/\/\)$/{
13493 s//\1/
13496 /^X\/\(\/\).*/{
13497 s//\1/
13500 s/.*/./; q'`
13502 # CDPATH.
13503 $as_unset CDPATH
13507 as_lineno_1=$LINENO
13508 as_lineno_2=$LINENO
13509 test "x$as_lineno_1" != "x$as_lineno_2" &&
13510 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13512 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13513 # uniformly replaced by the line number. The first 'sed' inserts a
13514 # line-number line after each line using $LINENO; the second 'sed'
13515 # does the real work. The second script uses 'N' to pair each
13516 # line-number line with the line containing $LINENO, and appends
13517 # trailing '-' during substitution so that $LINENO is not a special
13518 # case at line end.
13519 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13520 # scripts with optimization help from Paolo Bonzini. Blame Lee
13521 # E. McMahon (1931-1989) for sed's syntax. :-)
13522 sed -n '
13524 /[$]LINENO/=
13525 ' <$as_myself |
13526 sed '
13527 s/[$]LINENO.*/&-/
13528 t lineno
13530 :lineno
13532 :loop
13533 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13534 t loop
13535 s/-\n.*//
13536 ' >$as_me.lineno &&
13537 chmod +x "$as_me.lineno" ||
13538 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13539 { (exit 1); exit 1; }; }
13541 # Don't try to exec as it changes $[0], causing all sort of problems
13542 # (the dirname of $[0] is not the place where we might find the
13543 # original and so on. Autoconf is especially sensitive to this).
13544 . "./$as_me.lineno"
13545 # Exit status is that of the last command.
13546 exit
13550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13551 as_dirname=dirname
13552 else
13553 as_dirname=false
13556 ECHO_C= ECHO_N= ECHO_T=
13557 case `echo -n x` in
13558 -n*)
13559 case `echo 'x\c'` in
13560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13561 *) ECHO_C='\c';;
13562 esac;;
13564 ECHO_N='-n';;
13565 esac
13566 if expr a : '\(a\)' >/dev/null 2>&1 &&
13567 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13568 as_expr=expr
13569 else
13570 as_expr=false
13573 rm -f conf$$ conf$$.exe conf$$.file
13574 if test -d conf$$.dir; then
13575 rm -f conf$$.dir/conf$$.file
13576 else
13577 rm -f conf$$.dir
13578 mkdir conf$$.dir 2>/dev/null
13580 if (echo >conf$$.file) 2>/dev/null; then
13581 if ln -s conf$$.file conf$$ 2>/dev/null; then
13582 as_ln_s='ln -s'
13583 # ... but there are two gotchas:
13584 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13585 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13586 # In both cases, we have to default to `cp -p'.
13587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13588 as_ln_s='cp -p'
13589 elif ln conf$$.file conf$$ 2>/dev/null; then
13590 as_ln_s=ln
13591 else
13592 as_ln_s='cp -p'
13594 else
13595 as_ln_s='cp -p'
13597 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13598 rmdir conf$$.dir 2>/dev/null
13600 if mkdir -p . 2>/dev/null; then
13601 as_mkdir_p=:
13602 else
13603 test -d ./-p && rmdir ./-p
13604 as_mkdir_p=false
13607 if test -x / >/dev/null 2>&1; then
13608 as_test_x='test -x'
13609 else
13610 if ls -dL / >/dev/null 2>&1; then
13611 as_ls_L_option=L
13612 else
13613 as_ls_L_option=
13615 as_test_x='
13616 eval sh -c '\''
13617 if test -d "$1"; then
13618 test -d "$1/.";
13619 else
13620 case $1 in
13621 -*)set "./$1";;
13622 esac;
13623 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13624 ???[sx]*):;;*)false;;esac;fi
13625 '\'' sh
13628 as_executable_p=$as_test_x
13630 # Sed expression to map a string onto a valid CPP name.
13631 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13633 # Sed expression to map a string onto a valid variable name.
13634 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13637 exec 6>&1
13639 # Save the log message, to keep $[0] and so on meaningful, and to
13640 # report actual input values of CONFIG_FILES etc. instead of their
13641 # values after options handling.
13642 ac_log="
13643 This file was extended by $as_me, which was
13644 generated by GNU Autoconf 2.63. Invocation command line was
13646 CONFIG_FILES = $CONFIG_FILES
13647 CONFIG_HEADERS = $CONFIG_HEADERS
13648 CONFIG_LINKS = $CONFIG_LINKS
13649 CONFIG_COMMANDS = $CONFIG_COMMANDS
13650 $ $0 $@
13652 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13655 _ACEOF
13657 case $ac_config_files in *"
13658 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13659 esac
13661 case $ac_config_headers in *"
13662 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13663 esac
13666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13667 # Files that config.status was made for.
13668 config_files="$ac_config_files"
13669 config_headers="$ac_config_headers"
13670 config_commands="$ac_config_commands"
13672 _ACEOF
13674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13675 ac_cs_usage="\
13676 \`$as_me' instantiates files from templates according to the
13677 current configuration.
13679 Usage: $0 [OPTION]... [FILE]...
13681 -h, --help print this help, then exit
13682 -V, --version print version number and configuration settings, then exit
13683 -q, --quiet, --silent
13684 do not print progress messages
13685 -d, --debug don't remove temporary files
13686 --recheck update $as_me by reconfiguring in the same conditions
13687 --file=FILE[:TEMPLATE]
13688 instantiate the configuration file FILE
13689 --header=FILE[:TEMPLATE]
13690 instantiate the configuration header FILE
13692 Configuration files:
13693 $config_files
13695 Configuration headers:
13696 $config_headers
13698 Configuration commands:
13699 $config_commands
13701 Report bugs to <bug-autoconf@gnu.org>."
13703 _ACEOF
13704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705 ac_cs_version="\\
13706 config.status
13707 configured by $0, generated by GNU Autoconf 2.63,
13708 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13710 Copyright (C) 2008 Free Software Foundation, Inc.
13711 This config.status script is free software; the Free Software Foundation
13712 gives unlimited permission to copy, distribute and modify it."
13714 ac_pwd='$ac_pwd'
13715 srcdir='$srcdir'
13716 test -n "\$AWK" || AWK=awk
13717 _ACEOF
13719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13720 # The default lists apply if the user does not specify any file.
13721 ac_need_defaults=:
13722 while test $# != 0
13724 case $1 in
13725 --*=*)
13726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13728 ac_shift=:
13731 ac_option=$1
13732 ac_optarg=$2
13733 ac_shift=shift
13735 esac
13737 case $ac_option in
13738 # Handling of the options.
13739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13740 ac_cs_recheck=: ;;
13741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13742 $as_echo "$ac_cs_version"; exit ;;
13743 --debug | --debu | --deb | --de | --d | -d )
13744 debug=: ;;
13745 --file | --fil | --fi | --f )
13746 $ac_shift
13747 case $ac_optarg in
13748 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13749 esac
13750 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13751 ac_need_defaults=false;;
13752 --header | --heade | --head | --hea )
13753 $ac_shift
13754 case $ac_optarg in
13755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13756 esac
13757 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13758 ac_need_defaults=false;;
13759 --he | --h)
13760 # Conflict between --help and --header
13761 { $as_echo "$as_me: error: ambiguous option: $1
13762 Try \`$0 --help' for more information." >&2
13763 { (exit 1); exit 1; }; };;
13764 --help | --hel | -h )
13765 $as_echo "$ac_cs_usage"; exit ;;
13766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13768 ac_cs_silent=: ;;
13770 # This is an error.
13771 -*) { $as_echo "$as_me: error: unrecognized option: $1
13772 Try \`$0 --help' for more information." >&2
13773 { (exit 1); exit 1; }; } ;;
13775 *) ac_config_targets="$ac_config_targets $1"
13776 ac_need_defaults=false ;;
13778 esac
13779 shift
13780 done
13782 ac_configure_extra_args=
13784 if $ac_cs_silent; then
13785 exec 6>/dev/null
13786 ac_configure_extra_args="$ac_configure_extra_args --silent"
13789 _ACEOF
13790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13791 if \$ac_cs_recheck; then
13792 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13793 shift
13794 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13795 CONFIG_SHELL='$SHELL'
13796 export CONFIG_SHELL
13797 exec "\$@"
13800 _ACEOF
13801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13802 exec 5>>config.log
13804 echo
13805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13806 ## Running $as_me. ##
13807 _ASBOX
13808 $as_echo "$ac_log"
13809 } >&5
13811 _ACEOF
13812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13814 # INIT-COMMANDS
13817 aros_tools_dir=${aros_tools_dir}
13818 aros_target_cpu=${aros_target_cpu}
13819 aros_target_arch=${aros_target_arch}
13820 aros_target_suffix=${aros_target_suffix}
13821 aros_target_nm_ln=${aros_target_nm_ln}
13822 aros_target_as_ln=${aros_target_as_ln}
13823 aros_target_ar_ln=${aros_target_ar_ln}
13824 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13825 aros_target_objdump_ln=${aros_target_objdump_ln}
13826 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13827 aros_target_strip_ln=${aros_target_strip_ln}
13830 aros_scripts_dir=${aros_scripts_dir}
13832 aros_tools_dir=${aros_tools_dir}
13835 _ACEOF
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839 # Handling of arguments.
13840 for ac_config_target in $ac_config_targets
13842 case $ac_config_target in
13843 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13844 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13845 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13846 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13847 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13849 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13850 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13851 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13852 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13853 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13854 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13855 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13856 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13857 "${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" ;;
13858 "${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" ;;
13859 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13860 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13861 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13862 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13864 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13865 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13866 { (exit 1); exit 1; }; };;
13867 esac
13868 done
13871 # If the user did not use the arguments to specify the items to instantiate,
13872 # then the envvar interface is used. Set only those that are not.
13873 # We use the long form for the default assignment because of an extremely
13874 # bizarre bug on SunOS 4.1.3.
13875 if $ac_need_defaults; then
13876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13881 # Have a temporary directory for convenience. Make it in the build tree
13882 # simply because there is no reason against having it here, and in addition,
13883 # creating and moving files from /tmp can sometimes cause problems.
13884 # Hook for its removal unless debugging.
13885 # Note that there is a small window in which the directory will not be cleaned:
13886 # after its creation but before its name has been assigned to `$tmp'.
13887 $debug ||
13889 tmp=
13890 trap 'exit_status=$?
13891 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13893 trap '{ (exit 1); exit 1; }' 1 2 13 15
13895 # Create a (secure) tmp directory for tmp files.
13898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13899 test -n "$tmp" && test -d "$tmp"
13900 } ||
13902 tmp=./conf$$-$RANDOM
13903 (umask 077 && mkdir "$tmp")
13904 } ||
13906 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13907 { (exit 1); exit 1; }
13910 # Set up the scripts for CONFIG_FILES section.
13911 # No need to generate them if there are no CONFIG_FILES.
13912 # This happens for instance with `./config.status config.h'.
13913 if test -n "$CONFIG_FILES"; then
13916 ac_cr=' '
13917 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13918 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13919 ac_cs_awk_cr='\\r'
13920 else
13921 ac_cs_awk_cr=$ac_cr
13924 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13925 _ACEOF
13929 echo "cat >conf$$subs.awk <<_ACEOF" &&
13930 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13931 echo "_ACEOF"
13932 } >conf$$subs.sh ||
13933 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13934 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13935 { (exit 1); exit 1; }; }
13936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13937 ac_delim='%!_!# '
13938 for ac_last_try in false false false false false :; do
13939 . ./conf$$subs.sh ||
13940 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13941 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13942 { (exit 1); exit 1; }; }
13944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13945 if test $ac_delim_n = $ac_delim_num; then
13946 break
13947 elif $ac_last_try; then
13948 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13949 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13950 { (exit 1); exit 1; }; }
13951 else
13952 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13954 done
13955 rm -f conf$$subs.sh
13957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13958 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13959 _ACEOF
13960 sed -n '
13962 s/^/S["/; s/!.*/"]=/
13965 s/^[^!]*!//
13966 :repl
13967 t repl
13968 s/'"$ac_delim"'$//
13969 t delim
13972 s/\(.\{148\}\).*/\1/
13973 t more1
13974 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13977 b repl
13978 :more1
13979 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13982 s/.\{148\}//
13983 t nl
13984 :delim
13986 s/\(.\{148\}\).*/\1/
13987 t more2
13988 s/["\\]/\\&/g; s/^/"/; s/$/"/
13991 :more2
13992 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13995 s/.\{148\}//
13996 t delim
13997 ' <conf$$subs.awk | sed '
13998 /^[^""]/{
14000 s/\n//
14002 ' >>$CONFIG_STATUS || ac_write_fail=1
14003 rm -f conf$$subs.awk
14004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005 _ACAWK
14006 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14007 for (key in S) S_is_set[key] = 1
14008 FS = "\a"
14012 line = $ 0
14013 nfields = split(line, field, "@")
14014 substed = 0
14015 len = length(field[1])
14016 for (i = 2; i < nfields; i++) {
14017 key = field[i]
14018 keylen = length(key)
14019 if (S_is_set[key]) {
14020 value = S[key]
14021 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14022 len += length(value) + length(field[++i])
14023 substed = 1
14024 } else
14025 len += 1 + keylen
14028 print line
14031 _ACAWK
14032 _ACEOF
14033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14034 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14035 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14036 else
14038 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14039 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14040 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14041 { (exit 1); exit 1; }; }
14042 _ACEOF
14044 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14045 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14046 # trailing colons and then remove the whole line if VPATH becomes empty
14047 # (actually we leave an empty line to preserve line numbers).
14048 if test "x$srcdir" = x.; then
14049 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14050 s/:*\$(srcdir):*/:/
14051 s/:*\${srcdir}:*/:/
14052 s/:*@srcdir@:*/:/
14053 s/^\([^=]*=[ ]*\):*/\1/
14054 s/:*$//
14055 s/^[^=]*=[ ]*$//
14059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14060 fi # test -n "$CONFIG_FILES"
14062 # Set up the scripts for CONFIG_HEADERS section.
14063 # No need to generate them if there are no CONFIG_HEADERS.
14064 # This happens for instance with `./config.status Makefile'.
14065 if test -n "$CONFIG_HEADERS"; then
14066 cat >"$tmp/defines.awk" <<\_ACAWK ||
14067 BEGIN {
14068 _ACEOF
14070 # Transform confdefs.h into an awk script `defines.awk', embedded as
14071 # here-document in config.status, that substitutes the proper values into
14072 # config.h.in to produce config.h.
14074 # Create a delimiter string that does not exist in confdefs.h, to ease
14075 # handling of long lines.
14076 ac_delim='%!_!# '
14077 for ac_last_try in false false :; do
14078 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14079 if test -z "$ac_t"; then
14080 break
14081 elif $ac_last_try; then
14082 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14083 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14084 { (exit 1); exit 1; }; }
14085 else
14086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14088 done
14090 # For the awk script, D is an array of macro values keyed by name,
14091 # likewise P contains macro parameters if any. Preserve backslash
14092 # newline sequences.
14094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14095 sed -n '
14096 s/.\{148\}/&'"$ac_delim"'/g
14097 t rset
14098 :rset
14099 s/^[ ]*#[ ]*define[ ][ ]*/ /
14100 t def
14102 :def
14103 s/\\$//
14104 t bsnl
14105 s/["\\]/\\&/g
14106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14107 D["\1"]=" \3"/p
14108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14110 :bsnl
14111 s/["\\]/\\&/g
14112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14113 D["\1"]=" \3\\\\\\n"\\/p
14114 t cont
14115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14116 t cont
14118 :cont
14120 s/.\{148\}/&'"$ac_delim"'/g
14121 t clear
14122 :clear
14123 s/\\$//
14124 t bsnlc
14125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14127 :bsnlc
14128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14129 b cont
14130 ' <confdefs.h | sed '
14131 s/'"$ac_delim"'/"\\\
14132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14135 for (key in D) D_is_set[key] = 1
14136 FS = "\a"
14138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14139 line = \$ 0
14140 split(line, arg, " ")
14141 if (arg[1] == "#") {
14142 defundef = arg[2]
14143 mac1 = arg[3]
14144 } else {
14145 defundef = substr(arg[1], 2)
14146 mac1 = arg[2]
14148 split(mac1, mac2, "(") #)
14149 macro = mac2[1]
14150 prefix = substr(line, 1, index(line, defundef) - 1)
14151 if (D_is_set[macro]) {
14152 # Preserve the white space surrounding the "#".
14153 print prefix "define", macro P[macro] D[macro]
14154 next
14155 } else {
14156 # Replace #undef with comments. This is necessary, for example,
14157 # in the case of _POSIX_SOURCE, which is predefined and required
14158 # on some systems where configure will not decide to define it.
14159 if (defundef == "undef") {
14160 print "/*", prefix defundef, macro, "*/"
14161 next
14165 { print }
14166 _ACAWK
14167 _ACEOF
14168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14169 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14170 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14171 { (exit 1); exit 1; }; }
14172 fi # test -n "$CONFIG_HEADERS"
14175 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14176 shift
14177 for ac_tag
14179 case $ac_tag in
14180 :[FHLC]) ac_mode=$ac_tag; continue;;
14181 esac
14182 case $ac_mode$ac_tag in
14183 :[FHL]*:*);;
14184 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14185 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14186 { (exit 1); exit 1; }; };;
14187 :[FH]-) ac_tag=-:-;;
14188 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14189 esac
14190 ac_save_IFS=$IFS
14191 IFS=:
14192 set x $ac_tag
14193 IFS=$ac_save_IFS
14194 shift
14195 ac_file=$1
14196 shift
14198 case $ac_mode in
14199 :L) ac_source=$1;;
14200 :[FH])
14201 ac_file_inputs=
14202 for ac_f
14204 case $ac_f in
14205 -) ac_f="$tmp/stdin";;
14206 *) # Look for the file first in the build tree, then in the source tree
14207 # (if the path is not absolute). The absolute path cannot be DOS-style,
14208 # because $ac_f cannot contain `:'.
14209 test -f "$ac_f" ||
14210 case $ac_f in
14211 [\\/$]*) false;;
14212 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14213 esac ||
14214 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14215 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14216 { (exit 1); exit 1; }; };;
14217 esac
14218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14219 ac_file_inputs="$ac_file_inputs '$ac_f'"
14220 done
14222 # Let's still pretend it is `configure' which instantiates (i.e., don't
14223 # use $as_me), people would be surprised to read:
14224 # /* config.h. Generated by config.status. */
14225 configure_input='Generated from '`
14226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14227 `' by configure.'
14228 if test x"$ac_file" != x-; then
14229 configure_input="$ac_file. $configure_input"
14230 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14231 $as_echo "$as_me: creating $ac_file" >&6;}
14233 # Neutralize special characters interpreted by sed in replacement strings.
14234 case $configure_input in #(
14235 *\&* | *\|* | *\\* )
14236 ac_sed_conf_input=`$as_echo "$configure_input" |
14237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14238 *) ac_sed_conf_input=$configure_input;;
14239 esac
14241 case $ac_tag in
14242 *:-:* | *:-) cat >"$tmp/stdin" \
14243 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14244 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14245 { (exit 1); exit 1; }; } ;;
14246 esac
14248 esac
14250 ac_dir=`$as_dirname -- "$ac_file" ||
14251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252 X"$ac_file" : 'X\(//\)[^/]' \| \
14253 X"$ac_file" : 'X\(//\)$' \| \
14254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14255 $as_echo X"$ac_file" |
14256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14257 s//\1/
14260 /^X\(\/\/\)[^/].*/{
14261 s//\1/
14264 /^X\(\/\/\)$/{
14265 s//\1/
14268 /^X\(\/\).*/{
14269 s//\1/
14272 s/.*/./; q'`
14273 { as_dir="$ac_dir"
14274 case $as_dir in #(
14275 -*) as_dir=./$as_dir;;
14276 esac
14277 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14278 as_dirs=
14279 while :; do
14280 case $as_dir in #(
14281 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14282 *) as_qdir=$as_dir;;
14283 esac
14284 as_dirs="'$as_qdir' $as_dirs"
14285 as_dir=`$as_dirname -- "$as_dir" ||
14286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14287 X"$as_dir" : 'X\(//\)[^/]' \| \
14288 X"$as_dir" : 'X\(//\)$' \| \
14289 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14290 $as_echo X"$as_dir" |
14291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14292 s//\1/
14295 /^X\(\/\/\)[^/].*/{
14296 s//\1/
14299 /^X\(\/\/\)$/{
14300 s//\1/
14303 /^X\(\/\).*/{
14304 s//\1/
14307 s/.*/./; q'`
14308 test -d "$as_dir" && break
14309 done
14310 test -z "$as_dirs" || eval "mkdir $as_dirs"
14311 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14312 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14313 { (exit 1); exit 1; }; }; }
14314 ac_builddir=.
14316 case "$ac_dir" in
14317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14320 # A ".." for each directory in $ac_dir_suffix.
14321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14322 case $ac_top_builddir_sub in
14323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14325 esac ;;
14326 esac
14327 ac_abs_top_builddir=$ac_pwd
14328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14329 # for backward compatibility:
14330 ac_top_builddir=$ac_top_build_prefix
14332 case $srcdir in
14333 .) # We are building in place.
14334 ac_srcdir=.
14335 ac_top_srcdir=$ac_top_builddir_sub
14336 ac_abs_top_srcdir=$ac_pwd ;;
14337 [\\/]* | ?:[\\/]* ) # Absolute name.
14338 ac_srcdir=$srcdir$ac_dir_suffix;
14339 ac_top_srcdir=$srcdir
14340 ac_abs_top_srcdir=$srcdir ;;
14341 *) # Relative name.
14342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14343 ac_top_srcdir=$ac_top_build_prefix$srcdir
14344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14345 esac
14346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14349 case $ac_mode in
14352 # CONFIG_FILE
14355 _ACEOF
14357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14358 # If the template does not know about datarootdir, expand it.
14359 # FIXME: This hack should be removed a few years after 2.60.
14360 ac_datarootdir_hack=; ac_datarootdir_seen=
14362 ac_sed_dataroot='
14363 /datarootdir/ {
14367 /@datadir@/p
14368 /@docdir@/p
14369 /@infodir@/p
14370 /@localedir@/p
14371 /@mandir@/p
14373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14374 *datarootdir*) ac_datarootdir_seen=yes;;
14375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14376 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14377 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14378 _ACEOF
14379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14380 ac_datarootdir_hack='
14381 s&@datadir@&$datadir&g
14382 s&@docdir@&$docdir&g
14383 s&@infodir@&$infodir&g
14384 s&@localedir@&$localedir&g
14385 s&@mandir@&$mandir&g
14386 s&\\\${datarootdir}&$datarootdir&g' ;;
14387 esac
14388 _ACEOF
14390 # Neutralize VPATH when `$srcdir' = `.'.
14391 # Shell code in configure.ac might set extrasub.
14392 # FIXME: do we really want to maintain this feature?
14393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14394 ac_sed_extra="$ac_vpsub
14395 $extrasub
14396 _ACEOF
14397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14400 s|@configure_input@|$ac_sed_conf_input|;t t
14401 s&@top_builddir@&$ac_top_builddir_sub&;t t
14402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14403 s&@srcdir@&$ac_srcdir&;t t
14404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14405 s&@top_srcdir@&$ac_top_srcdir&;t t
14406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14407 s&@builddir@&$ac_builddir&;t t
14408 s&@abs_builddir@&$ac_abs_builddir&;t t
14409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14410 $ac_datarootdir_hack
14412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14413 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14414 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14415 { (exit 1); exit 1; }; }
14417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14418 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14420 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14421 which seems to be undefined. Please make sure it is defined." >&5
14422 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14423 which seems to be undefined. Please make sure it is defined." >&2;}
14425 rm -f "$tmp/stdin"
14426 case $ac_file in
14427 -) cat "$tmp/out" && rm -f "$tmp/out";;
14428 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14429 esac \
14430 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14431 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14432 { (exit 1); exit 1; }; }
14436 # CONFIG_HEADER
14438 if test x"$ac_file" != x-; then
14440 $as_echo "/* $configure_input */" \
14441 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14442 } >"$tmp/config.h" \
14443 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14444 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14445 { (exit 1); exit 1; }; }
14446 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14447 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14448 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14449 else
14450 rm -f "$ac_file"
14451 mv "$tmp/config.h" "$ac_file" \
14452 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14453 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14454 { (exit 1); exit 1; }; }
14456 else
14457 $as_echo "/* $configure_input */" \
14458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14459 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14460 $as_echo "$as_me: error: could not create -" >&2;}
14461 { (exit 1); exit 1; }; }
14465 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14466 $as_echo "$as_me: executing $ac_file commands" >&6;}
14468 esac
14471 case $ac_file$ac_mode in
14472 "compiler_executable":C)
14473 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14474 mkdir -p $prefix
14475 prefix="${prefix}/${aros_target_cpu}-aros"
14476 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14478 echo ${prefix}
14479 echo ${prefix2}
14480 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14482 ln -sf ${prefix2}-gcc ${prefix}-gcc
14483 ln -sf ${prefix2}-ld ${prefix}-ld
14485 ln -sf $aros_target_as_ln ${prefix}-as
14486 ln -sf $aros_target_nm_ln ${prefix}-nm
14487 ln -sf $aros_target_ar_ln ${prefix}-ar
14488 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
14489 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
14490 ln -sf $aros_target_objdump_ln ${prefix}-objdump
14491 ln -sf $aros_target_strip_ln ${prefix}-strip
14493 ln -sf $aros_target_as_ln ${prefix2}-as
14494 ln -sf $aros_target_nm_ln ${prefix2}-nm
14495 ln -sf $aros_target_ar_ln ${prefix2}-ar
14496 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
14497 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
14498 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
14499 ln -sf $aros_target_strip_ln ${prefix2}-strip
14501 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14502 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14503 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
14506 esac
14507 done # for ac_tag
14510 { (exit 0); exit 0; }
14511 _ACEOF
14512 chmod +x $CONFIG_STATUS
14513 ac_clean_files=$ac_clean_files_save
14515 test $ac_write_fail = 0 ||
14516 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14517 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14518 { (exit 1); exit 1; }; }
14521 # configure is writing to config.log, and then calls config.status.
14522 # config.status does its own redirection, appending to config.log.
14523 # Unfortunately, on DOS this fails, as config.log is still kept open
14524 # by configure, so config.status won't be able to write to it; its
14525 # output is simply discarded. So we exec the FD to /dev/null,
14526 # effectively closing config.log, so it can be properly (re)opened and
14527 # appended to by config.status. When coming back to configure, we
14528 # need to make the FD available again.
14529 if test "$no_create" != yes; then
14530 ac_cs_success=:
14531 ac_config_status_args=
14532 test "$silent" = yes &&
14533 ac_config_status_args="$ac_config_status_args --quiet"
14534 exec 5>/dev/null
14535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14536 exec 5>>config.log
14537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14538 # would make configure fail if this is the last instruction.
14539 $ac_cs_success || { (exit 1); exit 1; }
14541 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14542 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14543 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14548 #XXX compatability...
14549 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14551 if test -n "$aros_shared_cflags" ; then
14552 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14553 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg