Re-enabled use of AROS.Boot file due to lack of general enthusiasm for
[tangerine.git] / configure
blobb003229968b820f21b2f7637653d445899f7602c
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_guitheme
702 aros_tools_dir
703 aros_host_lib_suffix
704 aros_host_exe_suffix
705 aros_host_mkargs
706 aros_host_mkdep
707 aros_host_debug
708 aros_host_ldflags
709 aros_host_cflags
710 aros_host_make
711 aros_host_cc
712 aros_host_cpu
713 aros_host_arch
714 aros_cc_pre
715 AROS_PORTSSRCDIR
716 SRCDIR
717 AROS_BUILDDIR
718 aros_flavour_uc
719 aros_flavour
720 aros_cpu
721 aros_arch
722 SDL_LIBS
723 SDL_CFLAGS
724 SDL_CONFIG
725 XMKMF
726 aros_cflags_iquote_end
727 aros_cflags_iquote
728 aros_target_nostdlib_ldflags
729 aros_target_detach_ldflags
730 aros_target_nix_ldflags
731 aros_target_nostartup_ldflags
732 aros_target_nostdinc_cflags
733 aros_kernel_rescomp
734 aros_target_strip_ln
735 aros_target_ranlib_ln
736 aros_target_objdump_ln
737 aros_target_objcopy_ln
738 aros_target_nm_ln
739 aros_target_ar_ln
740 aros_kernel_ld
741 aros_target_as_ln
742 aros_target_ld
743 aros_target_cc
744 aros_kernel_cc
745 LIBLZO
746 CCACHE
747 DISTCC
748 LIBOBJS
749 EGREP
750 GREP
752 TEST
755 pkgpyexecdir
756 pyexecdir
757 pkgpythondir
758 pythondir
759 PYTHON_PLATFORM
760 PYTHON_EXEC_PREFIX
761 PYTHON_PREFIX
762 PYTHON_VERSION
763 PYTHON
764 CHMOD
766 PPMTOILBM
767 PNGTOPNM
768 FLEX
769 BISON
772 UNIQ
773 SORT
774 TOUCH
775 MKDIR
776 ECHO
780 aros_host_strip
781 aros_host_ranlib
782 aros_host_ar
783 aros_host_automake
784 aros_host_autoheader
785 aros_host_autoconf
786 aros_host_aclocal
787 aros_host_ld
788 MMAKE
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
798 host_os
799 host_vendor
800 host_cpu
801 host
802 build_os
803 build_vendor
804 build_cpu
805 build
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 localstatedir
826 sharedstatedir
827 sysconfdir
828 datadir
829 datarootdir
830 libexecdir
831 sbindir
832 bindir
833 program_transform_name
834 prefix
835 exec_prefix
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL'
843 ac_subst_files=''
844 ac_user_opts='
845 enable_option_checking
846 enable_build_type
847 enable_debug
848 enable_crosstools
849 enable_distcc
850 enable_ccache
851 with_optimization
852 enable_target_variant
853 with_portssources
854 with_bootloader
855 with_theme
856 enable_includes
857 with_resolution
858 enable_bochs_hack
859 with_serial_debug
860 enable_palm_debug_hack
861 enable_nesting_supervisor
862 enable_x11_hidd
863 with_x
864 enable_x11_shm
865 enable_x11_vidmode
866 enable_sdl_hidd
867 with_sdl_prefix
868 with_sdl_exec_prefix
869 enable_sdltest
870 enable_dbus
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
881 XMKMF'
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
932 ac_prev=
933 ac_dashdash=
934 for ac_option
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
952 ac_dashdash=yes ;;
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
971 --config-cache | -C)
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
991 { (exit 1); exit 1; }; }
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1013 -enable-* | --enable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1218 -with-* | --with-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1240 { (exit 1); exit 1; }; }
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1270 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280 { (exit 1); exit 1; }; }
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292 esac
1293 done
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1298 { (exit 1); exit 1; }; }
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1305 { (exit 1); exit 1; }; } ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1330 done
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353 test "$silent" = yes && exec 6>/dev/null
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1384 /^X\(\/\/\)$/{
1385 s//\1/
1388 /^X\(\/\).*/{
1389 s//\1/
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1397 else
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures this package to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 X features:
1492 --x-includes=DIR X include files are in DIR
1493 --x-libraries=DIR X library files are in DIR
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1501 if test -n "$ac_init_help"; then
1503 cat <<\_ACEOF
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-build-type=TYPE
1510 Select the build type. Available types are:
1511 personal, nightly, snapshot, milestone, release. Do
1512 NOT use this option unless you know what you are
1513 doing! (default=personal)
1514 --enable-debug=list Enable different types of debug. Commas or
1515 whitespaces can be used to separate the items in the
1516 list. Available types of debug are: all, none,
1517 messages, stack, mungwall, modules, symbols. If no
1518 list is provided then "all" is assumed.
1519 (default=none)
1520 --enable-crosstools Build cross-compiler toolchains if necessary
1521 (default=no).
1522 --enable-distcc Use distcc as a front end to the compiler
1523 (default=no).
1524 --enable-ccache Use ccache as a front end to the compiler
1525 (default=no).
1526 --enable-target-variant=NAME
1527 Enable a specific target variant(default=none)
1528 --enable-includes=dir Alternative system include directory
1529 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1530 (default=no)
1531 --enable-palm-debug-hack
1532 Enable palm debug output hack in palm native
1533 (default=no)
1534 --enable-nesting-supervisor
1535 Enable nesting supervisor support in unix
1536 (default=no)
1537 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1538 --enable-x11-shm use X11 shared memory (default=auto)
1539 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1540 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1541 --disable-sdltest Do not try to compile and run a test SDL program
1542 --enable-dbus Enable DBUS support via dbus.library (default=no)
1544 Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-optimization=FLAGS
1548 Use optimization flags FLAGS (default=-O2).
1549 --with-portssources=DIR Where to download sourcecode for external ports
1550 --with-bootloader=NAME Use a specific bootloader
1551 --with-theme=NAME Use a specific GUI Theme
1552 --with-resolution=XRESxYRESxDEPTH
1553 Default resolution of the initial WorkbenchScreen
1554 --with-serial-debug Enable serial debug output in native (default=no)
1555 --with-x use the X Window System
1556 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1557 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1559 Some influential environment variables:
1560 CC C compiler command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1567 CPP C preprocessor
1568 XMKMF Path to xmkmf, Makefile generator for X Window System
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 _ACEOF
1574 ac_status=$?
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 continue
1583 ac_builddir=.
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1601 case $srcdir in
1602 .) # We are building in place.
1603 ac_srcdir=.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1610 *) # Relative name.
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634 cat <<\_ACEOF
1635 configure
1636 generated by GNU Autoconf 2.63
1638 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1639 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643 exit
1645 cat >config.log <<_ACEOF
1646 This file contains any messages produced by compilers while
1647 running configure, to aid debugging if configure makes a mistake.
1649 It was created by $as_me, which was
1650 generated by GNU Autoconf 2.63. Invocation command line was
1652 $ $0 $@
1654 _ACEOF
1655 exec 5>>config.log
1657 cat <<_ASUNAME
1658 ## --------- ##
1659 ## Platform. ##
1660 ## --------- ##
1662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1672 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1675 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1676 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1677 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1679 _ASUNAME
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 $as_echo "PATH: $as_dir"
1687 done
1688 IFS=$as_save_IFS
1690 } >&5
1692 cat >&5 <<_ACEOF
1695 ## ----------- ##
1696 ## Core tests. ##
1697 ## ----------- ##
1699 _ACEOF
1702 # Keep a trace of the command line.
1703 # Strip out --no-create and --no-recursion so they do not pile up.
1704 # Strip out --silent because we don't want to record it for future runs.
1705 # Also quote any args containing shell meta-characters.
1706 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_configure_args=
1708 ac_configure_args0=
1709 ac_configure_args1=
1710 ac_must_keep_next=false
1711 for ac_pass in 1 2
1713 for ac_arg
1715 case $ac_arg in
1716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718 | -silent | --silent | --silen | --sile | --sil)
1719 continue ;;
1720 *\'*)
1721 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 esac
1723 case $ac_pass in
1724 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727 if test $ac_must_keep_next = true; then
1728 ac_must_keep_next=false # Got value, back to normal.
1729 else
1730 case $ac_arg in
1731 *=* | --config-cache | -C | -disable-* | --disable-* \
1732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734 | -with-* | --with-* | -without-* | --without-* | --x)
1735 case "$ac_configure_args0 " in
1736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737 esac
1739 -* ) ac_must_keep_next=true ;;
1740 esac
1742 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 esac
1745 done
1746 done
1747 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1750 # When interrupted or exit'd, cleanup temporary files, and complete
1751 # config.log. We remove comments because anyway the quotes in there
1752 # would cause problems or look ugly.
1753 # WARNING: Use '\'' to represent an apostrophe within the trap.
1754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755 trap 'exit_status=$?
1756 # Save into config.log some information that might help in debugging.
1758 echo
1760 cat <<\_ASBOX
1761 ## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##
1764 _ASBOX
1765 echo
1766 # The following way of writing the cache mishandles newlines in values,
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in #(
1771 *${as_nl}*)
1772 case $ac_var in #(
1773 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1775 esac
1776 case $ac_var in #(
1777 _ | IFS | as_nl) ;; #(
1778 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1779 *) $as_unset $ac_var ;;
1780 esac ;;
1781 esac
1782 done
1783 (set) 2>&1 |
1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1786 sed -n \
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 ;; #(
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 esac |
1794 sort
1796 echo
1798 cat <<\_ASBOX
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1802 _ASBOX
1803 echo
1804 for ac_var in $ac_subst_vars
1806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 $as_echo "$ac_var='\''$ac_val'\''"
1811 done | sort
1812 echo
1814 if test -n "$ac_subst_files"; then
1815 cat <<\_ASBOX
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1819 _ASBOX
1820 echo
1821 for ac_var in $ac_subst_files
1823 eval ac_val=\$$ac_var
1824 case $ac_val in
1825 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 esac
1827 $as_echo "$ac_var='\''$ac_val'\''"
1828 done | sort
1829 echo
1832 if test -s confdefs.h; then
1833 cat <<\_ASBOX
1834 ## ----------- ##
1835 ## confdefs.h. ##
1836 ## ----------- ##
1837 _ASBOX
1838 echo
1839 cat confdefs.h
1840 echo
1842 test "$ac_signal" != 0 &&
1843 $as_echo "$as_me: caught signal $ac_signal"
1844 $as_echo "$as_me: exit $exit_status"
1845 } >&5
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 exit $exit_status
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 done
1853 ac_signal=0
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1858 # Predefined preprocessor variables.
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 _ACEOF
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 _ACEOF
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 _ACEOF
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer an explicitly selected file to automatically selected ones.
1887 ac_site_file1=NONE
1888 ac_site_file2=NONE
1889 if test -n "$CONFIG_SITE"; then
1890 ac_site_file1=$CONFIG_SITE
1891 elif test "x$prefix" != xNONE; then
1892 ac_site_file1=$prefix/share/config.site
1893 ac_site_file2=$prefix/etc/config.site
1894 else
1895 ac_site_file1=$ac_default_prefix/share/config.site
1896 ac_site_file2=$ac_default_prefix/etc/config.site
1898 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1900 test "x$ac_site_file" = xNONE && continue
1901 if test -r "$ac_site_file"; then
1902 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1905 . "$ac_site_file"
1907 done
1909 if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 $as_echo "$as_me: loading cache $cache_file" >&6;}
1915 case $cache_file in
1916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
1918 esac
1920 else
1921 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 $as_echo "$as_me: creating cache $cache_file" >&6;}
1923 >$cache_file
1926 # Check that the precious variables saved in the cache have kept the same
1927 # value.
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931 eval ac_new_set=\$ac_env_${ac_var}_set
1932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933 eval ac_new_val=\$ac_env_${ac_var}_value
1934 case $ac_old_set,$ac_new_set in
1935 set,)
1936 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1939 ,set)
1940 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1943 ,);;
1945 if test "x$ac_old_val" != "x$ac_new_val"; then
1946 # differences in whitespace do not lead to failure.
1947 ac_old_val_w=`echo x $ac_old_val`
1948 ac_new_val_w=`echo x $ac_new_val`
1949 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1950 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1951 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1952 ac_cache_corrupted=:
1953 else
1954 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1955 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1956 eval $ac_var=\$ac_old_val
1958 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1959 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1960 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1961 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1962 fi;;
1963 esac
1964 # Pass precious variables to config.status.
1965 if test "$ac_new_set" = set; then
1966 case $ac_new_val in
1967 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 *) ac_arg=$ac_var=$ac_new_val ;;
1969 esac
1970 case " $ac_configure_args " in
1971 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1972 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973 esac
1975 done
1976 if $ac_cache_corrupted; then
1977 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1979 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1980 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1981 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1982 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1983 { (exit 1); exit 1; }; }
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 ac_aux_dir=
2011 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2012 if test -f "$ac_dir/install-sh"; then
2013 ac_aux_dir=$ac_dir
2014 ac_install_sh="$ac_aux_dir/install-sh -c"
2015 break
2016 elif test -f "$ac_dir/install.sh"; then
2017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install.sh -c"
2019 break
2020 elif test -f "$ac_dir/shtool"; then
2021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/shtool install -c"
2023 break
2025 done
2026 if test -z "$ac_aux_dir"; then
2027 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
2028 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
2029 { (exit 1); exit 1; }; }
2032 # These three variables are undocumented and unsupported,
2033 # and are intended to be withdrawn in a future Autoconf release.
2034 # They can cause serious problems if a builder's source tree is in a directory
2035 # whose full name contains unusual characters.
2036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2042 # Check what host we are running on.
2043 # If a target is not suggested, we use this one.
2044 # Note that what we call a target, Autoconf calls a host.
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049 { (exit 1); exit 1; }; }
2051 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2052 $as_echo_n "checking build system type... " >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054 $as_echo_n "(cached) " >&6
2055 else
2056 ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062 { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066 { (exit 1); exit 1; }; }
2069 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 $as_echo "$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2072 *-*-*) ;;
2073 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2075 { (exit 1); exit 1; }; };;
2076 esac
2077 build=$ac_cv_build
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_build
2080 shift
2081 build_cpu=$1
2082 build_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 build_os=$*
2087 IFS=$ac_save_IFS
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2091 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2092 $as_echo_n "checking host system type... " >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094 $as_echo_n "(cached) " >&6
2095 else
2096 if test "x$host_alias" = x; then
2097 ac_cv_host=$ac_cv_build
2098 else
2099 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102 { (exit 1); exit 1; }; }
2106 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 $as_echo "$ac_cv_host" >&6; }
2108 case $ac_cv_host in
2109 *-*-*) ;;
2110 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2112 { (exit 1); exit 1; }; };;
2113 esac
2114 host=$ac_cv_host
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_host
2117 shift
2118 host_cpu=$1
2119 host_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 host_os=$*
2124 IFS=$ac_save_IFS
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2129 # The AROS target is slightly different to the normal GNU style
2130 # format. We don't have the middle part, and we reverse the order
2131 # of the $(CPU) and $(OS) bits.
2133 # Don't strip the version of the target yet, it might be
2134 # useful on some systems.
2136 { $as_echo "$as_me:$LINENO: checking for AROS style target" >&5
2137 $as_echo_n "checking for AROS style target... " >&6; }
2139 if test "$target" = "NONE" ; then
2140 target=$host_os-$host_cpu
2141 cross_compile=no
2142 else
2143 if test "$target" = "" ; then
2144 target=$host_os-$host_cpu
2145 cross_compile=no
2146 else
2147 cross_compile=yes
2150 { $as_echo "$as_me:$LINENO: result: $target" >&5
2151 $as_echo "$target" >&6; }
2153 #don't know where else to put this...
2154 { $as_echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2155 $as_echo_n "checking Building AROS in .. ... " >&6; }
2156 AROS_BUILDDIR=$PWD
2157 { $as_echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2158 $as_echo "$AROS_BUILDDIR" >&6; }
2160 { $as_echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2161 $as_echo_n "checking AROS Source in .. ... " >&6; }
2162 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2163 SRCDIR=${srcpwd}
2164 { $as_echo "$as_me:$LINENO: result: $SRCDIR" >&5
2165 $as_echo "$SRCDIR" >&6; }
2167 # Parse the target field into something useful.
2169 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2170 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2173 aros_default_wbwidth=800
2174 aros_default_wbheight=600
2175 aros_default_wbdepth=4
2178 # The first step is to find the host binaries.
2179 # Check for a compiler.
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 $as_echo_n "checking for $ac_word... " >&6; }
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 $as_echo_n "(cached) " >&6
2192 else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2209 IFS=$as_save_IFS
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2216 $as_echo "$CC" >&6; }
2217 else
2218 { $as_echo "$as_me:$LINENO: result: no" >&5
2219 $as_echo "no" >&6; }
2224 if test -z "$ac_cv_prog_CC"; then
2225 ac_ct_CC=$CC
2226 # Extract the first word of "gcc", so it can be a program name with args.
2227 set dummy gcc; ac_word=$2
2228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 $as_echo_n "checking for $ac_word... " >&6; }
2230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2231 $as_echo_n "(cached) " >&6
2232 else
2233 if test -n "$ac_ct_CC"; then
2234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_ac_ct_CC="gcc"
2244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2249 IFS=$as_save_IFS
2253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2254 if test -n "$ac_ct_CC"; then
2255 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2256 $as_echo "$ac_ct_CC" >&6; }
2257 else
2258 { $as_echo "$as_me:$LINENO: result: no" >&5
2259 $as_echo "no" >&6; }
2262 if test "x$ac_ct_CC" = x; then
2263 CC=""
2264 else
2265 case $cross_compiling:$ac_tool_warned in
2266 yes:)
2267 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2269 ac_tool_warned=yes ;;
2270 esac
2271 CC=$ac_ct_CC
2273 else
2274 CC="$ac_cv_prog_CC"
2277 if test -z "$CC"; then
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}cc; ac_word=$2
2281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if test "${ac_cv_prog_CC+set}" = set; then
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_CC="${ac_tool_prefix}cc"
2297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2300 done
2301 done
2302 IFS=$as_save_IFS
2306 CC=$ac_cv_prog_CC
2307 if test -n "$CC"; then
2308 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2309 $as_echo "$CC" >&6; }
2310 else
2311 { $as_echo "$as_me:$LINENO: result: no" >&5
2312 $as_echo "no" >&6; }
2318 if test -z "$CC"; then
2319 # Extract the first word of "cc", so it can be a program name with args.
2320 set dummy cc; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2325 else
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2328 else
2329 ac_prog_rejected=no
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2338 ac_prog_rejected=yes
2339 continue
2341 ac_cv_prog_CC="cc"
2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2345 done
2346 done
2347 IFS=$as_save_IFS
2349 if test $ac_prog_rejected = yes; then
2350 # We found a bogon in the path, so make sure we never use it.
2351 set dummy $ac_cv_prog_CC
2352 shift
2353 if test $# != 0; then
2354 # We chose a different compiler from the bogus one.
2355 # However, it has the same basename, so the bogon will be chosen
2356 # first if we set CC to just the basename; use the full file name.
2357 shift
2358 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2366 $as_echo "$CC" >&6; }
2367 else
2368 { $as_echo "$as_me:$LINENO: result: no" >&5
2369 $as_echo "no" >&6; }
2374 if test -z "$CC"; then
2375 if test -n "$ac_tool_prefix"; then
2376 for ac_prog in cl.exe
2378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 $as_echo_n "checking for $ac_word... " >&6; }
2382 if test "${ac_cv_prog_CC+set}" = set; then
2383 $as_echo_n "(cached) " >&6
2384 else
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2401 IFS=$as_save_IFS
2405 CC=$ac_cv_prog_CC
2406 if test -n "$CC"; then
2407 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2408 $as_echo "$CC" >&6; }
2409 else
2410 { $as_echo "$as_me:$LINENO: result: no" >&5
2411 $as_echo "no" >&6; }
2415 test -n "$CC" && break
2416 done
2418 if test -z "$CC"; then
2419 ac_ct_CC=$CC
2420 for ac_prog in cl.exe
2422 # Extract the first word of "$ac_prog", so it can be a program name with args.
2423 set dummy $ac_prog; ac_word=$2
2424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test -n "$ac_ct_CC"; then
2430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_ac_ct_CC="$ac_prog"
2440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2443 done
2444 done
2445 IFS=$as_save_IFS
2449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2450 if test -n "$ac_ct_CC"; then
2451 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2452 $as_echo "$ac_ct_CC" >&6; }
2453 else
2454 { $as_echo "$as_me:$LINENO: result: no" >&5
2455 $as_echo "no" >&6; }
2459 test -n "$ac_ct_CC" && break
2460 done
2462 if test "x$ac_ct_CC" = x; then
2463 CC=""
2464 else
2465 case $cross_compiling:$ac_tool_warned in
2466 yes:)
2467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2469 ac_tool_warned=yes ;;
2470 esac
2471 CC=$ac_ct_CC
2478 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2481 See \`config.log' for more details." >&5
2482 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2483 See \`config.log' for more details." >&2;}
2484 { (exit 1); exit 1; }; }; }
2486 # Provide some information about the compiler.
2487 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2488 set X $ac_compile
2489 ac_compiler=$2
2490 { (ac_try="$ac_compiler --version >&5"
2491 case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494 esac
2495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2496 $as_echo "$ac_try_echo") >&5
2497 (eval "$ac_compiler --version >&5") 2>&5
2498 ac_status=$?
2499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }
2501 { (ac_try="$ac_compiler -v >&5"
2502 case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2507 $as_echo "$ac_try_echo") >&5
2508 (eval "$ac_compiler -v >&5") 2>&5
2509 ac_status=$?
2510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }
2512 { (ac_try="$ac_compiler -V >&5"
2513 case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516 esac
2517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2518 $as_echo "$ac_try_echo") >&5
2519 (eval "$ac_compiler -V >&5") 2>&5
2520 ac_status=$?
2521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }
2524 cat >conftest.$ac_ext <<_ACEOF
2525 /* confdefs.h. */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2532 main ()
2536 return 0;
2538 _ACEOF
2539 ac_clean_files_save=$ac_clean_files
2540 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2541 # Try to create an executable without -o first, disregard a.out.
2542 # It will help us diagnose broken compilers, and finding out an intuition
2543 # of exeext.
2544 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2545 $as_echo_n "checking for C compiler default output file name... " >&6; }
2546 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2548 # The possible output files:
2549 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2551 ac_rmfiles=
2552 for ac_file in $ac_files
2554 case $ac_file in
2555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2556 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2557 esac
2558 done
2559 rm -f $ac_rmfiles
2561 if { (ac_try="$ac_link_default"
2562 case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565 esac
2566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2567 $as_echo "$ac_try_echo") >&5
2568 (eval "$ac_link_default") 2>&5
2569 ac_status=$?
2570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; then
2572 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2573 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2574 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2575 # so that the user can short-circuit this test for compilers unknown to
2576 # Autoconf.
2577 for ac_file in $ac_files ''
2579 test -f "$ac_file" || continue
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2583 [ab].out )
2584 # We found the default executable, but exeext='' is most
2585 # certainly right.
2586 break;;
2587 *.* )
2588 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2589 then :; else
2590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 # We set ac_cv_exeext here because the later test for it is not
2593 # safe: cross compilers may not add the suffix if given an `-o'
2594 # argument, so we may need to know it at that point already.
2595 # Even if this section looks crufty: it has the advantage of
2596 # actually working.
2597 break;;
2599 break;;
2600 esac
2601 done
2602 test "$ac_cv_exeext" = no && ac_cv_exeext=
2604 else
2605 ac_file=''
2608 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2609 $as_echo "$ac_file" >&6; }
2610 if test -z "$ac_file"; then
2611 $as_echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2617 See \`config.log' for more details." >&5
2618 $as_echo "$as_me: error: C compiler cannot create executables
2619 See \`config.log' for more details." >&2;}
2620 { (exit 77); exit 77; }; }; }
2623 ac_exeext=$ac_cv_exeext
2625 # Check that the compiler produces executables we can run. If not, either
2626 # the compiler is broken, or we cross compile.
2627 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2628 $as_echo_n "checking whether the C compiler works... " >&6; }
2629 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2630 # If not cross compiling, check that we can run a simple program.
2631 if test "$cross_compiling" != yes; then
2632 if { ac_try='./$ac_file'
2633 { (case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2638 $as_echo "$ac_try_echo") >&5
2639 (eval "$ac_try") 2>&5
2640 ac_status=$?
2641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 cross_compiling=no
2644 else
2645 if test "$cross_compiling" = maybe; then
2646 cross_compiling=yes
2647 else
2648 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2651 If you meant to cross compile, use \`--host'.
2652 See \`config.log' for more details." >&5
2653 $as_echo "$as_me: error: cannot run C compiled programs.
2654 If you meant to cross compile, use \`--host'.
2655 See \`config.log' for more details." >&2;}
2656 { (exit 1); exit 1; }; }; }
2660 { $as_echo "$as_me:$LINENO: result: yes" >&5
2661 $as_echo "yes" >&6; }
2663 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2664 ac_clean_files=$ac_clean_files_save
2665 # Check that the compiler produces executables we can run. If not, either
2666 # the compiler is broken, or we cross compile.
2667 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2668 $as_echo_n "checking whether we are cross compiling... " >&6; }
2669 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2670 $as_echo "$cross_compiling" >&6; }
2672 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2673 $as_echo_n "checking for suffix of executables... " >&6; }
2674 if { (ac_try="$ac_link"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680 $as_echo "$ac_try_echo") >&5
2681 (eval "$ac_link") 2>&5
2682 ac_status=$?
2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2686 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2687 # work properly (i.e., refer to `conftest.exe'), while it won't with
2688 # `rm'.
2689 for ac_file in conftest.exe conftest conftest.*; do
2690 test -f "$ac_file" || continue
2691 case $ac_file in
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 break;;
2695 * ) break;;
2696 esac
2697 done
2698 else
2699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2702 See \`config.log' for more details." >&5
2703 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2704 See \`config.log' for more details." >&2;}
2705 { (exit 1); exit 1; }; }; }
2708 rm -f conftest$ac_cv_exeext
2709 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2710 $as_echo "$ac_cv_exeext" >&6; }
2712 rm -f conftest.$ac_ext
2713 EXEEXT=$ac_cv_exeext
2714 ac_exeext=$EXEEXT
2715 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2716 $as_echo_n "checking for suffix of object files... " >&6; }
2717 if test "${ac_cv_objext+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2719 else
2720 cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h. */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2728 main ()
2732 return 0;
2734 _ACEOF
2735 rm -f conftest.o conftest.obj
2736 if { (ac_try="$ac_compile"
2737 case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2742 $as_echo "$ac_try_echo") >&5
2743 (eval "$ac_compile") 2>&5
2744 ac_status=$?
2745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; then
2747 for ac_file in conftest.o conftest.obj conftest.*; do
2748 test -f "$ac_file" || continue;
2749 case $ac_file in
2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2751 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2752 break;;
2753 esac
2754 done
2755 else
2756 $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2762 See \`config.log' for more details." >&5
2763 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2764 See \`config.log' for more details." >&2;}
2765 { (exit 1); exit 1; }; }; }
2768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2770 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2771 $as_echo "$ac_cv_objext" >&6; }
2772 OBJEXT=$ac_cv_objext
2773 ac_objext=$OBJEXT
2774 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2776 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2777 $as_echo_n "(cached) " >&6
2778 else
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2787 main ()
2789 #ifndef __GNUC__
2790 choke me
2791 #endif
2794 return 0;
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2804 $as_echo "$ac_try_echo") >&5
2805 (eval "$ac_compile") 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } && {
2812 test -z "$ac_c_werror_flag" ||
2813 test ! -s conftest.err
2814 } && test -s conftest.$ac_objext; then
2815 ac_compiler_gnu=yes
2816 else
2817 $as_echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_compiler_gnu=no
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2829 if test $ac_compiler_gnu = yes; then
2830 GCC=yes
2831 else
2832 GCC=
2834 ac_test_CFLAGS=${CFLAGS+set}
2835 ac_save_CFLAGS=$CFLAGS
2836 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2838 if test "${ac_cv_prog_cc_g+set}" = set; then
2839 $as_echo_n "(cached) " >&6
2840 else
2841 ac_save_c_werror_flag=$ac_c_werror_flag
2842 ac_c_werror_flag=yes
2843 ac_cv_prog_cc_g=no
2844 CFLAGS="-g"
2845 cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2853 main ()
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (ac_try="$ac_compile"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868 (eval "$ac_compile") 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } && {
2875 test -z "$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2877 } && test -s conftest.$ac_objext; then
2878 ac_cv_prog_cc_g=yes
2879 else
2880 $as_echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2883 CFLAGS=""
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2892 main ()
2896 return 0;
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906 $as_echo "$ac_try_echo") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2918 else
2919 $as_echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 ac_c_werror_flag=$ac_save_c_werror_flag
2923 CFLAGS="-g"
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h. */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2932 main ()
2936 return 0;
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2946 $as_echo "$ac_try_echo") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } && {
2954 test -z "$ac_c_werror_flag" ||
2955 test ! -s conftest.err
2956 } && test -s conftest.$ac_objext; then
2957 ac_cv_prog_cc_g=yes
2958 else
2959 $as_echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 ac_c_werror_flag=$ac_save_c_werror_flag
2974 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2975 $as_echo "$ac_cv_prog_cc_g" >&6; }
2976 if test "$ac_test_CFLAGS" = set; then
2977 CFLAGS=$ac_save_CFLAGS
2978 elif test $ac_cv_prog_cc_g = yes; then
2979 if test "$GCC" = yes; then
2980 CFLAGS="-g -O2"
2981 else
2982 CFLAGS="-g"
2984 else
2985 if test "$GCC" = yes; then
2986 CFLAGS="-O2"
2987 else
2988 CFLAGS=
2991 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2993 if test "${ac_cv_prog_cc_c89+set}" = set; then
2994 $as_echo_n "(cached) " >&6
2995 else
2996 ac_cv_prog_cc_c89=no
2997 ac_save_CC=$CC
2998 cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h. */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 #include <stdarg.h>
3005 #include <stdio.h>
3006 #include <sys/types.h>
3007 #include <sys/stat.h>
3008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3009 struct buf { int x; };
3010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3011 static char *e (p, i)
3012 char **p;
3013 int i;
3015 return p[i];
3017 static char *f (char * (*g) (char **, int), char **p, ...)
3019 char *s;
3020 va_list v;
3021 va_start (v,p);
3022 s = g (p, va_arg (v,int));
3023 va_end (v);
3024 return s;
3027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3028 function prototypes and stuff, but not '\xHH' hex character constants.
3029 These don't provoke an error unfortunately, instead are silently treated
3030 as 'x'. The following induces an error, until -std is added to get
3031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3032 array size at least. It's necessary to write '\x00'==0 to get something
3033 that's true only with -std. */
3034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3037 inside strings and character constants. */
3038 #define FOO(x) 'x'
3039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3041 int test (int i, double x);
3042 struct s1 {int (*f) (int a);};
3043 struct s2 {int (*f) (double a);};
3044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045 int argc;
3046 char **argv;
3048 main ()
3050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3052 return 0;
3054 _ACEOF
3055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3058 CC="$ac_save_CC $ac_arg"
3059 rm -f conftest.$ac_objext
3060 if { (ac_try="$ac_compile"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3066 $as_echo "$ac_try_echo") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } && {
3074 test -z "$ac_c_werror_flag" ||
3075 test ! -s conftest.err
3076 } && test -s conftest.$ac_objext; then
3077 ac_cv_prog_cc_c89=$ac_arg
3078 else
3079 $as_echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3085 rm -f core conftest.err conftest.$ac_objext
3086 test "x$ac_cv_prog_cc_c89" != "xno" && break
3087 done
3088 rm -f conftest.$ac_ext
3089 CC=$ac_save_CC
3092 # AC_CACHE_VAL
3093 case "x$ac_cv_prog_cc_c89" in
3095 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3096 $as_echo "none needed" >&6; } ;;
3097 xno)
3098 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3099 $as_echo "unsupported" >&6; } ;;
3101 CC="$CC $ac_cv_prog_cc_c89"
3102 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3104 esac
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 case $ac_cv_prog_cc_stdc in
3114 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3115 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3116 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3117 if test "${ac_cv_prog_cc_c99+set}" = set; then
3118 $as_echo_n "(cached) " >&6
3119 else
3120 ac_cv_prog_cc_c99=no
3121 ac_save_CC=$CC
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <stdarg.h>
3129 #include <stdbool.h>
3130 #include <stdlib.h>
3131 #include <wchar.h>
3132 #include <stdio.h>
3134 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3135 #define debug(...) fprintf (stderr, __VA_ARGS__)
3136 #define showlist(...) puts (#__VA_ARGS__)
3137 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3138 static void
3139 test_varargs_macros (void)
3141 int x = 1234;
3142 int y = 5678;
3143 debug ("Flag");
3144 debug ("X = %d\n", x);
3145 showlist (The first, second, and third items.);
3146 report (x>y, "x is %d but y is %d", x, y);
3149 // Check long long types.
3150 #define BIG64 18446744073709551615ull
3151 #define BIG32 4294967295ul
3152 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3153 #if !BIG_OK
3154 your preprocessor is broken;
3155 #endif
3156 #if BIG_OK
3157 #else
3158 your preprocessor is broken;
3159 #endif
3160 static long long int bignum = -9223372036854775807LL;
3161 static unsigned long long int ubignum = BIG64;
3163 struct incomplete_array
3165 int datasize;
3166 double data[];
3169 struct named_init {
3170 int number;
3171 const wchar_t *name;
3172 double average;
3175 typedef const char *ccp;
3177 static inline int
3178 test_restrict (ccp restrict text)
3180 // See if C++-style comments work.
3181 // Iterate through items via the restricted pointer.
3182 // Also check for declarations in for loops.
3183 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3184 continue;
3185 return 0;
3188 // Check varargs and va_copy.
3189 static void
3190 test_varargs (const char *format, ...)
3192 va_list args;
3193 va_start (args, format);
3194 va_list args_copy;
3195 va_copy (args_copy, args);
3197 const char *str;
3198 int number;
3199 float fnumber;
3201 while (*format)
3203 switch (*format++)
3205 case 's': // string
3206 str = va_arg (args_copy, const char *);
3207 break;
3208 case 'd': // int
3209 number = va_arg (args_copy, int);
3210 break;
3211 case 'f': // float
3212 fnumber = va_arg (args_copy, double);
3213 break;
3214 default:
3215 break;
3218 va_end (args_copy);
3219 va_end (args);
3223 main ()
3226 // Check bool.
3227 _Bool success = false;
3229 // Check restrict.
3230 if (test_restrict ("String literal") == 0)
3231 success = true;
3232 char *restrict newvar = "Another string";
3234 // Check varargs.
3235 test_varargs ("s, d' f .", "string", 65, 34.234);
3236 test_varargs_macros ();
3238 // Check flexible array members.
3239 struct incomplete_array *ia =
3240 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3241 ia->datasize = 10;
3242 for (int i = 0; i < ia->datasize; ++i)
3243 ia->data[i] = i * 1.234;
3245 // Check named initializers.
3246 struct named_init ni = {
3247 .number = 34,
3248 .name = L"Test wide string",
3249 .average = 543.34343,
3252 ni.number = 58;
3254 int dynamic_array[ni.number];
3255 dynamic_array[ni.number - 1] = 543;
3257 // work around unused variable warnings
3258 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3259 || dynamic_array[ni.number - 1] != 543);
3262 return 0;
3264 _ACEOF
3265 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3267 CC="$ac_save_CC $ac_arg"
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3286 ac_cv_prog_cc_c99=$ac_arg
3287 else
3288 $as_echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3294 rm -f core conftest.err conftest.$ac_objext
3295 test "x$ac_cv_prog_cc_c99" != "xno" && break
3296 done
3297 rm -f conftest.$ac_ext
3298 CC=$ac_save_CC
3301 # AC_CACHE_VAL
3302 case "x$ac_cv_prog_cc_c99" in
3304 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3305 $as_echo "none needed" >&6; } ;;
3306 xno)
3307 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3308 $as_echo "unsupported" >&6; } ;;
3310 CC="$CC $ac_cv_prog_cc_c99"
3311 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3312 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3313 esac
3314 if test "x$ac_cv_prog_cc_c99" != xno; then
3315 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3316 else
3317 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3318 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3319 if test "${ac_cv_prog_cc_c89+set}" = set; then
3320 $as_echo_n "(cached) " >&6
3321 else
3322 ac_cv_prog_cc_c89=no
3323 ac_save_CC=$CC
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #include <stdarg.h>
3331 #include <stdio.h>
3332 #include <sys/types.h>
3333 #include <sys/stat.h>
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3338 char **p;
3339 int i;
3341 return p[i];
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3345 char *s;
3346 va_list v;
3347 va_start (v,p);
3348 s = g (p, va_arg (v,int));
3349 va_end (v);
3350 return s;
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3364 #define FOO(x) 'x'
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 int argc;
3372 char **argv;
3374 main ()
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 return 0;
3380 _ACEOF
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384 CC="$ac_save_CC $ac_arg"
3385 rm -f conftest.$ac_objext
3386 if { (ac_try="$ac_compile"
3387 case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392 $as_echo "$ac_try_echo") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_cv_prog_cc_c89=$ac_arg
3404 else
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3411 rm -f core conftest.err conftest.$ac_objext
3412 test "x$ac_cv_prog_cc_c89" != "xno" && break
3413 done
3414 rm -f conftest.$ac_ext
3415 CC=$ac_save_CC
3418 # AC_CACHE_VAL
3419 case "x$ac_cv_prog_cc_c89" in
3421 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3422 $as_echo "none needed" >&6; } ;;
3423 xno)
3424 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3425 $as_echo "unsupported" >&6; } ;;
3427 CC="$CC $ac_cv_prog_cc_c89"
3428 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3429 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3430 esac
3431 if test "x$ac_cv_prog_cc_c89" != xno; then
3432 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3433 else
3434 ac_cv_prog_cc_stdc=no
3441 esac
3442 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3443 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3444 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3445 $as_echo_n "(cached) " >&6
3448 case $ac_cv_prog_cc_stdc in
3449 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3450 $as_echo "unsupported" >&6; } ;;
3451 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
3452 $as_echo "none needed" >&6; } ;;
3453 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3454 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3455 esac
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3464 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3465 # On Suns, sometimes $CPP names a directory.
3466 if test -n "$CPP" && test -d "$CPP"; then
3467 CPP=
3469 if test -z "$CPP"; then
3470 if test "${ac_cv_prog_CPP+set}" = set; then
3471 $as_echo_n "(cached) " >&6
3472 else
3473 # Double quotes because CPP needs to be expanded
3474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3476 ac_preproc_ok=false
3477 for ac_c_preproc_warn_flag in '' yes
3479 # Use a header file that comes with gcc, so configuring glibc
3480 # with a fresh cross-compiler works.
3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482 # <limits.h> exists even on freestanding compilers.
3483 # On the NeXT, cc -E runs the code through the compiler's parser,
3484 # not just through cpp. "Syntax error" is here to catch this case.
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496 Syntax error
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev/null && {
3512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 }; then
3516 else
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 # Broken: fails on valid input.
3521 continue
3524 rm -f conftest.err conftest.$ac_ext
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <ac_nonexistent.h>
3535 _ACEOF
3536 if { (ac_try="$ac_cpp conftest.$ac_ext"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } >/dev/null && {
3550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 }; then
3553 # Broken: success on invalid input.
3554 continue
3555 else
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 # Passes both tests.
3560 ac_preproc_ok=:
3561 break
3564 rm -f conftest.err conftest.$ac_ext
3566 done
3567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568 rm -f conftest.err conftest.$ac_ext
3569 if $ac_preproc_ok; then
3570 break
3573 done
3574 ac_cv_prog_CPP=$CPP
3577 CPP=$ac_cv_prog_CPP
3578 else
3579 ac_cv_prog_CPP=$CPP
3581 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3582 $as_echo "$CPP" >&6; }
3583 ac_preproc_ok=false
3584 for ac_c_preproc_warn_flag in '' yes
3586 # Use a header file that comes with gcc, so configuring glibc
3587 # with a fresh cross-compiler works.
3588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3589 # <limits.h> exists even on freestanding compilers.
3590 # On the NeXT, cc -E runs the code through the compiler's parser,
3591 # not just through cpp. "Syntax error" is here to catch this case.
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #ifdef __STDC__
3599 # include <limits.h>
3600 #else
3601 # include <assert.h>
3602 #endif
3603 Syntax error
3604 _ACEOF
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3611 $as_echo "$ac_try_echo") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 }; then
3623 else
3624 $as_echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 # Broken: fails on valid input.
3628 continue
3631 rm -f conftest.err conftest.$ac_ext
3633 # OK, works on sane cases. Now check whether nonexistent headers
3634 # can be detected and how.
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h. */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #include <ac_nonexistent.h>
3642 _ACEOF
3643 if { (ac_try="$ac_cpp conftest.$ac_ext"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3649 $as_echo "$ac_try_echo") >&5
3650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } >/dev/null && {
3657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3658 test ! -s conftest.err
3659 }; then
3660 # Broken: success on invalid input.
3661 continue
3662 else
3663 $as_echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3666 # Passes both tests.
3667 ac_preproc_ok=:
3668 break
3671 rm -f conftest.err conftest.$ac_ext
3673 done
3674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3675 rm -f conftest.err conftest.$ac_ext
3676 if $ac_preproc_ok; then
3678 else
3679 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3682 See \`config.log' for more details." >&5
3683 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3684 See \`config.log' for more details." >&2;}
3685 { (exit 1); exit 1; }; }; }
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 # Check for a compatible awk
3696 for ac_prog in gawk nawk
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_AWK+set}" = set; then
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -n "$AWK"; then
3706 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_AWK="$ac_prog"
3716 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3719 done
3720 done
3721 IFS=$as_save_IFS
3725 AWK=$ac_cv_prog_AWK
3726 if test -n "$AWK"; then
3727 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3728 $as_echo "$AWK" >&6; }
3729 else
3730 { $as_echo "$as_me:$LINENO: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$AWK" && break
3736 done
3738 if test "$AWK" = ""; then
3739 { { $as_echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3740 $as_echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3741 { (exit 1); exit 1; }; }
3743 # Extract the first word of "mmake", so it can be a program name with args.
3744 set dummy mmake; ac_word=$2
3745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_MMAKE+set}" = set; then
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$MMAKE"; then
3751 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_MMAKE="mmake "
3761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 MMAKE=$ac_cv_prog_MMAKE
3771 if test -n "$MMAKE"; then
3772 { $as_echo "$as_me:$LINENO: result: $MMAKE" >&5
3773 $as_echo "$MMAKE" >&6; }
3774 else
3775 { $as_echo "$as_me:$LINENO: result: no" >&5
3776 $as_echo "no" >&6; }
3781 # Perform some default variable assignments. Note all of these will be
3782 # Regenerated from the script, so there is no need to cache them.
3784 aros_host_cc="$CC"
3785 if test "$GCC" = "yes"; then
3786 aros_gcc_ld=`$CC -print-prog-name=ld`
3787 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3788 set dummy `basename $aros_gcc_ld`; ac_word=$2
3789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3792 $as_echo_n "(cached) " >&6
3793 else
3794 case $aros_host_ld in
3795 [\\/]* | ?:[\\/]*)
3796 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in `dirname $aros_gcc_ld`
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3815 esac
3817 aros_host_ld=$ac_cv_path_aros_host_ld
3818 if test -n "$aros_host_ld"; then
3819 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3820 $as_echo "$aros_host_ld" >&6; }
3821 else
3822 { $as_echo "$as_me:$LINENO: result: no" >&5
3823 $as_echo "no" >&6; }
3828 if test "$aros_host_ld" = ""; then
3829 # Extract the first word of "ld", so it can be a program name with args.
3830 set dummy ld; ac_word=$2
3831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3834 $as_echo_n "(cached) " >&6
3835 else
3836 case $aros_host_ld in
3837 [\\/]* | ?:[\\/]*)
3838 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3849 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3852 done
3853 done
3854 IFS=$as_save_IFS
3857 esac
3859 aros_host_ld=$ac_cv_path_aros_host_ld
3860 if test -n "$aros_host_ld"; then
3861 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3862 $as_echo "$aros_host_ld" >&6; }
3863 else
3864 { $as_echo "$as_me:$LINENO: result: no" >&5
3865 $as_echo "no" >&6; }
3870 if test "$aros_host_ld" = ""; then
3871 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3872 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3873 { (exit 1); exit 1; }; }
3875 aros_host_make="make"
3876 aros_host_cflags=$CFLAGS
3877 aros_host_ldflags=$LDFLAGS
3878 aros_host_debug="-g -O0"
3879 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3880 aros_host_mkargs="--no-print-directory"
3881 aros_host_incl="/usr/include"
3882 aros_host_exe_suffix="$EXEEXT"
3883 aros_host_lib_suffix=""
3885 for ac_prog in aclocal aclocal19 aclocal-1.9
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$aros_host_aclocal"; then
3895 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_aros_host_aclocal="$ac_prog"
3905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3908 done
3909 done
3910 IFS=$as_save_IFS
3914 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3915 if test -n "$aros_host_aclocal"; then
3916 { $as_echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3917 $as_echo "$aros_host_aclocal" >&6; }
3918 else
3919 { $as_echo "$as_me:$LINENO: result: no" >&5
3920 $as_echo "no" >&6; }
3924 test -n "$aros_host_aclocal" && break
3925 done
3927 for ac_prog in autoconf autoconf259 autoconf253
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -n "$aros_host_autoconf"; then
3937 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_aros_host_autoconf="$ac_prog"
3947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3950 done
3951 done
3952 IFS=$as_save_IFS
3956 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3957 if test -n "$aros_host_autoconf"; then
3958 { $as_echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3959 $as_echo "$aros_host_autoconf" >&6; }
3960 else
3961 { $as_echo "$as_me:$LINENO: result: no" >&5
3962 $as_echo "no" >&6; }
3966 test -n "$aros_host_autoconf" && break
3967 done
3969 for ac_prog in autoheader autoheader259 autoheader253
3971 # Extract the first word of "$ac_prog", so it can be a program name with args.
3972 set dummy $ac_prog; ac_word=$2
3973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -n "$aros_host_autoheader"; then
3979 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988 ac_cv_prog_aros_host_autoheader="$ac_prog"
3989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3994 IFS=$as_save_IFS
3998 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3999 if test -n "$aros_host_autoheader"; then
4000 { $as_echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
4001 $as_echo "$aros_host_autoheader" >&6; }
4002 else
4003 { $as_echo "$as_me:$LINENO: result: no" >&5
4004 $as_echo "no" >&6; }
4008 test -n "$aros_host_autoheader" && break
4009 done
4011 for ac_prog in automake automake19 automake-1.9
4013 # Extract the first word of "$ac_prog", so it can be a program name with args.
4014 set dummy $ac_prog; ac_word=$2
4015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if test -n "$aros_host_automake"; then
4021 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030 ac_cv_prog_aros_host_automake="$ac_prog"
4031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4034 done
4035 done
4036 IFS=$as_save_IFS
4040 aros_host_automake=$ac_cv_prog_aros_host_automake
4041 if test -n "$aros_host_automake"; then
4042 { $as_echo "$as_me:$LINENO: result: $aros_host_automake" >&5
4043 $as_echo "$aros_host_automake" >&6; }
4044 else
4045 { $as_echo "$as_me:$LINENO: result: no" >&5
4046 $as_echo "no" >&6; }
4050 test -n "$aros_host_automake" && break
4051 done
4054 if test "$aros_host_aclocal" = ""; then
4055 { { $as_echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
4056 $as_echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
4057 { (exit 1); exit 1; }; }
4059 if test "$aros_host_automake" = ""; then
4060 { { $as_echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
4061 $as_echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
4062 { (exit 1); exit 1; }; }
4065 case "$aros_host_cc" in
4066 *gcc*)
4067 aros_host_cc_pipe="-pipe"
4069 icc)
4070 aros_host_cc_pipe=""
4073 aros_host_cc_pipe=""
4075 esac
4077 aros_target_cc_includes=""
4079 # This is the main host configuration section. It is where the host
4080 # can change the values of any variables it needs to change. We do
4081 # not look at anything that compiles to the target yet, we'll get
4082 # to that later.
4084 case "$host_os" in
4085 aros*)
4086 aros_host_arch="aros"
4087 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4088 case "$host_cpu" in
4089 *i?86*)
4090 aros_host_cpu="i386"
4092 *x86_64*)
4093 aros_host_cpu="x86_64"
4096 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4097 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4098 aros_host_cpu="$host_cpu"
4100 esac
4103 linux*)
4104 aros_host_arch="linux"
4105 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4106 case "$host_cpu" in
4107 *i?86*)
4108 aros_host_cpu="i386"
4110 *x86_64*)
4111 aros_host_cpu="x86_64"
4113 *m68k*)
4114 aros_host_cpu="m68k"
4116 *powerpc*)
4117 aros_host_cpu="ppc"
4120 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4121 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4122 aros_host_cpu="$host_cpu"
4124 esac
4127 freebsd*)
4128 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4129 aros_host_make="gmake"
4130 aros_host_arch="freebsd"
4131 aros_host_cpu="i386"
4133 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4136 case $host_os in
4137 freebsd[234]*)
4138 aros_object_format="elf_i386"
4142 aros_object_format="elf_i386_fbsd"
4144 esac
4148 darwin*)
4149 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4150 aros_host_arch="darwin"
4151 case "$host_cpu" in
4152 *i?86*)
4153 aros_host_cpu="i386"
4155 *powerpc*)
4156 aros_host_cpu="ppc"
4159 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4160 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4161 aros_host_cpu="$host_cpu"
4163 esac
4165 aros_host_ldflags="$aros_host_ldflags -liconv"
4169 netbsd*)
4170 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4171 aros_host_make="gmake"
4172 aros_host_arch="netbsd"
4173 case "$host_cpu" in
4174 *i?86*)
4175 aros_host_cpu="i386"
4177 *m68k*)
4178 aros_host_cpu="m68k"
4181 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4182 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4183 aros_host_cpu="$host_cpu"
4185 esac
4186 aros_host_lib_suffix=".0.0"
4189 openbsd*)
4190 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4191 aros_host_make="gmake"
4192 aros_host_arch="openbsd"
4193 case "$host_cpu" in
4194 *i?86*)
4195 aros_host_cpu="i386"
4198 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4199 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4200 aros_host_cpu="$host_cpu"
4202 esac
4205 solaris*)
4206 aros_host_arch="solaris"
4207 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4208 case "$host_cpu" in
4209 *i?86*)
4210 aros_host_cpu="i386"
4212 *sparc*)
4213 aros_host_cpu="sparc"
4216 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4217 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4218 aros_host_cpu="$host_cpu"
4220 esac
4223 morphos*)
4224 aros_host_arch="morphos"
4225 aros_host_cpu="ppc"
4228 amiga*)
4229 aros_host_arch="amiga"
4230 SORT="/gg/bin/sort"
4231 TEST="/gg/bin/test"
4232 UNIQ="/gg/bin/uniq"
4233 FOR="for"
4234 TOUCH="/gg/bin/touch"
4235 case "$host_cpu" in
4236 *m68k*)
4237 aros_host_cpu="m68k"
4239 *powerpc*)
4240 aros_host_cpu="ppc"
4243 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4244 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4245 aros_host_cpu="$host_cpu"
4247 esac
4250 cygwin*)
4251 aros_host_arch="cygwin"
4252 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4253 case "$host_cpu" in
4254 *i?86*)
4255 aros_host_cpu="i386"
4258 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4259 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4260 aros_host_cpu="$host_cpu"
4262 esac
4265 mingw32*)
4266 aros_host_arch="mingw32"
4267 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4268 case "$host_cpu" in
4269 *i?86*)
4270 aros_host_cpu="i386"
4273 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4274 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4275 aros_host_cpu="$host_cpu"
4277 esac
4280 { { $as_echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4281 $as_echo "$as_me: error: Unsupported host architecture $host" >&2;}
4282 { (exit 1); exit 1; }; }
4284 esac
4286 # Extract the first word of "ar", so it can be a program name with args.
4287 set dummy ar; ac_word=$2
4288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$aros_host_ar"; then
4294 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_aros_host_ar="ar cr"
4304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 aros_host_ar=$ac_cv_prog_aros_host_ar
4314 if test -n "$aros_host_ar"; then
4315 { $as_echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4316 $as_echo "$aros_host_ar" >&6; }
4317 else
4318 { $as_echo "$as_me:$LINENO: result: no" >&5
4319 $as_echo "no" >&6; }
4323 if test "$aros_host_ar" = ""; then
4324 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4325 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4326 { (exit 1); exit 1; }; }
4328 # Extract the first word of "ranlib", so it can be a program name with args.
4329 set dummy ranlib; ac_word=$2
4330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4333 $as_echo_n "(cached) " >&6
4334 else
4335 if test -n "$aros_host_ranlib"; then
4336 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_prog_aros_host_ranlib="ranlib "
4346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4349 done
4350 done
4351 IFS=$as_save_IFS
4355 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4356 if test -n "$aros_host_ranlib"; then
4357 { $as_echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4358 $as_echo "$aros_host_ranlib" >&6; }
4359 else
4360 { $as_echo "$as_me:$LINENO: result: no" >&5
4361 $as_echo "no" >&6; }
4365 if test "$aros_host_ranlib" = ""; then
4366 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4367 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4368 { (exit 1); exit 1; }; }
4370 # Extract the first word of "strip", so it can be a program name with args.
4371 set dummy strip; ac_word=$2
4372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if test -n "$aros_host_strip"; then
4378 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_prog_aros_host_strip="strip "
4388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4391 done
4392 done
4393 IFS=$as_save_IFS
4397 aros_host_strip=$ac_cv_prog_aros_host_strip
4398 if test -n "$aros_host_strip"; then
4399 { $as_echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4400 $as_echo "$aros_host_strip" >&6; }
4401 else
4402 { $as_echo "$as_me:$LINENO: result: no" >&5
4403 $as_echo "no" >&6; }
4407 if test "$aros_host_strip" = ""; then
4408 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4409 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4410 { (exit 1); exit 1; }; }
4413 # Extract the first word of "rm", so it can be a program name with args.
4414 set dummy rm; ac_word=$2
4415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if test "${ac_cv_prog_RM+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$RM"; then
4421 ac_cv_prog_RM="$RM" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_RM="rm -rf"
4431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4434 done
4435 done
4436 IFS=$as_save_IFS
4440 RM=$ac_cv_prog_RM
4441 if test -n "$RM"; then
4442 { $as_echo "$as_me:$LINENO: result: $RM" >&5
4443 $as_echo "$RM" >&6; }
4444 else
4445 { $as_echo "$as_me:$LINENO: result: no" >&5
4446 $as_echo "no" >&6; }
4450 if test "$RM" = ""; then
4451 { { $as_echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4452 $as_echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4453 { (exit 1); exit 1; }; }
4455 # Extract the first word of "cp", so it can be a program name with args.
4456 set dummy cp; ac_word=$2
4457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_CP+set}" = set; then
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$CP"; then
4463 ac_cv_prog_CP="$CP" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_CP="cp "
4473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 CP=$ac_cv_prog_CP
4483 if test -n "$CP"; then
4484 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4485 $as_echo "$CP" >&6; }
4486 else
4487 { $as_echo "$as_me:$LINENO: result: no" >&5
4488 $as_echo "no" >&6; }
4492 if test "$CP" = ""; then
4493 { { $as_echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4494 $as_echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4495 { (exit 1); exit 1; }; }
4497 # Extract the first word of "mv", so it can be a program name with args.
4498 set dummy mv; ac_word=$2
4499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if test "${ac_cv_prog_MV+set}" = set; then
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -n "$MV"; then
4505 ac_cv_prog_MV="$MV" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_MV="mv "
4515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4518 done
4519 done
4520 IFS=$as_save_IFS
4524 MV=$ac_cv_prog_MV
4525 if test -n "$MV"; then
4526 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4527 $as_echo "$MV" >&6; }
4528 else
4529 { $as_echo "$as_me:$LINENO: result: no" >&5
4530 $as_echo "no" >&6; }
4534 if test "$MV" = ""; then
4535 { { $as_echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4536 $as_echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4537 { (exit 1); exit 1; }; }
4539 # Extract the first word of "echo", so it can be a program name with args.
4540 set dummy echo; ac_word=$2
4541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if test "${ac_cv_prog_ECHO+set}" = set; then
4544 $as_echo_n "(cached) " >&6
4545 else
4546 if test -n "$ECHO"; then
4547 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_ECHO="echo "
4557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4560 done
4561 done
4562 IFS=$as_save_IFS
4566 ECHO=$ac_cv_prog_ECHO
4567 if test -n "$ECHO"; then
4568 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4569 $as_echo "$ECHO" >&6; }
4570 else
4571 { $as_echo "$as_me:$LINENO: result: no" >&5
4572 $as_echo "no" >&6; }
4576 if test "$ECHO" = ""; then
4577 { { $as_echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4578 $as_echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4579 { (exit 1); exit 1; }; }
4581 # Extract the first word of "mkdir", so it can be a program name with args.
4582 set dummy mkdir; ac_word=$2
4583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if test "${ac_cv_prog_MKDIR+set}" = set; then
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -n "$MKDIR"; then
4589 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_MKDIR="mkdir -p"
4599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4602 done
4603 done
4604 IFS=$as_save_IFS
4608 MKDIR=$ac_cv_prog_MKDIR
4609 if test -n "$MKDIR"; then
4610 { $as_echo "$as_me:$LINENO: result: $MKDIR" >&5
4611 $as_echo "$MKDIR" >&6; }
4612 else
4613 { $as_echo "$as_me:$LINENO: result: no" >&5
4614 $as_echo "no" >&6; }
4618 if test "$MKDIR" = ""; then
4619 { { $as_echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4620 $as_echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4621 { (exit 1); exit 1; }; }
4623 # Extract the first word of "touch", so it can be a program name with args.
4624 set dummy touch; ac_word=$2
4625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if test "${ac_cv_prog_TOUCH+set}" = set; then
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -n "$TOUCH"; then
4631 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_TOUCH="touch "
4641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4650 TOUCH=$ac_cv_prog_TOUCH
4651 if test -n "$TOUCH"; then
4652 { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
4653 $as_echo "$TOUCH" >&6; }
4654 else
4655 { $as_echo "$as_me:$LINENO: result: no" >&5
4656 $as_echo "no" >&6; }
4660 if test "$TOUCH" = ""; then
4661 { { $as_echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4662 $as_echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4663 { (exit 1); exit 1; }; }
4665 # Extract the first word of "sort", so it can be a program name with args.
4666 set dummy sort; ac_word=$2
4667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_prog_SORT+set}" = set; then
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$SORT"; then
4673 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_SORT="sort "
4683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4688 IFS=$as_save_IFS
4692 SORT=$ac_cv_prog_SORT
4693 if test -n "$SORT"; then
4694 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
4695 $as_echo "$SORT" >&6; }
4696 else
4697 { $as_echo "$as_me:$LINENO: result: no" >&5
4698 $as_echo "no" >&6; }
4702 if test "$SORT" = ""; then
4703 { { $as_echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4704 $as_echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4705 { (exit 1); exit 1; }; }
4707 # Extract the first word of "uniq", so it can be a program name with args.
4708 set dummy uniq; ac_word=$2
4709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_UNIQ+set}" = set; then
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if test -n "$UNIQ"; then
4715 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_UNIQ="uniq "
4725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4728 done
4729 done
4730 IFS=$as_save_IFS
4734 UNIQ=$ac_cv_prog_UNIQ
4735 if test -n "$UNIQ"; then
4736 { $as_echo "$as_me:$LINENO: result: $UNIQ" >&5
4737 $as_echo "$UNIQ" >&6; }
4738 else
4739 { $as_echo "$as_me:$LINENO: result: no" >&5
4740 $as_echo "no" >&6; }
4744 if test "$UNIQ" = ""; then
4745 { { $as_echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4746 $as_echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4747 { (exit 1); exit 1; }; }
4749 # Extract the first word of "true", so it can be a program name with args.
4750 set dummy true; ac_word=$2
4751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_NOP+set}" = set; then
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$NOP"; then
4757 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_NOP="true "
4767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4776 NOP=$ac_cv_prog_NOP
4777 if test -n "$NOP"; then
4778 { $as_echo "$as_me:$LINENO: result: $NOP" >&5
4779 $as_echo "$NOP" >&6; }
4780 else
4781 { $as_echo "$as_me:$LINENO: result: no" >&5
4782 $as_echo "no" >&6; }
4786 if test "$NOP" = ""; then
4787 { { $as_echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4788 $as_echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4789 { (exit 1); exit 1; }; }
4791 # Extract the first word of "cat", so it can be a program name with args.
4792 set dummy cat; ac_word=$2
4793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_CAT+set}" = set; then
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$CAT"; then
4799 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_CAT="cat "
4809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 CAT=$ac_cv_prog_CAT
4819 if test -n "$CAT"; then
4820 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
4821 $as_echo "$CAT" >&6; }
4822 else
4823 { $as_echo "$as_me:$LINENO: result: no" >&5
4824 $as_echo "no" >&6; }
4828 if test "$CAT" = ""; then
4829 { { $as_echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4830 $as_echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4831 { (exit 1); exit 1; }; }
4833 # Extract the first word of "bison", so it can be a program name with args.
4834 set dummy bison; ac_word=$2
4835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if test "${ac_cv_prog_BISON+set}" = set; then
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$BISON"; then
4841 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_BISON="bison "
4851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 BISON=$ac_cv_prog_BISON
4861 if test -n "$BISON"; then
4862 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
4863 $as_echo "$BISON" >&6; }
4864 else
4865 { $as_echo "$as_me:$LINENO: result: no" >&5
4866 $as_echo "no" >&6; }
4870 if test "$BISON" = ""; then
4871 { { $as_echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4872 $as_echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4873 { (exit 1); exit 1; }; }
4875 # Extract the first word of "flex", so it can be a program name with args.
4876 set dummy flex; ac_word=$2
4877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_FLEX+set}" = set; then
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$FLEX"; then
4883 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_FLEX="flex "
4893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 FLEX=$ac_cv_prog_FLEX
4903 if test -n "$FLEX"; then
4904 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
4905 $as_echo "$FLEX" >&6; }
4906 else
4907 { $as_echo "$as_me:$LINENO: result: no" >&5
4908 $as_echo "no" >&6; }
4912 if test "$FLEX" = ""; then
4913 { { $as_echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4914 $as_echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4915 { (exit 1); exit 1; }; }
4917 # Extract the first word of "pngtopnm", so it can be a program name with args.
4918 set dummy pngtopnm; ac_word=$2
4919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$PNGTOPNM"; then
4925 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_PNGTOPNM="pngtopnm "
4935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4938 done
4939 done
4940 IFS=$as_save_IFS
4944 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4945 if test -n "$PNGTOPNM"; then
4946 { $as_echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4947 $as_echo "$PNGTOPNM" >&6; }
4948 else
4949 { $as_echo "$as_me:$LINENO: result: no" >&5
4950 $as_echo "no" >&6; }
4954 if test "$PNGTOPNM" = ""; then
4955 { { $as_echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4956 $as_echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4957 { (exit 1); exit 1; }; }
4959 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4960 set dummy ppmtoilbm; ac_word=$2
4961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$PPMTOILBM"; then
4967 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4987 if test -n "$PPMTOILBM"; then
4988 { $as_echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4989 $as_echo "$PPMTOILBM" >&6; }
4990 else
4991 { $as_echo "$as_me:$LINENO: result: no" >&5
4992 $as_echo "no" >&6; }
4996 if test "$PPMTOILBM" = ""; then
4997 { { $as_echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4998 $as_echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4999 { (exit 1); exit 1; }; }
5001 # Extract the first word of "sed", so it can be a program name with args.
5002 set dummy sed; ac_word=$2
5003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_SED+set}" = set; then
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$SED"; then
5009 ac_cv_prog_SED="$SED" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_SED="sed "
5019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5024 IFS=$as_save_IFS
5028 SED=$ac_cv_prog_SED
5029 if test -n "$SED"; then
5030 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5031 $as_echo "$SED" >&6; }
5032 else
5033 { $as_echo "$as_me:$LINENO: result: no" >&5
5034 $as_echo "no" >&6; }
5038 if test "$SED" = ""; then
5039 { { $as_echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
5040 $as_echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
5041 { (exit 1); exit 1; }; }
5043 # Extract the first word of "chmod", so it can be a program name with args.
5044 set dummy chmod; ac_word=$2
5045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_CHMOD+set}" = set; then
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$CHMOD"; then
5051 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_CHMOD="chmod "
5061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5064 done
5065 done
5066 IFS=$as_save_IFS
5070 CHMOD=$ac_cv_prog_CHMOD
5071 if test -n "$CHMOD"; then
5072 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
5073 $as_echo "$CHMOD" >&6; }
5074 else
5075 { $as_echo "$as_me:$LINENO: result: no" >&5
5076 $as_echo "no" >&6; }
5080 if test "$CHMOD" = ""; then
5081 { { $as_echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
5082 $as_echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
5083 { (exit 1); exit 1; }; }
5090 if test -n "$PYTHON"; then
5091 # If the user set $PYTHON, use it and don't search something else.
5092 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
5093 $as_echo_n "checking whether $PYTHON version >= 2.2.1... " >&6; }
5094 prog="import sys, string
5095 # split strings by '.' and convert to numeric. Append some zeros
5096 # because we need at least 4 digits for the hex conversion.
5097 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5098 minverhex = 0
5099 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5100 sys.exit(sys.hexversion < minverhex)"
5101 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5102 ($PYTHON -c "$prog") >&5 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; then
5106 { $as_echo "$as_me:$LINENO: result: yes" >&5
5107 $as_echo "yes" >&6; }
5108 else
5109 { { $as_echo "$as_me:$LINENO: error: too old" >&5
5110 $as_echo "$as_me: error: too old" >&2;}
5111 { (exit 1); exit 1; }; }
5114 am_display_PYTHON=$PYTHON
5115 else
5116 # Otherwise, try each interpreter until we find one that satisfies
5117 # VERSION.
5118 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
5119 $as_echo_n "checking for a Python interpreter with version >= 2.2.1... " >&6; }
5120 if test "${am_cv_pathless_PYTHON+set}" = set; then
5121 $as_echo_n "(cached) " >&6
5122 else
5124 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
5125 test "$am_cv_pathless_PYTHON" = none && break
5126 prog="import sys, string
5127 # split strings by '.' and convert to numeric. Append some zeros
5128 # because we need at least 4 digits for the hex conversion.
5129 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5130 minverhex = 0
5131 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5132 sys.exit(sys.hexversion < minverhex)"
5133 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5134 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; then
5138 break
5141 done
5143 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5144 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5145 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5146 if test "$am_cv_pathless_PYTHON" = none; then
5147 PYTHON=:
5148 else
5149 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5150 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_path_PYTHON+set}" = set; then
5154 $as_echo_n "(cached) " >&6
5155 else
5156 case $PYTHON in
5157 [\\/]* | ?:[\\/]*)
5158 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5177 esac
5179 PYTHON=$ac_cv_path_PYTHON
5180 if test -n "$PYTHON"; then
5181 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5182 $as_echo "$PYTHON" >&6; }
5183 else
5184 { $as_echo "$as_me:$LINENO: result: no" >&5
5185 $as_echo "no" >&6; }
5190 am_display_PYTHON=$am_cv_pathless_PYTHON
5194 if test "$PYTHON" = :; then
5195 { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5196 $as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
5197 { (exit 1); exit 1; }; }
5198 else
5201 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5202 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5203 if test "${am_cv_python_version+set}" = set; then
5204 $as_echo_n "(cached) " >&6
5205 else
5206 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5208 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5209 $as_echo "$am_cv_python_version" >&6; }
5210 PYTHON_VERSION=$am_cv_python_version
5214 PYTHON_PREFIX='${prefix}'
5216 PYTHON_EXEC_PREFIX='${exec_prefix}'
5220 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5221 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5222 if test "${am_cv_python_platform+set}" = set; then
5223 $as_echo_n "(cached) " >&6
5224 else
5225 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5227 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5228 $as_echo "$am_cv_python_platform" >&6; }
5229 PYTHON_PLATFORM=$am_cv_python_platform
5234 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5235 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5236 if test "${am_cv_python_pythondir+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5238 else
5239 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5240 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5242 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5243 $as_echo "$am_cv_python_pythondir" >&6; }
5244 pythondir=$am_cv_python_pythondir
5248 pkgpythondir=\${pythondir}/$PACKAGE
5251 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5252 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5253 if test "${am_cv_python_pyexecdir+set}" = set; then
5254 $as_echo_n "(cached) " >&6
5255 else
5256 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5257 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5259 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5260 $as_echo "$am_cv_python_pyexecdir" >&6; }
5261 pyexecdir=$am_cv_python_pyexecdir
5265 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5273 FOR=for
5275 IF=if
5277 TEST=test
5279 CMP=cmp
5283 # Check for some includes for the X11 HIDD and the kernel
5286 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5287 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5288 if test "${ac_cv_path_GREP+set}" = set; then
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -z "$GREP"; then
5292 ac_path_GREP_found=false
5293 # Loop through the user's path and test for each of PROGNAME-LIST
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_prog in grep ggrep; do
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5302 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5303 # Check for GNU ac_path_GREP and select it if it is found.
5304 # Check for GNU $ac_path_GREP
5305 case `"$ac_path_GREP" --version 2>&1` in
5306 *GNU*)
5307 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5309 ac_count=0
5310 $as_echo_n 0123456789 >"conftest.in"
5311 while :
5313 cat "conftest.in" "conftest.in" >"conftest.tmp"
5314 mv "conftest.tmp" "conftest.in"
5315 cp "conftest.in" "conftest.nl"
5316 $as_echo 'GREP' >> "conftest.nl"
5317 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5319 ac_count=`expr $ac_count + 1`
5320 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5321 # Best one so far, save it but keep looking for a better one
5322 ac_cv_path_GREP="$ac_path_GREP"
5323 ac_path_GREP_max=$ac_count
5325 # 10*(2^10) chars as input seems more than enough
5326 test $ac_count -gt 10 && break
5327 done
5328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5329 esac
5331 $ac_path_GREP_found && break 3
5332 done
5333 done
5334 done
5335 IFS=$as_save_IFS
5336 if test -z "$ac_cv_path_GREP"; then
5337 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5338 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5339 { (exit 1); exit 1; }; }
5341 else
5342 ac_cv_path_GREP=$GREP
5346 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5347 $as_echo "$ac_cv_path_GREP" >&6; }
5348 GREP="$ac_cv_path_GREP"
5351 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5352 $as_echo_n "checking for egrep... " >&6; }
5353 if test "${ac_cv_path_EGREP+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5357 then ac_cv_path_EGREP="$GREP -E"
5358 else
5359 if test -z "$EGREP"; then
5360 ac_path_EGREP_found=false
5361 # Loop through the user's path and test for each of PROGNAME-LIST
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_prog in egrep; do
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5370 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5371 # Check for GNU ac_path_EGREP and select it if it is found.
5372 # Check for GNU $ac_path_EGREP
5373 case `"$ac_path_EGREP" --version 2>&1` in
5374 *GNU*)
5375 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5377 ac_count=0
5378 $as_echo_n 0123456789 >"conftest.in"
5379 while :
5381 cat "conftest.in" "conftest.in" >"conftest.tmp"
5382 mv "conftest.tmp" "conftest.in"
5383 cp "conftest.in" "conftest.nl"
5384 $as_echo 'EGREP' >> "conftest.nl"
5385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5387 ac_count=`expr $ac_count + 1`
5388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5389 # Best one so far, save it but keep looking for a better one
5390 ac_cv_path_EGREP="$ac_path_EGREP"
5391 ac_path_EGREP_max=$ac_count
5393 # 10*(2^10) chars as input seems more than enough
5394 test $ac_count -gt 10 && break
5395 done
5396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397 esac
5399 $ac_path_EGREP_found && break 3
5400 done
5401 done
5402 done
5403 IFS=$as_save_IFS
5404 if test -z "$ac_cv_path_EGREP"; then
5405 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5406 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5407 { (exit 1); exit 1; }; }
5409 else
5410 ac_cv_path_EGREP=$EGREP
5415 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5416 $as_echo "$ac_cv_path_EGREP" >&6; }
5417 EGREP="$ac_cv_path_EGREP"
5420 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5421 $as_echo_n "checking for ANSI C header files... " >&6; }
5422 if test "${ac_cv_header_stdc+set}" = set; then
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <stdlib.h>
5432 #include <stdarg.h>
5433 #include <string.h>
5434 #include <float.h>
5437 main ()
5441 return 0;
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5451 $as_echo "$ac_try_echo") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_header_stdc=yes
5463 else
5464 $as_echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_cv_header_stdc=no
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 if test $ac_cv_header_stdc = yes; then
5473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <string.h>
5482 _ACEOF
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 $EGREP "memchr" >/dev/null 2>&1; then
5486 else
5487 ac_cv_header_stdc=no
5489 rm -f conftest*
5493 if test $ac_cv_header_stdc = yes; then
5494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <stdlib.h>
5503 _ACEOF
5504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5505 $EGREP "free" >/dev/null 2>&1; then
5507 else
5508 ac_cv_header_stdc=no
5510 rm -f conftest*
5514 if test $ac_cv_header_stdc = yes; then
5515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5516 if test "$cross_compiling" = yes; then
5518 else
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <ctype.h>
5526 #include <stdlib.h>
5527 #if ((' ' & 0x0FF) == 0x020)
5528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5530 #else
5531 # define ISLOWER(c) \
5532 (('a' <= (c) && (c) <= 'i') \
5533 || ('j' <= (c) && (c) <= 'r') \
5534 || ('s' <= (c) && (c) <= 'z'))
5535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5536 #endif
5538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5540 main ()
5542 int i;
5543 for (i = 0; i < 256; i++)
5544 if (XOR (islower (i), ISLOWER (i))
5545 || toupper (i) != TOUPPER (i))
5546 return 2;
5547 return 0;
5549 _ACEOF
5550 rm -f conftest$ac_exeext
5551 if { (ac_try="$ac_link"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557 $as_echo "$ac_try_echo") >&5
5558 (eval "$ac_link") 2>&5
5559 ac_status=$?
5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5562 { (case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5567 $as_echo "$ac_try_echo") >&5
5568 (eval "$ac_try") 2>&5
5569 ac_status=$?
5570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5573 else
5574 $as_echo "$as_me: program exited with status $ac_status" >&5
5575 $as_echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5578 ( exit $ac_status )
5579 ac_cv_header_stdc=no
5581 rm -rf conftest.dSYM
5582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5589 $as_echo "$ac_cv_header_stdc" >&6; }
5590 if test $ac_cv_header_stdc = yes; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define STDC_HEADERS 1
5594 _ACEOF
5598 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5609 inttypes.h stdint.h unistd.h
5611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5613 $as_echo_n "checking for $ac_header... " >&6; }
5614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5615 $as_echo_n "(cached) " >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5625 #include <$ac_header>
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5634 $as_echo "$ac_try_echo") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5645 eval "$as_ac_Header=yes"
5646 else
5647 $as_echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 eval "$as_ac_Header=no"
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 ac_res=`eval 'as_val=${'$as_ac_Header'}
5656 $as_echo "$as_val"'`
5657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5658 $as_echo "$ac_res" >&6; }
5659 as_val=`eval 'as_val=${'$as_ac_Header'}
5660 $as_echo "$as_val"'`
5661 if test "x$as_val" = x""yes; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664 _ACEOF
5668 done
5680 for ac_header in sys/ipc.h sys/shm.h \
5681 sys/mmap.h sys/mman.h sysexits.h \
5682 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5687 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5688 $as_echo_n "checking for $ac_header... " >&6; }
5689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5690 $as_echo_n "(cached) " >&6
5692 ac_res=`eval 'as_val=${'$as_ac_Header'}
5693 $as_echo "$as_val"'`
5694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5695 $as_echo "$ac_res" >&6; }
5696 else
5697 # Is the header compilable?
5698 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5699 $as_echo_n "checking $ac_header usability... " >&6; }
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5707 #include <$ac_header>
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716 $as_echo "$ac_try_echo") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_c_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_header_compiler=yes
5728 else
5729 $as_echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_header_compiler=no
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5737 $as_echo "$ac_header_compiler" >&6; }
5739 # Is the header present?
5740 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5741 $as_echo_n "checking $ac_header presence... " >&6; }
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 #include <$ac_header>
5749 _ACEOF
5750 if { (ac_try="$ac_cpp conftest.$ac_ext"
5751 case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754 esac
5755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5756 $as_echo "$ac_try_echo") >&5
5757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } >/dev/null && {
5764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5765 test ! -s conftest.err
5766 }; then
5767 ac_header_preproc=yes
5768 else
5769 $as_echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 ac_header_preproc=no
5775 rm -f conftest.err conftest.$ac_ext
5776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5777 $as_echo "$ac_header_preproc" >&6; }
5779 # So? What about this header?
5780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5781 yes:no: )
5782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5783 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5785 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5786 ac_header_preproc=yes
5788 no:yes:* )
5789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5790 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5792 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5794 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5796 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5798 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5800 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5803 esac
5804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5805 $as_echo_n "checking for $ac_header... " >&6; }
5806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5807 $as_echo_n "(cached) " >&6
5808 else
5809 eval "$as_ac_Header=\$ac_header_preproc"
5811 ac_res=`eval 'as_val=${'$as_ac_Header'}
5812 $as_echo "$as_val"'`
5813 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5814 $as_echo "$ac_res" >&6; }
5817 as_val=`eval 'as_val=${'$as_ac_Header'}
5818 $as_echo "$as_val"'`
5819 if test "x$as_val" = x""yes; then
5820 cat >>confdefs.h <<_ACEOF
5821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5822 _ACEOF
5826 done
5830 for ac_header in sys/mount.h
5832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5834 $as_echo_n "checking for $ac_header... " >&6; }
5835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5836 $as_echo_n "(cached) " >&6
5837 else
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <sys/param.h>
5846 #include <$ac_header>
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855 $as_echo "$ac_try_echo") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest.$ac_objext; then
5866 eval "$as_ac_Header=yes"
5867 else
5868 $as_echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 eval "$as_ac_Header=no"
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 ac_res=`eval 'as_val=${'$as_ac_Header'}
5877 $as_echo "$as_val"'`
5878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5879 $as_echo "$ac_res" >&6; }
5880 as_val=`eval 'as_val=${'$as_ac_Header'}
5881 $as_echo "$as_val"'`
5882 if test "x$as_val" = x""yes; then
5883 cat >>confdefs.h <<_ACEOF
5884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5885 _ACEOF
5889 done
5897 ac_header_dirent=no
5898 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5899 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5900 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5901 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5903 $as_echo_n "(cached) " >&6
5904 else
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <sys/types.h>
5912 #include <$ac_hdr>
5915 main ()
5917 if ((DIR *) 0)
5918 return 0;
5920 return 0;
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (ac_try="$ac_compile"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5930 $as_echo "$ac_try_echo") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest.$ac_objext; then
5941 eval "$as_ac_Header=yes"
5942 else
5943 $as_echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 eval "$as_ac_Header=no"
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 ac_res=`eval 'as_val=${'$as_ac_Header'}
5952 $as_echo "$as_val"'`
5953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5954 $as_echo "$ac_res" >&6; }
5955 as_val=`eval 'as_val=${'$as_ac_Header'}
5956 $as_echo "$as_val"'`
5957 if test "x$as_val" = x""yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5960 _ACEOF
5962 ac_header_dirent=$ac_hdr; break
5965 done
5966 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5967 if test $ac_header_dirent = dirent.h; then
5968 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5969 $as_echo_n "checking for library containing opendir... " >&6; }
5970 if test "${ac_cv_search_opendir+set}" = set; then
5971 $as_echo_n "(cached) " >&6
5972 else
5973 ac_func_search_save_LIBS=$LIBS
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5981 /* Override any GCC internal prototype to avoid an error.
5982 Use char because int might match the return type of a GCC
5983 builtin and then its argument prototype would still apply. */
5984 #ifdef __cplusplus
5985 extern "C"
5986 #endif
5987 char opendir ();
5989 main ()
5991 return opendir ();
5993 return 0;
5995 _ACEOF
5996 for ac_lib in '' dir; do
5997 if test -z "$ac_lib"; then
5998 ac_res="none required"
5999 else
6000 ac_res=-l$ac_lib
6001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (ac_try="$ac_link"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010 $as_echo "$ac_try_echo") >&5
6011 (eval "$ac_link") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest$ac_exeext && {
6021 test "$cross_compiling" = yes ||
6022 $as_test_x conftest$ac_exeext
6023 }; then
6024 ac_cv_search_opendir=$ac_res
6025 else
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6032 rm -rf conftest.dSYM
6033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6034 conftest$ac_exeext
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036 break
6038 done
6039 if test "${ac_cv_search_opendir+set}" = set; then
6041 else
6042 ac_cv_search_opendir=no
6044 rm conftest.$ac_ext
6045 LIBS=$ac_func_search_save_LIBS
6047 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6048 $as_echo "$ac_cv_search_opendir" >&6; }
6049 ac_res=$ac_cv_search_opendir
6050 if test "$ac_res" != no; then
6051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6055 else
6056 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6057 $as_echo_n "checking for library containing opendir... " >&6; }
6058 if test "${ac_cv_search_opendir+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6060 else
6061 ac_func_search_save_LIBS=$LIBS
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6069 /* Override any GCC internal prototype to avoid an error.
6070 Use char because int might match the return type of a GCC
6071 builtin and then its argument prototype would still apply. */
6072 #ifdef __cplusplus
6073 extern "C"
6074 #endif
6075 char opendir ();
6077 main ()
6079 return opendir ();
6081 return 0;
6083 _ACEOF
6084 for ac_lib in '' x; do
6085 if test -z "$ac_lib"; then
6086 ac_res="none required"
6087 else
6088 ac_res=-l$ac_lib
6089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6091 rm -f conftest.$ac_objext conftest$ac_exeext
6092 if { (ac_try="$ac_link"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099 (eval "$ac_link") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest$ac_exeext && {
6109 test "$cross_compiling" = yes ||
6110 $as_test_x conftest$ac_exeext
6111 }; then
6112 ac_cv_search_opendir=$ac_res
6113 else
6114 $as_echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6120 rm -rf conftest.dSYM
6121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6122 conftest$ac_exeext
6123 if test "${ac_cv_search_opendir+set}" = set; then
6124 break
6126 done
6127 if test "${ac_cv_search_opendir+set}" = set; then
6129 else
6130 ac_cv_search_opendir=no
6132 rm conftest.$ac_ext
6133 LIBS=$ac_func_search_save_LIBS
6135 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6136 $as_echo "$ac_cv_search_opendir" >&6; }
6137 ac_res=$ac_cv_search_opendir
6138 if test "$ac_res" != no; then
6139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6145 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6146 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6147 if test "${ac_cv_header_stat_broken+set}" = set; then
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <sys/types.h>
6157 #include <sys/stat.h>
6159 #if defined S_ISBLK && defined S_IFDIR
6160 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6161 #endif
6163 #if defined S_ISBLK && defined S_IFCHR
6164 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6165 #endif
6167 #if defined S_ISLNK && defined S_IFREG
6168 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6169 #endif
6171 #if defined S_ISSOCK && defined S_IFREG
6172 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6173 #endif
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6178 case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181 esac
6182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6183 $as_echo "$ac_try_echo") >&5
6184 (eval "$ac_compile") 2>conftest.er1
6185 ac_status=$?
6186 grep -v '^ *+' conftest.er1 >conftest.err
6187 rm -f conftest.er1
6188 cat conftest.err >&5
6189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && {
6191 test -z "$ac_c_werror_flag" ||
6192 test ! -s conftest.err
6193 } && test -s conftest.$ac_objext; then
6194 ac_cv_header_stat_broken=no
6195 else
6196 $as_echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 ac_cv_header_stat_broken=yes
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6205 $as_echo "$ac_cv_header_stat_broken" >&6; }
6206 if test $ac_cv_header_stat_broken = yes; then
6208 cat >>confdefs.h <<\_ACEOF
6209 #define STAT_MACROS_BROKEN 1
6210 _ACEOF
6214 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6215 $as_echo_n "checking for ANSI C header files... " >&6; }
6216 if test "${ac_cv_header_stdc+set}" = set; then
6217 $as_echo_n "(cached) " >&6
6218 else
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <stdlib.h>
6226 #include <stdarg.h>
6227 #include <string.h>
6228 #include <float.h>
6231 main ()
6235 return 0;
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6245 $as_echo "$ac_try_echo") >&5
6246 (eval "$ac_compile") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && {
6253 test -z "$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6255 } && test -s conftest.$ac_objext; then
6256 ac_cv_header_stdc=yes
6257 else
6258 $as_echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 ac_cv_header_stdc=no
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <string.h>
6276 _ACEOF
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "memchr" >/dev/null 2>&1; then
6280 else
6281 ac_cv_header_stdc=no
6283 rm -f conftest*
6287 if test $ac_cv_header_stdc = yes; then
6288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 #include <stdlib.h>
6297 _ACEOF
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "free" >/dev/null 2>&1; then
6301 else
6302 ac_cv_header_stdc=no
6304 rm -f conftest*
6308 if test $ac_cv_header_stdc = yes; then
6309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6310 if test "$cross_compiling" = yes; then
6312 else
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <ctype.h>
6320 #include <stdlib.h>
6321 #if ((' ' & 0x0FF) == 0x020)
6322 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6323 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6324 #else
6325 # define ISLOWER(c) \
6326 (('a' <= (c) && (c) <= 'i') \
6327 || ('j' <= (c) && (c) <= 'r') \
6328 || ('s' <= (c) && (c) <= 'z'))
6329 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6330 #endif
6332 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6334 main ()
6336 int i;
6337 for (i = 0; i < 256; i++)
6338 if (XOR (islower (i), ISLOWER (i))
6339 || toupper (i) != TOUPPER (i))
6340 return 2;
6341 return 0;
6343 _ACEOF
6344 rm -f conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6351 $as_echo "$ac_try_echo") >&5
6352 (eval "$ac_link") 2>&5
6353 ac_status=$?
6354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6356 { (case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359 esac
6360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6361 $as_echo "$ac_try_echo") >&5
6362 (eval "$ac_try") 2>&5
6363 ac_status=$?
6364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6367 else
6368 $as_echo "$as_me: program exited with status $ac_status" >&5
6369 $as_echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ( exit $ac_status )
6373 ac_cv_header_stdc=no
6375 rm -rf conftest.dSYM
6376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6382 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6383 $as_echo "$ac_cv_header_stdc" >&6; }
6384 if test $ac_cv_header_stdc = yes; then
6386 cat >>confdefs.h <<\_ACEOF
6387 #define STDC_HEADERS 1
6388 _ACEOF
6392 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6393 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6394 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6396 else
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 #include <sys/types.h>
6404 #include <sys/wait.h>
6405 #ifndef WEXITSTATUS
6406 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6407 #endif
6408 #ifndef WIFEXITED
6409 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6410 #endif
6413 main ()
6415 int s;
6416 wait (&s);
6417 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6419 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6429 $as_echo "$ac_try_echo") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 ac_cv_header_sys_wait_h=yes
6441 else
6442 $as_echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_cv_header_sys_wait_h=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6451 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6452 if test $ac_cv_header_sys_wait_h = yes; then
6454 cat >>confdefs.h <<\_ACEOF
6455 #define HAVE_SYS_WAIT_H 1
6456 _ACEOF
6460 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6461 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6462 if test "${ac_cv_header_time+set}" = set; then
6463 $as_echo_n "(cached) " >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <sys/types.h>
6472 #include <sys/time.h>
6473 #include <time.h>
6476 main ()
6478 if ((struct tm *) 0)
6479 return 0;
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 ac_cv_header_time=yes
6503 else
6504 $as_echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_cv_header_time=no
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6513 $as_echo "$ac_cv_header_time" >&6; }
6514 if test $ac_cv_header_time = yes; then
6516 cat >>confdefs.h <<\_ACEOF
6517 #define TIME_WITH_SYS_TIME 1
6518 _ACEOF
6522 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6523 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
6524 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6525 $as_echo_n "(cached) " >&6
6526 else
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6535 main ()
6537 static struct stat ac_aggr;
6538 if (ac_aggr.st_blksize)
6539 return 0;
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_cv_member_struct_stat_st_blksize=yes
6563 else
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6575 main ()
6577 static struct stat ac_aggr;
6578 if (sizeof ac_aggr.st_blksize)
6579 return 0;
6581 return 0;
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591 $as_echo "$ac_try_echo") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 ac_cv_member_struct_stat_st_blksize=yes
6603 else
6604 $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_cv_member_struct_stat_st_blksize=no
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6616 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
6617 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
6619 cat >>confdefs.h <<_ACEOF
6620 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6621 _ACEOF
6624 cat >>confdefs.h <<\_ACEOF
6625 #define HAVE_ST_BLKSIZE 1
6626 _ACEOF
6631 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6632 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
6633 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6634 $as_echo_n "(cached) " >&6
6635 else
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6644 main ()
6646 static struct stat ac_aggr;
6647 if (ac_aggr.st_blocks)
6648 return 0;
6650 return 0;
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6660 $as_echo "$ac_try_echo") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_member_struct_stat_st_blocks=yes
6672 else
6673 $as_echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 $ac_includes_default
6684 main ()
6686 static struct stat ac_aggr;
6687 if (sizeof ac_aggr.st_blocks)
6688 return 0;
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (ac_try="$ac_compile"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6700 $as_echo "$ac_try_echo") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && {
6708 test -z "$ac_c_werror_flag" ||
6709 test ! -s conftest.err
6710 } && test -s conftest.$ac_objext; then
6711 ac_cv_member_struct_stat_st_blocks=yes
6712 else
6713 $as_echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_cv_member_struct_stat_st_blocks=no
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6725 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
6726 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
6728 cat >>confdefs.h <<_ACEOF
6729 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6730 _ACEOF
6733 cat >>confdefs.h <<\_ACEOF
6734 #define HAVE_ST_BLOCKS 1
6735 _ACEOF
6737 else
6738 case " $LIBOBJS " in
6739 *" fileblocks.$ac_objext "* ) ;;
6740 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6742 esac
6747 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6748 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6749 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6750 $as_echo_n "(cached) " >&6
6751 else
6752 cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 $ac_includes_default
6760 main ()
6762 static struct stat ac_aggr;
6763 if (ac_aggr.st_rdev)
6764 return 0;
6766 return 0;
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6776 $as_echo "$ac_try_echo") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.$ac_objext; then
6787 ac_cv_member_struct_stat_st_rdev=yes
6788 else
6789 $as_echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6800 main ()
6802 static struct stat ac_aggr;
6803 if (sizeof ac_aggr.st_rdev)
6804 return 0;
6806 return 0;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816 $as_echo "$ac_try_echo") >&5
6817 (eval "$ac_compile") 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_c_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest.$ac_objext; then
6827 ac_cv_member_struct_stat_st_rdev=yes
6828 else
6829 $as_echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_cv_member_struct_stat_st_rdev=no
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6841 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6842 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6844 cat >>confdefs.h <<_ACEOF
6845 #define HAVE_STRUCT_STAT_ST_RDEV 1
6846 _ACEOF
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_ST_RDEV 1
6851 _ACEOF
6856 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6857 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6858 if test "${ac_cv_struct_tm+set}" = set; then
6859 $as_echo_n "(cached) " >&6
6860 else
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 #include <sys/types.h>
6868 #include <time.h>
6871 main ()
6873 struct tm tm;
6874 int *p = &tm.tm_sec;
6875 return !p;
6877 return 0;
6879 _ACEOF
6880 rm -f conftest.$ac_objext
6881 if { (ac_try="$ac_compile"
6882 case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6885 esac
6886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_struct_tm=time.h
6899 else
6900 $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_struct_tm=sys/time.h
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6909 $as_echo "$ac_cv_struct_tm" >&6; }
6910 if test $ac_cv_struct_tm = sys/time.h; then
6912 cat >>confdefs.h <<\_ACEOF
6913 #define TM_IN_SYS_TIME 1
6914 _ACEOF
6918 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6919 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
6920 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6921 $as_echo_n "(cached) " >&6
6922 else
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 #include <sys/types.h>
6930 #include <$ac_cv_struct_tm>
6934 main ()
6936 static struct tm ac_aggr;
6937 if (ac_aggr.tm_zone)
6938 return 0;
6940 return 0;
6942 _ACEOF
6943 rm -f conftest.$ac_objext
6944 if { (ac_try="$ac_compile"
6945 case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948 esac
6949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6950 $as_echo "$ac_try_echo") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_member_struct_tm_tm_zone=yes
6962 else
6963 $as_echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6973 #include <$ac_cv_struct_tm>
6977 main ()
6979 static struct tm ac_aggr;
6980 if (sizeof ac_aggr.tm_zone)
6981 return 0;
6983 return 0;
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (ac_try="$ac_compile"
6988 case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_member_struct_tm_tm_zone=yes
7005 else
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_member_struct_tm_tm_zone=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7018 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7019 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
7021 cat >>confdefs.h <<_ACEOF
7022 #define HAVE_STRUCT_TM_TM_ZONE 1
7023 _ACEOF
7028 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7030 cat >>confdefs.h <<\_ACEOF
7031 #define HAVE_TM_ZONE 1
7032 _ACEOF
7034 else
7035 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7036 $as_echo_n "checking whether tzname is declared... " >&6; }
7037 if test "${ac_cv_have_decl_tzname+set}" = set; then
7038 $as_echo_n "(cached) " >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <time.h>
7049 main ()
7051 #ifndef tzname
7052 (void) tzname;
7053 #endif
7056 return 0;
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (ac_try="$ac_compile"
7061 case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066 $as_echo "$ac_try_echo") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.$ac_objext; then
7077 ac_cv_have_decl_tzname=yes
7078 else
7079 $as_echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7082 ac_cv_have_decl_tzname=no
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7088 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7089 if test "x$ac_cv_have_decl_tzname" = x""yes; then
7091 cat >>confdefs.h <<_ACEOF
7092 #define HAVE_DECL_TZNAME 1
7093 _ACEOF
7096 else
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_DECL_TZNAME 0
7099 _ACEOF
7105 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
7106 $as_echo_n "checking for tzname... " >&6; }
7107 if test "${ac_cv_var_tzname+set}" = set; then
7108 $as_echo_n "(cached) " >&6
7109 else
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 #include <time.h>
7117 #if !HAVE_DECL_TZNAME
7118 extern char *tzname[];
7119 #endif
7122 main ()
7124 return tzname[0][0];
7126 return 0;
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7131 case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134 esac
7135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7136 $as_echo "$ac_try_echo") >&5
7137 (eval "$ac_link") 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest$ac_exeext && {
7147 test "$cross_compiling" = yes ||
7148 $as_test_x conftest$ac_exeext
7149 }; then
7150 ac_cv_var_tzname=yes
7151 else
7152 $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 ac_cv_var_tzname=no
7158 rm -rf conftest.dSYM
7159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7160 conftest$ac_exeext conftest.$ac_ext
7162 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7163 $as_echo "$ac_cv_var_tzname" >&6; }
7164 if test $ac_cv_var_tzname = yes; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define HAVE_TZNAME 1
7168 _ACEOF
7173 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7174 $as_echo_n "checking for off_t... " >&6; }
7175 if test "${ac_cv_type_off_t+set}" = set; then
7176 $as_echo_n "(cached) " >&6
7177 else
7178 ac_cv_type_off_t=no
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 $ac_includes_default
7187 main ()
7189 if (sizeof (off_t))
7190 return 0;
7192 return 0;
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202 $as_echo "$ac_try_echo") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 $ac_includes_default
7221 main ()
7223 if (sizeof ((off_t)))
7224 return 0;
7226 return 0;
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7248 else
7249 $as_echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 ac_cv_type_off_t=yes
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 else
7257 $as_echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7266 $as_echo "$ac_cv_type_off_t" >&6; }
7267 if test "x$ac_cv_type_off_t" = x""yes; then
7269 else
7271 cat >>confdefs.h <<_ACEOF
7272 #define off_t long int
7273 _ACEOF
7277 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7278 $as_echo_n "checking for pid_t... " >&6; }
7279 if test "${ac_cv_type_pid_t+set}" = set; then
7280 $as_echo_n "(cached) " >&6
7281 else
7282 ac_cv_type_pid_t=no
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7291 main ()
7293 if (sizeof (pid_t))
7294 return 0;
7296 return 0;
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7301 case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304 esac
7305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306 $as_echo "$ac_try_echo") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest.$ac_objext; then
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7325 main ()
7327 if (sizeof ((pid_t)))
7328 return 0;
7330 return 0;
7332 _ACEOF
7333 rm -f conftest.$ac_objext
7334 if { (ac_try="$ac_compile"
7335 case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338 esac
7339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7340 $as_echo "$ac_try_echo") >&5
7341 (eval "$ac_compile") 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest.$ac_objext; then
7352 else
7353 $as_echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7356 ac_cv_type_pid_t=yes
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360 else
7361 $as_echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7370 $as_echo "$ac_cv_type_pid_t" >&6; }
7371 if test "x$ac_cv_type_pid_t" = x""yes; then
7373 else
7375 cat >>confdefs.h <<_ACEOF
7376 #define pid_t int
7377 _ACEOF
7381 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7382 $as_echo_n "checking for size_t... " >&6; }
7383 if test "${ac_cv_type_size_t+set}" = set; then
7384 $as_echo_n "(cached) " >&6
7385 else
7386 ac_cv_type_size_t=no
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7395 main ()
7397 if (sizeof (size_t))
7398 return 0;
7400 return 0;
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (ac_try="$ac_compile"
7405 case "(($ac_try" in
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7408 esac
7409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7410 $as_echo "$ac_try_echo") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7429 main ()
7431 if (sizeof ((size_t)))
7432 return 0;
7434 return 0;
7436 _ACEOF
7437 rm -f conftest.$ac_objext
7438 if { (ac_try="$ac_compile"
7439 case "(($ac_try" in
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7442 esac
7443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7444 $as_echo "$ac_try_echo") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7456 else
7457 $as_echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_cv_type_size_t=yes
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 else
7465 $as_echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7474 $as_echo "$ac_cv_type_size_t" >&6; }
7475 if test "x$ac_cv_type_size_t" = x""yes; then
7477 else
7479 cat >>confdefs.h <<_ACEOF
7480 #define size_t unsigned int
7481 _ACEOF
7485 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7486 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7487 if test "${ac_cv_type_uid_t+set}" = set; then
7488 $as_echo_n "(cached) " >&6
7489 else
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 #include <sys/types.h>
7498 _ACEOF
7499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7500 $EGREP "uid_t" >/dev/null 2>&1; then
7501 ac_cv_type_uid_t=yes
7502 else
7503 ac_cv_type_uid_t=no
7505 rm -f conftest*
7508 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7509 $as_echo "$ac_cv_type_uid_t" >&6; }
7510 if test $ac_cv_type_uid_t = no; then
7512 cat >>confdefs.h <<\_ACEOF
7513 #define uid_t int
7514 _ACEOF
7517 cat >>confdefs.h <<\_ACEOF
7518 #define gid_t int
7519 _ACEOF
7524 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7525 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
7526 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h. */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7537 main ()
7539 static struct tm ac_aggr;
7540 if (ac_aggr.tm_gmtoff)
7541 return 0;
7543 return 0;
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7548 case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551 esac
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7564 ac_cv_member_struct_tm_tm_gmtoff=yes
7565 else
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 $ac_includes_default
7577 main ()
7579 static struct tm ac_aggr;
7580 if (sizeof ac_aggr.tm_gmtoff)
7581 return 0;
7583 return 0;
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7588 case "(($ac_try" in
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591 esac
7592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7593 $as_echo "$ac_try_echo") >&5
7594 (eval "$ac_compile") 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } && {
7601 test -z "$ac_c_werror_flag" ||
7602 test ! -s conftest.err
7603 } && test -s conftest.$ac_objext; then
7604 ac_cv_member_struct_tm_tm_gmtoff=yes
7605 else
7606 $as_echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 ac_cv_member_struct_tm_tm_gmtoff=no
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7618 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7619 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7623 _ACEOF
7629 # Look for some functions
7644 for ac_func in getpagesize kqueue statfs statvfs \
7645 clone kse_create rfork_thread thr_create sa_register \
7646 getcontext makecontext setcontext sigaltstack swapcontext
7648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7649 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7650 $as_echo_n "checking for $ac_func... " >&6; }
7651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7652 $as_echo_n "(cached) " >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7662 #define $ac_func innocuous_$ac_func
7664 /* System header to define __stub macros and hopefully few prototypes,
7665 which can conflict with char $ac_func (); below.
7666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667 <limits.h> exists even on freestanding compilers. */
7669 #ifdef __STDC__
7670 # include <limits.h>
7671 #else
7672 # include <assert.h>
7673 #endif
7675 #undef $ac_func
7677 /* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7680 #ifdef __cplusplus
7681 extern "C"
7682 #endif
7683 char $ac_func ();
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined __stub_$ac_func || defined __stub___$ac_func
7688 choke me
7689 #endif
7692 main ()
7694 return $ac_func ();
7696 return 0;
7698 _ACEOF
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (ac_try="$ac_link"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7706 $as_echo "$ac_try_echo") >&5
7707 (eval "$ac_link") 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest$ac_exeext && {
7717 test "$cross_compiling" = yes ||
7718 $as_test_x conftest$ac_exeext
7719 }; then
7720 eval "$as_ac_var=yes"
7721 else
7722 $as_echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 eval "$as_ac_var=no"
7728 rm -rf conftest.dSYM
7729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7730 conftest$ac_exeext conftest.$ac_ext
7732 ac_res=`eval 'as_val=${'$as_ac_var'}
7733 $as_echo "$as_val"'`
7734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7735 $as_echo "$ac_res" >&6; }
7736 as_val=`eval 'as_val=${'$as_ac_var'}
7737 $as_echo "$as_val"'`
7738 if test "x$as_val" = x""yes; then
7739 cat >>confdefs.h <<_ACEOF
7740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7741 _ACEOF
7744 done
7749 for ac_header in stdlib.h unistd.h
7751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7754 $as_echo_n "checking for $ac_header... " >&6; }
7755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7756 $as_echo_n "(cached) " >&6
7758 ac_res=`eval 'as_val=${'$as_ac_Header'}
7759 $as_echo "$as_val"'`
7760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7761 $as_echo "$ac_res" >&6; }
7762 else
7763 # Is the header compilable?
7764 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7765 $as_echo_n "checking $ac_header usability... " >&6; }
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h. */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 $ac_includes_default
7773 #include <$ac_header>
7774 _ACEOF
7775 rm -f conftest.$ac_objext
7776 if { (ac_try="$ac_compile"
7777 case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7780 esac
7781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7782 $as_echo "$ac_try_echo") >&5
7783 (eval "$ac_compile") 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } && {
7790 test -z "$ac_c_werror_flag" ||
7791 test ! -s conftest.err
7792 } && test -s conftest.$ac_objext; then
7793 ac_header_compiler=yes
7794 else
7795 $as_echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 ac_header_compiler=no
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7803 $as_echo "$ac_header_compiler" >&6; }
7805 # Is the header present?
7806 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7807 $as_echo_n "checking $ac_header presence... " >&6; }
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <$ac_header>
7815 _ACEOF
7816 if { (ac_try="$ac_cpp conftest.$ac_ext"
7817 case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820 esac
7821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7822 $as_echo "$ac_try_echo") >&5
7823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } >/dev/null && {
7830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 }; then
7833 ac_header_preproc=yes
7834 else
7835 $as_echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_header_preproc=no
7841 rm -f conftest.err conftest.$ac_ext
7842 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7843 $as_echo "$ac_header_preproc" >&6; }
7845 # So? What about this header?
7846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7847 yes:no: )
7848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7849 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7852 ac_header_preproc=yes
7854 no:yes:* )
7855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7856 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7858 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7860 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7862 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7866 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7869 esac
7870 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7871 $as_echo_n "checking for $ac_header... " >&6; }
7872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7873 $as_echo_n "(cached) " >&6
7874 else
7875 eval "$as_ac_Header=\$ac_header_preproc"
7877 ac_res=`eval 'as_val=${'$as_ac_Header'}
7878 $as_echo "$as_val"'`
7879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7880 $as_echo "$ac_res" >&6; }
7883 as_val=`eval 'as_val=${'$as_ac_Header'}
7884 $as_echo "$as_val"'`
7885 if test "x$as_val" = x""yes; then
7886 cat >>confdefs.h <<_ACEOF
7887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7888 _ACEOF
7892 done
7895 for ac_func in getpagesize
7897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7899 $as_echo_n "checking for $ac_func... " >&6; }
7900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7901 $as_echo_n "(cached) " >&6
7902 else
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7911 #define $ac_func innocuous_$ac_func
7913 /* System header to define __stub macros and hopefully few prototypes,
7914 which can conflict with char $ac_func (); below.
7915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7916 <limits.h> exists even on freestanding compilers. */
7918 #ifdef __STDC__
7919 # include <limits.h>
7920 #else
7921 # include <assert.h>
7922 #endif
7924 #undef $ac_func
7926 /* Override any GCC internal prototype to avoid an error.
7927 Use char because int might match the return type of a GCC
7928 builtin and then its argument prototype would still apply. */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 char $ac_func ();
7933 /* The GNU C library defines this for functions which it implements
7934 to always fail with ENOSYS. Some functions are actually named
7935 something starting with __ and the normal name is an alias. */
7936 #if defined __stub_$ac_func || defined __stub___$ac_func
7937 choke me
7938 #endif
7941 main ()
7943 return $ac_func ();
7945 return 0;
7947 _ACEOF
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (ac_try="$ac_link"
7950 case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953 esac
7954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7955 $as_echo "$ac_try_echo") >&5
7956 (eval "$ac_link") 2>conftest.er1
7957 ac_status=$?
7958 grep -v '^ *+' conftest.er1 >conftest.err
7959 rm -f conftest.er1
7960 cat conftest.err >&5
7961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } && {
7963 test -z "$ac_c_werror_flag" ||
7964 test ! -s conftest.err
7965 } && test -s conftest$ac_exeext && {
7966 test "$cross_compiling" = yes ||
7967 $as_test_x conftest$ac_exeext
7968 }; then
7969 eval "$as_ac_var=yes"
7970 else
7971 $as_echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 eval "$as_ac_var=no"
7977 rm -rf conftest.dSYM
7978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7979 conftest$ac_exeext conftest.$ac_ext
7981 ac_res=`eval 'as_val=${'$as_ac_var'}
7982 $as_echo "$as_val"'`
7983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7984 $as_echo "$ac_res" >&6; }
7985 as_val=`eval 'as_val=${'$as_ac_var'}
7986 $as_echo "$as_val"'`
7987 if test "x$as_val" = x""yes; then
7988 cat >>confdefs.h <<_ACEOF
7989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7990 _ACEOF
7993 done
7995 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7996 $as_echo_n "checking for working mmap... " >&6; }
7997 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7998 $as_echo_n "(cached) " >&6
7999 else
8000 if test "$cross_compiling" = yes; then
8001 ac_cv_func_mmap_fixed_mapped=no
8002 else
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h. */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009 $ac_includes_default
8010 /* malloc might have been renamed as rpl_malloc. */
8011 #undef malloc
8013 /* Thanks to Mike Haertel and Jim Avera for this test.
8014 Here is a matrix of mmap possibilities:
8015 mmap private not fixed
8016 mmap private fixed at somewhere currently unmapped
8017 mmap private fixed at somewhere already mapped
8018 mmap shared not fixed
8019 mmap shared fixed at somewhere currently unmapped
8020 mmap shared fixed at somewhere already mapped
8021 For private mappings, we should verify that changes cannot be read()
8022 back from the file, nor mmap's back from the file at a different
8023 address. (There have been systems where private was not correctly
8024 implemented like the infamous i386 svr4.0, and systems where the
8025 VM page cache was not coherent with the file system buffer cache
8026 like early versions of FreeBSD and possibly contemporary NetBSD.)
8027 For shared mappings, we should conversely verify that changes get
8028 propagated back to all the places they're supposed to be.
8030 Grep wants private fixed already mapped.
8031 The main things grep needs to know about mmap are:
8032 * does it exist and is it safe to write into the mmap'd area
8033 * how to use it (BSD variants) */
8035 #include <fcntl.h>
8036 #include <sys/mman.h>
8038 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8039 char *malloc ();
8040 #endif
8042 /* This mess was copied from the GNU getpagesize.h. */
8043 #ifndef HAVE_GETPAGESIZE
8044 /* Assume that all systems that can run configure have sys/param.h. */
8045 # ifndef HAVE_SYS_PARAM_H
8046 # define HAVE_SYS_PARAM_H 1
8047 # endif
8049 # ifdef _SC_PAGESIZE
8050 # define getpagesize() sysconf(_SC_PAGESIZE)
8051 # else /* no _SC_PAGESIZE */
8052 # ifdef HAVE_SYS_PARAM_H
8053 # include <sys/param.h>
8054 # ifdef EXEC_PAGESIZE
8055 # define getpagesize() EXEC_PAGESIZE
8056 # else /* no EXEC_PAGESIZE */
8057 # ifdef NBPG
8058 # define getpagesize() NBPG * CLSIZE
8059 # ifndef CLSIZE
8060 # define CLSIZE 1
8061 # endif /* no CLSIZE */
8062 # else /* no NBPG */
8063 # ifdef NBPC
8064 # define getpagesize() NBPC
8065 # else /* no NBPC */
8066 # ifdef PAGESIZE
8067 # define getpagesize() PAGESIZE
8068 # endif /* PAGESIZE */
8069 # endif /* no NBPC */
8070 # endif /* no NBPG */
8071 # endif /* no EXEC_PAGESIZE */
8072 # else /* no HAVE_SYS_PARAM_H */
8073 # define getpagesize() 8192 /* punt totally */
8074 # endif /* no HAVE_SYS_PARAM_H */
8075 # endif /* no _SC_PAGESIZE */
8077 #endif /* no HAVE_GETPAGESIZE */
8080 main ()
8082 char *data, *data2, *data3;
8083 int i, pagesize;
8084 int fd;
8086 pagesize = getpagesize ();
8088 /* First, make a file with some known garbage in it. */
8089 data = (char *) malloc (pagesize);
8090 if (!data)
8091 return 1;
8092 for (i = 0; i < pagesize; ++i)
8093 *(data + i) = rand ();
8094 umask (0);
8095 fd = creat ("conftest.mmap", 0600);
8096 if (fd < 0)
8097 return 1;
8098 if (write (fd, data, pagesize) != pagesize)
8099 return 1;
8100 close (fd);
8102 /* Next, try to mmap the file at a fixed address which already has
8103 something else allocated at it. If we can, also make sure that
8104 we see the same garbage. */
8105 fd = open ("conftest.mmap", O_RDWR);
8106 if (fd < 0)
8107 return 1;
8108 data2 = (char *) malloc (2 * pagesize);
8109 if (!data2)
8110 return 1;
8111 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8112 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8113 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8114 return 1;
8115 for (i = 0; i < pagesize; ++i)
8116 if (*(data + i) != *(data2 + i))
8117 return 1;
8119 /* Finally, make sure that changes to the mapped area do not
8120 percolate back to the file as seen by read(). (This is a bug on
8121 some variants of i386 svr4.0.) */
8122 for (i = 0; i < pagesize; ++i)
8123 *(data2 + i) = *(data2 + i) + 1;
8124 data3 = (char *) malloc (pagesize);
8125 if (!data3)
8126 return 1;
8127 if (read (fd, data3, pagesize) != pagesize)
8128 return 1;
8129 for (i = 0; i < pagesize; ++i)
8130 if (*(data + i) != *(data3 + i))
8131 return 1;
8132 close (fd);
8133 return 0;
8135 _ACEOF
8136 rm -f conftest$ac_exeext
8137 if { (ac_try="$ac_link"
8138 case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8141 esac
8142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8143 $as_echo "$ac_try_echo") >&5
8144 (eval "$ac_link") 2>&5
8145 ac_status=$?
8146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151 esac
8152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153 $as_echo "$ac_try_echo") >&5
8154 (eval "$ac_try") 2>&5
8155 ac_status=$?
8156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_func_mmap_fixed_mapped=yes
8159 else
8160 $as_echo "$as_me: program exited with status $ac_status" >&5
8161 $as_echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ( exit $ac_status )
8165 ac_cv_func_mmap_fixed_mapped=no
8167 rm -rf conftest.dSYM
8168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8173 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8174 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8175 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8177 cat >>confdefs.h <<\_ACEOF
8178 #define HAVE_MMAP 1
8179 _ACEOF
8182 rm -f conftest.mmap
8187 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8188 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8189 aros_config_ldflags=""
8191 aros_shared_default=yes
8193 aros_shared_cflags="-fPIC"
8194 aros_shared_aflags=""
8195 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8196 aros_kernel_ldflags="-Wl,-rpath,./lib"
8198 aros_target_ar_flags="cr"
8199 aros_target_nm_flags="-C -ul"
8200 aros_target_strip_flags="--strip-unneeded -R.comment"
8202 aros_compiler_libs=
8204 aros_target_genmap="-Wl,-Map -Xlinker"
8206 # Native flavour stuff
8207 aros_bochs_hack="0"
8208 aros_serial_debug="0"
8210 # Palm native flavour stuff
8211 aros_palm_debug_hack="0"
8213 # Unix flavour stuff
8214 aros_nesting_supervisor="0"
8216 # Collect-aros stuff: "-ius" to ignore undefined symbols
8217 ignore_undefined_symbols=""
8219 #-----------------------------------------------------------------------------
8222 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
8223 # it switched on by default, and we use the host compiler, so it compiles AROS
8224 # code with this enabled resulting in link failures as we don't have support
8225 # for it.
8227 # We use two methods to disable it. For the host compiler (used to compile
8228 # some hosted modules), we test to see if the compiler supports stack
8229 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
8230 # work on all platforms.
8232 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
8233 # (this is done unconditionally, as it should have no effect on compilers
8234 # without the stack protection feature). This may be specific to the way that
8235 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
8236 # strong enough to disable it in a generic way though, so we'll live with it
8237 # until another vendor ships GCC with it enabled in a different way, and deal
8238 # with it then.
8241 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8242 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
8243 save_cflags="$CFLAGS"
8244 CFLAGS="$CFLAGS -fno-stack-protector"
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8253 main ()
8257 return 0;
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8262 case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8267 $as_echo "$ac_try_echo") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 use_no_stack_protector="yes"
8279 else
8280 $as_echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 use_no_stack_protector="no"
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 { $as_echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8288 $as_echo "$use_no_stack_protector" >&6; }
8289 if test "x-$use_no_stack_protector" = "x-yes" ; then
8290 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8292 CFLAGS="$save_cflags"
8295 #-----------------------------------------------------------------------------
8297 # Disable pointer-signedness warnings if the compiler recognises the option
8298 # (this only works for the host compiler at the moment)
8300 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8301 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8302 save_cflags="$CFLAGS"
8303 CFLAGS="$CFLAGS -Wno-pointer-sign"
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h. */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8312 main ()
8316 return 0;
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8321 case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324 esac
8325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8326 $as_echo "$ac_try_echo") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.$ac_objext; then
8337 use_no_sign_warning="yes"
8338 else
8339 $as_echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 use_no_sign_warning="no"
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8347 $as_echo "$use_no_sign_warning" >&6; }
8348 if test "x-$use_no_sign_warning" = "x-yes" ; then
8349 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8351 CFLAGS="$save_cflags"
8353 #-----------------------------------------------------------------------------
8355 { $as_echo "$as_me:$LINENO: checking for type of build" >&5
8356 $as_echo_n "checking for type of build... " >&6; }
8357 # Check whether --enable-build_type was given.
8358 if test "${enable_build_type+set}" = set; then
8359 enableval=$enable_build_type; build_type=$enableval
8360 else
8361 build_type="personal"
8365 if test "$build_type" = "nightly"; then
8366 build_type_string="NIGHTLY"
8367 elif test "$build_type" = "snapshot"; then
8368 build_type_string="SNAPSHOT"
8369 elif test "$build_type" = "milestone"; then
8370 build_type_string="MILESTONE"
8371 elif test "$build_type" = "release"; then
8372 build_type_string="RELEASE"
8373 else
8374 build_type_string="PERSONAL"
8375 build_type="personal"
8378 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8380 { $as_echo "$as_me:$LINENO: result: $build_type" >&5
8381 $as_echo "$build_type" >&6; }
8383 #-----------------------------------------------------------------------------
8384 all_debug_types="messages stack mungwall modules symbols"
8386 { $as_echo "$as_me:$LINENO: checking which debug types to enable" >&5
8387 $as_echo_n "checking which debug types to enable... " >&6; }
8388 # Check whether --enable-debug was given.
8389 if test "${enable_debug+set}" = set; then
8390 enableval=$enable_debug; debug="$enableval"
8391 else
8392 debug=""
8396 if test "$debug" = "" -o "$debug" = "no"; then
8397 debug="none"
8398 elif test "$debug" = "yes"; then
8399 debug="all"
8402 if test "$debug" = "all" ; then
8403 debug=$all_debug_types
8404 for d in $all_debug_types; do
8405 export aros_${d}_debug="1"
8406 done
8407 else
8408 for d in $all_debug_types; do
8409 export aros_${d}_debug="0"
8410 done
8413 if test "$debug" != "none"; then
8414 debug=`echo $debug | sed s/,/\ /g`
8415 for d in $debug; do
8416 found="0"
8417 for d2 in $all_debug_types; do
8418 if test "$d2" = "$d"; then
8419 found="1"
8420 break
8422 done
8423 if test "$found" = "0"; then
8424 { { $as_echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8425 $as_echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8426 { (exit 1); exit 1; }; }
8428 export aros_${d}_debug="1"
8429 done
8430 aros_debug="yes"
8432 { $as_echo "$as_me:$LINENO: result: $debug" >&5
8433 $as_echo "$debug" >&6; }
8435 if test "$aros_messages_debug" = "1"; then
8436 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8437 else
8438 aros_messages_debug=""
8440 if test "$aros_symbols_debug" = "1"; then
8441 aros_symbols_debug="-g"
8442 else
8443 aros_symbols_debug=""
8446 # These are the flags to pass when compiling debugged programs
8447 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8448 aros_debug_aflags=""
8449 aros_debug_ldflags="$aros_symbols_debug"
8451 aros_crosstools="no"
8453 #-----------------------------------------------------------------------------
8454 # Checking if we should build crosstools..
8455 { $as_echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8456 $as_echo_n "checking whether to build crosstools... " >&6; }
8457 # Check whether --enable-crosstools was given.
8458 if test "${enable_crosstools+set}" = set; then
8459 enableval=$enable_crosstools; crosstools="$enableval"
8460 else
8461 crosstools="no"
8464 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8465 { $as_echo "$as_me:$LINENO: result: yes" >&5
8466 $as_echo "yes" >&6; }
8467 aros_crosstools="yes"
8468 else
8469 { $as_echo "$as_me:$LINENO: result: no" >&5
8470 $as_echo "no" >&6; }
8473 #-----------------------------------------------------------------------------
8474 # Checking for distcc and ccache.
8476 # Always apply the transforms in this particular order. Basically you should
8477 # always run 'ccache distcc compiler' in that order for the best performance.
8479 { $as_echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8480 $as_echo_n "checking whether to enable distcc... " >&6; }
8481 # Check whether --enable-distcc was given.
8482 if test "${enable_distcc+set}" = set; then
8483 enableval=$enable_distcc; distcc="$enableval"
8484 else
8485 distcc="no"
8488 if test "$distcc" != "" -a "$distcc" != "no"; then
8489 # AC_CHECK_PROG will print out the result in this case
8490 # Extract the first word of "distcc", so it can be a program name with args.
8491 set dummy distcc; ac_word=$2
8492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if test "${ac_cv_path_DISTCC+set}" = set; then
8495 $as_echo_n "(cached) " >&6
8496 else
8497 case $DISTCC in
8498 [\\/]* | ?:[\\/]*)
8499 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8513 done
8514 done
8515 IFS=$as_save_IFS
8517 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8519 esac
8521 DISTCC=$ac_cv_path_DISTCC
8522 if test -n "$DISTCC"; then
8523 { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
8524 $as_echo "$DISTCC" >&6; }
8525 else
8526 { $as_echo "$as_me:$LINENO: result: no" >&5
8527 $as_echo "no" >&6; }
8531 else
8532 { $as_echo "$as_me:$LINENO: result: no" >&5
8533 $as_echo "no" >&6; }
8536 { $as_echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8537 $as_echo_n "checking whether to enable ccache... " >&6; }
8538 # Check whether --enable-ccache was given.
8539 if test "${enable_ccache+set}" = set; then
8540 enableval=$enable_ccache; ccache="$enableval"
8541 else
8542 ccache="no"
8545 if test "$ccache" != "" -a "$ccache" != "no"; then
8546 # AC_CHECK_PROG will print out the result in this case
8547 # Extract the first word of "ccache", so it can be a program name with args.
8548 set dummy ccache; ac_word=$2
8549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if test "${ac_cv_prog_CCACHE+set}" = set; then
8552 $as_echo_n "(cached) " >&6
8553 else
8554 if test -n "$CCACHE"; then
8555 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_prog_CCACHE="ccache"
8565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8568 done
8569 done
8570 IFS=$as_save_IFS
8574 CCACHE=$ac_cv_prog_CCACHE
8575 if test -n "$CCACHE"; then
8576 { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
8577 $as_echo "$CCACHE" >&6; }
8578 else
8579 { $as_echo "$as_me:$LINENO: result: no" >&5
8580 $as_echo "no" >&6; }
8584 else
8585 { $as_echo "$as_me:$LINENO: result: no" >&5
8586 $as_echo "no" >&6; }
8589 #-----------------------------------------------------------------------------
8590 { $as_echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8591 $as_echo_n "checking what optimization flags to use... " >&6; }
8593 # Check whether --with-optimization was given.
8594 if test "${with_optimization+set}" = set; then
8595 withval=$with_optimization; optimization="$withval"
8596 else
8597 optimization="unknown"
8600 if test "$optimization" = "unknown"; then
8601 if test "$debug" != "none"; then
8602 optimization="-O0"
8603 else
8604 optimization="-O2"
8607 aros_config_cflags="$aros_config_cflags $optimization"
8608 { $as_echo "$as_me:$LINENO: result: $optimization" >&5
8609 $as_echo "$optimization" >&6; }
8611 #-----------------------------------------------------------------------------
8612 { $as_echo "$as_me:$LINENO: checking what target variant to enable" >&5
8613 $as_echo_n "checking what target variant to enable... " >&6; }
8614 # Check whether --enable-target_variant was given.
8615 if test "${enable_target_variant+set}" = set; then
8616 enableval=$enable_target_variant; target_variant=$enableval
8617 else
8618 target_variant="none"
8621 if test "$target_variant" = "none"; then
8622 aros_target_variant=""
8623 aros_target_suffix=""
8624 else
8625 aros_target_variant="$target_variant"
8626 aros_target_suffix="-$target_variant"
8628 { $as_echo "$as_me:$LINENO: result: $enableval" >&5
8629 $as_echo "$enableval" >&6; }
8631 target_bootloader="none"
8633 #-----------------------------------------------------------------------------
8634 # This is the target configuration switch.
8635 case "$target_os" in
8636 linux*)
8637 aros_target_arch="linux"
8638 case "$target_cpu" in
8639 *m68k*)
8640 aros_target_cpu="m68k"
8641 aros_object_format="m68kelf"
8642 aros_flavour="emulcompat"
8643 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8644 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8645 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8646 gcc_target_cpu="mc68000"
8648 *i?86*)
8649 aros_target_cpu="i386"
8650 aros_object_format="elf_i386"
8651 aros_flavour="emulation"
8652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8653 aros_default_wbdepth=8
8654 gcc_target_cpu="i386"
8656 *x86_64*)
8657 aros_target_cpu="x86_64"
8658 aros_object_format="elf_x86_64"
8659 aros_flavour="emulation"
8660 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8661 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8662 aros_default_wbdepth=8
8663 gcc_target_cpu="x86_64"
8665 *powerpc*)
8666 aros_target_cpu="ppc"
8667 aros_object_format="elf32ppc"
8668 aros_flavour="emulation"
8669 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8670 aros_default_wbdepth=8
8671 gcc_target_cpu="ppc"
8673 # TODO
8674 # Same as powerpc, but I need this for the nightly build to work again.
8675 # Actually, the nightly should be made working with powerpc target.
8676 # That just was too much work for the moment, another week or two.
8677 *ppc*)
8678 aros_target_cpu="ppc"
8679 aros_object_format="elf32ppc"
8680 aros_flavour="emulation"
8681 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8682 aros_default_wbdepth=8
8683 gcc_target_cpu="ppc"
8686 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8687 $as_echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8688 { (exit 1); exit 1; }; }
8690 esac
8694 aros_target_arch="pc"
8695 aros_shared_default="no"
8696 target_bootloader="grub2"
8697 case "$target_cpu" in
8698 *i?86*)
8699 aros_target_cpu="i386"
8702 if test "$aros_object_format" = "" ; then
8703 aros_object_format="elf_i386"
8705 aros_flavour="standalone"
8706 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8707 aros_kernel_ldflags=""
8708 aros_default_wbwidth=640
8709 aros_default_wbheight=480
8710 gcc_target_cpu="i386"
8712 *x86_64*)
8713 aros_target_cpu="x86_64"
8714 aros_serial_debug=1
8715 if test "$aros_object_format" = "" ; then
8716 aros_object_format="elf_x86_64"
8718 aros_flavour="standalone"
8719 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8720 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8721 aros_kernel_ldflags=""
8722 aros_default_wbwidth=640
8723 aros_default_wbheight=480
8724 gcc_target_cpu="x86_64"
8727 { { $as_echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8728 $as_echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8729 { (exit 1); exit 1; }; }
8731 esac
8734 prep)
8735 aros_target_arch="prep"
8736 aros_shared_default="no"
8737 aros_target_cpu="ppc"
8738 aros_object_format="elf32ppc"
8739 aros_flavour="ppcnative"
8740 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8741 aros_kernel_ldflags=""
8742 aros_default_wbwidth=640
8743 aros_default_wbheight=480
8744 gcc_target_cpu="ppc"
8747 freebsd*)
8748 aros_target_arch="freebsd"
8749 aros_target_cpu="i386"
8750 aros_flavour="emulation"
8751 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8752 gcc_target_cpu="i386"
8754 aros_target_strip_flags="-x"
8757 darwin*)
8758 aros_target_arch="darwin"
8759 aros_flavour="emulation"
8760 need_dlopen="no"
8761 case "$target_cpu" in
8762 *i?86*)
8763 aros_target_cpu="i386"
8764 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8765 gcc_target_cpu="i386"
8766 aros_object_format="elf_i386"
8767 aros_target_strip_flags="-x"
8770 { { $as_echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8771 $as_echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8772 { (exit 1); exit 1; }; }
8774 esac
8776 netbsd*)
8777 aros_target_arch="netbsd"
8778 case "$target_cpu" in
8779 *m68k*)
8780 aros_target_cpu="m68k"
8781 aros_object_format="m68kelf"
8782 aros_flavour="emulcompat"
8783 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8784 gcc_target_cpu="mc68000"
8786 *i?86*)
8787 aros_target_cpu="i386"
8788 aros_object_format="elf_i386"
8789 aros_flavour="emulation"
8790 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8791 aros_default_wbdepth=8
8792 gcc_target_cpu="i386"
8795 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8796 $as_echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8797 { (exit 1); exit 1; }; }
8799 esac
8800 aros_target_genmap="-Wl,-M -Xlinker >"
8801 aros_flavour="emulation"
8802 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8805 openbsd*)
8806 aros_target_arch="openbsd"
8807 case "$target_cpu" in
8808 *i?86*)
8809 aros_target_cpu="i386"
8810 aros_object_format="elf_i386"
8811 aros_flavour="emulation"
8812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8813 gcc_target_cpu="i386"
8816 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8817 $as_echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8818 { (exit 1); exit 1; }; }
8820 esac
8821 aros_target_genmap="-Wl,-M -Xlinker >"
8822 aros_target_nm_flags="-u"
8823 aros_flavour="emulation"
8826 solaris*)
8827 aros_target_arch="solaris"
8828 case "$target_cpu" in
8829 *i?86*)
8830 aros_target_cpu="i386"
8831 aros_object_format="elf_i386"
8832 aros_flavour="emulation"
8833 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8834 aros_default_wbdepth=8
8835 gcc_target_cpu="i386"
8837 *sparc*)
8838 aros_target_cpu="sparc"
8839 aros_object_format="elf_sparc"
8840 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8841 gcc_target_cpu="sparc"
8844 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8845 $as_echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8846 { (exit 1); exit 1; }; }
8848 esac
8849 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8850 aros_flavour="emulation"
8853 morphos*)
8854 aros_target_arch="morphos"
8855 aros_shared_default="no"
8856 aros_target_cpu="ppc"
8857 aros_object_format="elf_ppc"
8858 aros_flavour="nativecompat"
8859 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8860 gcc_target_cpu="ppc"
8863 sam440)
8864 aros_target_arch="sam440"
8865 aros_shared_default="no"
8866 aros_target_cpu="ppc"
8867 aros_object_format="elf32ppc"
8868 aros_flavour="ppcnative"
8869 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8870 aros_kernel_ldflags=""
8871 aros_default_wbwidth=640
8872 aros_default_wbheight=480
8873 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8874 gcc_target_cpu="powerpc"
8877 chrp)
8878 aros_target_arch="chrp"
8879 aros_shared_default="no"
8880 aros_target_cpu="ppc"
8881 aros_object_format="elf32ppc"
8882 aros_flavour="ppcnative"
8883 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8884 aros_kernel_ldflags=""
8885 aros_default_wbwidth=640
8886 aros_default_wbheight=480
8887 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8888 gcc_target_cpu="powerpc"
8889 case "$aros_target_variant" in
8890 efika)
8891 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8893 esac
8896 amiga*)
8897 aros_target_arch="amiga"
8898 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8899 aros_shared_default="no"
8901 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8903 case "$target_cpu" in
8904 *m68k*)
8905 aros_target_cpu="m68k"
8906 aros_object_format="m68kelf"
8907 aros_flavour="nativecompat"
8908 gcc_target_cpu="mc68000"
8910 *ppc*)
8911 aros_cpu="ppc"
8912 aros_flavour="native"
8913 gcc_target_cpu="ppc"
8916 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8917 $as_echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8918 { (exit 1); exit 1; }; }
8920 esac
8923 cygwin*)
8924 aros_target_arch="cygwin"
8925 aros_shared_default="no"
8926 case "$target_cpu" in
8927 *i?86*)
8928 aros_target_cpu="i386"
8929 aros_object_format="elf_i386"
8930 aros_flavour="emulation"
8931 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8932 aros_shared_cflags=""
8933 aros_default_wbdepth=8
8934 gcc_target_cpu="i386"
8935 aros_target_cc="i386-aros-gcc"
8936 aros_target_ld="i386-aros-ld"
8937 aros_target_as="i386-aros-as"
8938 aros_target_ar="i386-aros-ar"
8939 aros_target_ranlib="i386-aros-ranlib"
8940 aros_target_nm="i386-aros-nm"
8941 aros_target_strip="i386-aros-strip"
8942 aros_target_objcopy="i386-aros-objcopy"
8943 aros_target_objdump="i386-aros-objdump"
8946 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8947 $as_echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8948 { (exit 1); exit 1; }; }
8950 esac
8953 mingw32*)
8954 aros_target_arch="mingw32"
8955 aros_shared_default="no"
8956 need_dlopen="no"
8957 rescomp="windres"
8958 case "$target_cpu" in
8959 *i?86*)
8960 aros_target_cpu="i386"
8961 aros_object_format="elf_i386"
8962 aros_flavour="emulation"
8963 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8964 aros_shared_cflags=""
8965 aros_default_wbdepth=8
8966 gcc_target_cpu="i386"
8967 aros_target_cc="i386-aros-gcc"
8968 aros_target_ld="i386-aros-ld"
8969 aros_target_as="i386-aros-as"
8970 aros_target_ar="i386-aros-ar"
8971 aros_target_ranlib="i386-aros-ranlib"
8972 aros_target_nm="i386-aros-nm"
8973 aros_target_strip="i386-aros-strip"
8974 aros_target_objcopy="i386-aros-objcopy"
8975 aros_target_objdump="i386-aros-objdump"
8976 target_tool_prefix="i386-mingw32-"
8979 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8980 $as_echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8981 { (exit 1); exit 1; }; }
8983 esac
8984 if test $host_os = "cygwin"; then
8985 aros_kernel_cflags="-mno-cygwin"
8988 pp*)
8989 aros_target_arch="pp"
8990 aros_shared_default="no"
8991 case "$target_cpu" in
8992 *m68k*)
8993 aros_target_cpu="m68k"
8994 aros_object_format="m68kelf"
8995 aros_flavour="palmnative"
8996 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8997 aros_kernel_ldflags=""
8998 aros_default_wbwidth=160
8999 aros_default_wbheight=160
9000 aros_default_wbdepth=1
9001 aros_target_ar_flags="cru"
9002 aros_compiler_libs="-lgcc1"
9003 aros_shared_default=no
9004 aros_shared_cflags="-fpic"
9005 aros_shared_aflags=""
9006 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9007 aros_kernel_ldflags="-Wl,-rpath,./lib"
9008 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9009 aros_debug_aflags=""
9010 aros_debug_ldflags="$aros_symbols_debug"
9011 aros_mungwall_debug="0"
9012 aros_modules_debug="0"
9013 gcc_target_cpu="mc68000"
9014 ignore_undefined_symbols="-ius"
9017 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9018 $as_echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9019 { (exit 1); exit 1; }; }
9021 esac
9024 mac*)
9025 aros_target_arch="mac"
9026 aros_shared_default="no"
9027 case "$target_cpu" in
9028 *m68k*)
9029 aros_target_cpu="m68k"
9030 aros_object_format="m68kelf"
9031 aros_flavour="mac68knative"
9032 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9033 aros_default_wbwidth=512
9034 aros_default_wbheight=384
9035 aros_default_wbdepth=8
9036 aros_target_ar_flags="cru"
9037 aros_compiler_libs="-lgcc1"
9038 aros_shared_default=no
9039 aros_shared_cflags="-fpic"
9040 aros_shared_aflags=""
9041 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9042 aros_kernel_ldflags="-Wl,-rpath,./lib"
9043 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9044 aros_debug_aflags=""
9045 aros_debug_ldflags="$aros_symbols_debug"
9046 aros_mungwall_debug="0"
9047 aros_modules_debug="0"
9048 gcc_target_cpu="mc68000"
9049 ignore_undefined_symbols="-ius"
9052 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9053 $as_echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9054 { (exit 1); exit 1; }; }
9056 esac
9060 { { $as_echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9061 $as_echo "$as_me: error: Unsupported target architecture $target" >&2;}
9062 { (exit 1); exit 1; }; }
9064 esac
9066 { $as_echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9067 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
9069 # Check whether --with-portssources was given.
9070 if test "${with_portssources+set}" = set; then
9071 withval=$with_portssources; with_portssrcdir=$withval
9072 else
9073 with_portssrcdir="default"
9076 if test "$with_portssrcdir" = "default"; then
9077 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
9078 else
9079 AROS_PORTSSRCDIR="$with_portssrcdir"
9081 { $as_echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9082 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9084 { $as_echo "$as_me:$LINENO: checking which bootloader to use" >&5
9085 $as_echo_n "checking which bootloader to use... " >&6; }
9087 # Check whether --with-bootloader was given.
9088 if test "${with_bootloader+set}" = set; then
9089 withval=$with_bootloader; target_bootloader=$withval
9090 else
9091 target_bootloader=$target_bootloader
9094 if test "$target_bootloader" = "none"; then
9095 aros_target_bootloader=""
9096 else
9097 aros_target_bootloader="$target_bootloader"
9099 { $as_echo "$as_me:$LINENO: result: $target_bootloader" >&5
9100 $as_echo "$target_bootloader" >&6; }
9102 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
9103 aros_liblzo_check="no"
9104 case "$aros_target_bootloader" in
9105 grub2*)
9106 case "$target_cpu" in
9107 *i?86*)
9108 aros_liblzo_check="yes"
9110 *x86_64*)
9111 aros_liblzo_check="yes"
9115 esac
9120 esac
9122 if test "$aros_liblzo_check" = "yes"; then
9123 # There are three possibilities. LZO version 2 installed with the name
9124 # liblzo2, with the name liblzo, and LZO version 1.
9125 { $as_echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
9126 $as_echo_n "checking for __lzo_init_v2 in -llzo2... " >&6; }
9127 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
9128 $as_echo_n "(cached) " >&6
9129 else
9130 ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-llzo2 $LIBS"
9132 cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h. */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char __lzo_init_v2 ();
9147 main ()
9149 return __lzo_init_v2 ();
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9156 case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159 esac
9160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162 (eval "$ac_link") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest$ac_exeext && {
9172 test "$cross_compiling" = yes ||
9173 $as_test_x conftest$ac_exeext
9174 }; then
9175 ac_cv_lib_lzo2___lzo_init_v2=yes
9176 else
9177 $as_echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 ac_cv_lib_lzo2___lzo_init_v2=no
9183 rm -rf conftest.dSYM
9184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9185 conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
9189 $as_echo "$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
9190 if test "x$ac_cv_lib_lzo2___lzo_init_v2" = x""yes; then
9191 LIBLZO="-llzo2"
9192 else
9193 { $as_echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
9194 $as_echo_n "checking for __lzo_init_v2 in -llzo... " >&6; }
9195 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
9196 $as_echo_n "(cached) " >&6
9197 else
9198 ac_check_lib_save_LIBS=$LIBS
9199 LIBS="-llzo $LIBS"
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h. */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9207 /* Override any GCC internal prototype to avoid an error.
9208 Use char because int might match the return type of a GCC
9209 builtin and then its argument prototype would still apply. */
9210 #ifdef __cplusplus
9211 extern "C"
9212 #endif
9213 char __lzo_init_v2 ();
9215 main ()
9217 return __lzo_init_v2 ();
9219 return 0;
9221 _ACEOF
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (ac_try="$ac_link"
9224 case "(($ac_try" in
9225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9226 *) ac_try_echo=$ac_try;;
9227 esac
9228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9229 $as_echo "$ac_try_echo") >&5
9230 (eval "$ac_link") 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest$ac_exeext && {
9240 test "$cross_compiling" = yes ||
9241 $as_test_x conftest$ac_exeext
9242 }; then
9243 ac_cv_lib_lzo___lzo_init_v2=yes
9244 else
9245 $as_echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_cv_lib_lzo___lzo_init_v2=no
9251 rm -rf conftest.dSYM
9252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9256 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
9257 $as_echo "$ac_cv_lib_lzo___lzo_init_v2" >&6; }
9258 if test "x$ac_cv_lib_lzo___lzo_init_v2" = x""yes; then
9259 LIBLZO="-llzo"
9260 else
9261 { $as_echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
9262 $as_echo_n "checking for __lzo_init2 in -llzo... " >&6; }
9263 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
9264 $as_echo_n "(cached) " >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-llzo $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278 #ifdef __cplusplus
9279 extern "C"
9280 #endif
9281 char __lzo_init2 ();
9283 main ()
9285 return __lzo_init2 ();
9287 return 0;
9289 _ACEOF
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (ac_try="$ac_link"
9292 case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295 esac
9296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9297 $as_echo "$ac_try_echo") >&5
9298 (eval "$ac_link") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && {
9305 test -z "$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 } && test -s conftest$ac_exeext && {
9308 test "$cross_compiling" = yes ||
9309 $as_test_x conftest$ac_exeext
9310 }; then
9311 ac_cv_lib_lzo___lzo_init2=yes
9312 else
9313 $as_echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_cv_lib_lzo___lzo_init2=no
9319 rm -rf conftest.dSYM
9320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9324 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
9325 $as_echo "$ac_cv_lib_lzo___lzo_init2" >&6; }
9326 if test "x$ac_cv_lib_lzo___lzo_init2" = x""yes; then
9327 LIBLZO="-llzo"
9328 else
9329 { { $as_echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
9330 $as_echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
9331 { (exit 1); exit 1; }; }
9340 LIBS="$LIBS $LIBLZO"
9341 { $as_echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
9342 $as_echo_n "checking for lzo1x_999_compress... " >&6; }
9343 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
9344 $as_echo_n "(cached) " >&6
9345 else
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define lzo1x_999_compress innocuous_lzo1x_999_compress
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char lzo1x_999_compress (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9361 #ifdef __STDC__
9362 # include <limits.h>
9363 #else
9364 # include <assert.h>
9365 #endif
9367 #undef lzo1x_999_compress
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char lzo1x_999_compress ();
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
9380 choke me
9381 #endif
9384 main ()
9386 return lzo1x_999_compress ();
9388 return 0;
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9393 case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_link") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest$ac_exeext && {
9409 test "$cross_compiling" = yes ||
9410 $as_test_x conftest$ac_exeext
9411 }; then
9412 ac_cv_func_lzo1x_999_compress=yes
9413 else
9414 $as_echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_cv_func_lzo1x_999_compress=no
9420 rm -rf conftest.dSYM
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 conftest$ac_exeext conftest.$ac_ext
9424 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9425 $as_echo "$ac_cv_func_lzo1x_999_compress" >&6; }
9426 if test "x$ac_cv_func_lzo1x_999_compress" = x""yes; then
9428 else
9429 { { $as_echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9430 $as_echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9431 { (exit 1); exit 1; }; }
9435 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9438 for ac_header in lzo/lzo1x.h lzo1x.h
9440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 $as_echo_n "checking for $ac_header... " >&6; }
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 $as_echo_n "(cached) " >&6
9447 ac_res=`eval 'as_val=${'$as_ac_Header'}
9448 $as_echo "$as_val"'`
9449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9450 $as_echo "$ac_res" >&6; }
9451 else
9452 # Is the header compilable?
9453 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9454 $as_echo_n "checking $ac_header usability... " >&6; }
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 #include <$ac_header>
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (ac_try="$ac_compile"
9466 case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469 esac
9470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9471 $as_echo "$ac_try_echo") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
9482 ac_header_compiler=yes
9483 else
9484 $as_echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 ac_header_compiler=no
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9492 $as_echo "$ac_header_compiler" >&6; }
9494 # Is the header present?
9495 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9496 $as_echo_n "checking $ac_header presence... " >&6; }
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 #include <$ac_header>
9504 _ACEOF
9505 if { (ac_try="$ac_cpp conftest.$ac_ext"
9506 case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509 esac
9510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9511 $as_echo "$ac_try_echo") >&5
9512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } >/dev/null && {
9519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 }; then
9522 ac_header_preproc=yes
9523 else
9524 $as_echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_header_preproc=no
9530 rm -f conftest.err conftest.$ac_ext
9531 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9532 $as_echo "$ac_header_preproc" >&6; }
9534 # So? What about this header?
9535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9536 yes:no: )
9537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9538 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9540 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9541 ac_header_preproc=yes
9543 no:yes:* )
9544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9545 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9547 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9549 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9551 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9555 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9558 esac
9559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9560 $as_echo_n "checking for $ac_header... " >&6; }
9561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9562 $as_echo_n "(cached) " >&6
9563 else
9564 eval "$as_ac_Header=\$ac_header_preproc"
9566 ac_res=`eval 'as_val=${'$as_ac_Header'}
9567 $as_echo "$as_val"'`
9568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9569 $as_echo "$ac_res" >&6; }
9572 as_val=`eval 'as_val=${'$as_ac_Header'}
9573 $as_echo "$as_val"'`
9574 if test "x$as_val" = x""yes; then
9575 cat >>confdefs.h <<_ACEOF
9576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9577 _ACEOF
9581 done
9585 { $as_echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9586 $as_echo_n "checking which GUI Theme to use... " >&6; }
9588 # Check whether --with-theme was given.
9589 if test "${with_theme+set}" = set; then
9590 withval=$with_theme; target_guitheme=$withval
9591 else
9592 target_guitheme="default"
9595 if test "$target_guitheme" = "default"; then
9596 aros_target_guitheme="Ice"
9597 else
9598 aros_target_guitheme="$target_guitheme"
9600 { $as_echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9601 $as_echo "$aros_target_guitheme" >&6; }
9603 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9604 # for target code)
9605 cross_compiling=no
9606 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9607 cross_compiling=yes
9609 if test "$aros_host_arch" == "darwin" ; then
9610 cross_compiling=yes
9613 # Set prefix for target compiler etc. if we're cross-compiling
9614 # (should possibly be earlier but needs to be after AC_PROG_CC)
9615 if test "$cross_compiling" = "yes" ; then
9616 if test "$target_tool_prefix" = ""; then
9617 target_tool_prefix=${target_cpu}-elf-
9619 CC=${target_tool_prefix}gcc
9622 #-----------------------------------------------------------------------------
9624 # Disable pointer-signedness warnings if the compiler recognises the option
9626 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9627 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
9628 save_cflags="$CFLAGS"
9629 CFLAGS="$CFLAGS -Wno-pointer-sign"
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9638 main ()
9642 return 0;
9644 _ACEOF
9645 rm -f conftest.$ac_objext
9646 if { (ac_try="$ac_compile"
9647 case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650 esac
9651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9652 $as_echo "$ac_try_echo") >&5
9653 (eval "$ac_compile") 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest.$ac_objext; then
9663 use_no_sign_warning="yes"
9664 else
9665 $as_echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 use_no_sign_warning="no"
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9673 $as_echo "$use_no_sign_warning" >&6; }
9674 if test "x-$use_no_sign_warning" = "x-yes" ; then
9675 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9677 CFLAGS="$save_cflags"
9679 #-----------------------------------------------------------------------------
9681 # Find all the tools we need to compile. This could be cross-compiling
9682 # though! If that is the case we use the GNU form of the target and
9683 # simply add this to the front of the binary name. This is rather simple,
9684 # but it should work under most circumstances.
9686 # The default tools are to use the same as the host, but only if the
9687 # host and target CPU are the same. With GCC this is normally enough.
9690 aros_cc_pre=""
9691 aros_shared_ld="$aros_host_ld"
9693 aros_target_mkdep="$aros_host_mkdep"
9694 aros_target_incl_def="$aros_host_incl"
9696 # Extract the first word of "$CC", so it can be a program name with args.
9697 set dummy $CC; ac_word=$2
9698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9701 $as_echo_n "(cached) " >&6
9702 else
9703 case $aros_kernel_cc in
9704 [\\/]* | ?:[\\/]*)
9705 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 for as_dir in $PATH
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9716 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9719 done
9720 done
9721 IFS=$as_save_IFS
9724 esac
9726 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9727 if test -n "$aros_kernel_cc"; then
9728 { $as_echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9729 $as_echo "$aros_kernel_cc" >&6; }
9730 else
9731 { $as_echo "$as_me:$LINENO: result: no" >&5
9732 $as_echo "no" >&6; }
9737 # The default tools executables to be linked to.
9738 if test "$aros_target_cc" != ""; then
9739 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9740 set dummy $aros_target_cc; ac_word=$2
9741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9744 $as_echo_n "(cached) " >&6
9745 else
9746 case $aros_target_cc in
9747 [\\/]* | ?:[\\/]*)
9748 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9762 done
9763 done
9764 IFS=$as_save_IFS
9767 esac
9769 aros_target_cc=$ac_cv_path_aros_target_cc
9770 if test -n "$aros_target_cc"; then
9771 { $as_echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9772 $as_echo "$aros_target_cc" >&6; }
9773 else
9774 { $as_echo "$as_me:$LINENO: result: no" >&5
9775 $as_echo "no" >&6; }
9779 if test "$aros_target_cc" = ""; then
9780 { { $as_echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9781 $as_echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9782 { (exit 1); exit 1; }; }
9785 if test "$aros_target_ld" != ""; then
9786 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9787 set dummy $aros_target_ld; ac_word=$2
9788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9789 $as_echo_n "checking for $ac_word... " >&6; }
9790 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9791 $as_echo_n "(cached) " >&6
9792 else
9793 case $aros_target_ld in
9794 [\\/]* | ?:[\\/]*)
9795 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9805 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9809 done
9810 done
9811 IFS=$as_save_IFS
9814 esac
9816 aros_target_ld=$ac_cv_path_aros_target_ld
9817 if test -n "$aros_target_ld"; then
9818 { $as_echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9819 $as_echo "$aros_target_ld" >&6; }
9820 else
9821 { $as_echo "$as_me:$LINENO: result: no" >&5
9822 $as_echo "no" >&6; }
9826 if test "$aros_target_ld" = ""; then
9827 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9828 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9829 { (exit 1); exit 1; }; }
9833 if test "$crosstools" != "yes"; then
9835 if test "$aros_target_as" = ""; then
9836 if test "$cross_compiling" = "yes" ; then
9837 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9838 set dummy ${target_tool_prefix}as; ac_word=$2
9839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9842 $as_echo_n "(cached) " >&6
9843 else
9844 case $aros_target_as_ln in
9845 [\\/]* | ?:[\\/]*)
9846 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in $PATH
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9856 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9858 break 2
9860 done
9861 done
9862 IFS=$as_save_IFS
9865 esac
9867 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9868 if test -n "$aros_target_as_ln"; then
9869 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9870 $as_echo "$aros_target_as_ln" >&6; }
9871 else
9872 { $as_echo "$as_me:$LINENO: result: no" >&5
9873 $as_echo "no" >&6; }
9877 else
9878 if test "$GCC" = "yes"; then
9879 aros_gcc_as=`$CC -print-prog-name=as`
9880 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9881 set dummy `basename $aros_gcc_as`; ac_word=$2
9882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9885 $as_echo_n "(cached) " >&6
9886 else
9887 case $aros_target_as_ln in
9888 [\\/]* | ?:[\\/]*)
9889 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in `dirname $aros_gcc_as`
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9899 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9903 done
9904 done
9905 IFS=$as_save_IFS
9908 esac
9910 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9911 if test -n "$aros_target_as_ln"; then
9912 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9913 $as_echo "$aros_target_as_ln" >&6; }
9914 else
9915 { $as_echo "$as_me:$LINENO: result: no" >&5
9916 $as_echo "no" >&6; }
9921 if test "$aros_target_as_ln" = ""; then
9922 # Extract the first word of "as", so it can be a program name with args.
9923 set dummy as; ac_word=$2
9924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9927 $as_echo_n "(cached) " >&6
9928 else
9929 case $aros_target_as_ln in
9930 [\\/]* | ?:[\\/]*)
9931 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 for as_dir in $PATH
9937 IFS=$as_save_IFS
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 break 2
9945 done
9946 done
9947 IFS=$as_save_IFS
9950 esac
9952 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9953 if test -n "$aros_target_as_ln"; then
9954 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9955 $as_echo "$aros_target_as_ln" >&6; }
9956 else
9957 { $as_echo "$as_me:$LINENO: result: no" >&5
9958 $as_echo "no" >&6; }
9964 else
9965 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9966 set dummy $aros_target_as; ac_word=$2
9967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9970 $as_echo_n "(cached) " >&6
9971 else
9972 case $aros_target_as_ln in
9973 [\\/]* | ?:[\\/]*)
9974 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 for as_dir in $PATH
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 break 2
9988 done
9989 done
9990 IFS=$as_save_IFS
9993 esac
9995 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9996 if test -n "$aros_target_as_ln"; then
9997 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9998 $as_echo "$aros_target_as_ln" >&6; }
9999 else
10000 { $as_echo "$as_me:$LINENO: result: no" >&5
10001 $as_echo "no" >&6; }
10007 if test "$aros_target_as_ln" = ""; then
10008 { { $as_echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
10009 $as_echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
10010 { (exit 1); exit 1; }; }
10013 if test "$aros_kernel_ld" = ""; then
10014 if test "$cross_compiling" = "yes" ; then
10015 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
10016 set dummy ${target_tool_prefix}ld; ac_word=$2
10017 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10020 $as_echo_n "(cached) " >&6
10021 else
10022 case $aros_kernel_ld in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10043 esac
10045 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10046 if test -n "$aros_kernel_ld"; then
10047 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10048 $as_echo "$aros_kernel_ld" >&6; }
10049 else
10050 { $as_echo "$as_me:$LINENO: result: no" >&5
10051 $as_echo "no" >&6; }
10055 else
10056 if test "$GCC" = "yes"; then
10057 aros_gcc_ld=`$CC -print-prog-name=ld`
10058 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
10059 set dummy `basename $aros_gcc_ld`; ac_word=$2
10060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10063 $as_echo_n "(cached) " >&6
10064 else
10065 case $aros_kernel_ld in
10066 [\\/]* | ?:[\\/]*)
10067 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in `dirname $aros_gcc_ld`
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10081 done
10082 done
10083 IFS=$as_save_IFS
10086 esac
10088 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10089 if test -n "$aros_kernel_ld"; then
10090 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10091 $as_echo "$aros_kernel_ld" >&6; }
10092 else
10093 { $as_echo "$as_me:$LINENO: result: no" >&5
10094 $as_echo "no" >&6; }
10099 if test "$aros_kernel_ld" = ""; then
10100 # Extract the first word of "ld", so it can be a program name with args.
10101 set dummy ld; ac_word=$2
10102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10105 $as_echo_n "(cached) " >&6
10106 else
10107 case $aros_kernel_ld in
10108 [\\/]* | ?:[\\/]*)
10109 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10123 done
10124 done
10125 IFS=$as_save_IFS
10128 esac
10130 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10131 if test -n "$aros_kernel_ld"; then
10132 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10133 $as_echo "$aros_kernel_ld" >&6; }
10134 else
10135 { $as_echo "$as_me:$LINENO: result: no" >&5
10136 $as_echo "no" >&6; }
10142 else
10143 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
10144 set dummy $aros_kernel_ld; ac_word=$2
10145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
10148 $as_echo_n "(cached) " >&6
10149 else
10150 case $aros_kernel_ld in
10151 [\\/]* | ?:[\\/]*)
10152 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10166 done
10167 done
10168 IFS=$as_save_IFS
10171 esac
10173 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
10174 if test -n "$aros_kernel_ld"; then
10175 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
10176 $as_echo "$aros_kernel_ld" >&6; }
10177 else
10178 { $as_echo "$as_me:$LINENO: result: no" >&5
10179 $as_echo "no" >&6; }
10185 if test "$aros_kernel_ld" = ""; then
10186 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
10187 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
10188 { (exit 1); exit 1; }; }
10191 if test "$aros_target_ar" = ""; then
10192 if test "$cross_compiling" = "yes" ; then
10193 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
10194 set dummy ${target_tool_prefix}ar; ac_word=$2
10195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10199 else
10200 case $aros_target_ar_ln in
10201 [\\/]* | ?:[\\/]*)
10202 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10212 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 break 2
10216 done
10217 done
10218 IFS=$as_save_IFS
10221 esac
10223 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10224 if test -n "$aros_target_ar_ln"; then
10225 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10226 $as_echo "$aros_target_ar_ln" >&6; }
10227 else
10228 { $as_echo "$as_me:$LINENO: result: no" >&5
10229 $as_echo "no" >&6; }
10233 else
10234 if test "$GCC" = "yes"; then
10235 aros_gcc_ar=`$CC -print-prog-name=ar`
10236 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10237 set dummy `basename $aros_gcc_ar`; ac_word=$2
10238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10241 $as_echo_n "(cached) " >&6
10242 else
10243 case $aros_target_ar_ln in
10244 [\\/]* | ?:[\\/]*)
10245 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in `dirname $aros_gcc_ar`
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
10253 for ac_exec_ext in '' $ac_executable_extensions; do
10254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10255 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10257 break 2
10259 done
10260 done
10261 IFS=$as_save_IFS
10264 esac
10266 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10267 if test -n "$aros_target_ar_ln"; then
10268 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10269 $as_echo "$aros_target_ar_ln" >&6; }
10270 else
10271 { $as_echo "$as_me:$LINENO: result: no" >&5
10272 $as_echo "no" >&6; }
10277 if test "$aros_target_ar_ln" = ""; then
10278 # Extract the first word of "ar", so it can be a program name with args.
10279 set dummy ar; ac_word=$2
10280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10283 $as_echo_n "(cached) " >&6
10284 else
10285 case $aros_target_ar_ln in
10286 [\\/]* | ?:[\\/]*)
10287 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291 for as_dir in $PATH
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10299 break 2
10301 done
10302 done
10303 IFS=$as_save_IFS
10306 esac
10308 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10309 if test -n "$aros_target_ar_ln"; then
10310 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10311 $as_echo "$aros_target_ar_ln" >&6; }
10312 else
10313 { $as_echo "$as_me:$LINENO: result: no" >&5
10314 $as_echo "no" >&6; }
10320 else
10321 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
10322 set dummy $aros_target_ar; ac_word=$2
10323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10324 $as_echo_n "checking for $ac_word... " >&6; }
10325 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10326 $as_echo_n "(cached) " >&6
10327 else
10328 case $aros_target_ar_ln in
10329 [\\/]* | ?:[\\/]*)
10330 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10340 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 break 2
10344 done
10345 done
10346 IFS=$as_save_IFS
10349 esac
10351 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10352 if test -n "$aros_target_ar_ln"; then
10353 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10354 $as_echo "$aros_target_ar_ln" >&6; }
10355 else
10356 { $as_echo "$as_me:$LINENO: result: no" >&5
10357 $as_echo "no" >&6; }
10363 if test "$aros_target_ar_ln" = ""; then
10364 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10365 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10366 { (exit 1); exit 1; }; }
10369 if test "$aros_target_nm" = ""; then
10370 if test "$cross_compiling" = "yes" ; then
10371 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10372 set dummy ${target_tool_prefix}nm; ac_word=$2
10373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10376 $as_echo_n "(cached) " >&6
10377 else
10378 case $aros_target_nm_ln in
10379 [\\/]* | ?:[\\/]*)
10380 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10390 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10394 done
10395 done
10396 IFS=$as_save_IFS
10399 esac
10401 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10402 if test -n "$aros_target_nm_ln"; then
10403 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10404 $as_echo "$aros_target_nm_ln" >&6; }
10405 else
10406 { $as_echo "$as_me:$LINENO: result: no" >&5
10407 $as_echo "no" >&6; }
10411 else
10412 if test "$GCC" = "yes"; then
10413 aros_gcc_nm=`$CC -print-prog-name=nm`
10414 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10415 set dummy `basename $aros_gcc_nm`; ac_word=$2
10416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10419 $as_echo_n "(cached) " >&6
10420 else
10421 case $aros_target_nm_ln in
10422 [\\/]* | ?:[\\/]*)
10423 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in `dirname $aros_gcc_nm`
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10433 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10435 break 2
10437 done
10438 done
10439 IFS=$as_save_IFS
10442 esac
10444 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10445 if test -n "$aros_target_nm_ln"; then
10446 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10447 $as_echo "$aros_target_nm_ln" >&6; }
10448 else
10449 { $as_echo "$as_me:$LINENO: result: no" >&5
10450 $as_echo "no" >&6; }
10455 if test "$aros_target_nm_ln" = ""; then
10456 # Extract the first word of "nm", so it can be a program name with args.
10457 set dummy nm; ac_word=$2
10458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10461 $as_echo_n "(cached) " >&6
10462 else
10463 case $aros_target_nm_ln in
10464 [\\/]* | ?:[\\/]*)
10465 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10475 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10479 done
10480 done
10481 IFS=$as_save_IFS
10484 esac
10486 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10487 if test -n "$aros_target_nm_ln"; then
10488 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10489 $as_echo "$aros_target_nm_ln" >&6; }
10490 else
10491 { $as_echo "$as_me:$LINENO: result: no" >&5
10492 $as_echo "no" >&6; }
10498 else
10499 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10500 set dummy $aros_target_nm; ac_word=$2
10501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10505 else
10506 case $aros_target_nm_ln in
10507 [\\/]* | ?:[\\/]*)
10508 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10518 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10522 done
10523 done
10524 IFS=$as_save_IFS
10527 esac
10529 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10530 if test -n "$aros_target_nm_ln"; then
10531 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10532 $as_echo "$aros_target_nm_ln" >&6; }
10533 else
10534 { $as_echo "$as_me:$LINENO: result: no" >&5
10535 $as_echo "no" >&6; }
10541 if test "$aros_target_nm_ln" = ""; then
10542 { { $as_echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10543 $as_echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10544 { (exit 1); exit 1; }; }
10547 if test "$aros_target_objcopy" = ""; then
10548 if test "$cross_compiling" = "yes" ; then
10549 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10550 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10554 $as_echo_n "(cached) " >&6
10555 else
10556 case $aros_target_objcopy_ln in
10557 [\\/]* | ?:[\\/]*)
10558 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10570 break 2
10572 done
10573 done
10574 IFS=$as_save_IFS
10577 esac
10579 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10580 if test -n "$aros_target_objcopy_ln"; then
10581 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10582 $as_echo "$aros_target_objcopy_ln" >&6; }
10583 else
10584 { $as_echo "$as_me:$LINENO: result: no" >&5
10585 $as_echo "no" >&6; }
10589 else
10590 if test "$GCC" = "yes"; then
10591 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10592 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10593 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10595 $as_echo_n "checking for $ac_word... " >&6; }
10596 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10597 $as_echo_n "(cached) " >&6
10598 else
10599 case $aros_target_objcopy_ln in
10600 [\\/]* | ?:[\\/]*)
10601 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in `dirname $aros_gcc_objcopy`
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10611 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10615 done
10616 done
10617 IFS=$as_save_IFS
10620 esac
10622 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10623 if test -n "$aros_target_objcopy_ln"; then
10624 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10625 $as_echo "$aros_target_objcopy_ln" >&6; }
10626 else
10627 { $as_echo "$as_me:$LINENO: result: no" >&5
10628 $as_echo "no" >&6; }
10633 if test "$aros_target_objcopy_ln" = ""; then
10634 # Extract the first word of "objcopy", so it can be a program name with args.
10635 set dummy objcopy; ac_word=$2
10636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10637 $as_echo_n "checking for $ac_word... " >&6; }
10638 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10640 else
10641 case $aros_target_objcopy_ln in
10642 [\\/]* | ?:[\\/]*)
10643 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10653 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10657 done
10658 done
10659 IFS=$as_save_IFS
10662 esac
10664 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10665 if test -n "$aros_target_objcopy_ln"; then
10666 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10667 $as_echo "$aros_target_objcopy_ln" >&6; }
10668 else
10669 { $as_echo "$as_me:$LINENO: result: no" >&5
10670 $as_echo "no" >&6; }
10676 else
10677 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10678 set dummy $aros_target_objcopy; ac_word=$2
10679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10680 $as_echo_n "checking for $ac_word... " >&6; }
10681 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10682 $as_echo_n "(cached) " >&6
10683 else
10684 case $aros_target_objcopy_ln in
10685 [\\/]* | ?:[\\/]*)
10686 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10696 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10700 done
10701 done
10702 IFS=$as_save_IFS
10705 esac
10707 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10708 if test -n "$aros_target_objcopy_ln"; then
10709 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10710 $as_echo "$aros_target_objcopy_ln" >&6; }
10711 else
10712 { $as_echo "$as_me:$LINENO: result: no" >&5
10713 $as_echo "no" >&6; }
10719 if test "$aros_target_objcopy_ln" = ""; then
10720 { { $as_echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10721 $as_echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10722 { (exit 1); exit 1; }; }
10725 if test "$aros_target_objdump" = ""; then
10726 if test "$cross_compiling" = "yes" ; then
10727 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10728 set dummy ${target_tool_prefix}objdump; ac_word=$2
10729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10732 $as_echo_n "(cached) " >&6
10733 else
10734 case $aros_target_objdump_ln in
10735 [\\/]* | ?:[\\/]*)
10736 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740 for as_dir in $PATH
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10750 done
10751 done
10752 IFS=$as_save_IFS
10755 esac
10757 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10758 if test -n "$aros_target_objdump_ln"; then
10759 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10760 $as_echo "$aros_target_objdump_ln" >&6; }
10761 else
10762 { $as_echo "$as_me:$LINENO: result: no" >&5
10763 $as_echo "no" >&6; }
10767 else
10768 if test "$GCC" = "yes"; then
10769 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10770 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10771 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10773 $as_echo_n "checking for $ac_word... " >&6; }
10774 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10775 $as_echo_n "(cached) " >&6
10776 else
10777 case $aros_target_objdump_ln in
10778 [\\/]* | ?:[\\/]*)
10779 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10783 for as_dir in `dirname $aros_gcc_objdump`
10785 IFS=$as_save_IFS
10786 test -z "$as_dir" && as_dir=.
10787 for ac_exec_ext in '' $ac_executable_extensions; do
10788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10789 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 break 2
10793 done
10794 done
10795 IFS=$as_save_IFS
10798 esac
10800 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10801 if test -n "$aros_target_objdump_ln"; then
10802 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10803 $as_echo "$aros_target_objdump_ln" >&6; }
10804 else
10805 { $as_echo "$as_me:$LINENO: result: no" >&5
10806 $as_echo "no" >&6; }
10811 if test "$aros_target_objdump_ln" = ""; then
10812 # Extract the first word of "objdump", so it can be a program name with args.
10813 set dummy objdump; ac_word=$2
10814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10817 $as_echo_n "(cached) " >&6
10818 else
10819 case $aros_target_objdump_ln in
10820 [\\/]* | ?:[\\/]*)
10821 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10835 done
10836 done
10837 IFS=$as_save_IFS
10840 esac
10842 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10843 if test -n "$aros_target_objdump_ln"; then
10844 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10845 $as_echo "$aros_target_objdump_ln" >&6; }
10846 else
10847 { $as_echo "$as_me:$LINENO: result: no" >&5
10848 $as_echo "no" >&6; }
10854 else
10855 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10856 set dummy $aros_target_objdump; ac_word=$2
10857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10861 else
10862 case $aros_target_objdump_ln in
10863 [\\/]* | ?:[\\/]*)
10864 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10874 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10878 done
10879 done
10880 IFS=$as_save_IFS
10883 esac
10885 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10886 if test -n "$aros_target_objdump_ln"; then
10887 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10888 $as_echo "$aros_target_objdump_ln" >&6; }
10889 else
10890 { $as_echo "$as_me:$LINENO: result: no" >&5
10891 $as_echo "no" >&6; }
10897 if test "$aros_target_objdump_ln" = ""; then
10898 { { $as_echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10899 $as_echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10900 { (exit 1); exit 1; }; }
10903 if test "$aros_target_ranlib" = ""; then
10904 if test "$cross_compiling" = "yes" ; then
10905 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10906 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10908 $as_echo_n "checking for $ac_word... " >&6; }
10909 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10910 $as_echo_n "(cached) " >&6
10911 else
10912 case $aros_target_ranlib_ln in
10913 [\\/]* | ?:[\\/]*)
10914 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918 for as_dir in $PATH
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10924 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10928 done
10929 done
10930 IFS=$as_save_IFS
10933 esac
10935 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10936 if test -n "$aros_target_ranlib_ln"; then
10937 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10938 $as_echo "$aros_target_ranlib_ln" >&6; }
10939 else
10940 { $as_echo "$as_me:$LINENO: result: no" >&5
10941 $as_echo "no" >&6; }
10945 else
10946 if test "$GCC" = "yes"; then
10947 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10948 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10949 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10950 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10951 $as_echo_n "checking for $ac_word... " >&6; }
10952 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10953 $as_echo_n "(cached) " >&6
10954 else
10955 case $aros_target_ranlib_ln in
10956 [\\/]* | ?:[\\/]*)
10957 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in `dirname $aros_gcc_ranlib`
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10967 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10971 done
10972 done
10973 IFS=$as_save_IFS
10976 esac
10978 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10979 if test -n "$aros_target_ranlib_ln"; then
10980 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10981 $as_echo "$aros_target_ranlib_ln" >&6; }
10982 else
10983 { $as_echo "$as_me:$LINENO: result: no" >&5
10984 $as_echo "no" >&6; }
10989 if test "$aros_target_ranlib_ln" = ""; then
10990 # Extract the first word of "ranlib", so it can be a program name with args.
10991 set dummy ranlib; ac_word=$2
10992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10995 $as_echo_n "(cached) " >&6
10996 else
10997 case $aros_target_ranlib_ln in
10998 [\\/]* | ?:[\\/]*)
10999 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11013 done
11014 done
11015 IFS=$as_save_IFS
11018 esac
11020 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11021 if test -n "$aros_target_ranlib_ln"; then
11022 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11023 $as_echo "$aros_target_ranlib_ln" >&6; }
11024 else
11025 { $as_echo "$as_me:$LINENO: result: no" >&5
11026 $as_echo "no" >&6; }
11032 else
11033 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
11034 set dummy $aros_target_ranlib; ac_word=$2
11035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
11038 $as_echo_n "(cached) " >&6
11039 else
11040 case $aros_target_ranlib_ln in
11041 [\\/]* | ?:[\\/]*)
11042 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11052 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
11053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11056 done
11057 done
11058 IFS=$as_save_IFS
11061 esac
11063 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
11064 if test -n "$aros_target_ranlib_ln"; then
11065 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
11066 $as_echo "$aros_target_ranlib_ln" >&6; }
11067 else
11068 { $as_echo "$as_me:$LINENO: result: no" >&5
11069 $as_echo "no" >&6; }
11075 if test "$aros_target_ranlib_ln" = ""; then
11076 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
11077 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
11078 { (exit 1); exit 1; }; }
11081 if test "$aros_target_strip" = ""; then
11082 if test "$cross_compiling" = "yes" ; then
11083 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
11084 set dummy ${target_tool_prefix}strip; ac_word=$2
11085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11088 $as_echo_n "(cached) " >&6
11089 else
11090 case $aros_target_strip_ln in
11091 [\\/]* | ?:[\\/]*)
11092 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11111 esac
11113 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11114 if test -n "$aros_target_strip_ln"; then
11115 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11116 $as_echo "$aros_target_strip_ln" >&6; }
11117 else
11118 { $as_echo "$as_me:$LINENO: result: no" >&5
11119 $as_echo "no" >&6; }
11123 else
11124 if test "$GCC" = "yes"; then
11125 aros_gcc_strip=`$CC -print-prog-name=strip`
11126 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
11127 set dummy `basename $aros_gcc_strip`; ac_word=$2
11128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11131 $as_echo_n "(cached) " >&6
11132 else
11133 case $aros_target_strip_ln in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in `dirname $aros_gcc_strip`
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11149 done
11150 done
11151 IFS=$as_save_IFS
11154 esac
11156 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11157 if test -n "$aros_target_strip_ln"; then
11158 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11159 $as_echo "$aros_target_strip_ln" >&6; }
11160 else
11161 { $as_echo "$as_me:$LINENO: result: no" >&5
11162 $as_echo "no" >&6; }
11167 if test "$aros_target_strip_ln" = ""; then
11168 # Extract the first word of "strip", so it can be a program name with args.
11169 set dummy strip; ac_word=$2
11170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11173 $as_echo_n "(cached) " >&6
11174 else
11175 case $aros_target_strip_ln in
11176 [\\/]* | ?:[\\/]*)
11177 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11187 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11191 done
11192 done
11193 IFS=$as_save_IFS
11196 esac
11198 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11199 if test -n "$aros_target_strip_ln"; then
11200 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11201 $as_echo "$aros_target_strip_ln" >&6; }
11202 else
11203 { $as_echo "$as_me:$LINENO: result: no" >&5
11204 $as_echo "no" >&6; }
11210 else
11211 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
11212 set dummy $aros_target_strip; ac_word=$2
11213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
11216 $as_echo_n "(cached) " >&6
11217 else
11218 case $aros_target_strip_ln in
11219 [\\/]* | ?:[\\/]*)
11220 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11234 done
11235 done
11236 IFS=$as_save_IFS
11239 esac
11241 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11242 if test -n "$aros_target_strip_ln"; then
11243 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11244 $as_echo "$aros_target_strip_ln" >&6; }
11245 else
11246 { $as_echo "$as_me:$LINENO: result: no" >&5
11247 $as_echo "no" >&6; }
11253 if test "$aros_target_strip_ln" = ""; then
11254 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
11255 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
11256 { (exit 1); exit 1; }; }
11260 if test "$rescomp" != ""; then
11261 if test "$cross_compiling" = "yes" ; then
11262 rescomp=${target_tool_prefix}${rescomp}
11264 # Extract the first word of "$rescomp", so it can be a program name with args.
11265 set dummy $rescomp; ac_word=$2
11266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
11269 $as_echo_n "(cached) " >&6
11270 else
11271 case $aros_kernel_rescomp in
11272 [\\/]* | ?:[\\/]*)
11273 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
11284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11287 done
11288 done
11289 IFS=$as_save_IFS
11292 esac
11294 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
11295 if test -n "$aros_kernel_rescomp"; then
11296 { $as_echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
11297 $as_echo "$aros_kernel_rescomp" >&6; }
11298 else
11299 { $as_echo "$as_me:$LINENO: result: no" >&5
11300 $as_echo "no" >&6; }
11304 if test "$aros_kernel_rescomp" = ""; then
11305 { { $as_echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
11306 $as_echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
11307 { (exit 1); exit 1; }; }
11311 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11312 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11313 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11314 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11315 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11316 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11317 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11319 # aros_cc_pre is a variable that is added to the front of the compiler name
11320 # in the generated aros-gcc shell script. We need this to enable the cache
11321 # to work across cleaned builds. Also, support DISTCC using the correct
11322 # environment variable.
11325 if test "x${DISTCC}" != "x" ; then
11326 if test "x${CCACHE}" != "x" ; then
11327 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11328 else
11329 aros_cc_pre="${DISTCC} "
11331 else
11332 if test "x${CCACHE}" != "x" ; then
11333 aros_cc_pre="${CCACHE} "
11337 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
11339 aros_target_nostdinc_cflags=-nostdinc
11341 aros_target_nostartup_ldflags=-nostartfiles
11343 aros_target_nix_ldflags=-nix
11345 aros_target_detach_ldflags=-detach
11347 aros_target_nostdlib_ldflags=-nostdlib
11350 # Target tools
11351 if test "$aros_target_cc" = ""; then
11352 orig_target_cc=$aros_kernel_cc
11353 else
11354 orig_target_cc=$aros_target_cc
11356 if test "$aros_target_ld" = ""; then
11357 orig_target_ld=$aros_kernel_ld
11358 else
11359 orig_target_ld=$aros_target_ld
11361 if test "$GCC" = "yes"; then
11362 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11364 aros_target_cc="${prefix}-gcc"
11365 aros_target_as="${prefix}-as"
11366 aros_target_ld="${prefix}-ld"
11367 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11368 aros_target_objcopy=${prefix}-objcopy
11369 aros_target_objdump=${prefix}-objdump
11370 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11371 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11372 aros_kernel_nm="${prefix}-nm"
11373 aros_target_strip=${prefix}-strip
11375 # Find the system include path. We can suggest that an alternative is
11376 # used if we don't get it correct. The default is to use /usr/include.
11377 # Which is set in the aros_target_incl_def variable.
11379 # Check whether --enable-includes was given.
11380 if test "${enable_includes+set}" = set; then
11381 enableval=$enable_includes; aros_target_incl=$enable_includes
11382 else
11383 aros_target_incl=$aros_target_incl_def
11387 { $as_echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11388 $as_echo_n "checking for the target compiler's include path... " >&6; }
11389 if test "$aros_target_cc_includes" = "" ; then
11390 #try to guess where the directory is
11391 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11392 if ! test -d $aros_target_cc_includes; then
11393 #the directory doesn't exist, we need to do some more work
11394 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11396 #these are the headers we're looling for
11397 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11398 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11399 zutil.h"
11401 dirs=
11402 for h in $headers; do
11403 #which other headers each of the above headers needs?
11404 deps=$(echo "#include <$h>" | \
11405 $aros_host_cc -E -M - 2>/dev/null | \
11406 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11408 #copy all the needed headers to a directory beneath gendir
11409 for d in $deps; do
11410 h=$(basename $d)
11411 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11412 sed -n "s,^.*/include\(/.*\),\1,p")
11413 ! test -d $dir && mkdir -p $dir
11414 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11415 done
11416 done
11419 { $as_echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11420 $as_echo "$aros_target_cc_includes" >&6; }
11423 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11424 # On GCC >= 4.0 -iquote should be used
11427 save_cc="$CC"
11428 save_cflags="$CFLAGS"
11429 CC="$aros_kernel_cc"
11430 CFLAGS="-iquote."
11431 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11432 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h. */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11441 main ()
11445 return 0;
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (ac_try="$ac_compile"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453 esac
11454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11455 $as_echo "$ac_try_echo") >&5
11456 (eval "$ac_compile") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest.$ac_objext; then
11466 has_iquote="yes"
11467 else
11468 $as_echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 has_iquote="no"
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11476 $as_echo "$has_iquote" >&6; }
11477 if test "x-$has_iquote" = "x-yes" ; then
11478 aros_cflags_iquote=-iquote
11479 aros_cflags_iquote_end=
11480 else
11481 aros_cflags_iquote=-I
11482 aros_cflags_iquote_end=-I-
11484 CC="$save_cc"
11485 CFLAGS="$save_cflags"
11491 { $as_echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11492 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11494 # Check whether --with-resolution was given.
11495 if test "${with_resolution+set}" = set; then
11496 withval=$with_resolution; resolution=$withval
11497 else
11498 resolution=none
11501 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11502 if test "$resolution" = "yes" ; then
11503 resolution="none"
11505 if test "$resolution" = "no" ; then
11506 resolution="none"
11508 if test "$resolution" != "none" ; then
11509 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11510 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11511 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11513 { $as_echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11514 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11515 aros_cv_default_wbwidth=$aros_default_wbwidth
11516 aros_cv_default_wbheight=$aros_default_wbheight
11517 aros_cv_default_wbdepth=$aros_default_wbdepth
11519 { $as_echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
11520 $as_echo_n "checking if bochs hack is enabled... " >&6; }
11521 # Check whether --enable-bochs_hack was given.
11522 if test "${enable_bochs_hack+set}" = set; then
11523 enableval=$enable_bochs_hack; bochs_hack="yes"
11524 else
11525 bochs_hack="no"
11528 if test "$bochs_hack" = "yes" ; then
11529 aros_bochs_hack="1"
11531 { $as_echo "$as_me:$LINENO: result: $bochs_hack" >&5
11532 $as_echo "$bochs_hack" >&6; }
11534 { $as_echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11535 $as_echo_n "checking if serial debug is enabled... " >&6; }
11537 # Check whether --with-serial-debug was given.
11538 if test "${with_serial_debug+set}" = set; then
11539 withval=$with_serial_debug; serial_debug=$withval
11540 else
11541 serial_debug=none
11544 if test "$aros_serial_debug" = 0 ; then
11545 serial_debug_forced=""
11546 if test "$serial_debug" = "yes" ; then
11547 serial_debug="2"
11549 if test "$serial_debug" = "no" ; then
11550 serial_debug="none"
11552 else
11553 serial_debug_forced="(forced)"
11554 serial_debug=$aros_serial_debug
11556 if test "$serial_debug" != "none" ; then
11557 aros_serial_debug=$serial_debug
11558 { $as_echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11559 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11560 else
11561 { $as_echo "$as_me:$LINENO: result: no" >&5
11562 $as_echo "no" >&6; }
11565 { $as_echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11566 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11567 # Check whether --enable-palm_debug_hack was given.
11568 if test "${enable_palm_debug_hack+set}" = set; then
11569 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11570 else
11571 palm_debug_hack="no"
11574 if test "$palm_debug_hack" = "yes" ; then
11575 aros_palm_debug_hack="1"
11577 { $as_echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11578 $as_echo "$palm_debug_hack" >&6; }
11581 { $as_echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11582 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11583 # Check whether --enable-nesting_supervisor was given.
11584 if test "${enable_nesting_supervisor+set}" = set; then
11585 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11586 else
11587 nesting_supervisor="no"
11590 if test "$nesting_supervisor" = "yes" ; then
11591 aros_nesting_supervisor="1"
11593 { $as_echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11594 $as_echo "$nesting_supervisor" >&6; }
11597 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11599 if test "x-$need_dlopen" != "x-no" ; then
11600 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11601 $as_echo_n "checking for dlopen... " >&6; }
11602 if test "${ac_cv_func_dlopen+set}" = set; then
11603 $as_echo_n "(cached) " >&6
11604 else
11605 cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h. */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11613 #define dlopen innocuous_dlopen
11615 /* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char dlopen (); below.
11617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618 <limits.h> exists even on freestanding compilers. */
11620 #ifdef __STDC__
11621 # include <limits.h>
11622 #else
11623 # include <assert.h>
11624 #endif
11626 #undef dlopen
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char dlopen ();
11635 /* The GNU C library defines this for functions which it implements
11636 to always fail with ENOSYS. Some functions are actually named
11637 something starting with __ and the normal name is an alias. */
11638 #if defined __stub_dlopen || defined __stub___dlopen
11639 choke me
11640 #endif
11643 main ()
11645 return dlopen ();
11647 return 0;
11649 _ACEOF
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655 esac
11656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11657 $as_echo "$ac_try_echo") >&5
11658 (eval "$ac_link") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } && {
11665 test -z "$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 } && test -s conftest$ac_exeext && {
11668 test "$cross_compiling" = yes ||
11669 $as_test_x conftest$ac_exeext
11670 }; then
11671 ac_cv_func_dlopen=yes
11672 else
11673 $as_echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_cv_func_dlopen=no
11679 rm -rf conftest.dSYM
11680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11681 conftest$ac_exeext conftest.$ac_ext
11683 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11684 $as_echo "$ac_cv_func_dlopen" >&6; }
11685 if test "x$ac_cv_func_dlopen" = x""yes; then
11686 have_dl="yes"
11687 else
11688 have_dl="no"
11691 if test "x-$have_dl" = "x-no" ; then
11692 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11693 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11694 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11695 $as_echo_n "(cached) " >&6
11696 else
11697 ac_check_lib_save_LIBS=$LIBS
11698 LIBS="-ldl $LIBS"
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11706 /* Override any GCC internal prototype to avoid an error.
11707 Use char because int might match the return type of a GCC
11708 builtin and then its argument prototype would still apply. */
11709 #ifdef __cplusplus
11710 extern "C"
11711 #endif
11712 char dlopen ();
11714 main ()
11716 return dlopen ();
11718 return 0;
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726 esac
11727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728 $as_echo "$ac_try_echo") >&5
11729 (eval "$ac_link") 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && {
11736 test -z "$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 } && test -s conftest$ac_exeext && {
11739 test "$cross_compiling" = yes ||
11740 $as_test_x conftest$ac_exeext
11741 }; then
11742 ac_cv_lib_dl_dlopen=yes
11743 else
11744 $as_echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_cv_lib_dl_dlopen=no
11750 rm -rf conftest.dSYM
11751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LIBS=$ac_check_lib_save_LIBS
11755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11757 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11758 have_dl="yes"
11759 aros_host_ldflags="$aros_host_ldflags -ldl"
11760 else
11761 have_dl="no"
11765 if test "x-$have_dl" = "x-no" ; then
11766 { { $as_echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11767 $as_echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11768 { (exit 1); exit 1; }; }
11773 # Check whether --enable-x11_hidd was given.
11774 if test "${enable_x11_hidd+set}" = set; then
11775 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11776 else
11777 x11_hidd="auto"
11780 case "x-$x11_hidd" in
11781 x-yes|x-no|x-auto) ;;
11782 *) x11_hidd="auto" ;;
11783 esac
11785 if test "x-$x11_hidd" != "x-no" ; then
11787 { $as_echo "$as_me:$LINENO: checking for X" >&5
11788 $as_echo_n "checking for X... " >&6; }
11791 # Check whether --with-x was given.
11792 if test "${with_x+set}" = set; then
11793 withval=$with_x;
11796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11797 if test "x$with_x" = xno; then
11798 # The user explicitly disabled X.
11799 have_x=disabled
11800 else
11801 case $x_includes,$x_libraries in #(
11802 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
11803 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
11804 { (exit 1); exit 1; }; };; #(
11805 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11807 else
11808 # One or both of the vars are not set, and there is no cached value.
11809 ac_x_includes=no ac_x_libraries=no
11810 rm -f -r conftest.dir
11811 if mkdir conftest.dir; then
11812 cd conftest.dir
11813 cat >Imakefile <<'_ACEOF'
11814 incroot:
11815 @echo incroot='${INCROOT}'
11816 usrlibdir:
11817 @echo usrlibdir='${USRLIBDIR}'
11818 libdir:
11819 @echo libdir='${LIBDIR}'
11820 _ACEOF
11821 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11823 for ac_var in incroot usrlibdir libdir; do
11824 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11825 done
11826 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11827 for ac_extension in a so sl dylib la dll; do
11828 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11829 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11830 ac_im_usrlibdir=$ac_im_libdir; break
11832 done
11833 # Screen out bogus values from the imake configuration. They are
11834 # bogus both because they are the default anyway, and because
11835 # using them would break gcc on systems where it needs fixed includes.
11836 case $ac_im_incroot in
11837 /usr/include) ac_x_includes= ;;
11838 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11839 esac
11840 case $ac_im_usrlibdir in
11841 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11842 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11843 esac
11845 cd ..
11846 rm -f -r conftest.dir
11849 # Standard set of common directories for X headers.
11850 # Check X11 before X11Rn because it is often a symlink to the current release.
11851 ac_x_header_dirs='
11852 /usr/X11/include
11853 /usr/X11R6/include
11854 /usr/X11R5/include
11855 /usr/X11R4/include
11857 /usr/include/X11
11858 /usr/include/X11R6
11859 /usr/include/X11R5
11860 /usr/include/X11R4
11862 /usr/local/X11/include
11863 /usr/local/X11R6/include
11864 /usr/local/X11R5/include
11865 /usr/local/X11R4/include
11867 /usr/local/include/X11
11868 /usr/local/include/X11R6
11869 /usr/local/include/X11R5
11870 /usr/local/include/X11R4
11872 /usr/X386/include
11873 /usr/x386/include
11874 /usr/XFree86/include/X11
11876 /usr/include
11877 /usr/local/include
11878 /usr/unsupported/include
11879 /usr/athena/include
11880 /usr/local/x11r5/include
11881 /usr/lpp/Xamples/include
11883 /usr/openwin/include
11884 /usr/openwin/share/include'
11886 if test "$ac_x_includes" = no; then
11887 # Guess where to find include files, by looking for Xlib.h.
11888 # First, try using that file with no special directory specified.
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 #include <X11/Xlib.h>
11896 _ACEOF
11897 if { (ac_try="$ac_cpp conftest.$ac_ext"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11903 $as_echo "$ac_try_echo") >&5
11904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } >/dev/null && {
11911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 }; then
11914 # We can compile using X headers with no special include directory.
11915 ac_x_includes=
11916 else
11917 $as_echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 for ac_dir in $ac_x_header_dirs; do
11921 if test -r "$ac_dir/X11/Xlib.h"; then
11922 ac_x_includes=$ac_dir
11923 break
11925 done
11928 rm -f conftest.err conftest.$ac_ext
11929 fi # $ac_x_includes = no
11931 if test "$ac_x_libraries" = no; then
11932 # Check for the libraries.
11933 # See if we find them without any special options.
11934 # Don't add to $LIBS permanently.
11935 ac_save_LIBS=$LIBS
11936 LIBS="-lX11 $LIBS"
11937 cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h. */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 #include <X11/Xlib.h>
11945 main ()
11947 XrmInitialize ()
11949 return 0;
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (ac_try="$ac_link"
11954 case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957 esac
11958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11959 $as_echo "$ac_try_echo") >&5
11960 (eval "$ac_link") 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } && {
11967 test -z "$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 } && test -s conftest$ac_exeext && {
11970 test "$cross_compiling" = yes ||
11971 $as_test_x conftest$ac_exeext
11972 }; then
11973 LIBS=$ac_save_LIBS
11974 # We can link X programs with no special library path.
11975 ac_x_libraries=
11976 else
11977 $as_echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 LIBS=$ac_save_LIBS
11981 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11983 # Don't even attempt the hair of trying to link an X program!
11984 for ac_extension in a so sl dylib la dll; do
11985 if test -r "$ac_dir/libX11.$ac_extension"; then
11986 ac_x_libraries=$ac_dir
11987 break 2
11989 done
11990 done
11993 rm -rf conftest.dSYM
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995 conftest$ac_exeext conftest.$ac_ext
11996 fi # $ac_x_libraries = no
11998 case $ac_x_includes,$ac_x_libraries in #(
11999 no,* | *,no | *\'*)
12000 # Didn't find X, or a directory has "'" in its name.
12001 ac_cv_have_x="have_x=no";; #(
12003 # Record where we found X for the cache.
12004 ac_cv_have_x="have_x=yes\
12005 ac_x_includes='$ac_x_includes'\
12006 ac_x_libraries='$ac_x_libraries'"
12007 esac
12009 ;; #(
12010 *) have_x=yes;;
12011 esac
12012 eval "$ac_cv_have_x"
12013 fi # $with_x != no
12015 if test "$have_x" != yes; then
12016 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
12017 $as_echo "$have_x" >&6; }
12018 no_x=yes
12019 else
12020 # If each of the values was on the command line, it overrides each guess.
12021 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12022 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12023 # Update the cache value to reflect the command line values.
12024 ac_cv_have_x="have_x=yes\
12025 ac_x_includes='$x_includes'\
12026 ac_x_libraries='$x_libraries'"
12027 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
12028 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12032 x_cflags=
12033 for path in $x_libraries
12035 x_cflags="$x_cflags -L$path"
12036 done
12038 for path in $x_includes
12040 x_cflags="$x_cflags -I$path"
12041 done
12043 if test "x-$no_x" = "x-yes" ; then
12045 if test "x-$x11_hidd" != "x-auto" ; then
12046 { { $as_echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
12047 $as_echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
12048 { (exit 1); exit 1; }; }
12050 ENABLE_X11=0
12052 else
12053 x11_hidd_target=kernel-x11gfx-kobj
12054 ENABLE_X11=1
12056 # Check whether --enable-x11_shm was given.
12057 if test "${enable_x11_shm+set}" = set; then
12058 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
12059 else
12060 x11_hidd_shm="auto"
12063 case "x-$x11_hidd_shm" in
12064 x-yes|x-no|x-auto) ;;
12065 *) x11_hidd_shm="auto" ;;
12066 esac
12068 have_xshm=no
12070 if test "x-$x11_hidd_shm" != "x-no" ; then
12073 for ac_header in sys/ipc.h
12075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12078 $as_echo_n "checking for $ac_header... " >&6; }
12079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12080 $as_echo_n "(cached) " >&6
12082 ac_res=`eval 'as_val=${'$as_ac_Header'}
12083 $as_echo "$as_val"'`
12084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12085 $as_echo "$ac_res" >&6; }
12086 else
12087 # Is the header compilable?
12088 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12089 $as_echo_n "checking $ac_header usability... " >&6; }
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 $ac_includes_default
12097 #include <$ac_header>
12098 _ACEOF
12099 rm -f conftest.$ac_objext
12100 if { (ac_try="$ac_compile"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104 esac
12105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12106 $as_echo "$ac_try_echo") >&5
12107 (eval "$ac_compile") 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } && {
12114 test -z "$ac_c_werror_flag" ||
12115 test ! -s conftest.err
12116 } && test -s conftest.$ac_objext; then
12117 ac_header_compiler=yes
12118 else
12119 $as_echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_header_compiler=no
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12127 $as_echo "$ac_header_compiler" >&6; }
12129 # Is the header present?
12130 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12131 $as_echo_n "checking $ac_header presence... " >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 #include <$ac_header>
12139 _ACEOF
12140 if { (ac_try="$ac_cpp conftest.$ac_ext"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144 esac
12145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12146 $as_echo "$ac_try_echo") >&5
12147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } >/dev/null && {
12154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 }; then
12157 ac_header_preproc=yes
12158 else
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_header_preproc=no
12165 rm -f conftest.err conftest.$ac_ext
12166 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12167 $as_echo "$ac_header_preproc" >&6; }
12169 # So? What about this header?
12170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12171 yes:no: )
12172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12173 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12175 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12176 ac_header_preproc=yes
12178 no:yes:* )
12179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12180 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12182 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12184 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12186 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12188 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12190 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12193 esac
12194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 $as_echo_n "checking for $ac_header... " >&6; }
12196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 $as_echo_n "(cached) " >&6
12198 else
12199 eval "$as_ac_Header=\$ac_header_preproc"
12201 ac_res=`eval 'as_val=${'$as_ac_Header'}
12202 $as_echo "$as_val"'`
12203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12204 $as_echo "$ac_res" >&6; }
12207 as_val=`eval 'as_val=${'$as_ac_Header'}
12208 $as_echo "$as_val"'`
12209 if test "x$as_val" = x""yes; then
12210 cat >>confdefs.h <<_ACEOF
12211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12212 _ACEOF
12216 done
12219 for ac_header in sys/shm.h
12221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12224 $as_echo_n "checking for $ac_header... " >&6; }
12225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 $as_echo_n "(cached) " >&6
12228 ac_res=`eval 'as_val=${'$as_ac_Header'}
12229 $as_echo "$as_val"'`
12230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12231 $as_echo "$ac_res" >&6; }
12232 else
12233 # Is the header compilable?
12234 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12235 $as_echo_n "checking $ac_header usability... " >&6; }
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12243 #include <$ac_header>
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (ac_try="$ac_compile"
12247 case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12250 esac
12251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252 $as_echo "$ac_try_echo") >&5
12253 (eval "$ac_compile") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest.$ac_objext; then
12263 ac_header_compiler=yes
12264 else
12265 $as_echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_header_compiler=no
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12273 $as_echo "$ac_header_compiler" >&6; }
12275 # Is the header present?
12276 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12277 $as_echo_n "checking $ac_header presence... " >&6; }
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 #include <$ac_header>
12285 _ACEOF
12286 if { (ac_try="$ac_cpp conftest.$ac_ext"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12292 $as_echo "$ac_try_echo") >&5
12293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev/null && {
12300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 }; then
12303 ac_header_preproc=yes
12304 else
12305 $as_echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_header_preproc=no
12311 rm -f conftest.err conftest.$ac_ext
12312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12313 $as_echo "$ac_header_preproc" >&6; }
12315 # So? What about this header?
12316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12317 yes:no: )
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12319 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12322 ac_header_preproc=yes
12324 no:yes:* )
12325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12326 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12328 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12330 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12332 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12336 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12339 esac
12340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 $as_echo_n "checking for $ac_header... " >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 $as_echo_n "(cached) " >&6
12344 else
12345 eval "$as_ac_Header=\$ac_header_preproc"
12347 ac_res=`eval 'as_val=${'$as_ac_Header'}
12348 $as_echo "$as_val"'`
12349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12350 $as_echo "$ac_res" >&6; }
12353 as_val=`eval 'as_val=${'$as_ac_Header'}
12354 $as_echo "$as_val"'`
12355 if test "x$as_val" = x""yes; then
12356 cat >>confdefs.h <<_ACEOF
12357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12358 _ACEOF
12362 done
12365 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12367 save_cflags="$CFLAGS"
12368 CFLAGS="$CFLAGS $x_cflags"
12369 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12370 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12371 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12372 $as_echo_n "(cached) " >&6
12373 else
12374 ac_check_lib_save_LIBS=$LIBS
12375 LIBS="-lXext $LIBS"
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char XShmQueryExtension ();
12391 main ()
12393 return XShmQueryExtension ();
12395 return 0;
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403 esac
12404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12405 $as_echo "$ac_try_echo") >&5
12406 (eval "$ac_link") 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } && {
12413 test -z "$ac_c_werror_flag" ||
12414 test ! -s conftest.err
12415 } && test -s conftest$ac_exeext && {
12416 test "$cross_compiling" = yes ||
12417 $as_test_x conftest$ac_exeext
12418 }; then
12419 ac_cv_lib_Xext_XShmQueryExtension=yes
12420 else
12421 $as_echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ac_cv_lib_Xext_XShmQueryExtension=no
12427 rm -rf conftest.dSYM
12428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12433 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12434 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then
12435 have_xshm=yes
12438 CFLAGS="$save_cflags"
12442 if test "x-$have_xshm" = "x-yes" ; then
12443 DO_XSHM_SUPPORT="1"
12444 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12445 { { $as_echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12446 $as_echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12447 { (exit 1); exit 1; }; }
12448 else
12449 DO_XSHM_SUPPORT="0"
12453 # Check whether --enable-x11_vidmode was given.
12454 if test "${enable_x11_vidmode+set}" = set; then
12455 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12456 else
12457 x11_hidd_vidmode="auto"
12460 case "x-$x11_hidd_vidmode" in
12461 x-yes|x-no|x-auto) ;;
12462 *) x11_hidd_vidmode="auto" ;;
12463 esac
12465 have_vidmode=no
12467 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12469 save_cflags="$CFLAGS"
12470 CFLAGS="$CFLAGS $x_cflags"
12471 { $as_echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12472 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12473 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-lXxf86vm $LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 char XF86VidModeQueryExtension ();
12493 main ()
12495 return XF86VidModeQueryExtension ();
12497 return 0;
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505 esac
12506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12507 $as_echo "$ac_try_echo") >&5
12508 (eval "$ac_link") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest$ac_exeext && {
12518 test "$cross_compiling" = yes ||
12519 $as_test_x conftest$ac_exeext
12520 }; then
12521 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12522 else
12523 $as_echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12529 rm -rf conftest.dSYM
12530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12531 conftest$ac_exeext conftest.$ac_ext
12532 LIBS=$ac_check_lib_save_LIBS
12534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12535 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12536 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then
12537 have_vidmode=yes
12540 CFLAGS="$save_cflags"
12543 if test "x-$have_vidmode" = "x-yes" ; then
12544 DO_VIDMODE_SUPPORT="1"
12545 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12546 { { $as_echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12547 $as_echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12548 { (exit 1); exit 1; }; }
12549 else
12550 DO_VIDMODE_SUPPORT="0"
12554 aros_host_x11_includes=$x_includes
12555 aros_host_x11_libdirs=$x_libraries
12559 # Check whether --enable-sdl_hidd was given.
12560 if test "${enable_sdl_hidd+set}" = set; then
12561 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12562 else
12563 sdl_hidd="auto"
12566 case "x-$sdl_hidd" in
12567 x-yes|x-no|x-auto) ;;
12568 *) sdl_hidd="auto" ;;
12569 esac
12571 if test "x-$sdl_hidd" != "x-no" ; then
12574 # Check whether --with-sdl-prefix was given.
12575 if test "${with_sdl_prefix+set}" = set; then
12576 withval=$with_sdl_prefix; sdl_prefix="$withval"
12577 else
12578 sdl_prefix=""
12582 # Check whether --with-sdl-exec-prefix was given.
12583 if test "${with_sdl_exec_prefix+set}" = set; then
12584 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12585 else
12586 sdl_exec_prefix=""
12589 # Check whether --enable-sdltest was given.
12590 if test "${enable_sdltest+set}" = set; then
12591 enableval=$enable_sdltest;
12592 else
12593 enable_sdltest=yes
12597 if test x$sdl_exec_prefix != x ; then
12598 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12599 if test x${SDL_CONFIG+set} != xset ; then
12600 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12603 if test x$sdl_prefix != x ; then
12604 sdl_args="$sdl_args --prefix=$sdl_prefix"
12605 if test x${SDL_CONFIG+set} != xset ; then
12606 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12610 if test "x$prefix" != xNONE; then
12611 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12613 # Extract the first word of "sdl-config", so it can be a program name with args.
12614 set dummy sdl-config; ac_word=$2
12615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12618 $as_echo_n "(cached) " >&6
12619 else
12620 case $SDL_CONFIG in
12621 [\\/]* | ?:[\\/]*)
12622 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12636 done
12637 done
12638 IFS=$as_save_IFS
12640 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12642 esac
12644 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12645 if test -n "$SDL_CONFIG"; then
12646 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12647 $as_echo "$SDL_CONFIG" >&6; }
12648 else
12649 { $as_echo "$as_me:$LINENO: result: no" >&5
12650 $as_echo "no" >&6; }
12654 min_sdl_version=1.2.10
12655 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12656 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12657 no_sdl=""
12658 if test "$SDL_CONFIG" = "no" ; then
12659 no_sdl=yes
12660 else
12661 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12662 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12664 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12666 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12667 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12668 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12669 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12670 if test "x$enable_sdltest" = "xyes" ; then
12671 ac_save_CFLAGS="$CFLAGS"
12672 ac_save_CXXFLAGS="$CXXFLAGS"
12673 ac_save_LIBS="$LIBS"
12674 CFLAGS="$CFLAGS $SDL_CFLAGS"
12675 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12676 LIBS="$LIBS $SDL_LIBS"
12677 rm -f conf.sdltest
12678 if test "$cross_compiling" = yes; then
12679 echo $ac_n "cross compiling; assumed OK... $ac_c"
12680 else
12681 cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h. */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12688 #include <stdio.h>
12689 #include <stdlib.h>
12690 #include <string.h>
12691 #include "SDL.h"
12693 char*
12694 my_strdup (char *str)
12696 char *new_str;
12698 if (str)
12700 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12701 strcpy (new_str, str);
12703 else
12704 new_str = NULL;
12706 return new_str;
12709 int main (int argc, char *argv[])
12711 int major, minor, micro;
12712 char *tmp_version;
12714 /* This hangs on some systems (?)
12715 system ("touch conf.sdltest");
12717 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12719 /* HP/UX 9 (%@#!) writes to sscanf strings */
12720 tmp_version = my_strdup("$min_sdl_version");
12721 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12722 printf("%s, bad version string\n", "$min_sdl_version");
12723 exit(1);
12726 if (($sdl_major_version > major) ||
12727 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12728 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12730 return 0;
12732 else
12734 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12735 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12736 printf("*** best to upgrade to the required version.\n");
12737 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12738 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12739 printf("*** config.cache before re-running configure\n");
12740 return 1;
12745 _ACEOF
12746 rm -f conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751 esac
12752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753 $as_echo "$ac_try_echo") >&5
12754 (eval "$ac_link") 2>&5
12755 ac_status=$?
12756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761 esac
12762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12763 $as_echo "$ac_try_echo") >&5
12764 (eval "$ac_try") 2>&5
12765 ac_status=$?
12766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12769 else
12770 $as_echo "$as_me: program exited with status $ac_status" >&5
12771 $as_echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ( exit $ac_status )
12775 no_sdl=yes
12777 rm -rf conftest.dSYM
12778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12782 CFLAGS="$ac_save_CFLAGS"
12783 CXXFLAGS="$ac_save_CXXFLAGS"
12784 LIBS="$ac_save_LIBS"
12787 if test "x$no_sdl" = x ; then
12788 { $as_echo "$as_me:$LINENO: result: yes" >&5
12789 $as_echo "yes" >&6; }
12790 have_sdl="yes"
12791 else
12792 { $as_echo "$as_me:$LINENO: result: no" >&5
12793 $as_echo "no" >&6; }
12794 if test "$SDL_CONFIG" = "no" ; then
12795 echo "*** The sdl-config script installed by SDL could not be found"
12796 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12797 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12798 echo "*** full path to sdl-config."
12799 else
12800 if test -f conf.sdltest ; then
12802 else
12803 echo "*** Could not run SDL test program, checking why..."
12804 CFLAGS="$CFLAGS $SDL_CFLAGS"
12805 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12806 LIBS="$LIBS $SDL_LIBS"
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h. */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12814 #include <stdio.h>
12815 #include "SDL.h"
12817 int main(int argc, char *argv[])
12818 { return 0; }
12819 #undef main
12820 #define main K_and_R_C_main
12823 main ()
12825 return 0;
12827 return 0;
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838 (eval "$ac_link") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest$ac_exeext && {
12848 test "$cross_compiling" = yes ||
12849 $as_test_x conftest$ac_exeext
12850 }; then
12851 echo "*** The test program compiled, but did not run. This usually means"
12852 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12853 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12854 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12855 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12856 echo "*** is required on your system"
12857 echo "***"
12858 echo "*** If you have an old version installed, it is best to remove it, although"
12859 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12860 else
12861 $as_echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 echo "*** The test program failed to compile or link. See the file config.log for the"
12865 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12866 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12867 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12870 rm -rf conftest.dSYM
12871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12872 conftest$ac_exeext conftest.$ac_ext
12873 CFLAGS="$ac_save_CFLAGS"
12874 CXXFLAGS="$ac_save_CXXFLAGS"
12875 LIBS="$ac_save_LIBS"
12878 SDL_CFLAGS=""
12879 SDL_LIBS=""
12880 have_sdl="no"
12884 rm -f conf.sdltest
12887 if test "x-$have_sdl" != "x-yes" ; then
12889 if test "x-$sdl_hidd" != "x-auto" ; then
12890 { { $as_echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12891 $as_echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12892 { (exit 1); exit 1; }; }
12895 else
12896 sdl_hidd_target=kernel-hidd-sdl
12897 aros_host_sdl_cflags=SDL_CFLAGS
12898 aros_host_sdl_libs=SDL_LIBS
12905 { $as_echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12906 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12907 # Check whether --enable-dbus was given.
12908 if test "${enable_dbus+set}" = set; then
12909 enableval=$enable_dbus; dbus="yes"
12910 else
12911 dbus="no"
12914 if test "$dbus" = "yes" ; then
12915 ENABLE_DBUS=1
12916 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12917 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12918 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12919 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12920 else
12921 ENABLE_DBUS=0
12923 { $as_echo "$as_me:$LINENO: result: $dbus" >&5
12924 $as_echo "$dbus" >&6; }
12928 # Generic
12937 # Host related
12960 # Target Related
13005 # Graphics Related
13020 # Native version related
13024 # Palm native version related
13027 # Unix/Hosted version related
13030 # DBUS related
13037 #X11 related
13040 # Debug related
13046 # Collect-aros stuff: "-ius" to ignore undefined symbols
13049 # C compiler related
13052 case "$aros_flavour" in
13053 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
13054 aros_flavour="emulation" ;;
13055 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
13056 aros_flavour="emulation" ;;
13057 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
13058 aros_flavour="standalone";;
13059 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
13060 aros_flavour="native" ;;
13061 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
13062 aros_flavour="native" ;;
13063 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
13064 aros_flavour="linklib" ;;
13065 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13066 aros_flavour="palmnative" ;;
13067 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13068 aros_flavour="mac68knative" ;;
13069 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13070 aros_flavour="ppcnative" ;;
13071 esac
13073 if test ! -d ${aros_inc_dir} ; then
13074 ${MKDIR} ${aros_inc_dir}
13076 if test ! -d ${aros_geninc_dir} ; then
13077 ${MKDIR} ${aros_geninc_dir}
13079 if test ! -d ${aros_hostcfg_dir} ; then
13080 ${MKDIR} ${aros_hostcfg_dir}
13082 if test ! -d ${aros_targetcfg_dir} ; then
13083 ${MKDIR} ${aros_targetcfg_dir}
13085 if test ! -d ${aros_tools_dir} ; then
13086 ${MKDIR} ${aros_tools_dir}
13088 if test ! -d ${aros_scripts_dir} ; then
13089 ${MKDIR} ${aros_scripts_dir}
13092 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
13095 ac_config_commands="$ac_config_commands compiler_executable"
13097 ac_config_commands="$ac_config_commands genshared_executable"
13099 ac_config_commands="$ac_config_commands genmf_executable"
13101 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
13104 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"
13107 cat >confcache <<\_ACEOF
13108 # This file is a shell script that caches the results of configure
13109 # tests run on this system so they can be shared between configure
13110 # scripts and configure runs, see configure's option --config-cache.
13111 # It is not useful on other systems. If it contains results you don't
13112 # want to keep, you may remove or edit it.
13114 # config.status only pays attention to the cache file if you give it
13115 # the --recheck option to rerun configure.
13117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13119 # following values.
13121 _ACEOF
13123 # The following way of writing the cache mishandles newlines in values,
13124 # but we know of no workaround that is simple, portable, and efficient.
13125 # So, we kill variables containing newlines.
13126 # Ultrix sh set writes to stderr and can't be redirected directly,
13127 # and sets the high bit in the cache file unless we assign to the vars.
13129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13130 eval ac_val=\$$ac_var
13131 case $ac_val in #(
13132 *${as_nl}*)
13133 case $ac_var in #(
13134 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13136 esac
13137 case $ac_var in #(
13138 _ | IFS | as_nl) ;; #(
13139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13140 *) $as_unset $ac_var ;;
13141 esac ;;
13142 esac
13143 done
13145 (set) 2>&1 |
13146 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13147 *${as_nl}ac_space=\ *)
13148 # `set' does not quote correctly, so add quotes (double-quote
13149 # substitution turns \\\\ into \\, and sed turns \\ into \).
13150 sed -n \
13151 "s/'/'\\\\''/g;
13152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13153 ;; #(
13155 # `set' quotes correctly as required by POSIX, so do not add quotes.
13156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13158 esac |
13159 sort
13161 sed '
13162 /^ac_cv_env_/b end
13163 t clear
13164 :clear
13165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13166 t end
13167 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13168 :end' >>confcache
13169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13170 if test -w "$cache_file"; then
13171 test "x$cache_file" != "x/dev/null" &&
13172 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13173 $as_echo "$as_me: updating cache $cache_file" >&6;}
13174 cat confcache >$cache_file
13175 else
13176 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13177 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13180 rm -f confcache
13182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13183 # Let make expand exec_prefix.
13184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13186 DEFS=-DHAVE_CONFIG_H
13188 ac_libobjs=
13189 ac_ltlibobjs=
13190 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13191 # 1. Remove the extension, and $U if already installed.
13192 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13193 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13194 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13195 # will be set to the directory where LIBOBJS objects are built.
13196 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13197 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13198 done
13199 LIBOBJS=$ac_libobjs
13201 LTLIBOBJS=$ac_ltlibobjs
13205 : ${CONFIG_STATUS=./config.status}
13206 ac_write_fail=0
13207 ac_clean_files_save=$ac_clean_files
13208 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13209 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13210 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13211 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13212 #! $SHELL
13213 # Generated by $as_me.
13214 # Run this file to recreate the current configuration.
13215 # Compiler output produced by configure, useful for debugging
13216 # configure, is in config.log if it exists.
13218 debug=false
13219 ac_cs_recheck=false
13220 ac_cs_silent=false
13221 SHELL=\${CONFIG_SHELL-$SHELL}
13222 _ACEOF
13224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13225 ## --------------------- ##
13226 ## M4sh Initialization. ##
13227 ## --------------------- ##
13229 # Be more Bourne compatible
13230 DUALCASE=1; export DUALCASE # for MKS sh
13231 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13232 emulate sh
13233 NULLCMD=:
13234 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13235 # is contrary to our usage. Disable this feature.
13236 alias -g '${1+"$@"}'='"$@"'
13237 setopt NO_GLOB_SUBST
13238 else
13239 case `(set -o) 2>/dev/null` in
13240 *posix*) set -o posix ;;
13241 esac
13248 # PATH needs CR
13249 # Avoid depending upon Character Ranges.
13250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13253 as_cr_digits='0123456789'
13254 as_cr_alnum=$as_cr_Letters$as_cr_digits
13256 as_nl='
13258 export as_nl
13259 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13260 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13261 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13262 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13263 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13264 as_echo='printf %s\n'
13265 as_echo_n='printf %s'
13266 else
13267 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13268 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13269 as_echo_n='/usr/ucb/echo -n'
13270 else
13271 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13272 as_echo_n_body='eval
13273 arg=$1;
13274 case $arg in
13275 *"$as_nl"*)
13276 expr "X$arg" : "X\\(.*\\)$as_nl";
13277 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13278 esac;
13279 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13281 export as_echo_n_body
13282 as_echo_n='sh -c $as_echo_n_body as_echo'
13284 export as_echo_body
13285 as_echo='sh -c $as_echo_body as_echo'
13288 # The user is always right.
13289 if test "${PATH_SEPARATOR+set}" != set; then
13290 PATH_SEPARATOR=:
13291 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13292 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13293 PATH_SEPARATOR=';'
13297 # Support unset when possible.
13298 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13299 as_unset=unset
13300 else
13301 as_unset=false
13305 # IFS
13306 # We need space, tab and new line, in precisely that order. Quoting is
13307 # there to prevent editors from complaining about space-tab.
13308 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13309 # splitting by setting IFS to empty value.)
13310 IFS=" "" $as_nl"
13312 # Find who we are. Look in the path if we contain no directory separator.
13313 case $0 in
13314 *[\\/]* ) as_myself=$0 ;;
13315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13321 done
13322 IFS=$as_save_IFS
13325 esac
13326 # We did not find ourselves, most probably we were run as `sh COMMAND'
13327 # in which case we are not to be found in the path.
13328 if test "x$as_myself" = x; then
13329 as_myself=$0
13331 if test ! -f "$as_myself"; then
13332 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13333 { (exit 1); exit 1; }
13336 # Work around bugs in pre-3.0 UWIN ksh.
13337 for as_var in ENV MAIL MAILPATH
13338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13339 done
13340 PS1='$ '
13341 PS2='> '
13342 PS4='+ '
13344 # NLS nuisances.
13345 LC_ALL=C
13346 export LC_ALL
13347 LANGUAGE=C
13348 export LANGUAGE
13350 # Required to use basename.
13351 if expr a : '\(a\)' >/dev/null 2>&1 &&
13352 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13353 as_expr=expr
13354 else
13355 as_expr=false
13358 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13359 as_basename=basename
13360 else
13361 as_basename=false
13365 # Name of the executable.
13366 as_me=`$as_basename -- "$0" ||
13367 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13368 X"$0" : 'X\(//\)$' \| \
13369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13370 $as_echo X/"$0" |
13371 sed '/^.*\/\([^/][^/]*\)\/*$/{
13372 s//\1/
13375 /^X\/\(\/\/\)$/{
13376 s//\1/
13379 /^X\/\(\/\).*/{
13380 s//\1/
13383 s/.*/./; q'`
13385 # CDPATH.
13386 $as_unset CDPATH
13390 as_lineno_1=$LINENO
13391 as_lineno_2=$LINENO
13392 test "x$as_lineno_1" != "x$as_lineno_2" &&
13393 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13395 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13396 # uniformly replaced by the line number. The first 'sed' inserts a
13397 # line-number line after each line using $LINENO; the second 'sed'
13398 # does the real work. The second script uses 'N' to pair each
13399 # line-number line with the line containing $LINENO, and appends
13400 # trailing '-' during substitution so that $LINENO is not a special
13401 # case at line end.
13402 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13403 # scripts with optimization help from Paolo Bonzini. Blame Lee
13404 # E. McMahon (1931-1989) for sed's syntax. :-)
13405 sed -n '
13407 /[$]LINENO/=
13408 ' <$as_myself |
13409 sed '
13410 s/[$]LINENO.*/&-/
13411 t lineno
13413 :lineno
13415 :loop
13416 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13417 t loop
13418 s/-\n.*//
13419 ' >$as_me.lineno &&
13420 chmod +x "$as_me.lineno" ||
13421 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13422 { (exit 1); exit 1; }; }
13424 # Don't try to exec as it changes $[0], causing all sort of problems
13425 # (the dirname of $[0] is not the place where we might find the
13426 # original and so on. Autoconf is especially sensitive to this).
13427 . "./$as_me.lineno"
13428 # Exit status is that of the last command.
13429 exit
13433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13434 as_dirname=dirname
13435 else
13436 as_dirname=false
13439 ECHO_C= ECHO_N= ECHO_T=
13440 case `echo -n x` in
13441 -n*)
13442 case `echo 'x\c'` in
13443 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13444 *) ECHO_C='\c';;
13445 esac;;
13447 ECHO_N='-n';;
13448 esac
13449 if expr a : '\(a\)' >/dev/null 2>&1 &&
13450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13451 as_expr=expr
13452 else
13453 as_expr=false
13456 rm -f conf$$ conf$$.exe conf$$.file
13457 if test -d conf$$.dir; then
13458 rm -f conf$$.dir/conf$$.file
13459 else
13460 rm -f conf$$.dir
13461 mkdir conf$$.dir 2>/dev/null
13463 if (echo >conf$$.file) 2>/dev/null; then
13464 if ln -s conf$$.file conf$$ 2>/dev/null; then
13465 as_ln_s='ln -s'
13466 # ... but there are two gotchas:
13467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13469 # In both cases, we have to default to `cp -p'.
13470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13471 as_ln_s='cp -p'
13472 elif ln conf$$.file conf$$ 2>/dev/null; then
13473 as_ln_s=ln
13474 else
13475 as_ln_s='cp -p'
13477 else
13478 as_ln_s='cp -p'
13480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13481 rmdir conf$$.dir 2>/dev/null
13483 if mkdir -p . 2>/dev/null; then
13484 as_mkdir_p=:
13485 else
13486 test -d ./-p && rmdir ./-p
13487 as_mkdir_p=false
13490 if test -x / >/dev/null 2>&1; then
13491 as_test_x='test -x'
13492 else
13493 if ls -dL / >/dev/null 2>&1; then
13494 as_ls_L_option=L
13495 else
13496 as_ls_L_option=
13498 as_test_x='
13499 eval sh -c '\''
13500 if test -d "$1"; then
13501 test -d "$1/.";
13502 else
13503 case $1 in
13504 -*)set "./$1";;
13505 esac;
13506 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13507 ???[sx]*):;;*)false;;esac;fi
13508 '\'' sh
13511 as_executable_p=$as_test_x
13513 # Sed expression to map a string onto a valid CPP name.
13514 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13516 # Sed expression to map a string onto a valid variable name.
13517 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13520 exec 6>&1
13522 # Save the log message, to keep $[0] and so on meaningful, and to
13523 # report actual input values of CONFIG_FILES etc. instead of their
13524 # values after options handling.
13525 ac_log="
13526 This file was extended by $as_me, which was
13527 generated by GNU Autoconf 2.63. Invocation command line was
13529 CONFIG_FILES = $CONFIG_FILES
13530 CONFIG_HEADERS = $CONFIG_HEADERS
13531 CONFIG_LINKS = $CONFIG_LINKS
13532 CONFIG_COMMANDS = $CONFIG_COMMANDS
13533 $ $0 $@
13535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13538 _ACEOF
13540 case $ac_config_files in *"
13541 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13542 esac
13544 case $ac_config_headers in *"
13545 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13546 esac
13549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13550 # Files that config.status was made for.
13551 config_files="$ac_config_files"
13552 config_headers="$ac_config_headers"
13553 config_commands="$ac_config_commands"
13555 _ACEOF
13557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13558 ac_cs_usage="\
13559 \`$as_me' instantiates files from templates according to the
13560 current configuration.
13562 Usage: $0 [OPTION]... [FILE]...
13564 -h, --help print this help, then exit
13565 -V, --version print version number and configuration settings, then exit
13566 -q, --quiet, --silent
13567 do not print progress messages
13568 -d, --debug don't remove temporary files
13569 --recheck update $as_me by reconfiguring in the same conditions
13570 --file=FILE[:TEMPLATE]
13571 instantiate the configuration file FILE
13572 --header=FILE[:TEMPLATE]
13573 instantiate the configuration header FILE
13575 Configuration files:
13576 $config_files
13578 Configuration headers:
13579 $config_headers
13581 Configuration commands:
13582 $config_commands
13584 Report bugs to <bug-autoconf@gnu.org>."
13586 _ACEOF
13587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588 ac_cs_version="\\
13589 config.status
13590 configured by $0, generated by GNU Autoconf 2.63,
13591 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13593 Copyright (C) 2008 Free Software Foundation, Inc.
13594 This config.status script is free software; the Free Software Foundation
13595 gives unlimited permission to copy, distribute and modify it."
13597 ac_pwd='$ac_pwd'
13598 srcdir='$srcdir'
13599 test -n "\$AWK" || AWK=awk
13600 _ACEOF
13602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13603 # The default lists apply if the user does not specify any file.
13604 ac_need_defaults=:
13605 while test $# != 0
13607 case $1 in
13608 --*=*)
13609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13610 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13611 ac_shift=:
13614 ac_option=$1
13615 ac_optarg=$2
13616 ac_shift=shift
13618 esac
13620 case $ac_option in
13621 # Handling of the options.
13622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13623 ac_cs_recheck=: ;;
13624 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13625 $as_echo "$ac_cs_version"; exit ;;
13626 --debug | --debu | --deb | --de | --d | -d )
13627 debug=: ;;
13628 --file | --fil | --fi | --f )
13629 $ac_shift
13630 case $ac_optarg in
13631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13632 esac
13633 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13634 ac_need_defaults=false;;
13635 --header | --heade | --head | --hea )
13636 $ac_shift
13637 case $ac_optarg in
13638 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13639 esac
13640 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13641 ac_need_defaults=false;;
13642 --he | --h)
13643 # Conflict between --help and --header
13644 { $as_echo "$as_me: error: ambiguous option: $1
13645 Try \`$0 --help' for more information." >&2
13646 { (exit 1); exit 1; }; };;
13647 --help | --hel | -h )
13648 $as_echo "$ac_cs_usage"; exit ;;
13649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13651 ac_cs_silent=: ;;
13653 # This is an error.
13654 -*) { $as_echo "$as_me: error: unrecognized option: $1
13655 Try \`$0 --help' for more information." >&2
13656 { (exit 1); exit 1; }; } ;;
13658 *) ac_config_targets="$ac_config_targets $1"
13659 ac_need_defaults=false ;;
13661 esac
13662 shift
13663 done
13665 ac_configure_extra_args=
13667 if $ac_cs_silent; then
13668 exec 6>/dev/null
13669 ac_configure_extra_args="$ac_configure_extra_args --silent"
13672 _ACEOF
13673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13674 if \$ac_cs_recheck; then
13675 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13676 shift
13677 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13678 CONFIG_SHELL='$SHELL'
13679 export CONFIG_SHELL
13680 exec "\$@"
13683 _ACEOF
13684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685 exec 5>>config.log
13687 echo
13688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13689 ## Running $as_me. ##
13690 _ASBOX
13691 $as_echo "$ac_log"
13692 } >&5
13694 _ACEOF
13695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 # INIT-COMMANDS
13700 aros_tools_dir=${aros_tools_dir}
13701 aros_target_cpu=${aros_target_cpu}
13702 aros_target_arch=${aros_target_arch}
13703 aros_target_suffix=${aros_target_suffix}
13704 aros_target_nm_ln=${aros_target_nm_ln}
13705 aros_target_as_ln=${aros_target_as_ln}
13706 aros_target_ar_ln=${aros_target_ar_ln}
13707 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13708 aros_target_objdump_ln=${aros_target_objdump_ln}
13709 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13710 aros_target_strip_ln=${aros_target_strip_ln}
13713 aros_scripts_dir=${aros_scripts_dir}
13715 aros_tools_dir=${aros_tools_dir}
13718 _ACEOF
13720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13722 # Handling of arguments.
13723 for ac_config_target in $ac_config_targets
13725 case $ac_config_target in
13726 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13727 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13728 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13729 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13730 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13732 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13733 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13734 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13735 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13736 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13737 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13738 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13739 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13740 "${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" ;;
13741 "${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" ;;
13742 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13743 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13744 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13745 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13747 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13748 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13749 { (exit 1); exit 1; }; };;
13750 esac
13751 done
13754 # If the user did not use the arguments to specify the items to instantiate,
13755 # then the envvar interface is used. Set only those that are not.
13756 # We use the long form for the default assignment because of an extremely
13757 # bizarre bug on SunOS 4.1.3.
13758 if $ac_need_defaults; then
13759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13764 # Have a temporary directory for convenience. Make it in the build tree
13765 # simply because there is no reason against having it here, and in addition,
13766 # creating and moving files from /tmp can sometimes cause problems.
13767 # Hook for its removal unless debugging.
13768 # Note that there is a small window in which the directory will not be cleaned:
13769 # after its creation but before its name has been assigned to `$tmp'.
13770 $debug ||
13772 tmp=
13773 trap 'exit_status=$?
13774 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13776 trap '{ (exit 1); exit 1; }' 1 2 13 15
13778 # Create a (secure) tmp directory for tmp files.
13781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13782 test -n "$tmp" && test -d "$tmp"
13783 } ||
13785 tmp=./conf$$-$RANDOM
13786 (umask 077 && mkdir "$tmp")
13787 } ||
13789 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13790 { (exit 1); exit 1; }
13793 # Set up the scripts for CONFIG_FILES section.
13794 # No need to generate them if there are no CONFIG_FILES.
13795 # This happens for instance with `./config.status config.h'.
13796 if test -n "$CONFIG_FILES"; then
13799 ac_cr='
13801 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13802 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13803 ac_cs_awk_cr='\\r'
13804 else
13805 ac_cs_awk_cr=$ac_cr
13808 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13809 _ACEOF
13813 echo "cat >conf$$subs.awk <<_ACEOF" &&
13814 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13815 echo "_ACEOF"
13816 } >conf$$subs.sh ||
13817 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13818 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13819 { (exit 1); exit 1; }; }
13820 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13821 ac_delim='%!_!# '
13822 for ac_last_try in false false false false false :; do
13823 . ./conf$$subs.sh ||
13824 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13825 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13826 { (exit 1); exit 1; }; }
13828 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13829 if test $ac_delim_n = $ac_delim_num; then
13830 break
13831 elif $ac_last_try; then
13832 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13833 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13834 { (exit 1); exit 1; }; }
13835 else
13836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13838 done
13839 rm -f conf$$subs.sh
13841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13842 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13843 _ACEOF
13844 sed -n '
13846 s/^/S["/; s/!.*/"]=/
13849 s/^[^!]*!//
13850 :repl
13851 t repl
13852 s/'"$ac_delim"'$//
13853 t delim
13856 s/\(.\{148\}\).*/\1/
13857 t more1
13858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13861 b repl
13862 :more1
13863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13866 s/.\{148\}//
13867 t nl
13868 :delim
13870 s/\(.\{148\}\).*/\1/
13871 t more2
13872 s/["\\]/\\&/g; s/^/"/; s/$/"/
13875 :more2
13876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13879 s/.\{148\}//
13880 t delim
13881 ' <conf$$subs.awk | sed '
13882 /^[^""]/{
13884 s/\n//
13886 ' >>$CONFIG_STATUS || ac_write_fail=1
13887 rm -f conf$$subs.awk
13888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13889 _ACAWK
13890 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13891 for (key in S) S_is_set[key] = 1
13892 FS = "\a"
13896 line = $ 0
13897 nfields = split(line, field, "@")
13898 substed = 0
13899 len = length(field[1])
13900 for (i = 2; i < nfields; i++) {
13901 key = field[i]
13902 keylen = length(key)
13903 if (S_is_set[key]) {
13904 value = S[key]
13905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13906 len += length(value) + length(field[++i])
13907 substed = 1
13908 } else
13909 len += 1 + keylen
13912 print line
13915 _ACAWK
13916 _ACEOF
13917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13918 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13919 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13920 else
13922 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13923 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13924 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13925 { (exit 1); exit 1; }; }
13926 _ACEOF
13928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13930 # trailing colons and then remove the whole line if VPATH becomes empty
13931 # (actually we leave an empty line to preserve line numbers).
13932 if test "x$srcdir" = x.; then
13933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13934 s/:*\$(srcdir):*/:/
13935 s/:*\${srcdir}:*/:/
13936 s/:*@srcdir@:*/:/
13937 s/^\([^=]*=[ ]*\):*/\1/
13938 s/:*$//
13939 s/^[^=]*=[ ]*$//
13943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13944 fi # test -n "$CONFIG_FILES"
13946 # Set up the scripts for CONFIG_HEADERS section.
13947 # No need to generate them if there are no CONFIG_HEADERS.
13948 # This happens for instance with `./config.status Makefile'.
13949 if test -n "$CONFIG_HEADERS"; then
13950 cat >"$tmp/defines.awk" <<\_ACAWK ||
13951 BEGIN {
13952 _ACEOF
13954 # Transform confdefs.h into an awk script `defines.awk', embedded as
13955 # here-document in config.status, that substitutes the proper values into
13956 # config.h.in to produce config.h.
13958 # Create a delimiter string that does not exist in confdefs.h, to ease
13959 # handling of long lines.
13960 ac_delim='%!_!# '
13961 for ac_last_try in false false :; do
13962 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13963 if test -z "$ac_t"; then
13964 break
13965 elif $ac_last_try; then
13966 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13967 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13968 { (exit 1); exit 1; }; }
13969 else
13970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13972 done
13974 # For the awk script, D is an array of macro values keyed by name,
13975 # likewise P contains macro parameters if any. Preserve backslash
13976 # newline sequences.
13978 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13979 sed -n '
13980 s/.\{148\}/&'"$ac_delim"'/g
13981 t rset
13982 :rset
13983 s/^[ ]*#[ ]*define[ ][ ]*/ /
13984 t def
13986 :def
13987 s/\\$//
13988 t bsnl
13989 s/["\\]/\\&/g
13990 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13991 D["\1"]=" \3"/p
13992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13994 :bsnl
13995 s/["\\]/\\&/g
13996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13997 D["\1"]=" \3\\\\\\n"\\/p
13998 t cont
13999 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14000 t cont
14002 :cont
14004 s/.\{148\}/&'"$ac_delim"'/g
14005 t clear
14006 :clear
14007 s/\\$//
14008 t bsnlc
14009 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14011 :bsnlc
14012 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14013 b cont
14014 ' <confdefs.h | sed '
14015 s/'"$ac_delim"'/"\\\
14016 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14019 for (key in D) D_is_set[key] = 1
14020 FS = "\a"
14022 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14023 line = \$ 0
14024 split(line, arg, " ")
14025 if (arg[1] == "#") {
14026 defundef = arg[2]
14027 mac1 = arg[3]
14028 } else {
14029 defundef = substr(arg[1], 2)
14030 mac1 = arg[2]
14032 split(mac1, mac2, "(") #)
14033 macro = mac2[1]
14034 prefix = substr(line, 1, index(line, defundef) - 1)
14035 if (D_is_set[macro]) {
14036 # Preserve the white space surrounding the "#".
14037 print prefix "define", macro P[macro] D[macro]
14038 next
14039 } else {
14040 # Replace #undef with comments. This is necessary, for example,
14041 # in the case of _POSIX_SOURCE, which is predefined and required
14042 # on some systems where configure will not decide to define it.
14043 if (defundef == "undef") {
14044 print "/*", prefix defundef, macro, "*/"
14045 next
14049 { print }
14050 _ACAWK
14051 _ACEOF
14052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14053 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14054 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14055 { (exit 1); exit 1; }; }
14056 fi # test -n "$CONFIG_HEADERS"
14059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14060 shift
14061 for ac_tag
14063 case $ac_tag in
14064 :[FHLC]) ac_mode=$ac_tag; continue;;
14065 esac
14066 case $ac_mode$ac_tag in
14067 :[FHL]*:*);;
14068 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14069 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14070 { (exit 1); exit 1; }; };;
14071 :[FH]-) ac_tag=-:-;;
14072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14073 esac
14074 ac_save_IFS=$IFS
14075 IFS=:
14076 set x $ac_tag
14077 IFS=$ac_save_IFS
14078 shift
14079 ac_file=$1
14080 shift
14082 case $ac_mode in
14083 :L) ac_source=$1;;
14084 :[FH])
14085 ac_file_inputs=
14086 for ac_f
14088 case $ac_f in
14089 -) ac_f="$tmp/stdin";;
14090 *) # Look for the file first in the build tree, then in the source tree
14091 # (if the path is not absolute). The absolute path cannot be DOS-style,
14092 # because $ac_f cannot contain `:'.
14093 test -f "$ac_f" ||
14094 case $ac_f in
14095 [\\/$]*) false;;
14096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14097 esac ||
14098 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14099 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14100 { (exit 1); exit 1; }; };;
14101 esac
14102 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14103 ac_file_inputs="$ac_file_inputs '$ac_f'"
14104 done
14106 # Let's still pretend it is `configure' which instantiates (i.e., don't
14107 # use $as_me), people would be surprised to read:
14108 # /* config.h. Generated by config.status. */
14109 configure_input='Generated from '`
14110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14111 `' by configure.'
14112 if test x"$ac_file" != x-; then
14113 configure_input="$ac_file. $configure_input"
14114 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14115 $as_echo "$as_me: creating $ac_file" >&6;}
14117 # Neutralize special characters interpreted by sed in replacement strings.
14118 case $configure_input in #(
14119 *\&* | *\|* | *\\* )
14120 ac_sed_conf_input=`$as_echo "$configure_input" |
14121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14122 *) ac_sed_conf_input=$configure_input;;
14123 esac
14125 case $ac_tag in
14126 *:-:* | *:-) cat >"$tmp/stdin" \
14127 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14128 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14129 { (exit 1); exit 1; }; } ;;
14130 esac
14132 esac
14134 ac_dir=`$as_dirname -- "$ac_file" ||
14135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14136 X"$ac_file" : 'X\(//\)[^/]' \| \
14137 X"$ac_file" : 'X\(//\)$' \| \
14138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14139 $as_echo X"$ac_file" |
14140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14141 s//\1/
14144 /^X\(\/\/\)[^/].*/{
14145 s//\1/
14148 /^X\(\/\/\)$/{
14149 s//\1/
14152 /^X\(\/\).*/{
14153 s//\1/
14156 s/.*/./; q'`
14157 { as_dir="$ac_dir"
14158 case $as_dir in #(
14159 -*) as_dir=./$as_dir;;
14160 esac
14161 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14162 as_dirs=
14163 while :; do
14164 case $as_dir in #(
14165 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14166 *) as_qdir=$as_dir;;
14167 esac
14168 as_dirs="'$as_qdir' $as_dirs"
14169 as_dir=`$as_dirname -- "$as_dir" ||
14170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14171 X"$as_dir" : 'X\(//\)[^/]' \| \
14172 X"$as_dir" : 'X\(//\)$' \| \
14173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14174 $as_echo X"$as_dir" |
14175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14176 s//\1/
14179 /^X\(\/\/\)[^/].*/{
14180 s//\1/
14183 /^X\(\/\/\)$/{
14184 s//\1/
14187 /^X\(\/\).*/{
14188 s//\1/
14191 s/.*/./; q'`
14192 test -d "$as_dir" && break
14193 done
14194 test -z "$as_dirs" || eval "mkdir $as_dirs"
14195 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14196 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14197 { (exit 1); exit 1; }; }; }
14198 ac_builddir=.
14200 case "$ac_dir" in
14201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14203 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14204 # A ".." for each directory in $ac_dir_suffix.
14205 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14206 case $ac_top_builddir_sub in
14207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14209 esac ;;
14210 esac
14211 ac_abs_top_builddir=$ac_pwd
14212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14213 # for backward compatibility:
14214 ac_top_builddir=$ac_top_build_prefix
14216 case $srcdir in
14217 .) # We are building in place.
14218 ac_srcdir=.
14219 ac_top_srcdir=$ac_top_builddir_sub
14220 ac_abs_top_srcdir=$ac_pwd ;;
14221 [\\/]* | ?:[\\/]* ) # Absolute name.
14222 ac_srcdir=$srcdir$ac_dir_suffix;
14223 ac_top_srcdir=$srcdir
14224 ac_abs_top_srcdir=$srcdir ;;
14225 *) # Relative name.
14226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14227 ac_top_srcdir=$ac_top_build_prefix$srcdir
14228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14229 esac
14230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14233 case $ac_mode in
14236 # CONFIG_FILE
14239 _ACEOF
14241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242 # If the template does not know about datarootdir, expand it.
14243 # FIXME: This hack should be removed a few years after 2.60.
14244 ac_datarootdir_hack=; ac_datarootdir_seen=
14246 ac_sed_dataroot='
14247 /datarootdir/ {
14251 /@datadir@/p
14252 /@docdir@/p
14253 /@infodir@/p
14254 /@localedir@/p
14255 /@mandir@/p
14257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14258 *datarootdir*) ac_datarootdir_seen=yes;;
14259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14260 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14262 _ACEOF
14263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264 ac_datarootdir_hack='
14265 s&@datadir@&$datadir&g
14266 s&@docdir@&$docdir&g
14267 s&@infodir@&$infodir&g
14268 s&@localedir@&$localedir&g
14269 s&@mandir@&$mandir&g
14270 s&\\\${datarootdir}&$datarootdir&g' ;;
14271 esac
14272 _ACEOF
14274 # Neutralize VPATH when `$srcdir' = `.'.
14275 # Shell code in configure.ac might set extrasub.
14276 # FIXME: do we really want to maintain this feature?
14277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14278 ac_sed_extra="$ac_vpsub
14279 $extrasub
14280 _ACEOF
14281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14284 s|@configure_input@|$ac_sed_conf_input|;t t
14285 s&@top_builddir@&$ac_top_builddir_sub&;t t
14286 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14287 s&@srcdir@&$ac_srcdir&;t t
14288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14289 s&@top_srcdir@&$ac_top_srcdir&;t t
14290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14291 s&@builddir@&$ac_builddir&;t t
14292 s&@abs_builddir@&$ac_abs_builddir&;t t
14293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14294 $ac_datarootdir_hack
14296 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14297 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14298 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14299 { (exit 1); exit 1; }; }
14301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14302 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14304 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14305 which seems to be undefined. Please make sure it is defined." >&5
14306 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14307 which seems to be undefined. Please make sure it is defined." >&2;}
14309 rm -f "$tmp/stdin"
14310 case $ac_file in
14311 -) cat "$tmp/out" && rm -f "$tmp/out";;
14312 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14313 esac \
14314 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14315 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14316 { (exit 1); exit 1; }; }
14320 # CONFIG_HEADER
14322 if test x"$ac_file" != x-; then
14324 $as_echo "/* $configure_input */" \
14325 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14326 } >"$tmp/config.h" \
14327 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14328 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14329 { (exit 1); exit 1; }; }
14330 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14331 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14333 else
14334 rm -f "$ac_file"
14335 mv "$tmp/config.h" "$ac_file" \
14336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14338 { (exit 1); exit 1; }; }
14340 else
14341 $as_echo "/* $configure_input */" \
14342 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14343 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14344 $as_echo "$as_me: error: could not create -" >&2;}
14345 { (exit 1); exit 1; }; }
14349 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14350 $as_echo "$as_me: executing $ac_file commands" >&6;}
14352 esac
14355 case $ac_file$ac_mode in
14356 "compiler_executable":C)
14357 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14358 mkdir -p $prefix
14359 prefix="${prefix}/${aros_target_cpu}-aros"
14360 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14362 echo ${prefix}
14363 echo ${prefix2}
14364 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14366 ln -sf ${prefix2}-gcc ${prefix}-gcc
14367 ln -sf ${prefix2}-ld ${prefix}-ld
14369 ln -sf $aros_target_as_ln ${prefix}-as
14370 ln -sf $aros_target_nm_ln ${prefix}-nm
14371 ln -sf $aros_target_ar_ln ${prefix}-ar
14372 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
14373 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
14374 ln -sf $aros_target_objdump_ln ${prefix}-objdump
14375 ln -sf $aros_target_strip_ln ${prefix}-strip
14377 ln -sf $aros_target_as_ln ${prefix2}-as
14378 ln -sf $aros_target_nm_ln ${prefix2}-nm
14379 ln -sf $aros_target_ar_ln ${prefix2}-ar
14380 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
14381 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
14382 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
14383 ln -sf $aros_target_strip_ln ${prefix2}-strip
14385 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14386 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14387 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
14390 esac
14391 done # for ac_tag
14394 { (exit 0); exit 0; }
14395 _ACEOF
14396 chmod +x $CONFIG_STATUS
14397 ac_clean_files=$ac_clean_files_save
14399 test $ac_write_fail = 0 ||
14400 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14401 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14402 { (exit 1); exit 1; }; }
14405 # configure is writing to config.log, and then calls config.status.
14406 # config.status does its own redirection, appending to config.log.
14407 # Unfortunately, on DOS this fails, as config.log is still kept open
14408 # by configure, so config.status won't be able to write to it; its
14409 # output is simply discarded. So we exec the FD to /dev/null,
14410 # effectively closing config.log, so it can be properly (re)opened and
14411 # appended to by config.status. When coming back to configure, we
14412 # need to make the FD available again.
14413 if test "$no_create" != yes; then
14414 ac_cs_success=:
14415 ac_config_status_args=
14416 test "$silent" = yes &&
14417 ac_config_status_args="$ac_config_status_args --quiet"
14418 exec 5>/dev/null
14419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14420 exec 5>>config.log
14421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14422 # would make configure fail if this is the last instruction.
14423 $ac_cs_success || { (exit 1); exit 1; }
14425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14426 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14427 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14432 #XXX compatability...
14433 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14435 if test -n "$aros_shared_cflags" ; then
14436 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14437 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg