2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
731 host_cflags_iquote_end
733 kernel_cflags_iquote_end
735 aros_cflags_iquote_end
763 aros_target_bootloader
777 aros_target_cc_includes
796 aros_kernel_objcflags
803 aros_target_strip_flags
809 aros_default_wbheight
813 aros_host_x11_includes
814 aros_host_x11_libdirs
819 aros_nesting_supervisor
833 ignore_undefined_symbols
837 ac_precious_vars
='build_alias
849 # Initialize some variables set by options.
851 ac_init_version
=false
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
861 program_transform_name
=s
,x
,x
,
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir
='${exec_prefix}/bin'
876 sbindir
='${exec_prefix}/sbin'
877 libexecdir
='${exec_prefix}/libexec'
878 datarootdir
='${prefix}/share'
879 datadir
='${datarootdir}'
880 sysconfdir
='${prefix}/etc'
881 sharedstatedir
='${prefix}/com'
882 localstatedir
='${prefix}/var'
883 includedir
='${prefix}/include'
884 oldincludedir
='/usr/include'
885 docdir
='${datarootdir}/doc/${PACKAGE}'
886 infodir
='${datarootdir}/info'
891 libdir
='${exec_prefix}/lib'
892 localedir
='${datarootdir}/locale'
893 mandir
='${datarootdir}/man'
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\
$ac_option
907 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
917 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
919 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
922 -build |
--build |
--buil |
--bui |
--bu)
923 ac_prev
=build_alias
;;
924 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
925 build_alias
=$ac_optarg ;;
927 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
928 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
929 ac_prev
=cache_file
;;
930 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
931 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
932 cache_file
=$ac_optarg ;;
935 cache_file
=config.cache
;;
937 -datadir |
--datadir |
--datadi |
--datad)
939 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
940 datadir
=$ac_optarg ;;
942 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
943 |
--dataroo |
--dataro |
--datar)
944 ac_prev
=datarootdir
;;
945 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
946 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
947 datarootdir
=$ac_optarg ;;
949 -disable-* |
--disable-*)
950 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954 { (exit 1); exit 1; }; }
955 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
956 eval enable_
$ac_feature=no
;;
958 -docdir |
--docdir |
--docdi |
--doc |
--do)
960 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
963 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
965 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
968 -enable-* |
--enable-*)
969 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
972 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
973 { (exit 1); exit 1; }; }
974 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
975 eval enable_
$ac_feature=\
$ac_optarg ;;
977 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
978 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
979 |
--exec |
--exe |
--ex)
980 ac_prev
=exec_prefix
;;
981 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
982 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
983 |
--exec=* |
--exe=* |
--ex=*)
984 exec_prefix
=$ac_optarg ;;
986 -gas |
--gas |
--ga |
--g)
987 # Obsolete; use --with-gas.
990 -help |
--help |
--hel |
--he |
-h)
992 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
993 ac_init_help
=recursive
;;
994 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
995 ac_init_help
=short
;;
997 -host |
--host |
--hos |
--ho)
998 ac_prev
=host_alias
;;
999 -host=* |
--host=* |
--hos=* |
--ho=*)
1000 host_alias
=$ac_optarg ;;
1002 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1004 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1006 htmldir
=$ac_optarg ;;
1008 -includedir |
--includedir |
--includedi |
--included |
--include \
1009 |
--includ |
--inclu |
--incl |
--inc)
1010 ac_prev
=includedir
;;
1011 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1012 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1013 includedir
=$ac_optarg ;;
1015 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1017 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1018 infodir
=$ac_optarg ;;
1020 -libdir |
--libdir |
--libdi |
--libd)
1022 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1023 libdir
=$ac_optarg ;;
1025 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1026 |
--libexe |
--libex |
--libe)
1027 ac_prev
=libexecdir
;;
1028 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1029 |
--libexe=* |
--libex=* |
--libe=*)
1030 libexecdir
=$ac_optarg ;;
1032 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1033 ac_prev
=localedir
;;
1034 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1035 localedir
=$ac_optarg ;;
1037 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1038 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1039 ac_prev
=localstatedir
;;
1040 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1041 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1042 localstatedir
=$ac_optarg ;;
1044 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1046 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1047 mandir
=$ac_optarg ;;
1049 -nfp |
--nfp |
--nf)
1050 # Obsolete; use --without-fp.
1053 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1054 |
--no-cr |
--no-c |
-n)
1057 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1058 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1061 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1062 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1063 |
--oldin |
--oldi |
--old |
--ol |
--o)
1064 ac_prev
=oldincludedir
;;
1065 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1066 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1067 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1068 oldincludedir
=$ac_optarg ;;
1070 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1072 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1073 prefix
=$ac_optarg ;;
1075 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1076 |
--program-pre |
--program-pr |
--program-p)
1077 ac_prev
=program_prefix
;;
1078 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1079 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1080 program_prefix
=$ac_optarg ;;
1082 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1083 |
--program-suf |
--program-su |
--program-s)
1084 ac_prev
=program_suffix
;;
1085 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1086 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1087 program_suffix
=$ac_optarg ;;
1089 -program-transform-name |
--program-transform-name \
1090 |
--program-transform-nam |
--program-transform-na \
1091 |
--program-transform-n |
--program-transform- \
1092 |
--program-transform |
--program-transfor \
1093 |
--program-transfo |
--program-transf \
1094 |
--program-trans |
--program-tran \
1095 |
--progr-tra |
--program-tr |
--program-t)
1096 ac_prev
=program_transform_name
;;
1097 -program-transform-name=* |
--program-transform-name=* \
1098 |
--program-transform-nam=* |
--program-transform-na=* \
1099 |
--program-transform-n=* |
--program-transform-=* \
1100 |
--program-transform=* |
--program-transfor=* \
1101 |
--program-transfo=* |
--program-transf=* \
1102 |
--program-trans=* |
--program-tran=* \
1103 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1104 program_transform_name
=$ac_optarg ;;
1106 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1108 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1109 pdfdir
=$ac_optarg ;;
1111 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1113 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1116 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1117 |
-silent |
--silent |
--silen |
--sile |
--sil)
1120 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1122 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1124 sbindir
=$ac_optarg ;;
1126 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1127 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1128 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1130 ac_prev
=sharedstatedir
;;
1131 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1132 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1133 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1135 sharedstatedir
=$ac_optarg ;;
1137 -site |
--site |
--sit)
1139 -site=* |
--site=* |
--sit=*)
1142 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1144 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1145 srcdir
=$ac_optarg ;;
1147 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1148 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1149 ac_prev
=sysconfdir
;;
1150 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1151 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1152 sysconfdir
=$ac_optarg ;;
1154 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1155 ac_prev
=target_alias
;;
1156 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1157 target_alias
=$ac_optarg ;;
1159 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1162 -version |
--version |
--versio |
--versi |
--vers |
-V)
1163 ac_init_version
=: ;;
1166 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1169 { echo "$as_me: error: invalid package name: $ac_package" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1172 eval with_
$ac_package=\
$ac_optarg ;;
1174 -without-* |
--without-*)
1175 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1178 { echo "$as_me: error: invalid package name: $ac_package" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1181 eval with_
$ac_package=no
;;
1184 # Obsolete; use --with-x.
1187 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1188 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1189 ac_prev
=x_includes
;;
1190 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1191 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1192 x_includes
=$ac_optarg ;;
1194 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1195 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1196 ac_prev
=x_libraries
;;
1197 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1198 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1199 x_libraries
=$ac_optarg ;;
1201 -*) { echo "$as_me: error: unrecognized option: $ac_option
1202 Try \`$0 --help' for more information." >&2
1203 { (exit 1); exit 1; }; }
1207 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1210 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1211 { (exit 1); exit 1; }; }
1212 eval $ac_envvar=\
$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1219 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226 if test -n "$ac_prev"; then
1227 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1228 { echo "$as_me: error: missing argument to $ac_option" >&2
1229 { (exit 1); exit 1; }; }
1232 # Be sure to have absolute directory names.
1233 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val
=\$
$ac_var
1240 [\\/$
]* | ?
:[\\/]* ) continue;;
1241 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1243 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1244 { (exit 1); exit 1; }; }
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1252 target
=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x
; then
1256 if test "x$build_alias" = x
; then
1257 cross_compiling
=maybe
1258 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1259 If a cross compiler is detected then cross compile mode will be used." >&2
1260 elif test "x$build_alias" != "x$host_alias"; then
1266 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1268 test "$silent" = yes && exec 6>/dev
/null
1271 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di
=`ls -di .` &&
1273 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1274 { echo "$as_me: error: Working directory cannot be determined" >&2
1275 { (exit 1); exit 1; }; }
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 { echo "$as_me: error: pwd does not report name of working directory" >&2
1278 { (exit 1); exit 1; }; }
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted
=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir
=`$as_dirname -- "$0" ||
1286 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$0" : 'X\(//\)[^/]' \| \
1288 X"$0" : 'X\(//\)$' \| \
1289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1313 ac_srcdir_defaulted
=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1317 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1318 { (exit 1); exit 1; }; }
1320 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1323 { (exit 1); exit 1; }; }
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1333 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 for ac_var
in $ac_precious_vars; do
1336 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1338 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1343 # Report the --help message.
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1349 \`configure' configures this package to adapt to many kinds of systems.
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1356 Defaults for the options are specified in brackets.
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1380 For better control, use the options below.
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1407 --x-includes=DIR X include files are
in DIR
1408 --x-libraries=DIR X library files are
in DIR
1411 --build=BUILD configure
for building on BUILD
[guessed
]
1412 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1416 if test -n "$ac_init_help"; then
1421 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1422 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1423 --enable-build-type=TYPE
1424 Select the build
type. Available types are
:
1425 personal
, nightly
, snapshot
, milestone
, release. Do
1426 NOT use this option unless you know what you are
1427 doing
! (default
=personal
)
1428 --enable-debug=list Enable different types of debug. Commas or
1429 whitespaces can be used to separate the items
in the
1430 list. Available types of debug are
: all
, none
,
1431 messages
, stack
, mungwall
, modules
, symbols. If no
1432 list is provided
then "all" is assumed.
1434 --enable-crosstools Build cross-compiler toolchains
if necessary
1436 --enable-distcc Use distcc as a front end to the compiler
1438 --enable-ccache Use ccache as a front end to the compiler
1440 --enable-target-variant=NAME
1441 Enable a specific target variant
(default
=none
)
1442 --enable-includes=dir Alternative system include directory
1443 --enable-palm-debug-hack
1444 Enable palm debug output hack
in palm native
1446 --enable-nesting-supervisor
1447 Enable nesting supervisor support
in unix
1449 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1450 --enable-x11-shm use X11 shared memory
(default
=auto
)
1451 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1452 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1453 --disable-sdltest Do not try to compile and run a
test SDL program
1454 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1457 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1458 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1459 --with-gcc-version=VERSION
1460 Use gcc-VERSION
for building AROS
1461 --with-optimization=FLAGS
1462 Use optimization flags FLAGS
(default
=-O2).
1463 --with-paranoia=FLAGS CC flags to
enable paranoia
1464 --with-xcode=PATH Specify XCode path
for iOS targets
1465 (default
=/Developer
).
1466 --with-ios-version=VERSION
1467 Specify minimum supported iOS version
(default
=2.0).
1468 --with-ios-sdk=VERSION Use iOS SDK version VERSION
(default
=4.1).
1469 --with-portssources=DIR Where to download sourcecode
for external ports
1470 --with-bootloader=NAME Use a specific bootloader
1471 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1472 --with-theme=NAME Use a specific GUI Theme
1473 --with-resolution=XRESxYRESxDEPTH
1474 Default resolution of the initial WorkbenchScreen
1475 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1476 --with-x use the X Window System
1477 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1478 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1480 Some influential environment variables
:
1481 CC C compiler
command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1484 nonstandard directory
<lib dir
>
1485 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1486 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1487 you have headers
in a nonstandard directory
<include dir
>
1489 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1491 Use these variables to override the choices made by
`configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" || continue
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1521 .) # We are building in place.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1555 generated by GNU Autoconf 2.61
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1564 cat >config.log <<_ACEOF
1565 This file contains any messages produced by compilers while
1566 running configure, to aid debugging if configure makes a mistake.
1568 It was created by $as_me, which was
1569 generated by GNU Autoconf 2.61. Invocation command line was
1581 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1582 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1583 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1584 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1585 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1587 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1588 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1590 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1591 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1592 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1593 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1594 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1595 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1596 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 echo "PATH: $as_dir"
1621 # Keep a trace of the command line.
1622 # Strip out --no-create and --no-recursion so they do not pile up.
1623 # Strip out --silent because we don't want to record it for future runs.
1624 # Also quote any args containing shell meta-characters.
1625 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_must_keep_next=false
1635 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637 | -silent | --silent | --silen | --sile | --sil)
1640 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1643 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1646 if test $ac_must_keep_next = true; then
1647 ac_must_keep_next=false # Got value, back to normal.
1650 *=* | --config-cache | -C | -disable-* | --disable-* \
1651 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1652 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1653 | -with-* | --with-* | -without-* | --without-* | --x)
1654 case "$ac_configure_args0 " in
1655 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658 -* ) ac_must_keep_next=true ;;
1661 ac_configure_args="$ac_configure_args '$ac_arg'"
1666 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1667 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669 # When interrupted or exit'd, cleanup temporary files, and complete
1670 # config.log. We remove comments because anyway the quotes in there
1671 # would cause problems or look ugly.
1672 # WARNING: Use '\'' to represent an apostrophe within the trap.
1673 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1674 trap 'exit_status=$?
1675 # Save into config.log some information that might help in debugging.
1680 ## ---------------- ##
1681 ## Cache variables. ##
1682 ## ---------------- ##
1685 # The following way of writing the cache mishandles newlines in values,
1687 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1688 eval ac_val=\$$ac_var
1692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1693 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1696 _ | IFS | as_nl) ;; #(
1697 *) $as_unset $ac_var ;;
1702 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1703 *${as_nl}ac_space=\ *)
1705 "s/'\''/'\''\\\\'\'''\''/g;
1706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717 ## ----------------- ##
1718 ## Output variables. ##
1719 ## ----------------- ##
1722 for ac_var in $ac_subst_vars
1724 eval ac_val=\$$ac_var
1726 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 echo "$ac_var='\''$ac_val'\''"
1732 if test -n "$ac_subst_files"; then
1734 ## ------------------- ##
1735 ## File substitutions. ##
1736 ## ------------------- ##
1739 for ac_var in $ac_subst_files
1741 eval ac_val=\$$ac_var
1743 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 echo "$ac_var='\''$ac_val'\''"
1750 if test -s confdefs.h; then
1760 test "$ac_signal" != 0 &&
1761 echo "$as_me: caught signal $ac_signal"
1762 echo "$as_me: exit $exit_status"
1764 rm -f core *.core core.conftest.* &&
1765 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1768 for ac_signal in 1 2 13 15; do
1769 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1774 rm -f -r conftest* confdefs.h
1776 # Predefined preprocessor variables.
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 # Let the site file select an alternate cache file if it wants to.
1804 # Prefer explicitly selected file to automatically selected ones.
1805 if test -n "$CONFIG_SITE"; then
1806 set x "$CONFIG_SITE"
1807 elif test "x$prefix" != xNONE; then
1808 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 set x "$ac_default_prefix/share/config.site" \
1811 "$ac_default_prefix/etc/config.site"
1816 if test -r "$ac_site_file"; then
1817 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 echo "$as_me: loading site script $ac_site_file" >&6;}
1819 sed 's/^/| /' "$ac_site_file" >&5
1824 if test -r "$cache_file"; then
1825 # Some versions of bash will fail to source /dev/null (special
1826 # files actually), so we avoid doing that.
1827 if test -f "$cache_file"; then
1828 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 echo "$as_me: loading cache $cache_file" >&6;}
1831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832 *) . "./$cache_file";;
1836 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 echo "$as_me: creating cache $cache_file" >&6;}
1841 # Check that the precious variables saved in the cache have kept the same
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846 eval ac_new_set=\$ac_env_${ac_var}_set
1847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848 eval ac_new_val=\$ac_env_${ac_var}_value
1849 case $ac_old_set,$ac_new_set in
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1852 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1856 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1860 if test "x$ac_old_val" != "x$ac_new_val"; then
1861 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1863 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1864 echo "$as_me: former value
: $ac_old_val" >&2;}
1865 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1866 echo "$as_me: current value
: $ac_new_val" >&2;}
1867 ac_cache_corrupted=:
1870 # Pass precious variables to config.status.
1871 if test "$ac_new_set" = set; then
1873 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1874 *) ac_arg=$ac_var=$ac_new_val ;;
1876 case " $ac_configure_args " in
1877 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1878 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882 if $ac_cache_corrupted; then
1883 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1884 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1885 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1886 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1887 { (exit 1); exit 1; }; }
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 # Check what host we are running on.
1947 # If a target is not suggested, we use this one.
1948 # Note that what we call a target, Autoconf calls a host.
1949 # Make sure we can run config.sub.
1950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1951 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1952 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1953 { (exit 1); exit 1; }; }
1955 { echo "$as_me:$LINENO: checking build system type" >&5
1956 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_build+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 ac_build_alias=$build_alias
1961 test "x$ac_build_alias" = x &&
1962 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1963 test "x$ac_build_alias" = x &&
1964 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1965 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1966 { (exit 1); exit 1; }; }
1967 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1968 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1969 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1970 { (exit 1); exit 1; }; }
1973 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1974 echo "${ECHO_T}$ac_cv_build" >&6; }
1975 case $ac_cv_build in
1977 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1978 echo "$as_me: error: invalid value of canonical build" >&2;}
1979 { (exit 1); exit 1; }; };;
1982 ac_save_IFS=$IFS; IFS='-'
1988 # Remember, the first character of IFS is used to create $*,
1989 # except with old shells:
1992 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1995 { echo "$as_me:$LINENO: checking host system type" >&5
1996 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1997 if test "${ac_cv_host+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 if test "x$host_alias" = x; then
2001 ac_cv_host=$ac_cv_build
2003 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2004 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2005 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
2010 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2011 echo "${ECHO_T}$ac_cv_host" >&6; }
2014 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2015 echo "$as_me: error: invalid value of canonical host" >&2;}
2016 { (exit 1); exit 1; }; };;
2019 ac_save_IFS=$IFS; IFS='-'
2025 # Remember, the first character of IFS is used to create $*,
2026 # except with old shells:
2029 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2033 # The AROS target is slightly different to the normal GNU style
2034 # format. We don't have the middle part, and we reverse the order
2035 # of the $(CPU) and $(OS) bits.
2037 # Don't strip the version of the target yet, it might be
2038 # useful on some systems.
2040 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2041 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2043 if test "$target" = "NONE" ; then
2044 target=$host_os-$host_cpu
2047 if test "$target" = "" ; then
2048 target=$host_os-$host_cpu
2054 { echo "$as_me:$LINENO: result: $target" >&5
2055 echo "${ECHO_T}$target" >&6; }
2057 if test "$host_os" = "mingw32" ; then
2061 #don't know where else to put this...
2062 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2063 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2064 AROS_BUILDDIR=`${PWDCMD-pwd}`
2065 AROS_BUILDDIR_UNIX=${PWD}
2066 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2067 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2069 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2070 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2071 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2073 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2074 echo "${ECHO_T}$SRCDIR" >&6; }
2076 # Parse the target field into something useful.
2078 target_os=`echo $target |
sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2079 target_cpu=`echo $target |
sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2082 aros_default_wbwidth=800
2083 aros_default_wbheight=600
2084 aros_default_wbdepth=4
2087 # The first step is to find the host binaries.
2088 # Check for a compiler.
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test -n "$CC"; then
2124 { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2127 { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2133 if test -z "$ac_cv_prog_CC"; then
2135 # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$ac_ct_CC"; then
2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_prog_ac_ct_CC="gcc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 echo "${ECHO_T}$ac_ct_CC" >&6; }
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2171 if test "x$ac_ct_CC" = x; then
2174 case $cross_compiling:$ac_tool_warned in
2176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&5
2179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2180 whose name does not start with the host triplet. If you think this
2181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2182 ac_tool_warned=yes ;;
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="${ac_tool_prefix}cc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2231 if test -z "$CC"; then
2232 # Extract the first word of "cc", so it can be a program name with args.
2233 set dummy cc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2251 ac_prog_rejected=yes
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test $ac_prog_rejected = yes; then
2263 # We found a bogon in the path, so make sure we never use it.
2264 set dummy $ac_cv_prog_CC
2266 if test $# != 0; then
2267 # We chose a different compiler from the bogus one.
2268 # However, it has the same basename, so the bogon will be chosen
2269 # first if we set CC to just the basename; use the full file name.
2271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2277 if test -n "$CC"; then
2278 { echo "$as_me:$LINENO: result: $CC" >&5
2279 echo "${ECHO_T}$CC" >&6; }
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2287 if test -z "$CC"; then
2288 if test -n "$ac_tool_prefix"; then
2289 for ac_prog in cl.exe
2291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 if test -n "$CC"; then
2320 { echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6; }
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2328 test -n "$CC" && break
2331 if test -z "$CC"; then
2333 for ac_prog in cl.exe
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$ac_ct_CC"; then
2343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_ac_ct_CC="$ac_prog"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2372 test -n "$ac_ct_CC" && break
2375 if test "x$ac_ct_CC" = x; then
2378 case $cross_compiling:$ac_tool_warned in
2380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet. If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&5
2383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet. If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2386 ac_tool_warned=yes ;;
2395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2396 See \`config.log
' for more details." >&5
2397 echo "$as_me: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details.
" >&2;}
2399 { (exit 1); exit 1; }; }
2401 # Provide some information about the compiler.
2402 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2403 ac_compiler=`set X $ac_compile; echo $2`
2404 { (ac_try="$ac_compiler --version >&5"
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_compiler --version >&5") 2>&5
2412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2413 (exit $ac_status); }
2414 { (ac_try="$ac_compiler -v >&5"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_compiler -v >&5") 2>&5
2422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2423 (exit $ac_status); }
2424 { (ac_try="$ac_compiler -V >&5"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compiler -V >&5") 2>&5
2432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2433 (exit $ac_status); }
2435 cat >conftest.$ac_ext <<_ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2450 ac_clean_files_save=$ac_clean_files
2451 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2452 # Try to create an executable without -o first, disregard a.out.
2453 # It will help us diagnose broken compilers, and finding out an intuition
2455 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2456 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2457 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2459 # List of possible output files, starting from the most likely.
2460 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2461 # only as a last resort. b.out is created by i960 compilers.
2462 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2464 # The IRIX 6 linker writes into existing files which may not be
2465 # executable, retaining their permissions. Remove them first so a
2466 # subsequent execution test works.
2468 for ac_file in $ac_files
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2472 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2477 if { (ac_try="$ac_link_default"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_link_default") 2>&5
2485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2486 (exit $ac_status); }; then
2487 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2489 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2490 # so that the user can short-circuit this test for compilers unknown to
2492 for ac_file in $ac_files ''
2494 test -f "$ac_file" || continue
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2499 # We found the default executable, but exeext='' is most
2503 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2505 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2507 # We set ac_cv_exeext here because the later test for it is not
2508 # safe: cross compilers may not add the suffix if given an `-o'
2509 # argument, so we may need to know it at that point already.
2510 # Even if this section looks crufty: it has the advantage of
2517 test "$ac_cv_exeext" = no && ac_cv_exeext=
2523 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2524 echo "${ECHO_T}$ac_file" >&6; }
2525 if test -z "$ac_file"; then
2526 echo "$as_me: failed program was
:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2530 See \
`config.log' for more details." >&5
2531 echo "$as_me: error: C compiler cannot create executables
2532 See \`config.log
' for more details." >&2;}
2533 { (exit 77); exit 77; }; }
2536 ac_exeext=$ac_cv_exeext
2538 # Check that the compiler produces executables we can run. If not, either
2539 # the compiler is broken, or we cross compile.
2540 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2541 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2542 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2543 # If not cross compiling, check that we can run a simple program.
2544 if test "$cross_compiling" != yes; then
2545 if { ac_try='.
/$ac_file'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 if test "$cross_compiling" = maybe; then
2560 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2561 If you meant to cross compile, use \`--host'.
2562 See \
`config.log' for more details." >&5
2563 echo "$as_me: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details.
" >&2;}
2566 { (exit 1); exit 1; }; }
2570 { echo "$as_me:$LINENO: result
: yes" >&5
2571 echo "${ECHO_T}yes" >&6; }
2573 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2574 ac_clean_files=$ac_clean_files_save
2575 # Check that the compiler produces executables we can run. If not, either
2576 # the compiler is broken, or we cross compile.
2577 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2578 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2579 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2580 echo "${ECHO_T}$cross_compiling" >&6; }
2582 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2583 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2584 if { (ac_try="$ac_link"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_link") 2>&5
2592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2593 (exit $ac_status); }; then
2594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2598 for ac_file in conftest.exe conftest conftest.*; do
2599 test -f "$ac_file" || continue
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2608 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2609 See \
`config.log' for more details." >&5
2610 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2611 See \`config.log
' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2615 rm -f conftest$ac_cv_exeext
2616 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2617 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2619 rm -f conftest.$ac_ext
2620 EXEEXT=$ac_cv_exeext
2622 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2623 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2624 if test "${ac_cv_objext+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2642 rm -f conftest.o conftest.obj
2643 if { (ac_try="$ac_compile"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; then
2653 for ac_file in conftest.o conftest.obj conftest.*; do
2654 test -f "$ac_file" || continue;
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2657 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2662 echo "$as_me: failed program was:" >&5
2663 sed 's
/^
/|
/' conftest.$ac_ext >&5
2665 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2666 See \`config.log' for more details.
" >&5
2667 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2668 See \
`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }
2672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2674 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2675 echo "${ECHO_T}$ac_cv_objext" >&6; }
2676 OBJEXT=$ac_cv_objext
2678 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2679 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2680 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2701 rm -f conftest.$ac_objext
2702 if { (ac_try="$ac_compile"
2704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2705 *) ac_try_echo
=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compile") 2>conftest.er1
2710 grep -v '^ *+' conftest.er1
>conftest.err
2712 cat conftest.err
>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest.
$ac_objext; then
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.
$ac_ext >&5
2726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2727 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2730 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2731 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2732 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2733 ac_test_CFLAGS
=${CFLAGS+set}
2734 ac_save_CFLAGS
=$CFLAGS
2735 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_cc_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 ac_save_c_werror_flag
=$ac_c_werror_flag
2741 ac_c_werror_flag
=yes
2744 cat >conftest.
$ac_ext <<_ACEOF
2747 cat confdefs.h
>>conftest.
$ac_ext
2748 cat >>conftest.
$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2759 rm -f conftest.
$ac_objext
2760 if { (ac_try
="$ac_compile"
2762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compile") 2>conftest.er1
2768 grep -v '^ *+' conftest.er1 >conftest.err
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } && {
2773 test -z "$ac_c_werror_flag" ||
2774 test ! -s conftest.err
2775 } && test -s conftest.$ac_objext; then
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2801 *) ac_try_echo
=$ac_try;;
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2806 grep -v '^ *+' conftest.er1
>conftest.err
2808 cat conftest.err
>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.
$ac_objext; then
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.
$ac_ext >&5
2819 ac_c_werror_flag
=$ac_save_c_werror_flag
2821 cat >conftest.
$ac_ext <<_ACEOF
2824 cat confdefs.h
>>conftest.
$ac_ext
2825 cat >>conftest.
$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2836 rm -f conftest.
$ac_objext
2837 if { (ac_try
="$ac_compile"
2839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compile") 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } && {
2850 test -z "$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2852 } && test -s conftest.$ac_objext; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2870 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2872 if test "$ac_test_CFLAGS" = set; then
2873 CFLAGS=$ac_save_CFLAGS
2874 elif test $ac_cv_prog_cc_g = yes; then
2875 if test "$GCC" = yes; then
2881 if test "$GCC" = yes; then
2887 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2888 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2889 if test "${ac_cv_prog_cc_c89+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 ac_cv_prog_cc_c89=no
2894 cat >conftest.$ac_ext <<_ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2902 #include <sys/types.h>
2903 #include <sys/stat.h>
2904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2905 struct buf { int x; };
2906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2907 static char *e (p, i)
2913 static char *f (char * (*g) (char **, int), char **p, ...)
2918 s = g (p, va_arg (v,int));
2923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2924 function prototypes and stuff, but not '\xHH' hex character constants.
2925 These don't provoke an error unfortunately, instead are silently treated
2926 as 'x'. The following induces an error, until -std is added to get
2927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2928 array size at least. It's necessary to write '\x00'==0 to get something
2929 that's true only with -std. */
2930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2933 inside strings and character constants. */
2935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2937 int test (int i, double x);
2938 struct s1 {int (*f) (int a);};
2939 struct s2 {int (*f) (double a);};
2940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2954 CC="$ac_save_CC $ac_arg"
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2959 *) ac_try_echo
=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2964 grep -v '^ *+' conftest.er1
>conftest.err
2966 cat conftest.err
>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && {
2969 test -z "$ac_c_werror_flag" ||
2970 test ! -s conftest.err
2971 } && test -s conftest.
$ac_objext; then
2972 ac_cv_prog_cc_c89
=$ac_arg
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.
$ac_ext >&5
2980 rm -f core conftest.err conftest.
$ac_objext
2981 test "x$ac_cv_prog_cc_c89" != "xno" && break
2983 rm -f conftest.
$ac_ext
2988 case "x$ac_cv_prog_cc_c89" in
2990 { echo "$as_me:$LINENO: result: none needed" >&5
2991 echo "${ECHO_T}none needed" >&6; } ;;
2993 { echo "$as_me:$LINENO: result: unsupported" >&5
2994 echo "${ECHO_T}unsupported" >&6; } ;;
2996 CC
="$CC $ac_cv_prog_cc_c89"
2997 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2998 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3003 ac_cpp
='$CPP $CPPFLAGS'
3004 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3008 case $ac_cv_prog_cc_stdc in
3009 no
) ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;;
3010 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3011 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cc_c99+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 ac_cv_prog_cc_c99
=no
3017 cat >conftest.
$ac_ext <<_ACEOF
3020 cat confdefs.h
>>conftest.
$ac_ext
3021 cat >>conftest.
$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 #include <stdbool.h>
3029 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3030 #define debug(...) fprintf (stderr, __VA_ARGS__)
3031 #define showlist(...) puts (#__VA_ARGS__)
3032 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3034 test_varargs_macros (void)
3039 debug ("X = %d\n", x);
3040 showlist (The first, second, and third items.);
3041 report (x>y, "x is %d but y is %d", x, y);
3044 // Check long long types.
3045 #define BIG64 18446744073709551615ull
3046 #define BIG32 4294967295ul
3047 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3049 your preprocessor is broken;
3053 your preprocessor is broken;
3055 static long long int bignum = -9223372036854775807LL;
3056 static unsigned long long int ubignum = BIG64;
3058 struct incomplete_array
3066 const wchar_t *name;
3070 typedef const char *ccp;
3073 test_restrict (ccp restrict text)
3075 // See if C++-style comments work.
3076 // Iterate through items via the restricted pointer.
3077 // Also check for declarations in for loops.
3078 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3083 // Check varargs and va_copy.
3085 test_varargs (const char *format, ...)
3088 va_start (args, format);
3090 va_copy (args_copy, args);
3101 str = va_arg (args_copy, const char *);
3104 number = va_arg (args_copy, int);
3107 fnumber = va_arg (args_copy, double);
3122 _Bool success = false;
3125 if (test_restrict ("String literal") == 0)
3127 char *restrict newvar = "Another string";
3130 test_varargs ("s, d' f .", "string", 65, 34.234);
3131 test_varargs_macros ();
3133 // Check flexible array members.
3134 struct incomplete_array *ia =
3135 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3137 for (int i = 0; i < ia->datasize; ++i)
3138 ia->data[i] = i * 1.234;
3140 // Check named initializers.
3141 struct named_init ni = {
3143 .name = L"Test wide string",
3144 .average = 543.34343,
3149 int dynamic_array[ni.number];
3150 dynamic_array[ni.number - 1] = 543;
3152 // work around unused variable warnings
3153 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3154 || dynamic_array[ni.number - 1] != 543);
3160 for ac_arg
in '' -std=gnu99
-c99 -qlanglvl=extc99
3162 CC
="$ac_save_CC $ac_arg"
3163 rm -f conftest.
$ac_objext
3164 if { (ac_try
="$ac_compile"
3166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 ac_cv_prog_cc_c99=$ac_arg
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext
3189 test "x$ac_cv_prog_cc_c99" != "xno" && break
3191 rm -f conftest.$ac_ext
3196 case "x$ac_cv_prog_cc_c99" in
3198 { echo "$as_me:$LINENO: result: none needed" >&5
3199 echo "${ECHO_T}none needed" >&6; } ;;
3201 { echo "$as_me:$LINENO: result: unsupported" >&5
3202 echo "${ECHO_T}unsupported" >&6; } ;;
3204 CC="$CC $ac_cv_prog_cc_c99"
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3208 if test "x$ac_cv_prog_cc_c99" != xno; then
3209 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3211 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3212 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_cc_c89+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 ac_cv_prog_cc_c89=no
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3226 #include <sys/types.h>
3227 #include <sys/stat.h>
3228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3229 struct buf { int x; };
3230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3231 static char *e (p, i)
3237 static char *f (char * (*g) (char **, int), char **p, ...)
3242 s = g (p, va_arg (v,int));
3247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3248 function prototypes and stuff, but not '\xHH' hex character constants.
3249 These don't provoke an error unfortunately, instead are silently treated
3250 as 'x'. The following induces an error, until -std is added to get
3251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3252 array size at least. It's necessary to write '\x00'==0 to get something
3253 that's true only with -std. */
3254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3257 inside strings and character constants. */
3259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3261 int test (int i, double x);
3262 struct s1 {int (*f) (int a);};
3263 struct s2 {int (*f) (double a);};
3264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3278 CC="$ac_save_CC $ac_arg"
3279 rm -f conftest.$ac_objext
3280 if { (ac_try="$ac_compile"
3282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3283 *) ac_try_echo
=$ac_try;;
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_compile") 2>conftest.er1
3288 grep -v '^ *+' conftest.er1
>conftest.err
3290 cat conftest.err
>&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } && {
3293 test -z "$ac_c_werror_flag" ||
3294 test ! -s conftest.err
3295 } && test -s conftest.
$ac_objext; then
3296 ac_cv_prog_cc_c89
=$ac_arg
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.
$ac_ext >&5
3304 rm -f core conftest.err conftest.
$ac_objext
3305 test "x$ac_cv_prog_cc_c89" != "xno" && break
3307 rm -f conftest.
$ac_ext
3312 case "x$ac_cv_prog_cc_c89" in
3314 { echo "$as_me:$LINENO: result: none needed" >&5
3315 echo "${ECHO_T}none needed" >&6; } ;;
3317 { echo "$as_me:$LINENO: result: unsupported" >&5
3318 echo "${ECHO_T}unsupported" >&6; } ;;
3320 CC
="$CC $ac_cv_prog_cc_c89"
3321 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3322 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3324 if test "x$ac_cv_prog_cc_c89" != xno
; then
3325 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3327 ac_cv_prog_cc_stdc
=no
3335 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3336 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 case $ac_cv_prog_cc_stdc in
3342 no
) { echo "$as_me:$LINENO: result: unsupported" >&5
3343 echo "${ECHO_T}unsupported" >&6; } ;;
3344 '') { echo "$as_me:$LINENO: result: none needed" >&5
3345 echo "${ECHO_T}none needed" >&6; } ;;
3346 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3352 ac_cpp
='$CPP $CPPFLAGS'
3353 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3358 # On Suns, sometimes $CPP names a directory.
3359 if test -n "$CPP" && test -d "$CPP"; then
3362 if test -z "$CPP"; then
3363 if test "${ac_cv_prog_CPP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 # Double quotes because CPP needs to be expanded
3367 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370 for ac_c_preproc_warn_flag
in '' yes
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.
$ac_ext <<_ACEOF
3381 cat confdefs.h
>>conftest.
$ac_ext
3382 cat >>conftest.
$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3385 # include <limits.h>
3387 # include <assert.h>
3391 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null && {
3404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3405 test ! -s conftest.err
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3412 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.$ac_ext
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3431 *) ac_try_echo
=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1
>conftest.err
3438 cat conftest.err
>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev
/null
&& {
3441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3444 # Broken: success on invalid input.
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.
$ac_ext >&5
3450 # Passes both tests.
3455 rm -f conftest.err conftest.
$ac_ext
3458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3459 rm -f conftest.err conftest.
$ac_ext
3460 if $ac_preproc_ok; then
3472 { echo "$as_me:$LINENO: result: $CPP" >&5
3473 echo "${ECHO_T}$CPP" >&6; }
3475 for ac_c_preproc_warn_flag
in '' yes
3477 # Use a header file that comes with gcc, so configuring glibc
3478 # with a fresh cross-compiler works.
3479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480 # <limits.h> exists even on freestanding compilers.
3481 # On the NeXT, cc -E runs the code through the compiler's parser,
3482 # not just through cpp. "Syntax error" is here to catch this case.
3483 cat >conftest.
$ac_ext <<_ACEOF
3486 cat confdefs.h
>>conftest.
$ac_ext
3487 cat >>conftest.
$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3490 # include <limits.h>
3492 # include <assert.h>
3496 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null && {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Broken: fails on valid input.
3521 rm -f conftest.err conftest.$ac_ext
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <ac_nonexistent.h>
3533 if { (ac_try="$ac_cpp conftest.$ac_ext"
3535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3536 *) ac_try_echo
=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1
>conftest.err
3543 cat conftest.err
>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev
/null
&& {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3549 # Broken: success on invalid input.
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.
$ac_ext >&5
3555 # Passes both tests.
3560 rm -f conftest.err conftest.
$ac_ext
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.
$ac_ext
3565 if $ac_preproc_ok; then
3568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3576 ac_cpp
='$CPP $CPPFLAGS'
3577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3582 # Check for a compatible awk
3583 for ac_prog
in gawk nawk
3585 # Extract the first word of "$ac_prog", so it can be a program name with args.
3586 set dummy
$ac_prog; ac_word
=$2
3587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_AWK+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test -n "$AWK"; then
3593 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir
=.
3600 for ac_exec_ext
in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_AWK
="$ac_prog"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 if test -n "$AWK"; then
3614 { echo "$as_me:$LINENO: result: $AWK" >&5
3615 echo "${ECHO_T}$AWK" >&6; }
3617 { echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6; }
3622 test -n "$AWK" && break
3625 if test "$AWK" = ""; then
3626 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3627 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3628 { (exit 1); exit 1; }; }
3630 # Extract the first word of "mmake", so it can be a program name with args.
3631 set dummy mmake
; ac_word
=$2
3632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3634 if test "${ac_cv_prog_MMAKE+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 if test -n "$MMAKE"; then
3638 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
3640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir
=.
3645 for ac_exec_ext
in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 ac_cv_prog_MMAKE
="mmake "
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 MMAKE
=$ac_cv_prog_MMAKE
3658 if test -n "$MMAKE"; then
3659 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3660 echo "${ECHO_T}$MMAKE" >&6; }
3662 { echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6; }
3668 # Perform some default variable assignments. Note all of these will be
3669 # Regenerated from the script, so there is no need to cache them.
3672 if test "$GCC" = "yes"; then
3673 aros_gcc_ld
=`$CC -print-prog-name=ld`
3674 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3675 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
3676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3678 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 case $aros_host_ld in
3683 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3687 for as_dir
in `dirname $aros_gcc_ld`
3690 test -z "$as_dir" && as_dir
=.
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 aros_host_ld
=$ac_cv_path_aros_host_ld
3705 if test -n "$aros_host_ld"; then
3706 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3707 echo "${ECHO_T}$aros_host_ld" >&6; }
3709 { echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6; }
3715 if test "$aros_host_ld" = ""; then
3716 # Extract the first word of "ld", so it can be a program name with args.
3717 set dummy ld
; ac_word
=$2
3718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3720 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 case $aros_host_ld in
3725 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir
=.
3733 for ac_exec_ext
in '' $ac_executable_extensions; do
3734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 aros_host_ld
=$ac_cv_path_aros_host_ld
3747 if test -n "$aros_host_ld"; then
3748 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3749 echo "${ECHO_T}$aros_host_ld" >&6; }
3751 { echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6; }
3757 if test "$aros_host_ld" = ""; then
3758 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3759 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3760 { (exit 1); exit 1; }; }
3762 aros_host_make
="make"
3763 aros_host_cflags
=$CFLAGS
3764 aros_host_ldflags
=$LDFLAGS
3765 aros_host_debug
="-g -O0"
3766 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
3767 aros_host_mkargs
="--no-print-directory"
3768 aros_host_incl
="/usr/include"
3769 aros_host_exe_suffix
="$EXEEXT"
3770 aros_host_lib_suffix
=""
3772 for ac_prog
in aclocal aclocal19 aclocal-1.9
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy
$ac_prog; ac_word
=$2
3776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 if test -n "$aros_host_aclocal"; then
3782 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
3784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir
=.
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_aros_host_aclocal
="$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
3802 if test -n "$aros_host_aclocal"; then
3803 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3804 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3806 { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3811 test -n "$aros_host_aclocal" && break
3814 for ac_prog
in autoconf autoconf259 autoconf253
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817 set dummy
$ac_prog; ac_word
=$2
3818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3820 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 if test -n "$aros_host_autoconf"; then
3824 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
3826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir
=.
3831 for ac_exec_ext
in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_aros_host_autoconf
="$ac_prog"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
3844 if test -n "$aros_host_autoconf"; then
3845 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3846 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3848 { echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6; }
3853 test -n "$aros_host_autoconf" && break
3856 for ac_prog
in autoheader autoheader259 autoheader253
3858 # Extract the first word of "$ac_prog", so it can be a program name with args.
3859 set dummy
$ac_prog; ac_word
=$2
3860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3862 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if test -n "$aros_host_autoheader"; then
3866 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
3868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir
=.
3873 for ac_exec_ext
in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_aros_host_autoheader
="$ac_prog"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
3886 if test -n "$aros_host_autoheader"; then
3887 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3888 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3895 test -n "$aros_host_autoheader" && break
3898 for ac_prog
in automake automake19 automake-1.9
3900 # Extract the first word of "$ac_prog", so it can be a program name with args.
3901 set dummy
$ac_prog; ac_word
=$2
3902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3904 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$aros_host_automake"; then
3908 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
3910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir
=.
3915 for ac_exec_ext
in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_aros_host_automake
="$ac_prog"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 aros_host_automake
=$ac_cv_prog_aros_host_automake
3928 if test -n "$aros_host_automake"; then
3929 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3930 echo "${ECHO_T}$aros_host_automake" >&6; }
3932 { echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6; }
3937 test -n "$aros_host_automake" && break
3941 if test "$aros_host_aclocal" = ""; then
3942 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3943 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3944 { (exit 1); exit 1; }; }
3946 if test "$aros_host_automake" = ""; then
3947 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3948 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3949 { (exit 1); exit 1; }; }
3952 case "$aros_host_cc" in
3954 aros_host_cc_pipe
="-pipe"
3957 aros_host_cc_pipe
=""
3960 aros_host_cc_pipe
=""
3964 aros_kernel_cc_includes
=""
3965 aros_target_cc_includes
=""
3967 # This is the main host configuration section. It is where the host
3968 # can change the values of any variables it needs to change. We do
3969 # not look at anything that compiles to the target yet, we'll get
3974 aros_host_arch
="aros"
3975 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3978 aros_host_cpu
="i386"
3981 aros_host_cpu
="x86_64"
3987 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3988 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3989 aros_host_cpu
="$host_cpu"
3995 aros_host_arch
="linux"
3996 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3999 aros_host_cpu
="i386"
4002 aros_host_cpu
="x86_64"
4005 aros_host_cpu
="m68k"
4014 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4015 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4016 aros_host_cpu
="$host_cpu"
4022 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4023 aros_host_make
="gmake"
4024 aros_host_arch
="freebsd"
4025 aros_host_cpu
="i386"
4027 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4031 aros_object_format
="elf_i386"
4035 aros_object_format
="elf_i386_fbsd"
4042 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4043 aros_host_arch
="darwin"
4046 aros_host_cpu
="i386"
4049 aros_host_cpu
="x86_64"
4055 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4056 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4057 aros_host_cpu
="$host_cpu"
4061 aros_host_ldflags
="$aros_host_ldflags -liconv"
4066 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4067 aros_host_make
="gmake"
4068 aros_host_arch
="dragonfly"
4071 aros_host_cpu
="i386"
4074 aros_host_cpu
="x86_64"
4077 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4078 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4079 aros_host_cpu
="$host_cpu"
4085 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4086 aros_host_make
="gmake"
4087 aros_host_arch
="netbsd"
4090 aros_host_cpu
="i386"
4093 aros_host_cpu
="m68k"
4096 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4097 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4098 aros_host_cpu
="$host_cpu"
4101 aros_host_lib_suffix
=".0.0"
4105 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4106 aros_host_make
="gmake"
4107 aros_host_arch
="openbsd"
4110 aros_host_cpu
="i386"
4113 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4114 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4115 aros_host_cpu
="$host_cpu"
4121 aros_host_arch
="solaris"
4122 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4125 aros_host_cpu
="i386"
4128 aros_host_cpu
="sparc"
4131 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4132 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4133 aros_host_cpu
="$host_cpu"
4139 aros_host_arch
="morphos"
4144 aros_host_arch
="amiga"
4149 TOUCH
="/gg/bin/touch"
4152 aros_host_cpu
="m68k"
4158 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4159 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4160 aros_host_cpu
="$host_cpu"
4166 aros_host_arch
="cygwin"
4167 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4170 aros_host_cpu
="i386"
4173 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4174 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4175 aros_host_cpu
="$host_cpu"
4181 aros_host_arch
="mingw32"
4182 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4185 aros_host_cpu
="i386"
4188 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4189 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4190 aros_host_cpu
="$host_cpu"
4195 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4196 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4197 { (exit 1); exit 1; }; }
4201 # Extract the first word of "ar", so it can be a program name with args.
4202 set dummy
ar; ac_word
=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test -n "$aros_host_ar"; then
4209 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir
=.
4216 for ac_exec_ext
in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_aros_host_ar
="ar cr"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 aros_host_ar
=$ac_cv_prog_aros_host_ar
4229 if test -n "$aros_host_ar"; then
4230 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4231 echo "${ECHO_T}$aros_host_ar" >&6; }
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test "$aros_host_ar" = ""; then
4239 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4240 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4241 { (exit 1); exit 1; }; }
4243 # Extract the first word of "ranlib", so it can be a program name with args.
4244 set dummy ranlib
; ac_word
=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$aros_host_ranlib"; then
4251 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir
=.
4258 for ac_exec_ext
in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_aros_host_ranlib
="ranlib "
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4271 if test -n "$aros_host_ranlib"; then
4272 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4273 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4280 if test "$aros_host_ranlib" = ""; then
4281 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4282 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4283 { (exit 1); exit 1; }; }
4285 # Extract the first word of "strip", so it can be a program name with args.
4286 set dummy strip
; ac_word
=$2
4287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4289 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 if test -n "$aros_host_strip"; then
4293 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir
=.
4300 for ac_exec_ext
in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_aros_host_strip
="strip "
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 aros_host_strip
=$ac_cv_prog_aros_host_strip
4313 if test -n "$aros_host_strip"; then
4314 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4315 echo "${ECHO_T}$aros_host_strip" >&6; }
4317 { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4322 if test "$aros_host_strip" = ""; then
4323 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4324 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4325 { (exit 1); exit 1; }; }
4328 # Extract the first word of "rm", so it can be a program name with args.
4329 set dummy
rm; ac_word
=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_prog_RM+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 if test -n "$RM"; then
4336 ac_cv_prog_RM
="$RM" # Let the user override the test.
4338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_RM
="rm -rf"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 if test -n "$RM"; then
4357 { echo "$as_me:$LINENO: result: $RM" >&5
4358 echo "${ECHO_T}$RM" >&6; }
4360 { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4365 if test "$RM" = ""; then
4366 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4367 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4368 { (exit 1); exit 1; }; }
4370 # Extract the first word of "cp", so it can be a program name with args.
4371 set dummy
cp; ac_word
=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_CP+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 if test -n "$CP"; then
4378 ac_cv_prog_CP
="$CP" # Let the user override the test.
4380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 if test -n "$CP"; then
4399 { echo "$as_me:$LINENO: result: $CP" >&5
4400 echo "${ECHO_T}$CP" >&6; }
4402 { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4407 if test "$CP" = ""; then
4408 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4409 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4410 { (exit 1); exit 1; }; }
4412 # Extract the first word of "mv", so it can be a program name with args.
4413 set dummy
mv; ac_word
=$2
4414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416 if test "${ac_cv_prog_MV+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 if test -n "$MV"; then
4420 ac_cv_prog_MV
="$MV" # Let the user override the test.
4422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir
=.
4427 for ac_exec_ext
in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 if test -n "$MV"; then
4441 { echo "$as_me:$LINENO: result: $MV" >&5
4442 echo "${ECHO_T}$MV" >&6; }
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4449 if test "$MV" = ""; then
4450 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4451 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4452 { (exit 1); exit 1; }; }
4454 # Extract the first word of "echo", so it can be a program name with args.
4455 set dummy
echo; ac_word
=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_ECHO+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 if test -n "$ECHO"; then
4462 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir
=.
4469 for ac_exec_ext
in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ECHO
="echo "
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 ECHO
=$ac_cv_prog_ECHO
4482 if test -n "$ECHO"; then
4483 { echo "$as_me:$LINENO: result: $ECHO" >&5
4484 echo "${ECHO_T}$ECHO" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4491 if test "$ECHO" = ""; then
4492 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4493 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4494 { (exit 1); exit 1; }; }
4496 # Extract the first word of "mkdir", so it can be a program name with args.
4497 set dummy mkdir
; ac_word
=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_MKDIR+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$MKDIR"; then
4504 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_exec_ext
in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_MKDIR
="mkdir -p"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 MKDIR
=$ac_cv_prog_MKDIR
4524 if test -n "$MKDIR"; then
4525 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4526 echo "${ECHO_T}$MKDIR" >&6; }
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4533 if test "$MKDIR" = ""; then
4534 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4535 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4536 { (exit 1); exit 1; }; }
4538 # Extract the first word of "touch", so it can be a program name with args.
4539 set dummy
touch; ac_word
=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_prog_TOUCH+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 if test -n "$TOUCH"; then
4546 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_TOUCH
="touch "
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 TOUCH
=$ac_cv_prog_TOUCH
4566 if test -n "$TOUCH"; then
4567 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4568 echo "${ECHO_T}$TOUCH" >&6; }
4570 { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4575 if test "$TOUCH" = ""; then
4576 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4577 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4578 { (exit 1); exit 1; }; }
4580 # Extract the first word of "sort", so it can be a program name with args.
4581 set dummy
sort; ac_word
=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_SORT+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 if test -n "$SORT"; then
4588 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
4590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir
=.
4595 for ac_exec_ext
in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_SORT
="sort "
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 SORT
=$ac_cv_prog_SORT
4608 if test -n "$SORT"; then
4609 { echo "$as_me:$LINENO: result: $SORT" >&5
4610 echo "${ECHO_T}$SORT" >&6; }
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4617 if test "$SORT" = ""; then
4618 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4619 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4620 { (exit 1); exit 1; }; }
4622 # Extract the first word of "uniq", so it can be a program name with args.
4623 set dummy
uniq; ac_word
=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_UNIQ+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test -n "$UNIQ"; then
4630 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
4632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir
=.
4637 for ac_exec_ext
in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_UNIQ
="uniq "
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 UNIQ
=$ac_cv_prog_UNIQ
4650 if test -n "$UNIQ"; then
4651 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4652 echo "${ECHO_T}$UNIQ" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4659 if test "$UNIQ" = ""; then
4660 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4661 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4662 { (exit 1); exit 1; }; }
4664 # Extract the first word of "true", so it can be a program name with args.
4665 set dummy true
; ac_word
=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_NOP+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$NOP"; then
4672 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
4674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir
=.
4679 for ac_exec_ext
in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_NOP
="true "
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 if test -n "$NOP"; then
4693 { echo "$as_me:$LINENO: result: $NOP" >&5
4694 echo "${ECHO_T}$NOP" >&6; }
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4701 if test "$NOP" = ""; then
4702 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4703 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4704 { (exit 1); exit 1; }; }
4706 # Extract the first word of "cat", so it can be a program name with args.
4707 set dummy
cat; ac_word
=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_CAT+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$CAT"; then
4714 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
4716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir
=.
4721 for ac_exec_ext
in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_CAT
="cat "
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 if test -n "$CAT"; then
4735 { echo "$as_me:$LINENO: result: $CAT" >&5
4736 echo "${ECHO_T}$CAT" >&6; }
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4743 if test "$CAT" = ""; then
4744 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4745 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4746 { (exit 1); exit 1; }; }
4748 # Extract the first word of "bison", so it can be a program name with args.
4749 set dummy bison
; ac_word
=$2
4750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4752 if test "${ac_cv_prog_BISON+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 if test -n "$BISON"; then
4756 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
4758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4762 test -z "$as_dir" && as_dir
=.
4763 for ac_exec_ext
in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765 ac_cv_prog_BISON
="bison "
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 BISON
=$ac_cv_prog_BISON
4776 if test -n "$BISON"; then
4777 { echo "$as_me:$LINENO: result: $BISON" >&5
4778 echo "${ECHO_T}$BISON" >&6; }
4780 { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4785 if test "$BISON" = ""; then
4786 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4787 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4788 { (exit 1); exit 1; }; }
4790 # Extract the first word of "flex", so it can be a program name with args.
4791 set dummy flex
; ac_word
=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_FLEX+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 if test -n "$FLEX"; then
4798 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
4800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir
=.
4805 for ac_exec_ext
in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_FLEX
="flex "
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 FLEX
=$ac_cv_prog_FLEX
4818 if test -n "$FLEX"; then
4819 { echo "$as_me:$LINENO: result: $FLEX" >&5
4820 echo "${ECHO_T}$FLEX" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4827 if test "$FLEX" = ""; then
4828 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4829 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4830 { (exit 1); exit 1; }; }
4832 # Extract the first word of "pngtopnm", so it can be a program name with args.
4833 set dummy pngtopnm
; ac_word
=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 if test -n "$PNGTOPNM"; then
4840 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
4842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir
=.
4847 for ac_exec_ext
in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_PNGTOPNM
="pngtopnm "
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
4860 if test -n "$PNGTOPNM"; then
4861 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4862 echo "${ECHO_T}$PNGTOPNM" >&6; }
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4869 if test "$PNGTOPNM" = ""; then
4870 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4871 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4872 { (exit 1); exit 1; }; }
4874 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4875 set dummy ppmtoilbm
; ac_word
=$2
4876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4878 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 if test -n "$PPMTOILBM"; then
4882 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
4884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir
=.
4889 for ac_exec_ext
in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
4902 if test -n "$PPMTOILBM"; then
4903 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4904 echo "${ECHO_T}$PPMTOILBM" >&6; }
4906 { echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6; }
4911 if test "$PPMTOILBM" = ""; then
4912 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4913 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4914 { (exit 1); exit 1; }; }
4916 # Extract the first word of "sed", so it can be a program name with args.
4917 set dummy
sed; ac_word
=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_SED+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if test -n "$SED"; then
4924 ac_cv_prog_SED
="$SED" # Let the user override the test.
4926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir
=.
4931 for ac_exec_ext
in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_SED
="sed "
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 if test -n "$SED"; then
4945 { echo "$as_me:$LINENO: result: $SED" >&5
4946 echo "${ECHO_T}$SED" >&6; }
4948 { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4953 if test "$SED" = ""; then
4954 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4955 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4956 { (exit 1); exit 1; }; }
4958 # Extract the first word of "chmod", so it can be a program name with args.
4959 set dummy
chmod; ac_word
=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_prog_CHMOD+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 if test -n "$CHMOD"; then
4966 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
4968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir
=.
4973 for ac_exec_ext
in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_CHMOD
="chmod "
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 CHMOD
=$ac_cv_prog_CHMOD
4986 if test -n "$CHMOD"; then
4987 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4988 echo "${ECHO_T}$CHMOD" >&6; }
4990 { echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6; }
4995 if test "$CHMOD" = ""; then
4996 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4997 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4998 { (exit 1); exit 1; }; }
5005 if test -n "$PYTHON"; then
5006 # If the user set $PYTHON, use it and don't search something else.
5007 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5008 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5009 prog
="import sys, string
5010 # split strings by '.' and convert to numeric. Append some zeros
5011 # because we need at least 4 digits for the hex conversion.
5012 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5014 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5015 sys.exit(sys.hexversion < minverhex)"
5016 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5017 ($PYTHON -c "$prog") >&5 2>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; then
5021 { echo "$as_me:$LINENO: result: yes" >&5
5022 echo "${ECHO_T}yes" >&6; }
5024 { { echo "$as_me:$LINENO: error: too old" >&5
5025 echo "$as_me: error: too old" >&2;}
5026 { (exit 1); exit 1; }; }
5029 am_display_PYTHON
=$PYTHON
5031 # Otherwise, try each interpreter until we find one that satisfies
5033 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5034 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5035 if test "${am_cv_pathless_PYTHON+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 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
5040 test "$am_cv_pathless_PYTHON" = none
&& break
5041 prog
="import sys, string
5042 # split strings by '.' and convert to numeric. Append some zeros
5043 # because we need at least 4 digits for the hex conversion.
5044 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5046 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5047 sys.exit(sys.hexversion < minverhex)"
5048 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5049 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; then
5058 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5059 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5060 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5061 if test "$am_cv_pathless_PYTHON" = none
; then
5064 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5065 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_path_PYTHON+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 PYTHON
=$ac_cv_path_PYTHON
5095 if test -n "$PYTHON"; then
5096 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5097 echo "${ECHO_T}$PYTHON" >&6; }
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5105 am_display_PYTHON
=$am_cv_pathless_PYTHON
5109 if test "$PYTHON" = :; then
5110 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5111 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5112 { (exit 1); exit 1; }; }
5116 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5117 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5118 if test "${am_cv_python_version+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5123 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5124 echo "${ECHO_T}$am_cv_python_version" >&6; }
5125 PYTHON_VERSION
=$am_cv_python_version
5129 PYTHON_PREFIX
='${prefix}'
5131 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5135 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5136 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5137 if test "${am_cv_python_platform+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5142 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5143 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5144 PYTHON_PLATFORM
=$am_cv_python_platform
5149 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5150 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5151 if test "${am_cv_python_pythondir+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5155 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5157 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5158 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5159 pythondir
=$am_cv_python_pythondir
5163 pkgpythondir
=\
${pythondir}/$PACKAGE
5166 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5167 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5168 if test "${am_cv_python_pyexecdir+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5172 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5174 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5175 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5176 pyexecdir
=$am_cv_python_pyexecdir
5180 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5198 # Check for some includes for the X11 HIDD and the kernel
5201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5203 if test "${ac_cv_path_GREP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 # Extract the first word of "grep ggrep" to use in msg output
5207 if test -z "$GREP"; then
5208 set dummy
grep ggrep
; ac_prog_name
=$2
5209 if test "${ac_cv_path_GREP+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 ac_path_GREP_found
=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5215 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_prog
in grep ggrep
; do
5220 for ac_exec_ext
in '' $ac_executable_extensions; do
5221 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5223 # Check for GNU ac_path_GREP and select it if it is found.
5224 # Check for GNU $ac_path_GREP
5225 case `"$ac_path_GREP" --version 2>&1` in
5227 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 echo 'GREP' >> "conftest.nl"
5237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5238 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5239 ac_count
=`expr $ac_count + 1`
5240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_GREP
="$ac_path_GREP"
5243 ac_path_GREP_max
=$ac_count
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5248 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5252 $ac_path_GREP_found && break 3
5262 GREP
="$ac_cv_path_GREP"
5263 if test -z "$GREP"; then
5264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5266 { (exit 1); exit 1; }; }
5270 ac_cv_path_GREP
=$GREP
5275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5277 GREP
="$ac_cv_path_GREP"
5280 { echo "$as_me:$LINENO: checking for egrep" >&5
5281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5286 then ac_cv_path_EGREP
="$GREP -E"
5288 # Extract the first word of "egrep" to use in msg output
5289 if test -z "$EGREP"; then
5290 set dummy
egrep; ac_prog_name
=$2
5291 if test "${ac_cv_path_EGREP+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_path_EGREP_found
=false
5295 # Loop through the user's path and test for each of PROGNAME-LIST
5296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5300 test -z "$as_dir" && as_dir
=.
5301 for ac_prog
in egrep; do
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5305 # Check for GNU ac_path_EGREP and select it if it is found.
5306 # Check for GNU $ac_path_EGREP
5307 case `"$ac_path_EGREP" --version 2>&1` in
5309 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5315 cat "conftest.in" "conftest.in" >"conftest.tmp"
5316 mv "conftest.tmp" "conftest.in"
5317 cp "conftest.in" "conftest.nl"
5318 echo 'EGREP' >> "conftest.nl"
5319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5321 ac_count
=`expr $ac_count + 1`
5322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5323 # Best one so far, save it but keep looking for a better one
5324 ac_cv_path_EGREP
="$ac_path_EGREP"
5325 ac_path_EGREP_max
=$ac_count
5327 # 10*(2^10) chars as input seems more than enough
5328 test $ac_count -gt 10 && break
5330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5334 $ac_path_EGREP_found && break 3
5344 EGREP
="$ac_cv_path_EGREP"
5345 if test -z "$EGREP"; then
5346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5348 { (exit 1); exit 1; }; }
5352 ac_cv_path_EGREP
=$EGREP
5358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5360 EGREP
="$ac_cv_path_EGREP"
5363 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5364 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5365 if test "${ac_cv_header_stdc+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.
$ac_ext <<_ACEOF
5371 cat confdefs.h
>>conftest.
$ac_ext
5372 cat >>conftest.
$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5387 rm -f conftest.
$ac_objext
5388 if { (ac_try
="$ac_compile"
5390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_compile") 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && {
5401 test -z "$ac_c_werror_flag" ||
5402 test ! -s conftest.err
5403 } && test -s conftest.$ac_objext; then
5404 ac_cv_header_stdc=yes
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_cv_header_stdc=no
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 if test $ac_cv_header_stdc = yes; then
5415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "memchr" >/dev/null 2>&1; then
5429 ac_cv_header_stdc=no
5435 if test $ac_cv_header_stdc = yes; then
5436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 $EGREP "free" >/dev/null 2>&1; then
5450 ac_cv_header_stdc=no
5456 if test $ac_cv_header_stdc = yes; then
5457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5458 if test "$cross_compiling" = yes; then
5461 cat >conftest.$ac_ext <<_ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5469 #if ((' ' & 0x0FF) == 0x020)
5470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5473 # define ISLOWER(c) \
5474 (('a' <= (c) && (c) <= 'i') \
5475 || ('j' <= (c) && (c) <= 'r') \
5476 || ('s' <= (c) && (c) <= 'z'))
5477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485 for (i = 0; i < 256; i++)
5486 if (XOR (islower (i), ISLOWER (i))
5487 || toupper (i) != TOUPPER (i))
5492 rm -f conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5496 *) ac_try_echo
=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_link") 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5503 { (case "(($ac_try" in
5504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_try") 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5514 echo "$as_me: program exited with status $ac_status" >&5
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5519 ac_cv_header_stdc=no
5521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5527 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5528 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5529 if test $ac_cv_header_stdc = yes; then
5531 cat >>confdefs.h <<\_ACEOF
5532 #define STDC_HEADERS 1
5537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5548 inttypes.h stdint.h unistd.h
5550 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 $ac_includes_default
5564 #include <$ac_header>
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5570 *) ac_try_echo
=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1
>conftest.err
5577 cat conftest.err
>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.
$ac_objext; then
5583 eval "$as_ac_Header=yes"
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.
$ac_ext >&5
5588 eval "$as_ac_Header=no"
5591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5593 ac_res
=`eval echo '${'$as_ac_Header'}'`
5594 { echo "$as_me:$LINENO: result: $ac_res" >&5
5595 echo "${ECHO_T}$ac_res" >&6; }
5596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5597 cat >>confdefs.h
<<_ACEOF
5598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615 for ac_header
in sys
/ipc.h sys
/shm.h \
5616 sys
/mmap.h sys
/mman.h sysexits.h \
5617 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
5620 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5624 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 ac_res
=`eval echo '${'$as_ac_Header'}'`
5628 { echo "$as_me:$LINENO: result: $ac_res" >&5
5629 echo "${ECHO_T}$ac_res" >&6; }
5631 # Is the header compilable?
5632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5634 cat >conftest.
$ac_ext <<_ACEOF
5637 cat confdefs.h
>>conftest.
$ac_ext
5638 cat >>conftest.
$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 #include <$ac_header>
5643 rm -f conftest.
$ac_objext
5644 if { (ac_try
="$ac_compile"
5646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5660 ac_header_compiler=yes
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 ac_header_compiler=no
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5670 echo "${ECHO_T}$ac_header_compiler" >&6; }
5672 # Is the header present?
5673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5675 cat >conftest.$ac_ext <<_ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <$ac_header>
5683 if { (ac_try="$ac_cpp conftest.$ac_ext"
5685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5686 *) ac_try_echo
=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1
>conftest.err
5693 cat conftest.err
>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } >/dev
/null
&& {
5696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5699 ac_header_preproc
=yes
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.
$ac_ext >&5
5704 ac_header_preproc
=no
5707 rm -f conftest.err conftest.
$ac_ext
5708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5709 echo "${ECHO_T}$ac_header_preproc" >&6; }
5711 # So? What about this header?
5712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5718 ac_header_preproc
=yes
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5738 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 eval "$as_ac_Header=\$ac_header_preproc"
5743 ac_res
=`eval echo '${'$as_ac_Header'}'`
5744 { echo "$as_me:$LINENO: result: $ac_res" >&5
5745 echo "${ECHO_T}$ac_res" >&6; }
5748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5749 cat >>confdefs.h
<<_ACEOF
5750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5759 for ac_header
in sys
/mount.h
5761 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5764 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.
$ac_ext <<_ACEOF
5770 cat confdefs.h
>>conftest.
$ac_ext
5771 cat >>conftest.
$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <sys/param.h>
5775 #include <$ac_header>
5777 rm -f conftest.
$ac_objext
5778 if { (ac_try
="$ac_compile"
5780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 eval "$as_ac_Header=yes"
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 eval "$as_ac_Header=no"
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 ac_res=`eval echo '${'$as_ac_Header'}'`
5805 { echo "$as_me:$LINENO: result: $ac_res" >&5
5806 echo "${ECHO_T}$ac_res" >&6; }
5807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5808 cat >>confdefs.h <<_ACEOF
5809 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5823 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5824 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5825 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5826 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 cat >conftest.$ac_ext <<_ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #include <sys/types.h>
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5852 *) ac_try_echo
=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1
>conftest.err
5859 cat conftest.err
>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.
$ac_objext; then
5865 eval "$as_ac_Header=yes"
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.
$ac_ext >&5
5870 eval "$as_ac_Header=no"
5873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5875 ac_res
=`eval echo '${'$as_ac_Header'}'`
5876 { echo "$as_me:$LINENO: result: $ac_res" >&5
5877 echo "${ECHO_T}$ac_res" >&6; }
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h
<<_ACEOF
5880 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5883 ac_header_dirent
=$ac_hdr; break
5887 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5888 if test $ac_header_dirent = dirent.h
; then
5889 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5890 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5891 if test "${ac_cv_search_opendir+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 ac_func_search_save_LIBS
=$LIBS
5895 cat >conftest.
$ac_ext <<_ACEOF
5898 cat confdefs.h
>>conftest.
$ac_ext
5899 cat >>conftest.
$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5902 /* Override any GCC internal prototype to avoid an error.
5903 Use char because int might match the return type of a GCC
5904 builtin and then its argument prototype would still apply. */
5917 for ac_lib
in '' dir
; do
5918 if test -z "$ac_lib"; then
5919 ac_res
="none required"
5922 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5924 rm -f conftest.
$ac_objext conftest
$ac_exeext
5925 if { (ac_try
="$ac_link"
5927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_link") 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 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_exeext &&
5941 $as_test_x conftest$ac_exeext; then
5942 ac_cv_search_opendir=$ac_res
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 if test "${ac_cv_search_opendir+set}" = set; then
5956 if test "${ac_cv_search_opendir+set}" = set; then
5959 ac_cv_search_opendir=no
5962 LIBS=$ac_func_search_save_LIBS
5964 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5965 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5966 ac_res=$ac_cv_search_opendir
5967 if test "$ac_res" != no; then
5968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5973 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5975 if test "${ac_cv_search_opendir+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 ac_func_search_save_LIBS=$LIBS
5979 cat >conftest.$ac_ext <<_ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5986 /* Override any GCC internal prototype to avoid an error.
5987 Use char because int might match the return type of a GCC
5988 builtin and then its argument prototype would still apply. */
6001 for ac_lib in '' x; do
6002 if test -z "$ac_lib"; then
6003 ac_res="none required"
6006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (ac_try="$ac_link"
6011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6012 *) ac_try_echo
=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_link") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest
$ac_exeext &&
6025 $as_test_x conftest
$ac_exeext; then
6026 ac_cv_search_opendir
=$ac_res
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.
$ac_ext >&5
6034 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6036 if test "${ac_cv_search_opendir+set}" = set; then
6040 if test "${ac_cv_search_opendir+set}" = set; then
6043 ac_cv_search_opendir
=no
6046 LIBS
=$ac_func_search_save_LIBS
6048 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6049 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6050 ac_res
=$ac_cv_search_opendir
6051 if test "$ac_res" != no
; then
6052 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6058 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6059 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6060 if test "${ac_cv_header_stat_broken+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 cat >conftest.
$ac_ext <<_ACEOF
6066 cat confdefs.h
>>conftest.
$ac_ext
6067 cat >>conftest.
$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <sys/types.h>
6070 #include <sys/stat.h>
6072 #if defined S_ISBLK && defined S_IFDIR
6073 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6076 #if defined S_ISBLK && defined S_IFCHR
6077 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6080 #if defined S_ISLNK && defined S_IFREG
6081 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6084 #if defined S_ISSOCK && defined S_IFREG
6085 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6089 rm -f conftest.
$ac_objext
6090 if { (ac_try
="$ac_compile"
6092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
6106 ac_cv_header_stat_broken=no
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_header_stat_broken=yes
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6117 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6118 if test $ac_cv_header_stat_broken = yes; then
6120 cat >>confdefs.h <<\_ACEOF
6121 #define STAT_MACROS_BROKEN 1
6126 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6127 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6128 if test "${ac_cv_header_stdc+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 cat >conftest.$ac_ext <<_ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6150 rm -f conftest.$ac_objext
6151 if { (ac_try="$ac_compile"
6153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6154 *) ac_try_echo
=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_compile") 2>conftest.er1
6159 grep -v '^ *+' conftest.er1
>conftest.err
6161 cat conftest.err
>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest.
$ac_objext; then
6167 ac_cv_header_stdc
=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.
$ac_ext >&5
6172 ac_cv_header_stdc
=no
6175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6177 if test $ac_cv_header_stdc = yes; then
6178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6179 cat >conftest.
$ac_ext <<_ACEOF
6182 cat confdefs.h
>>conftest.
$ac_ext
6183 cat >>conftest.
$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6189 $EGREP "memchr" >/dev
/null
2>&1; then
6192 ac_cv_header_stdc
=no
6198 if test $ac_cv_header_stdc = yes; then
6199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6200 cat >conftest.
$ac_ext <<_ACEOF
6203 cat confdefs.h
>>conftest.
$ac_ext
6204 cat >>conftest.
$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210 $EGREP "free" >/dev
/null
2>&1; then
6213 ac_cv_header_stdc
=no
6219 if test $ac_cv_header_stdc = yes; then
6220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6221 if test "$cross_compiling" = yes; then
6224 cat >conftest.
$ac_ext <<_ACEOF
6227 cat confdefs.h
>>conftest.
$ac_ext
6228 cat >>conftest.
$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6232 #if ((' ' & 0x0FF) == 0x020)
6233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6236 # define ISLOWER(c) \
6237 (('a' <= (c) && (c) <= 'i') \
6238 || ('j' <= (c) && (c) <= 'r') \
6239 || ('s' <= (c) && (c) <= 'z'))
6240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6248 for (i = 0; i < 256; i++)
6249 if (XOR (islower (i), ISLOWER (i))
6250 || toupper (i) != TOUPPER (i))
6255 rm -f conftest
$ac_exeext
6256 if { (ac_try
="$ac_link"
6258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_link") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6268 *) ac_try_echo
=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6277 echo "$as_me: program exited with status $ac_status" >&5
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.
$ac_ext >&5
6282 ac_cv_header_stdc
=no
6284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6290 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6291 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6292 if test $ac_cv_header_stdc = yes; then
6294 cat >>confdefs.h
<<\_ACEOF
6295 #define STDC_HEADERS 1
6300 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6301 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6302 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 cat >conftest.
$ac_ext <<_ACEOF
6308 cat confdefs.h
>>conftest.
$ac_ext
6309 cat >>conftest.
$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <sys/types.h>
6312 #include <sys/wait.h>
6314 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6325 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6330 rm -f conftest.
$ac_objext
6331 if { (ac_try
="$ac_compile"
6333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.$ac_objext; then
6347 ac_cv_header_sys_wait_h=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_cv_header_sys_wait_h=no
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6358 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6359 if test $ac_cv_header_sys_wait_h = yes; then
6361 cat >>confdefs.h <<\_ACEOF
6362 #define HAVE_SYS_WAIT_H 1
6367 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6369 if test "${ac_cv_header_time+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <sys/types.h>
6379 #include <sys/time.h>
6385 if ((struct tm *) 0)
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6395 *) ac_try_echo
=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_compile") 2>conftest.er1
6400 grep -v '^ *+' conftest.er1
>conftest.err
6402 cat conftest.err
>&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest.
$ac_objext; then
6408 ac_cv_header_time
=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.
$ac_ext >&5
6413 ac_cv_header_time
=no
6416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6418 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6419 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6420 if test $ac_cv_header_time = yes; then
6422 cat >>confdefs.h
<<\_ACEOF
6423 #define TIME_WITH_SYS_TIME 1
6428 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6429 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6430 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 cat >conftest.
$ac_ext <<_ACEOF
6436 cat confdefs.h
>>conftest.
$ac_ext
6437 cat >>conftest.
$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6439 $ac_includes_default
6443 static struct stat ac_aggr;
6444 if (ac_aggr.st_blksize)
6450 rm -f conftest.
$ac_objext
6451 if { (ac_try
="$ac_compile"
6453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6459 grep -v '^ *+' conftest.er1 >conftest.err
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } && {
6464 test -z "$ac_c_werror_flag" ||
6465 test ! -s conftest.err
6466 } && test -s conftest.$ac_objext; then
6467 ac_cv_member_struct_stat_st_blksize=yes
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 cat >conftest.$ac_ext <<_ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478 $ac_includes_default
6482 static struct stat ac_aggr;
6483 if (sizeof ac_aggr.st_blksize)
6489 rm -f conftest.$ac_objext
6490 if { (ac_try="$ac_compile"
6492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6493 *) ac_try_echo
=$ac_try;;
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_compile") 2>conftest.er1
6498 grep -v '^ *+' conftest.er1
>conftest.err
6500 cat conftest.err
>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.
$ac_objext; then
6506 ac_cv_member_struct_stat_st_blksize
=yes
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.
$ac_ext >&5
6511 ac_cv_member_struct_stat_st_blksize
=no
6514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6519 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6520 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6521 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6523 cat >>confdefs.h
<<_ACEOF
6524 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6528 cat >>confdefs.h
<<\_ACEOF
6529 #define HAVE_ST_BLKSIZE 1
6535 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6536 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6537 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6550 static struct stat ac_aggr;
6551 if (ac_aggr.st_blocks)
6557 rm -f conftest.
$ac_objext
6558 if { (ac_try
="$ac_compile"
6560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest.$ac_objext; then
6574 ac_cv_member_struct_stat_st_blocks=yes
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 cat >conftest.$ac_ext <<_ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 $ac_includes_default
6589 static struct stat ac_aggr;
6590 if (sizeof ac_aggr.st_blocks)
6596 rm -f conftest.$ac_objext
6597 if { (ac_try="$ac_compile"
6599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6600 *) ac_try_echo
=$ac_try;;
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.
$ac_objext; then
6613 ac_cv_member_struct_stat_st_blocks
=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.
$ac_ext >&5
6618 ac_cv_member_struct_stat_st_blocks
=no
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6627 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6628 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6630 cat >>confdefs.h
<<_ACEOF
6631 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6635 cat >>confdefs.h
<<\_ACEOF
6636 #define HAVE_ST_BLOCKS 1
6640 case " $LIBOBJS " in
6641 *" fileblocks.$ac_objext "* ) ;;
6642 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6649 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6650 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6651 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 cat >conftest.
$ac_ext <<_ACEOF
6657 cat confdefs.h
>>conftest.
$ac_ext
6658 cat >>conftest.
$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 $ac_includes_default
6664 static struct stat ac_aggr;
6665 if (ac_aggr.st_rdev)
6671 rm -f conftest.
$ac_objext
6672 if { (ac_try
="$ac_compile"
6674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_compile") 2>conftest.er1
6680 grep -v '^ *+' conftest.er1 >conftest.err
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 } && test -s conftest.$ac_objext; then
6688 ac_cv_member_struct_stat_st_rdev=yes
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 $ac_includes_default
6703 static struct stat ac_aggr;
6704 if (sizeof ac_aggr.st_rdev)
6710 rm -f conftest.$ac_objext
6711 if { (ac_try="$ac_compile"
6713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6714 *) ac_try_echo
=$ac_try;;
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_compile") 2>conftest.er1
6719 grep -v '^ *+' conftest.er1
>conftest.err
6721 cat conftest.err
>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest.
$ac_objext; then
6727 ac_cv_member_struct_stat_st_rdev
=yes
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.
$ac_ext >&5
6732 ac_cv_member_struct_stat_st_rdev
=no
6735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6740 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6741 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6742 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6744 cat >>confdefs.h
<<_ACEOF
6745 #define HAVE_STRUCT_STAT_ST_RDEV 1
6749 cat >>confdefs.h
<<\_ACEOF
6750 #define HAVE_ST_RDEV 1
6756 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6757 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6758 if test "${ac_cv_struct_tm+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.
$ac_ext <<_ACEOF
6764 cat confdefs.h
>>conftest.
$ac_ext
6765 cat >>conftest.
$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 #include <sys/types.h>
6774 int *p = &tm.tm_sec;
6780 rm -f conftest.
$ac_objext
6781 if { (ac_try
="$ac_compile"
6783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6789 grep -v '^ *+' conftest.er1 >conftest.err
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_struct_tm=time.h
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_struct_tm=sys/time.h
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6808 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6809 if test $ac_cv_struct_tm = sys/time.h; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define TM_IN_SYS_TIME 1
6817 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6818 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6819 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 cat >conftest.$ac_ext <<_ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6829 #include <$ac_cv_struct_tm>
6835 static struct tm ac_aggr;
6836 if (ac_aggr.tm_zone)
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6846 *) ac_try_echo
=$ac_try;;
6848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6849 (eval "$ac_compile") 2>conftest.er1
6851 grep -v '^ *+' conftest.er1
>conftest.err
6853 cat conftest.err
>&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } && {
6856 test -z "$ac_c_werror_flag" ||
6857 test ! -s conftest.err
6858 } && test -s conftest.
$ac_objext; then
6859 ac_cv_member_struct_tm_tm_zone
=yes
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.
$ac_ext >&5
6864 cat >conftest.
$ac_ext <<_ACEOF
6867 cat confdefs.h
>>conftest.
$ac_ext
6868 cat >>conftest.
$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <sys/types.h>
6871 #include <$ac_cv_struct_tm>
6877 static struct tm ac_aggr;
6878 if (sizeof ac_aggr.tm_zone)
6884 rm -f conftest.
$ac_objext
6885 if { (ac_try
="$ac_compile"
6887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 ac_cv_member_struct_tm_tm_zone=yes
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_member_struct_tm_tm_zone=no
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6915 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6916 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_STRUCT_TM_TM_ZONE 1
6925 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_TM_ZONE 1
6932 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6933 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6934 if test "${ac_cv_have_decl_tzname+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 cat >conftest.$ac_ext <<_ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6960 *) ac_try_echo
=$ac_try;;
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6965 grep -v '^ *+' conftest.er1
>conftest.err
6967 cat conftest.err
>&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest.
$ac_objext; then
6973 ac_cv_have_decl_tzname
=yes
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.
$ac_ext >&5
6978 ac_cv_have_decl_tzname
=no
6981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6984 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6985 if test $ac_cv_have_decl_tzname = yes; then
6987 cat >>confdefs.h
<<_ACEOF
6988 #define HAVE_DECL_TZNAME 1
6993 cat >>confdefs.h
<<_ACEOF
6994 #define HAVE_DECL_TZNAME 0
7001 { echo "$as_me:$LINENO: checking for tzname" >&5
7002 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7003 if test "${ac_cv_var_tzname+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 cat >conftest.
$ac_ext <<_ACEOF
7009 cat confdefs.h
>>conftest.
$ac_ext
7010 cat >>conftest.
$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7013 #if !HAVE_DECL_TZNAME
7014 extern char *tzname[];
7020 return tzname[0][0];
7025 rm -f conftest.
$ac_objext conftest
$ac_exeext
7026 if { (ac_try
="$ac_link"
7028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_link") 2>conftest.er1
7034 grep -v '^ *+' conftest.er1 >conftest.err
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest$ac_exeext &&
7042 $as_test_x conftest$ac_exeext; then
7043 ac_cv_var_tzname=yes
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7052 conftest$ac_exeext conftest.$ac_ext
7054 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7055 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7056 if test $ac_cv_var_tzname = yes; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_TZNAME 1
7065 { echo "$as_me:$LINENO: checking for off_t" >&5
7066 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7067 if test "${ac_cv_type_off_t+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 $ac_includes_default
7077 typedef off_t ac__type_new_;
7081 if ((ac__type_new_ *) 0)
7083 if (sizeof (ac__type_new_))
7089 rm -f conftest.$ac_objext
7090 if { (ac_try="$ac_compile"
7092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7093 *) ac_try_echo
=$ac_try;;
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_compile") 2>conftest.er1
7098 grep -v '^ *+' conftest.er1
>conftest.err
7100 cat conftest.err
>&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && {
7103 test -z "$ac_c_werror_flag" ||
7104 test ! -s conftest.err
7105 } && test -s conftest.
$ac_objext; then
7106 ac_cv_type_off_t
=yes
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.
$ac_ext >&5
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7116 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7117 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7118 if test $ac_cv_type_off_t = yes; then
7122 cat >>confdefs.h
<<_ACEOF
7123 #define off_t long int
7128 { echo "$as_me:$LINENO: checking for pid_t" >&5
7129 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7130 if test "${ac_cv_type_pid_t+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 cat >conftest.
$ac_ext <<_ACEOF
7136 cat confdefs.h
>>conftest.
$ac_ext
7137 cat >>conftest.
$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 $ac_includes_default
7140 typedef pid_t ac__type_new_;
7144 if ((ac__type_new_ *) 0)
7146 if (sizeof (ac__type_new_))
7152 rm -f conftest.
$ac_objext
7153 if { (ac_try
="$ac_compile"
7155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7169 ac_cv_type_pid_t=yes
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7180 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7181 if test $ac_cv_type_pid_t = yes; then
7185 cat >>confdefs.h <<_ACEOF
7191 { echo "$as_me:$LINENO: checking for size_t" >&5
7192 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7193 if test "${ac_cv_type_size_t+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 $ac_includes_default
7203 typedef size_t ac__type_new_;
7207 if ((ac__type_new_ *) 0)
7209 if (sizeof (ac__type_new_))
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7219 *) ac_try_echo
=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1
>conftest.err
7226 cat conftest.err
>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.
$ac_objext; then
7232 ac_cv_type_size_t
=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.
$ac_ext >&5
7237 ac_cv_type_size_t
=no
7240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7242 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7243 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7244 if test $ac_cv_type_size_t = yes; then
7248 cat >>confdefs.h
<<_ACEOF
7249 #define size_t unsigned int
7254 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7255 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7256 if test "${ac_cv_type_uid_t+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269 $EGREP "uid_t" >/dev
/null
2>&1; then
7270 ac_cv_type_uid_t
=yes
7277 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7278 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7279 if test $ac_cv_type_uid_t = no
; then
7281 cat >>confdefs.h
<<\_ACEOF
7286 cat >>confdefs.h
<<\_ACEOF
7293 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7294 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7295 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 cat >conftest.
$ac_ext <<_ACEOF
7301 cat confdefs.h
>>conftest.
$ac_ext
7302 cat >>conftest.
$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7308 static struct tm ac_aggr;
7309 if (ac_aggr.tm_gmtoff)
7315 rm -f conftest.
$ac_objext
7316 if { (ac_try
="$ac_compile"
7318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7324 grep -v '^ *+' conftest.er1 >conftest.err
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest.$ac_objext; then
7332 ac_cv_member_struct_tm_tm_gmtoff=yes
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7347 static struct tm ac_aggr;
7348 if (sizeof ac_aggr.tm_gmtoff)
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7358 *) ac_try_echo
=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1
>conftest.err
7365 cat conftest.err
>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.
$ac_objext; then
7371 ac_cv_member_struct_tm_tm_gmtoff
=yes
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.
$ac_ext >&5
7376 ac_cv_member_struct_tm_tm_gmtoff
=no
7379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7384 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7385 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7386 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7388 cat >>confdefs.h
<<_ACEOF
7389 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7396 # Look for some functions
7411 for ac_func
in getpagesize kqueue statfs statvfs \
7412 clone kse_create rfork_thread thr_create sa_register \
7413 getcontext makecontext setcontext sigaltstack swapcontext
7415 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7418 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7429 #define $ac_func innocuous_$ac_func
7431 /* System header to define __stub macros and hopefully few prototypes,
7432 which can conflict with char $ac_func (); below.
7433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7434 <limits.h> exists even on freestanding compilers. */
7437 # include <limits.h>
7439 # include <assert.h>
7444 /* Override any GCC internal prototype to avoid an error.
7445 Use char because int might match the return type of a GCC
7446 builtin and then its argument prototype would still apply. */
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined __stub_$ac_func || defined __stub___$ac_func
7466 rm -f conftest.
$ac_objext conftest
$ac_exeext
7467 if { (ac_try
="$ac_link"
7469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473 (eval "$ac_link") 2>conftest.er1
7475 grep -v '^ *+' conftest.er1 >conftest.err
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest$ac_exeext &&
7483 $as_test_x conftest$ac_exeext; then
7484 eval "$as_ac_var=yes"
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 eval "$as_ac_var=no"
7492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7493 conftest$ac_exeext conftest.$ac_ext
7495 ac_res=`eval echo '${'$as_ac_var'}'`
7496 { echo "$as_me:$LINENO: result: $ac_res" >&5
7497 echo "${ECHO_T}$ac_res" >&6; }
7498 if test `eval echo '${'$as_ac_var'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
7509 for ac_header in stdlib.h unistd.h
7511 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 ac_res=`eval echo '${'$as_ac_Header'}'`
7519 { echo "$as_me:$LINENO: result: $ac_res" >&5
7520 echo "${ECHO_T}$ac_res" >&6; }
7522 # Is the header compilable?
7523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 $ac_includes_default
7532 #include <$ac_header>
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7538 *) ac_try_echo
=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1
>conftest.err
7545 cat conftest.err
>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.
$ac_objext; then
7551 ac_header_compiler
=yes
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.
$ac_ext >&5
7556 ac_header_compiler
=no
7559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7561 echo "${ECHO_T}$ac_header_compiler" >&6; }
7563 # Is the header present?
7564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7566 cat >conftest.
$ac_ext <<_ACEOF
7569 cat confdefs.h
>>conftest.
$ac_ext
7570 cat >>conftest.
$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <$ac_header>
7574 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } >/dev/null && {
7587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7590 ac_header_preproc=yes
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_preproc=no
7598 rm -f conftest.err conftest.$ac_ext
7599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7600 echo "${ECHO_T}$ac_header_preproc" >&6; }
7602 # So? What about this header?
7603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7609 ac_header_preproc=yes
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 eval "$as_ac_Header=\$ac_header_preproc"
7634 ac_res=`eval echo '${'$as_ac_Header'}'`
7635 { echo "$as_me:$LINENO: result: $ac_res" >&5
7636 echo "${ECHO_T}$ac_res" >&6; }
7639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7640 cat >>confdefs.h <<_ACEOF
7641 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7649 for ac_func in getpagesize
7651 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7665 #define $ac_func innocuous_$ac_func
7667 /* System header to define __stub macros and hopefully few prototypes,
7668 which can conflict with char $ac_func (); below.
7669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7670 <limits.h> exists even on freestanding compilers. */
7673 # include <limits.h>
7675 # include <assert.h>
7680 /* Override any GCC internal prototype to avoid an error.
7681 Use char because int might match the return type of a GCC
7682 builtin and then its argument prototype would still apply. */
7687 /* The GNU C library defines this for functions which it implements
7688 to always fail with ENOSYS. Some functions are actually named
7689 something starting with __ and the normal name is an alias. */
7690 #if defined __stub_$ac_func || defined __stub___$ac_func
7702 rm -f conftest.$ac_objext conftest$ac_exeext
7703 if { (ac_try="$ac_link"
7705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7706 *) ac_try_echo
=$ac_try;;
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_link") 2>conftest.er1
7711 grep -v '^ *+' conftest.er1
>conftest.err
7713 cat conftest.err
>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest
$ac_exeext &&
7719 $as_test_x conftest
$ac_exeext; then
7720 eval "$as_ac_var=yes"
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7725 eval "$as_ac_var=no"
7728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7729 conftest
$ac_exeext conftest.
$ac_ext
7731 ac_res
=`eval echo '${'$as_ac_var'}'`
7732 { echo "$as_me:$LINENO: result: $ac_res" >&5
7733 echo "${ECHO_T}$ac_res" >&6; }
7734 if test `eval echo '${'$as_ac_var'}'` = yes; then
7735 cat >>confdefs.h
<<_ACEOF
7736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7742 { echo "$as_me:$LINENO: checking for working mmap" >&5
7743 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7744 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 if test "$cross_compiling" = yes; then
7748 ac_cv_func_mmap_fixed_mapped
=no
7750 cat >conftest.
$ac_ext <<_ACEOF
7753 cat confdefs.h
>>conftest.
$ac_ext
7754 cat >>conftest.
$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 /* malloc might have been renamed as rpl_malloc. */
7760 /* Thanks to Mike Haertel and Jim Avera for this test.
7761 Here is a matrix of mmap possibilities:
7762 mmap private not fixed
7763 mmap private fixed at somewhere currently unmapped
7764 mmap private fixed at somewhere already mapped
7765 mmap shared not fixed
7766 mmap shared fixed at somewhere currently unmapped
7767 mmap shared fixed at somewhere already mapped
7768 For private mappings, we should verify that changes cannot be read()
7769 back from the file, nor mmap's back from the file at a different
7770 address. (There have been systems where private was not correctly
7771 implemented like the infamous i386 svr4.0, and systems where the
7772 VM page cache was not coherent with the file system buffer cache
7773 like early versions of FreeBSD and possibly contemporary NetBSD.)
7774 For shared mappings, we should conversely verify that changes get
7775 propagated back to all the places they're supposed to be.
7777 Grep wants private fixed already mapped.
7778 The main things grep needs to know about mmap are:
7779 * does it exist and is it safe to write into the mmap'd area
7780 * how to use it (BSD variants) */
7783 #include <sys/mman.h>
7785 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7789 /* This mess was copied from the GNU getpagesize.h. */
7790 #ifndef HAVE_GETPAGESIZE
7791 /* Assume that all systems that can run configure have sys/param.h. */
7792 # ifndef HAVE_SYS_PARAM_H
7793 # define HAVE_SYS_PARAM_H 1
7796 # ifdef _SC_PAGESIZE
7797 # define getpagesize() sysconf(_SC_PAGESIZE)
7798 # else /* no _SC_PAGESIZE */
7799 # ifdef HAVE_SYS_PARAM_H
7800 # include <sys/param.h>
7801 # ifdef EXEC_PAGESIZE
7802 # define getpagesize() EXEC_PAGESIZE
7803 # else /* no EXEC_PAGESIZE */
7805 # define getpagesize() NBPG * CLSIZE
7808 # endif /* no CLSIZE */
7809 # else /* no NBPG */
7811 # define getpagesize() NBPC
7812 # else /* no NBPC */
7814 # define getpagesize() PAGESIZE
7815 # endif /* PAGESIZE */
7816 # endif /* no NBPC */
7817 # endif /* no NBPG */
7818 # endif /* no EXEC_PAGESIZE */
7819 # else /* no HAVE_SYS_PARAM_H */
7820 # define getpagesize() 8192 /* punt totally */
7821 # endif /* no HAVE_SYS_PARAM_H */
7822 # endif /* no _SC_PAGESIZE */
7824 #endif /* no HAVE_GETPAGESIZE */
7829 char *data, *data2, *data3;
7833 pagesize = getpagesize ();
7835 /* First, make a file with some known garbage in it. */
7836 data = (char *) malloc (pagesize);
7839 for (i = 0; i < pagesize; ++i)
7840 *(data + i) = rand ();
7842 fd = creat ("conftest.mmap", 0600);
7845 if (write (fd, data, pagesize) != pagesize)
7849 /* Next, try to mmap the file at a fixed address which already has
7850 something else allocated at it. If we can, also make sure that
7851 we see the same garbage. */
7852 fd = open ("conftest.mmap", O_RDWR);
7855 data2 = (char *) malloc (2 * pagesize);
7858 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7859 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7860 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7862 for (i = 0; i < pagesize; ++i)
7863 if (*(data + i) != *(data2 + i))
7866 /* Finally, make sure that changes to the mapped area do not
7867 percolate back to the file as seen by read(). (This is a bug on
7868 some variants of i386 svr4.0.) */
7869 for (i = 0; i < pagesize; ++i)
7870 *(data2 + i) = *(data2 + i) + 1;
7871 data3 = (char *) malloc (pagesize);
7874 if (read (fd, data3, pagesize) != pagesize)
7876 for (i = 0; i < pagesize; ++i)
7877 if (*(data + i) != *(data3 + i))
7883 rm -f conftest
$ac_exeext
7884 if { (ac_try
="$ac_link"
7886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_link") 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7896 *) ac_try_echo
=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_func_mmap_fixed_mapped
=yes
7905 echo "$as_me: program exited with status $ac_status" >&5
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.
$ac_ext >&5
7910 ac_cv_func_mmap_fixed_mapped
=no
7912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7917 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7918 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7921 cat >>confdefs.h
<<\_ACEOF
7931 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7932 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7933 aros_config_ldflags
=""
7935 aros_shared_default
=yes
7937 aros_shared_cflags
="-fPIC"
7938 aros_shared_aflags
=""
7939 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7940 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7942 aros_target_ar_flags
="cr"
7943 aros_target_nm_flags
="-C -ul"
7944 aros_target_strip_flags
="--strip-unneeded -R.comment"
7949 aros_target_genmap
="-Wl,-Map -Xlinker"
7951 # Native flavour stuff
7952 aros_serial_debug
="0"
7954 # Palm native flavour stuff
7955 aros_palm_debug_hack
="0"
7957 # Unix flavour stuff
7958 aros_nesting_supervisor
="0"
7960 # Collect-aros stuff: "-ius" to ignore undefined symbols
7961 ignore_undefined_symbols
=""
7963 #-----------------------------------------------------------------------------
7966 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7967 # it switched on by default, and we use the host compiler, so it compiles AROS
7968 # code with this enabled resulting in link failures as we don't have support
7971 # We use two methods to disable it. For the host compiler (used to compile
7972 # some hosted modules), we test to see if the compiler supports stack
7973 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7974 # work on all platforms.
7976 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7977 # (this is done unconditionally, as it should have no effect on compilers
7978 # without the stack protection feature). This may be specific to the way that
7979 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7980 # strong enough to disable it in a generic way though, so we'll live with it
7981 # until another vendor ships GCC with it enabled in a different way, and deal
7985 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7986 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7987 save_cflags
="$CFLAGS"
7988 CFLAGS
="$CFLAGS -fno-stack-protector"
7989 cat >conftest.
$ac_ext <<_ACEOF
7992 cat confdefs.h
>>conftest.
$ac_ext
7993 cat >>conftest.
$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
8004 rm -f conftest.
$ac_objext
8005 if { (ac_try
="$ac_compile"
8007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 use_no_stack_protector="yes"
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 use_no_stack_protector="no"
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8031 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8032 if test "x-$use_no_stack_protector" = "x-yes" ; then
8033 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8035 CFLAGS="$save_cflags"
8037 #-----------------------------------------------------------------------------
8039 # Disable pointer-signedness warnings if the compiler recognises the option
8040 # (this only works for the host compiler at the moment)
8042 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8043 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8044 save_cflags="$CFLAGS"
8045 CFLAGS="$CFLAGS -Wno-pointer-sign"
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8065 *) ac_try_echo
=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1
>conftest.err
8072 cat conftest.err
>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.
$ac_objext; then
8078 use_no_sign_warning
="yes"
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.
$ac_ext >&5
8083 use_no_sign_warning
="no"
8086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8087 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8088 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8089 if test "x-$use_no_sign_warning" = "x-yes" ; then
8090 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
8092 CFLAGS
="$save_cflags"
8094 #-----------------------------------------------------------------------------
8096 { echo "$as_me:$LINENO: checking for type of build" >&5
8097 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8098 # Check whether --enable-build_type was given.
8099 if test "${enable_build_type+set}" = set; then
8100 enableval
=$enable_build_type; build_type
=$enableval
8102 build_type
="personal"
8106 if test "$build_type" = "nightly"; then
8107 build_type_string
="NIGHTLY"
8108 elif test "$build_type" = "snapshot"; then
8109 build_type_string
="SNAPSHOT"
8110 elif test "$build_type" = "milestone"; then
8111 build_type_string
="MILESTONE"
8112 elif test "$build_type" = "release"; then
8113 build_type_string
="RELEASE"
8115 build_type_string
="PERSONAL"
8116 build_type
="personal"
8119 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8121 { echo "$as_me:$LINENO: result: $build_type" >&5
8122 echo "${ECHO_T}$build_type" >&6; }
8124 #-----------------------------------------------------------------------------
8125 all_debug_types
="messages stack modules mungwall symbols"
8127 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8128 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8129 # Check whether --enable-debug was given.
8130 if test "${enable_debug+set}" = set; then
8131 enableval
=$enable_debug; debug
="$enableval"
8137 if test "$debug" = "" -o "$debug" = "no"; then
8139 elif test "$debug" = "yes"; then
8143 if test "$debug" = "all" ; then
8144 debug
="messages stack modules symbols"
8145 for d
in $all_debug_types; do
8146 export aros_
${d}_debug
="1"
8149 for d
in $all_debug_types; do
8150 export aros_
${d}_debug
="0"
8154 if test "$debug" != "none"; then
8155 debug
=`echo $debug | sed s/,/\ /g`
8158 for d2
in $all_debug_types; do
8159 if test "$d2" = "$d"; then
8164 if test "$found" = "0"; then
8165 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8166 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8167 { (exit 1); exit 1; }; }
8169 export aros_
${d}_debug
="1"
8173 { echo "$as_me:$LINENO: result: $debug" >&5
8174 echo "${ECHO_T}$debug" >&6; }
8176 if test "$aros_messages_debug" = "1"; then
8177 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
8179 aros_messages_debug
=""
8181 if test "$aros_symbols_debug" = "1"; then
8182 aros_symbols_debug
="-g"
8184 aros_symbols_debug
=""
8187 # These are the flags to pass when compiling debugged programs
8188 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8189 aros_debug_aflags
=""
8190 aros_debug_ldflags
="$aros_symbols_debug"
8192 aros_crosstools
="no"
8194 #-----------------------------------------------------------------------------
8195 # Checking if we should build crosstools..
8196 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8197 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8198 # Check whether --enable-crosstools was given.
8199 if test "${enable_crosstools+set}" = set; then
8200 enableval
=$enable_crosstools; crosstools
="$enableval"
8205 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8206 { echo "$as_me:$LINENO: result: yes" >&5
8207 echo "${ECHO_T}yes" >&6; }
8208 aros_crosstools
="yes"
8210 { echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6; }
8214 #-----------------------------------------------------------------------------
8215 # Checking for distcc and ccache.
8217 # Always apply the transforms in this particular order. Basically you should
8218 # always run 'ccache distcc compiler' in that order for the best performance.
8220 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8221 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8222 # Check whether --enable-distcc was given.
8223 if test "${enable_distcc+set}" = set; then
8224 enableval
=$enable_distcc; distcc
="$enableval"
8229 if test "$distcc" != "" -a "$distcc" != "no"; then
8230 # AC_CHECK_PROG will print out the result in this case
8231 # Extract the first word of "distcc", so it can be a program name with args.
8232 set dummy distcc
; ac_word
=$2
8233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8235 if test "${ac_cv_path_DISTCC+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
8243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8247 test -z "$as_dir" && as_dir
=.
8248 for ac_exec_ext
in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
8251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
8262 DISTCC
=$ac_cv_path_DISTCC
8263 if test -n "$DISTCC"; then
8264 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8265 echo "${ECHO_T}$DISTCC" >&6; }
8267 { echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6; }
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8277 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8278 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8279 # Check whether --enable-ccache was given.
8280 if test "${enable_ccache+set}" = set; then
8281 enableval
=$enable_ccache; ccache
="$enableval"
8286 if test "$ccache" != "" -a "$ccache" != "no"; then
8287 # AC_CHECK_PROG will print out the result in this case
8288 # Extract the first word of "ccache", so it can be a program name with args.
8289 set dummy ccache
; ac_word
=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_prog_CCACHE+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 if test -n "$CCACHE"; then
8296 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
8298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8302 test -z "$as_dir" && as_dir
=.
8303 for ac_exec_ext
in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8305 ac_cv_prog_CCACHE
="ccache"
8306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 CCACHE
=$ac_cv_prog_CCACHE
8316 if test -n "$CCACHE"; then
8317 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8318 echo "${ECHO_T}$CCACHE" >&6; }
8320 { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8326 { echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; }
8330 #-----------------------------------------------------------------------------
8331 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8332 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8334 # Check whether --with-gcc-version was given.
8335 if test "${with_gcc_version+set}" = set; then
8336 withval
=$with_gcc_version; target_tool_version
="$withval"
8338 target_tool_version
="default"
8341 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8342 echo "${ECHO_T}$target_tool_version" >&6; }
8344 #-----------------------------------------------------------------------------
8345 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8346 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8348 # Check whether --with-optimization was given.
8349 if test "${with_optimization+set}" = set; then
8350 withval
=$with_optimization; optimization
="$withval"
8352 optimization
="unknown"
8355 if test "$optimization" = "unknown"; then
8356 if test "$debug" != "none"; then
8362 aros_config_cflags
="$aros_config_cflags $optimization"
8363 { echo "$as_me:$LINENO: result: $optimization" >&5
8364 echo "${ECHO_T}$optimization" >&6; }
8366 #-----------------------------------------------------------------------------
8367 { echo "$as_me:$LINENO: checking what paranoia flags to use" >&5
8368 echo $ECHO_N "checking what paranoia flags to use... $ECHO_C" >&6; }
8370 # Check whether --with-paranoia was given.
8371 if test "${with_paranoia+set}" = set; then
8372 withval
=$with_paranoia; paranoia_flags
="$withval"
8374 paranoia_flags
="default"
8377 if test "$paranoia_flags" = "default"; then
8379 else if test "$paranoia_flags" = "yes"; then
8380 paranoia_flags
="-Wall -Werror"
8382 { echo "$as_me:$LINENO: result: $paranoia_flags" >&5
8383 echo "${ECHO_T}$paranoia_flags" >&6; }
8384 aros_paranoia_cflags
="$paranoia_flags"
8386 #-----------------------------------------------------------------------------
8387 if test "$target_os" = "ios"; then
8389 { echo "$as_me:$LINENO: checking XCode path" >&5
8390 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8392 # Check whether --with-xcode-path was given.
8393 if test "${with_xcode_path+set}" = set; then
8394 withval
=$with_xcode_path; aros_xcode_path
="$withval"
8396 aros_xcode_path
="/Developer"
8399 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8400 echo "${ECHO_T}$aros_xcode_path" >&6; }
8402 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8403 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8405 # Check whether --with-ios-version was given.
8406 if test "${with_ios_version+set}" = set; then
8407 withval
=$with_ios_version; aros_ios_version
="$withval"
8409 aros_ios_version
="2.0"
8412 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8413 echo "${ECHO_T}$aros_ios_version" >&6; }
8415 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8416 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8418 # Check whether --with-ios-sdk was given.
8419 if test "${with_ios_sdk+set}" = set; then
8420 withval
=$with_ios_sdk; aros_ios_sdk
="$withval"
8425 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8426 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8430 #-----------------------------------------------------------------------------
8431 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8432 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8433 # Check whether --enable-target_variant was given.
8434 if test "${enable_target_variant+set}" = set; then
8435 enableval
=$enable_target_variant; target_variant
=$enableval
8440 if test "$target_variant" = ""; then
8441 aros_target_variant
=""
8442 aros_target_suffix
=""
8445 aros_target_variant
="$target_variant"
8446 aros_target_suffix
="-$target_variant"
8448 { echo "$as_me:$LINENO: result: $enableval" >&5
8449 echo "${ECHO_T}$enableval" >&6; }
8451 target_bootloader
="none"
8453 #-----------------------------------------------------------------------------
8454 # This is the target configuration switch.
8455 case "$target_os" in
8457 aros_target_arch
="linux"
8458 aros_target_family
="unix"
8459 case "$target_cpu" in
8461 aros_target_cpu
="m68k"
8462 aros_object_format
="m68kelf"
8463 aros_flavour
="emulcompat"
8464 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8465 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8466 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8467 gcc_target_cpu
="mc68000"
8470 aros_target_cpu
="i386"
8471 aros_object_format
="elf_i386"
8472 aros_flavour
="emulation"
8473 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8474 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
8475 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
8476 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
8477 aros_config_ldflags
="-m32 -march=i486"
8478 aros_kernel_ldflags
="-melf_i386"
8479 aros_default_wbdepth
=8
8480 gcc_target_cpu
="i386"
8483 aros_target_cpu
="x86_64"
8484 aros_object_format
="elf_x86_64"
8485 aros_flavour
="emulation"
8486 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8487 aros_config_cflags
="$aros_config_cflags -mno-red-zone"
8488 aros_default_wbdepth
=8
8489 gcc_target_cpu
="x86_64"
8492 aros_target_cpu
="ppc"
8493 aros_object_format
="elf32ppc"
8494 aros_flavour
="emulation"
8495 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8496 aros_default_wbdepth
=8
8497 gcc_target_cpu
="ppc"
8500 # Same as powerpc, but I need this for the nightly build to work again.
8501 # Actually, the nightly should be made working with powerpc target.
8502 # That just was too much work for the moment, another week or two.
8504 aros_target_cpu
="ppc"
8505 aros_object_format
="elf32ppc"
8506 aros_flavour
="emulation"
8507 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8508 aros_default_wbdepth
=8
8509 gcc_target_cpu
="ppc"
8512 aros_target_cpu
="arm"
8513 aros_object_format
="armelf_linux_eabi"
8514 aros_flavour
="emulation"
8515 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8516 gcc_target_cpu
="arm"
8517 aros_config_cflags
="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8518 aros_config_aflags
="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8521 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8522 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8523 { (exit 1); exit 1; }; }
8529 aros_target_arch
="pc"
8530 aros_shared_default
="no"
8531 target_bootloader
="grub2"
8532 case "$target_cpu" in
8534 aros_target_cpu
="i386"
8537 if test "$aros_object_format" = "" ; then
8538 aros_object_format
="elf_i386"
8540 aros_flavour
="standalone"
8541 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8542 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
8543 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
8544 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
8545 aros_config_ldflags
="-m32 -march=i486"
8546 aros_kernel_ldflags
="-melf_i386"
8547 aros_default_wbwidth
=640
8548 aros_default_wbheight
=480
8549 gcc_target_cpu
="i386"
8552 aros_target_cpu
="x86_64"
8554 if test "$aros_object_format" = "" ; then
8555 aros_object_format
="elf_x86_64"
8557 aros_flavour
="standalone"
8558 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8559 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8560 aros_kernel_ldflags
=""
8561 aros_default_wbwidth
=640
8562 aros_default_wbheight
=480
8563 gcc_target_cpu
="x86_64"
8566 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8567 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8568 { (exit 1); exit 1; }; }
8574 aros_target_arch
="prep"
8575 aros_shared_default
="no"
8576 aros_target_cpu
="ppc"
8577 aros_object_format
="elf32ppc"
8578 aros_flavour
="ppcnative"
8579 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8580 aros_kernel_ldflags
=""
8581 aros_default_wbwidth
=640
8582 aros_default_wbheight
=480
8583 gcc_target_cpu
="ppc"
8587 aros_target_arch
="freebsd"
8588 aros_target_family
="unix"
8589 aros_target_cpu
="i386"
8590 aros_flavour
="emulation"
8591 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8592 gcc_target_cpu
="i386"
8594 aros_target_strip_flags
="-x"
8598 aros_target_arch
="darwin"
8599 aros_target_family
="unix"
8600 aros_flavour
="emulation"
8601 case "$target_cpu" in
8603 aros_target_cpu
="i386"
8604 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8605 aros_kernel_cflags
="$aros_kernel_cflags -m32"
8606 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
8607 aros_default_wbdepth
=8
8608 gcc_target_cpu
="i386"
8609 aros_object_format
="elf_i386"
8610 aros_target_strip_flags
="-x"
8611 aros_target_cc
="i386-aros-gcc"
8612 aros_target_cxx
="i386-aros-g++"
8613 aros_target_ld
="i386-aros-ld"
8614 aros_target_as
="i386-aros-as"
8615 aros_target_ar
="i386-aros-ar"
8616 aros_target_ranlib
="i386-aros-ranlib"
8617 aros_target_nm
="i386-aros-nm"
8618 aros_target_strip
="i386-aros-strip"
8619 aros_target_objcopy
="i386-aros-objcopy"
8620 aros_target_objdump
="i386-aros-objdump"
8621 target_tool_prefix
="i686-apple-darwin10-"
8624 aros_target_cpu
="x86_64"
8625 aros_object_format
="elf_x86_64"
8626 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8627 aros_kernel_cflags
="$aros_kernel_cflags -m64"
8628 aros_kernel_ldflags
="$aros_kernel_ldflags -m64"
8629 aros_default_wbdepth
=8
8630 gcc_target_cpu
="x86_64"
8631 aros_target_cc
="x86_64-aros-gcc"
8632 aros_target_cxx
="x86_64-aros-g++"
8633 aros_target_ld
="x86_64-aros-ld"
8634 aros_target_as
="x86_64-aros-as"
8635 aros_target_ar
="x86_64-aros-ar"
8636 aros_target_ranlib
="x86_64-aros-ranlib"
8637 aros_target_nm
="x86_64-aros-nm"
8638 aros_target_strip
="x86_64-aros-strip"
8639 aros_target_objcopy
="x86_64-aros-objcopy"
8640 aros_target_objdump
="x86_64-aros-objdump"
8641 target_tool_prefix
="i686-apple-darwin10-"
8644 aros_target_cpu
="ppc"
8645 aros_object_format
="elf32_ppc"
8646 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8647 aros_default_wbdepth
=8
8648 gcc_target_cpu
="ppc"
8649 aros_target_cc
="ppc-aros-gcc"
8650 aros_target_cxx
="ppc-aros-g++"
8651 aros_target_ld
="ppc-aros-ld"
8652 aros_target_as
="ppc-aros-as"
8653 aros_target_ar
="ppc-aros-ar"
8654 aros_target_ranlib
="ppc-aros-ranlib"
8655 aros_target_nm
="ppc-aros-nm"
8656 aros_target_strip
="ppc-aros-strip"
8657 aros_target_objcopy
="ppc-aros-objcopy"
8658 aros_target_objdump
="ppc-aros-objdump"
8659 target_tool_prefix
="powerpc-apple-darwin10-"
8662 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8663 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8664 { (exit 1); exit 1; }; }
8670 aros_target_arch
="ios"
8671 aros_target_family
="unix"
8672 aros_flavour
="emulation"
8673 # This is here because it may depend on iOS or SDK version
8674 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8675 case "$target_cpu" in
8677 aros_ios_platform
="iPhoneSimulator"
8678 aros_target_cpu
="i386"
8679 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8680 aros_default_wbdepth
=8
8681 gcc_target_cpu
="i386"
8682 aros_object_format
="elf_i386"
8683 aros_target_strip_flags
="-x"
8684 aros_target_cc
="i386-aros-gcc"
8685 aros_target_cxx
="i386-aros-g++"
8686 aros_target_ld
="i386-aros-ld"
8687 aros_target_as
="i386-aros-as"
8688 aros_target_ar
="i386-aros-ar"
8689 aros_target_ranlib
="i386-aros-ranlib"
8690 aros_target_nm
="i386-aros-nm"
8691 aros_target_strip
="i386-aros-strip"
8692 aros_target_objcopy
="i386-aros-objcopy"
8693 aros_target_objdump
="i386-aros-objdump"
8694 target_tool_prefix
="i686-apple-darwin10-"
8695 target_tool_flags
="-m32"
8698 aros_ios_platform
="iPhoneOS"
8699 aros_target_cpu
="arm"
8700 aros_object_format
="armelf_linux_eabi"
8701 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8702 aros_config_cflags
="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8703 aros_config_aflags
="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8704 aros_arch_libs
="-laeabi"
8705 aros_default_wbdepth
=8
8706 gcc_target_cpu
="arm"
8707 aros_kernel_ld
="ld -arch armv6"
8708 aros_target_cc
="arm-aros-gcc"
8709 aros_target_cxx
="arm-aros-g++"
8710 aros_target_ld
="arm-aros-ld"
8711 aros_target_as
="arm-aros-as"
8712 aros_target_ar
="arm-aros-ar"
8713 aros_target_ranlib
="arm-aros-ranlib"
8714 aros_target_nm
="arm-aros-nm"
8715 aros_target_strip
="arm-aros-strip"
8716 aros_target_objcopy
="arm-aros-objcopy"
8717 aros_target_objdump
="arm-aros-objdump"
8718 target_tool_prefix
="arm-apple-darwin10-"
8719 aros_default_wbwidth
=320
8720 aros_default_wbheight
=480
8721 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8724 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8725 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8726 { (exit 1); exit 1; }; }
8729 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8730 target_tool_flags
="$target_tool_flags --sysroot $aros_ios_sdk"
8734 aros_target_arch
="dragonfly"
8735 aros_target_family
="unix"
8736 aros_flavour
="emulation"
8737 case "$target_cpu" in
8739 aros_target_cpu
="i386"
8740 aros_object_format
="elf_i386"
8741 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8744 aros_target_cpu
="x86_64"
8745 aros_object_format
="elf_x86_64"
8746 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8749 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8750 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8751 { (exit 1); exit 1; }; }
8757 aros_target_arch
="netbsd"
8758 aros_target_family
="unix"
8759 case "$target_cpu" in
8761 aros_target_cpu
="m68k"
8762 aros_object_format
="m68kelf"
8763 aros_flavour
="emulcompat"
8764 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8765 gcc_target_cpu
="mc68000"
8768 aros_target_cpu
="i386"
8769 aros_object_format
="elf_i386"
8770 aros_flavour
="emulation"
8771 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8772 aros_default_wbdepth
=8
8773 gcc_target_cpu
="i386"
8776 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8777 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8778 { (exit 1); exit 1; }; }
8781 aros_target_genmap
="-Wl,-M -Xlinker >"
8782 aros_flavour
="emulation"
8783 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8787 aros_target_arch
="openbsd"
8788 aros_target_family
="unix"
8789 case "$target_cpu" in
8791 aros_target_cpu
="i386"
8792 aros_object_format
="elf_i386"
8793 aros_flavour
="emulation"
8794 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8795 gcc_target_cpu
="i386"
8798 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8799 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8800 { (exit 1); exit 1; }; }
8803 aros_target_genmap
="-Wl,-M -Xlinker >"
8804 aros_target_nm_flags
="-u"
8805 aros_flavour
="emulation"
8809 aros_target_arch
="solaris"
8810 aros_target_family
="unix"
8811 case "$target_cpu" in
8813 aros_target_cpu
="i386"
8814 aros_object_format
="elf_i386"
8815 aros_flavour
="emulation"
8816 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8817 aros_default_wbdepth
=8
8818 gcc_target_cpu
="i386"
8821 aros_target_cpu
="sparc"
8822 aros_object_format
="elf_sparc"
8823 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8824 gcc_target_cpu
="sparc"
8827 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8828 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8829 { (exit 1); exit 1; }; }
8832 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8833 aros_flavour
="emulation"
8837 aros_target_arch
="morphos"
8838 aros_shared_default
="no"
8839 aros_target_cpu
="ppc"
8840 aros_object_format
="elf_ppc"
8841 aros_flavour
="nativecompat"
8842 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8843 gcc_target_cpu
="ppc"
8847 aros_target_arch
="sam440"
8848 aros_shared_default
="no"
8849 aros_target_cpu
="ppc"
8850 aros_object_format
="elf32ppc"
8851 aros_flavour
="ppcnative"
8852 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8853 aros_kernel_ldflags
=""
8854 aros_default_wbwidth
=1024
8855 aros_default_wbheight
=768
8856 aros_default_wbdepth
=24
8857 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8858 gcc_target_cpu
="powerpc"
8862 aros_target_arch
="efika"
8863 aros_shared_default
="no"
8864 aros_target_cpu
="arm"
8865 aros_object_format
="armelf_linux_eabi"
8866 aros_flavour
="standalone"
8867 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8868 aros_kernel_ldflags
=""
8869 aros_default_wbwidth
=1024
8870 aros_default_wbheight
=600
8871 aros_arch_libs
="-laeabi"
8872 aros_config_cflags
="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8873 aros_config_aflags
="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8877 aros_target_arch
="chrp"
8878 aros_shared_default
="no"
8879 aros_target_cpu
="ppc"
8880 aros_object_format
="elf32ppc"
8881 aros_flavour
="ppcnative"
8882 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8883 aros_kernel_ldflags
=""
8884 aros_default_wbwidth
=640
8885 aros_default_wbheight
=480
8886 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8887 gcc_target_cpu
="powerpc"
8888 case "$aros_target_variant" in
8890 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8896 aros_target_arch
="amiga"
8897 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8898 aros_shared_default
="no"
8900 case "$target_cpu" in
8902 aros_target_cpu
="m68k"
8903 aros_object_format
="m68kelf"
8904 aros_flavour
="standalone"
8905 gcc_target_cpu
="mc68000"
8906 aros_config_cflags
="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8907 aros_config_aflags
="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8908 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8909 target_tool_prefix
="m68k-elf-"
8910 aros_target_nostdlib_ldflags
="" # We always need -lgcc
8911 aros_target_strip_flags
="-R.comment"
8914 aros_target_cpu
="m68k"
8915 aros_object_format
="m68kelf"
8916 aros_flavour
="standcompat"
8917 gcc_target_cpu
="mc68000"
8918 aros_config_cflags
="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8919 aros_config_aflags
="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8920 aros_paranoia_cflags
="$aros_paranoia_cflags -Wno-volatile-register-var"
8921 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8922 target_tool_prefix
="m68k-elf-"
8923 aros_target_nostdlib_ldflags
="" # We always need -lgcc
8924 aros_target_strip_flags
="-R.comment"
8928 aros_flavour
="native"
8929 gcc_target_cpu
="ppc"
8932 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8933 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8934 { (exit 1); exit 1; }; }
8940 aros_target_arch
="mingw32"
8941 aros_shared_default
="no"
8942 aros_flavour
="emulation"
8943 aros_shared_cflags
=""
8946 case "$target_cpu" in
8948 aros_target_cpu
="i386"
8949 aros_object_format
="elf_i386"
8950 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8951 aros_default_wbdepth
=8
8952 gcc_target_cpu
="i386"
8953 aros_target_cc
="i386-aros-gcc"
8954 aros_target_cxx
="i386-aros-g++"
8955 aros_target_ld
="i386-aros-ld"
8956 aros_target_as
="i386-aros-as"
8957 aros_target_ar
="i386-aros-ar"
8958 aros_target_ranlib
="i386-aros-ranlib"
8959 aros_target_nm
="i386-aros-nm"
8960 aros_target_strip
="i386-aros-strip"
8961 aros_target_objcopy
="i386-aros-objcopy"
8962 aros_target_objdump
="i386-aros-objdump"
8963 target_tool_prefix
="i386-mingw32-"
8966 aros_target_cpu
="x86_64"
8967 aros_object_format
="elf_x86_64"
8968 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8969 aros_default_wbdepth
=8
8970 gcc_target_cpu
="x86_64"
8971 aros_target_cc
="x86_64-aros-gcc"
8972 aros_target_cxx
="x86_64-aros-g++"
8973 aros_target_ld
="x86_64-aros-ld"
8974 aros_target_as
="x86_64-aros-as"
8975 aros_target_ar
="x86_64-aros-ar"
8976 aros_target_ranlib
="x86_64-aros-ranlib"
8977 aros_target_nm
="x86_64-aros-nm"
8978 aros_target_strip
="x86_64-aros-strip"
8979 aros_target_objcopy
="x86_64-aros-objcopy"
8980 aros_target_objdump
="x86_64-aros-objdump"
8981 target_tool_prefix
="x86_64-w64-mingw32-"
8984 aros_target_cpu
="arm"
8985 aros_object_format
="armelf_linux_eabi"
8986 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8987 aros_arch_libs
="-laeabi"
8988 aros_default_wbdepth
=8
8989 gcc_target_cpu
="arm"
8990 aros_target_cc
="arm-aros-gcc"
8991 aros_target_cxx
="arm-aros-g++"
8992 aros_target_ld
="arm-aros-ld"
8993 aros_target_as
="arm-aros-as"
8994 aros_target_ar
="arm-aros-ar"
8995 aros_target_ranlib
="arm-aros-ranlib"
8996 aros_target_nm
="arm-aros-nm"
8997 aros_target_strip
="arm-aros-strip"
8998 aros_target_objcopy
="arm-aros-objcopy"
8999 aros_target_objdump
="arm-aros-objdump"
9000 target_tool_prefix
="arm-mingw32ce-"
9001 aros_default_wbwidth
=160
9002 aros_default_wbheight
=160
9005 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9006 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9007 { (exit 1); exit 1; }; }
9010 if test $host_os = "cygwin"; then
9011 aros_kernel_cflags
="-mno-cygwin"
9015 aros_target_arch
="pp"
9016 aros_shared_default
="no"
9017 case "$target_cpu" in
9019 aros_target_cpu
="m68k"
9020 aros_object_format
="m68kelf"
9021 aros_flavour
="palmnative"
9022 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9023 aros_default_wbwidth
=160
9024 aros_default_wbheight
=160
9025 aros_default_wbdepth
=1
9026 aros_target_ar_flags
="cru"
9027 aros_compiler_libs
="-lgcc1"
9028 aros_shared_default
=no
9029 aros_shared_cflags
="-fpic"
9030 aros_shared_aflags
=""
9031 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9032 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9033 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9034 aros_debug_aflags
=""
9035 aros_debug_ldflags
="$aros_symbols_debug"
9036 aros_mungwall_debug
="0"
9037 aros_modules_debug
="0"
9038 gcc_target_cpu
="mc68000"
9039 ignore_undefined_symbols
="-ius"
9042 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9043 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9044 { (exit 1); exit 1; }; }
9050 aros_target_arch
="mac"
9051 aros_shared_default
="no"
9052 case "$target_cpu" in
9054 aros_target_cpu
="m68k"
9055 aros_object_format
="m68kelf"
9056 aros_flavour
="mac68knative"
9057 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9058 aros_default_wbwidth
=512
9059 aros_default_wbheight
=384
9060 aros_default_wbdepth
=8
9061 aros_target_ar_flags
="cru"
9062 aros_compiler_libs
="-lgcc1"
9063 aros_shared_default
=no
9064 aros_shared_cflags
="-fpic"
9065 aros_shared_aflags
=""
9066 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9067 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9068 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9069 aros_debug_aflags
=""
9070 aros_debug_ldflags
="$aros_symbols_debug"
9071 aros_mungwall_debug
="0"
9072 aros_modules_debug
="0"
9073 gcc_target_cpu
="mc68000"
9074 ignore_undefined_symbols
="-ius"
9077 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9078 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9079 { (exit 1); exit 1; }; }
9085 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9086 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9087 { (exit 1); exit 1; }; }
9091 # FIXME: for cross-compiling this should point to another location
9092 if test "$aros_flavour" = "emulation"; then
9093 aros_kernel_includes
="-isystem /usr/include"
9095 if test "$aros_flavour" = "emulcompat"; then
9096 aros_kernel_includes
="-isystem /usr/include"
9099 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9100 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9102 # Check whether --with-portssources was given.
9103 if test "${with_portssources+set}" = set; then
9104 withval
=$with_portssources; with_portssrcdir
=$withval
9106 with_portssrcdir
="default"
9109 if test "$with_portssrcdir" = "default"; then
9110 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9112 AROS_PORTSSRCDIR
="$with_portssrcdir"
9114 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9115 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9117 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9118 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9120 # Check whether --with-bootloader was given.
9121 if test "${with_bootloader+set}" = set; then
9122 withval
=$with_bootloader; target_bootloader
=$withval
9124 target_bootloader
=$target_bootloader
9127 if test "$target_bootloader" = "none"; then
9128 aros_target_bootloader
=""
9130 aros_target_bootloader
="$target_bootloader"
9132 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9133 echo "${ECHO_T}$target_bootloader" >&6; }
9135 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9136 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9138 # Check whether --with-iconset was given.
9139 if test "${with_iconset+set}" = set; then
9140 withval
=$with_iconset; target_iconset
=$withval
9142 target_iconset
="default"
9145 if test "$target_iconset" = "default"; then
9146 aros_target_iconset
="Gorilla"
9147 target_iconset
="default (Gorilla)"
9149 aros_target_iconset
="$target_iconset"
9151 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9152 echo "${ECHO_T}$target_iconset" >&6; }
9154 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9155 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9157 # Check whether --with-theme was given.
9158 if test "${with_theme+set}" = set; then
9159 withval
=$with_theme; target_guitheme
=$withval
9161 target_guitheme
="default"
9164 if test "$target_guitheme" = "default"; then
9165 aros_target_guitheme
="Ice"
9167 aros_target_guitheme
="$target_guitheme"
9169 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9170 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9172 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9175 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9178 if test "$aros_host_cpu" == "x86_64" ; then
9179 if test "$aros_target_cpu" == "i386" ; then
9180 if test "$aros_target_arch" != "mingw32"; then
9186 # Set prefix for target compiler etc. if we're cross-compiling
9187 # (should possibly be earlier but needs to be after AC_PROG_CC)
9188 if test "$cross_compiling" = "yes" ; then
9189 if test "$target_tool_prefix" = ""; then
9190 target_tool_prefix
=${target_cpu}-elf-
9192 CC
=${target_tool_prefix}gcc
9193 CPP
=${target_tool_prefix}cpp
9194 if test "$target_tool_version" != "default"; then
9195 CC
="$CC-$target_tool_version"
9196 CPP
="$CC-$target_tool_version"
9198 # Extract the first word of "$CC", so it can be a program name with args.
9199 set dummy
$CC; ac_word
=$2
9200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9202 if test "${ac_cv_path_CC+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
9210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9214 test -z "$as_dir" && as_dir
=.
9215 for ac_exec_ext
in '' $ac_executable_extensions; do
9216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
9218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 if test -n "$CC"; then
9230 { echo "$as_me:$LINENO: result: $CC" >&5
9231 echo "${ECHO_T}$CC" >&6; }
9233 { echo "$as_me:$LINENO: result: no" >&5
9234 echo "${ECHO_T}no" >&6; }
9238 if test "$CC" = ""; then
9239 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9240 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9241 { (exit 1); exit 1; }; }
9244 CC
="$CC $target_tool_flags"
9246 #-----------------------------------------------------------------------------
9248 # Disable pointer-signedness warnings if the compiler recognises the option
9250 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9251 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9252 save_cflags
="$CFLAGS"
9253 CFLAGS
="$CFLAGS -Wno-pointer-sign"
9254 cat >conftest.
$ac_ext <<_ACEOF
9257 cat confdefs.h
>>conftest.
$ac_ext
9258 cat >>conftest.
$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9269 rm -f conftest.
$ac_objext
9270 if { (ac_try
="$ac_compile"
9272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9286 use_no_sign_warning="yes"
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 use_no_sign_warning="no"
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9296 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9297 if test "x-$use_no_sign_warning" = "x-yes" ; then
9298 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9300 CFLAGS="$save_cflags"
9302 #-----------------------------------------------------------------------------
9304 # Find all the tools we need to compile. This could be cross-compiling
9305 # though! If that is the case we use the GNU form of the target and
9306 # simply add this to the front of the binary name. This is rather simple,
9307 # but it should work under most circumstances.
9309 # The default tools are to use the same as the host, but only if the
9310 # host and target CPU are the same. With GCC this is normally enough.
9314 aros_shared_ld="$aros_host_ld"
9316 aros_target_mkdep="$aros_host_mkdep"
9317 aros_target_incl_def="$aros_host_incl"
9319 aros_kernel_cc="$CC"
9321 # The default tools executables to be linked to.
9322 if test "$aros_target_cc" != ""; then
9323 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9324 set dummy $aros_target_cc; ac_word=$2
9325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9327 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 case $aros_target_cc in
9332 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 aros_target_cc=$ac_cv_path_aros_target_cc
9354 if test -n "$aros_target_cc"; then
9355 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9356 echo "${ECHO_T}$aros_target_cc" >&6; }
9358 { echo "$as_me:$LINENO: result: no" >&5
9359 echo "${ECHO_T}no" >&6; }
9363 if test "$aros_target_cc" = ""; then
9364 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9365 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9366 { (exit 1); exit 1; }; }
9369 if test "$aros_target_ld" != ""; then
9370 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9371 set dummy $aros_target_ld; ac_word=$2
9372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9374 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 case $aros_target_ld in
9379 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 aros_target_ld=$ac_cv_path_aros_target_ld
9401 if test -n "$aros_target_ld"; then
9402 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9403 echo "${ECHO_T}$aros_target_ld" >&6; }
9405 { echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6; }
9410 if test "$aros_target_ld" = ""; then
9411 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9412 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9413 { (exit 1); exit 1; }; }
9417 if test "$crosstools" != "yes"; then
9419 if test "$aros_target_as" = ""; then
9420 if test "$cross_compiling" = "yes" ; then
9421 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9422 set dummy ${target_tool_prefix}as; ac_word=$2
9423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9425 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 case $aros_target_as_ln in
9430 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9452 if test -n "$aros_target_as_ln"; then
9453 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9454 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9456 { echo "$as_me:$LINENO: result: no" >&5
9457 echo "${ECHO_T}no" >&6; }
9462 if test "$GCC" = "yes"; then
9463 aros_gcc_as=`$CC -print-prog-name=as
`
9464 # Extract the first word of "`basename $aros_gcc_[as
]`", so it can be a program name with args.
9465 set dummy `basename $aros_gcc_as`; ac_word=$2
9466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9468 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 case $aros_target_as_ln in
9473 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in `dirname $aros_gcc_as`
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9495 if test -n "$aros_target_as_ln"; then
9496 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9497 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9499 { echo "$as_me:$LINENO: result: no" >&5
9500 echo "${ECHO_T}no" >&6; }
9505 if test "$aros_target_as_ln" = ""; then
9506 # Extract the first word of "as", so it can be a program name with args.
9507 set dummy as; ac_word=$2
9508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9510 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 case $aros_target_as_ln in
9515 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9537 if test -n "$aros_target_as_ln"; then
9538 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9539 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9541 { echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6; }
9549 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9550 set dummy $aros_target_as; ac_word=$2
9551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9553 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 case $aros_target_as_ln in
9558 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9580 if test -n "$aros_target_as_ln"; then
9581 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9582 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9584 { echo "$as_me:$LINENO: result: no" >&5
9585 echo "${ECHO_T}no" >&6; }
9591 if test "$aros_target_as_ln" = ""; then
9592 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9593 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9594 { (exit 1); exit 1; }; }
9597 if test "$aros_kernel_ld" = ""; then
9598 if test "$cross_compiling" = "yes" ; then
9599 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9600 set dummy ${target_tool_prefix}ld; ac_word=$2
9601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9603 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 case $aros_kernel_ld in
9608 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9629 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9630 if test -n "$aros_kernel_ld"; then
9631 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9632 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9634 { echo "$as_me:$LINENO: result: no" >&5
9635 echo "${ECHO_T}no" >&6; }
9640 if test "$GCC" = "yes"; then
9641 aros_gcc_ld=`$CC -print-prog-name=ld
`
9642 # Extract the first word of "`basename $aros_gcc_[ld
]`", so it can be a program name with args.
9643 set dummy `basename $aros_gcc_ld`; ac_word=$2
9644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9646 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 case $aros_kernel_ld in
9651 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in `dirname $aros_gcc_ld`
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9661 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9673 if test -n "$aros_kernel_ld"; then
9674 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9675 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9677 { echo "$as_me:$LINENO: result: no" >&5
9678 echo "${ECHO_T}no" >&6; }
9683 if test "$aros_kernel_ld" = ""; then
9684 # Extract the first word of "ld", so it can be a program name with args.
9685 set dummy ld; ac_word=$2
9686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9688 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 case $aros_kernel_ld in
9693 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9715 if test -n "$aros_kernel_ld"; then
9716 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9717 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9719 { echo "$as_me:$LINENO: result: no" >&5
9720 echo "${ECHO_T}no" >&6; }
9727 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9728 set dummy $aros_kernel_ld; ac_word=$2
9729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9731 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 case $aros_kernel_ld in
9736 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9758 if test -n "$aros_kernel_ld"; then
9759 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9760 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9762 { echo "$as_me:$LINENO: result: no" >&5
9763 echo "${ECHO_T}no" >&6; }
9769 if test "$aros_kernel_ld" = ""; then
9770 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9771 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9772 { (exit 1); exit 1; }; }
9775 if test "$aros_target_ar" = ""; then
9776 if test "$cross_compiling" = "yes" ; then
9777 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9778 set dummy ${target_tool_prefix}ar; ac_word=$2
9779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9781 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 case $aros_target_ar_ln in
9786 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9808 if test -n "$aros_target_ar_ln"; then
9809 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9810 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9812 { echo "$as_me:$LINENO: result: no" >&5
9813 echo "${ECHO_T}no" >&6; }
9818 if test "$GCC" = "yes"; then
9819 aros_gcc_ar=`$CC -print-prog-name=ar`
9820 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9821 set dummy `basename $aros_gcc_ar`; ac_word=$2
9822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9824 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 case $aros_target_ar_ln in
9829 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 for as_dir in `dirname $aros_gcc_ar`
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9839 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9851 if test -n "$aros_target_ar_ln"; then
9852 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9853 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9855 { echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6; }
9861 if test "$aros_target_ar_ln" = ""; then
9862 # Extract the first word of "ar", so it can be a program name with args.
9863 set dummy ar; ac_word=$2
9864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9866 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 case $aros_target_ar_ln in
9871 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9893 if test -n "$aros_target_ar_ln"; then
9894 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9895 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9897 { echo "$as_me:$LINENO: result: no" >&5
9898 echo "${ECHO_T}no" >&6; }
9905 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9906 set dummy $aros_target_ar; ac_word=$2
9907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9909 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 case $aros_target_ar_ln in
9914 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9936 if test -n "$aros_target_ar_ln"; then
9937 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9938 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9940 { echo "$as_me:$LINENO: result: no" >&5
9941 echo "${ECHO_T}no" >&6; }
9947 if test "$aros_target_ar_ln" = ""; then
9948 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9949 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9950 { (exit 1); exit 1; }; }
9953 if test "$aros_target_nm" = ""; then
9954 if test "$cross_compiling" = "yes" ; then
9955 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9956 set dummy ${target_tool_prefix}nm; ac_word=$2
9957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9959 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 case $aros_target_nm_ln in
9964 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9974 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9986 if test -n "$aros_target_nm_ln"; then
9987 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9988 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9990 { echo "$as_me:$LINENO: result: no" >&5
9991 echo "${ECHO_T}no" >&6; }
9996 if test "$GCC" = "yes"; then
9997 aros_gcc_nm=`$CC -print-prog-name=nm
`
9998 # Extract the first word of "`basename $aros_gcc_[nm
]`", so it can be a program name with args.
9999 set dummy `basename $aros_gcc_nm`; ac_word=$2
10000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10002 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 case $aros_target_nm_ln in
10007 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in `dirname $aros_gcc_nm`
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10029 if test -n "$aros_target_nm_ln"; then
10030 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10031 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10033 { echo "$as_me:$LINENO: result: no" >&5
10034 echo "${ECHO_T}no" >&6; }
10039 if test "$aros_target_nm_ln" = ""; then
10040 # Extract the first word of "nm", so it can be a program name with args.
10041 set dummy nm; ac_word=$2
10042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10044 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 case $aros_target_nm_ln in
10049 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10071 if test -n "$aros_target_nm_ln"; then
10072 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10073 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10075 { echo "$as_me:$LINENO: result: no" >&5
10076 echo "${ECHO_T}no" >&6; }
10083 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10084 set dummy $aros_target_nm; ac_word=$2
10085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10087 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 case $aros_target_nm_ln in
10092 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10102 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10114 if test -n "$aros_target_nm_ln"; then
10115 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10116 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10118 { echo "$as_me:$LINENO: result: no" >&5
10119 echo "${ECHO_T}no" >&6; }
10125 if test "$aros_target_nm_ln" = ""; then
10126 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10127 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10128 { (exit 1); exit 1; }; }
10131 if test "$aros_target_objcopy" = ""; then
10132 if test "$cross_compiling" = "yes" ; then
10133 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10134 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10137 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 case $aros_target_objcopy_ln in
10142 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10152 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10164 if test -n "$aros_target_objcopy_ln"; then
10165 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10166 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10168 { echo "$as_me:$LINENO: result: no" >&5
10169 echo "${ECHO_T}no" >&6; }
10174 if test "$GCC" = "yes"; then
10175 aros_gcc_objcopy=`$CC -print-prog-name=objcopy
`
10176 # Extract the first word of "`basename $aros_gcc_[objcopy
]`", so it can be a program name with args.
10177 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10180 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 case $aros_target_objcopy_ln in
10185 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189 for as_dir in `dirname $aros_gcc_objcopy`
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10195 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10207 if test -n "$aros_target_objcopy_ln"; then
10208 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10209 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10211 { echo "$as_me:$LINENO: result: no" >&5
10212 echo "${ECHO_T}no" >&6; }
10217 if test "$aros_target_objcopy_ln" = ""; then
10218 # Extract the first word of "objcopy", so it can be a program name with args.
10219 set dummy objcopy; ac_word=$2
10220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10222 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 case $aros_target_objcopy_ln in
10227 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10237 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10248 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10249 if test -n "$aros_target_objcopy_ln"; then
10250 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10251 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10253 { echo "$as_me:$LINENO: result: no" >&5
10254 echo "${ECHO_T}no" >&6; }
10261 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10262 set dummy $aros_target_objcopy; ac_word=$2
10263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10265 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 case $aros_target_objcopy_ln in
10270 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10280 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10292 if test -n "$aros_target_objcopy_ln"; then
10293 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10294 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10296 { echo "$as_me:$LINENO: result: no" >&5
10297 echo "${ECHO_T}no" >&6; }
10303 if test "$aros_target_objcopy_ln" = ""; then
10304 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10305 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10306 { (exit 1); exit 1; }; }
10309 if test "$aros_target_objdump" = ""; then
10310 if test "$cross_compiling" = "yes" ; then
10311 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10312 set dummy ${target_tool_prefix}objdump; ac_word=$2
10313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10315 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 case $aros_target_objdump_ln in
10320 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10342 if test -n "$aros_target_objdump_ln"; then
10343 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10344 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10346 { echo "$as_me:$LINENO: result: no" >&5
10347 echo "${ECHO_T}no" >&6; }
10352 if test "$GCC" = "yes"; then
10353 aros_gcc_objdump=`$CC -print-prog-name=objdump
`
10354 # Extract the first word of "`basename $aros_gcc_[objdump
]`", so it can be a program name with args.
10355 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10358 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 case $aros_target_objdump_ln in
10363 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in `dirname $aros_gcc_objdump`
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10373 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10385 if test -n "$aros_target_objdump_ln"; then
10386 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10387 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10389 { echo "$as_me:$LINENO: result: no" >&5
10390 echo "${ECHO_T}no" >&6; }
10395 if test "$aros_target_objdump_ln" = ""; then
10396 # Extract the first word of "objdump", so it can be a program name with args.
10397 set dummy objdump; ac_word=$2
10398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10400 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 case $aros_target_objdump_ln in
10405 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10415 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10427 if test -n "$aros_target_objdump_ln"; then
10428 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10429 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10431 { echo "$as_me:$LINENO: result: no" >&5
10432 echo "${ECHO_T}no" >&6; }
10439 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10440 set dummy $aros_target_objdump; ac_word=$2
10441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10443 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 case $aros_target_objdump_ln in
10448 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10470 if test -n "$aros_target_objdump_ln"; then
10471 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10472 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10474 { echo "$as_me:$LINENO: result: no" >&5
10475 echo "${ECHO_T}no" >&6; }
10481 if test "$aros_target_objdump_ln" = ""; then
10482 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10483 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10484 { (exit 1); exit 1; }; }
10487 if test "$aros_target_ranlib" = ""; then
10488 if test "$cross_compiling" = "yes" ; then
10489 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10490 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10493 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 case $aros_target_ranlib_ln in
10498 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10508 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10520 if test -n "$aros_target_ranlib_ln"; then
10521 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10522 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10524 { echo "$as_me:$LINENO: result: no" >&5
10525 echo "${ECHO_T}no" >&6; }
10530 if test "$GCC" = "yes"; then
10531 aros_gcc_ranlib=`$CC -print-prog-name=ranlib
`
10532 # Extract the first word of "`basename $aros_gcc_[ranlib
]`", so it can be a program name with args.
10533 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10536 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 case $aros_target_ranlib_ln in
10541 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545 for as_dir in `dirname $aros_gcc_ranlib`
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10563 if test -n "$aros_target_ranlib_ln"; then
10564 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10565 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10567 { echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6; }
10573 if test "$aros_target_ranlib_ln" = ""; then
10574 # Extract the first word of "ranlib", so it can be a program name with args.
10575 set dummy ranlib; ac_word=$2
10576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10578 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 case $aros_target_ranlib_ln in
10583 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10605 if test -n "$aros_target_ranlib_ln"; then
10606 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10607 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10609 { echo "$as_me:$LINENO: result: no" >&5
10610 echo "${ECHO_T}no" >&6; }
10617 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10618 set dummy $aros_target_ranlib; ac_word=$2
10619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10621 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 case $aros_target_ranlib_ln in
10626 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10648 if test -n "$aros_target_ranlib_ln"; then
10649 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10650 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10652 { echo "$as_me:$LINENO: result: no" >&5
10653 echo "${ECHO_T}no" >&6; }
10659 if test "$aros_target_ranlib_ln" = ""; then
10660 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10661 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10662 { (exit 1); exit 1; }; }
10665 if test "$aros_target_strip" = ""; then
10666 if test "$cross_compiling" = "yes" ; then
10667 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10668 set dummy ${target_tool_prefix}strip; ac_word=$2
10669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10671 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 case $aros_target_strip_ln in
10676 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680 for as_dir in $PATH
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10686 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10698 if test -n "$aros_target_strip_ln"; then
10699 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10700 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10702 { echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6; }
10708 if test "$GCC" = "yes"; then
10709 aros_gcc_strip=`$CC -print-prog-name=strip
`
10710 # Extract the first word of "`basename $aros_gcc_[strip
]`", so it can be a program name with args.
10711 set dummy `basename $aros_gcc_strip`; ac_word=$2
10712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10714 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 case $aros_target_strip_ln in
10719 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in `dirname $aros_gcc_strip`
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10741 if test -n "$aros_target_strip_ln"; then
10742 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10743 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10745 { echo "$as_me:$LINENO: result: no" >&5
10746 echo "${ECHO_T}no" >&6; }
10751 if test "$aros_target_strip_ln" = ""; then
10752 # Extract the first word of "strip", so it can be a program name with args.
10753 set dummy strip; ac_word=$2
10754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10756 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 case $aros_target_strip_ln in
10761 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10771 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10783 if test -n "$aros_target_strip_ln"; then
10784 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10785 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10787 { echo "$as_me:$LINENO: result: no" >&5
10788 echo "${ECHO_T}no" >&6; }
10795 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10796 set dummy $aros_target_strip; ac_word=$2
10797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10799 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 case $aros_target_strip_ln in
10804 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10826 if test -n "$aros_target_strip_ln"; then
10827 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10828 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10830 { echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6; }
10837 if test "$aros_target_strip_ln" = ""; then
10838 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10839 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10840 { (exit 1); exit 1; }; }
10842 if test "$aros_target_cxx" != ""; then
10843 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10844 set dummy $aros_target_cxx; ac_word=$2
10845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10847 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 case $aros_target_cxx in
10852 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10873 aros_target_cxx=$ac_cv_path_aros_target_cxx
10874 if test -n "$aros_target_cxx"; then
10875 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
10876 echo "${ECHO_T}$aros_target_cxx" >&6; }
10878 { echo "$as_me:$LINENO: result: no" >&5
10879 echo "${ECHO_T}no" >&6; }
10883 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
10884 # AROS_REQUIRED(c++,$aros_target_cxx)
10887 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10891 # Build crosstools if we have no C++ - temporary thing
10892 if test "$aros_target_cxx" = ""; then
10893 crosstools_target=tools-crosstools
10896 if test "$rescomp" != ""; then
10897 if test "$cross_compiling" = "yes" ; then
10898 rescomp=${target_tool_prefix}${rescomp}
10900 # Extract the first word of "$rescomp", so it can be a program name with args.
10901 set dummy $rescomp; ac_word=$2
10902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10904 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 case $aros_kernel_rescomp in
10909 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10930 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10931 if test -n "$aros_kernel_rescomp"; then
10932 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10933 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10935 { echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6; }
10940 if test "$aros_kernel_rescomp" = ""; then
10941 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10942 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10943 { (exit 1); exit 1; }; }
10947 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10948 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10949 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10950 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10951 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10952 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10953 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10955 # aros_cc_pre is a variable that is added to the front of the compiler name
10956 # in the generated aros-gcc shell script. We need this to enable the cache
10957 # to work across cleaned builds. Also, support DISTCC using the correct
10958 # environment variable.
10961 if test "x${DISTCC}" != "x" ; then
10962 if test "x${CCACHE}" != "x" ; then
10963 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10965 aros_cc_pre="${DISTCC} "
10968 if test "x${CCACHE}" != "x" ; then
10969 aros_cc_pre="${CCACHE} "
10973 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10975 aros_target_nostdinc_cflags=-nostdinc
10977 aros_target_nostartup_ldflags=-nostartfiles
10979 aros_target_nix_ldflags=-nix
10981 aros_target_detach_ldflags=-detach
10983 aros_target_nostdlib_ldflags=-nostdlib
10987 if test "$aros_target_cc" = ""; then
10988 orig_target_cc=$aros_kernel_cc
10990 orig_target_cc=$aros_target_cc
10992 if test "$aros_target_ld" = ""; then
10993 orig_target_ld=$aros_kernel_ld
10995 orig_target_ld=$aros_target_ld
10997 if test "$GCC" = "yes"; then
10998 aros_target_cc_path=`$orig_target_cc -print-search-dirs |
grep "programs: =" | cut
-c 12-`
11000 aros_target_cc="${prefix}-gcc"
11001 aros_target_as="${prefix}-as"
11002 aros_target_ld="${prefix}-ld"
11003 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11004 aros_target_objcopy=${prefix}-objcopy
11005 aros_target_objdump=${prefix}-objdump
11006 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11007 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11008 aros_kernel_nm="${prefix}-nm"
11009 aros_target_strip=${prefix}-strip
11011 # Find the system include path. We can suggest that an alternative is
11012 # used if we don't get it correct. The default is to use /usr/include.
11013 # Which is set in the aros_target_incl_def variable.
11015 # Check whether --enable-includes was given.
11016 if test "${enable_includes+set}" = set; then
11017 enableval=$enable_includes; aros_target_incl=$enable_includes
11019 aros_target_incl=$aros_target_incl_def
11023 if test "$aros_kernel_includes" != "" ; then
11024 { echo "$as_me:$LINENO: checking for the kernel compiler's include path" >&5
11025 echo $ECHO_N "checking for the kernel compiler's include path... $ECHO_C" >&6; }
11026 if test "$aros_kernel_cc_includes" = "" ; then
11027 #try to guess where the directory is
11028 aros_kernel_cc_includes=`dirname \
`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11029 if ! test -d $aros_kernel_cc_includes; then
11030 #the directory doesn't exist, we need to do some more work
11031 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11033 #these are the headers we're looling for
11034 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11035 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11039 for h in $headers; do
11040 #which other headers each of the above headers needs?
11041 deps=$(echo "#include <$h>" | \
11042 $aros_kernel_cc -E -M - 2>/dev/null | \
11043 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11045 #copy all the needed headers to a directory beneath gendir
11048 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11049 sed -n "s,^.*/include\(/.*\),\1,p")
11050 ! test -d $dir && mkdir -p $dir
11051 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11056 { echo "$as_me:$LINENO: result: $aros_kernel_cc_includes" >&5
11057 echo "${ECHO_T}$aros_kernel_cc_includes" >&6; }
11058 aros_kernel_includes="$aros_kernel_includes -isystem $aros_kernel_cc_includes"
11061 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11062 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
11063 if test "$aros_target_cc_includes" = "" ; then
11064 #try to guess where the directory is
11065 aros_target_cc_includes=`dirname \
`${orig_target_cc} -print-libgcc-file-name\``/include
11066 if ! test -d $aros_target_cc_includes; then
11067 #the directory doesn't exist, we need to do some more work
11068 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11070 #these are the headers we're looling for
11071 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11072 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11076 for h in $headers; do
11077 #which other headers each of the above headers needs?
11078 deps=$(echo "#include <$h>" | \
11079 $orig_target_cc -E -M - 2>/dev/null | \
11080 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11082 #copy all the needed headers to a directory beneath gendir
11085 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11086 sed -n "s,^.*/include\(/.*\),\1,p")
11087 ! test -d $dir && mkdir -p $dir
11088 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11093 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11094 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11097 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11098 # On GCC >= 4.0 -iquote should be used
11102 save_cflags="$CFLAGS"
11104 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11105 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11125 *) ac_try_echo
=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1
>conftest.err
11132 cat conftest.err
>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.
$ac_objext; then
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.
$ac_ext >&5
11146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11147 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11148 echo "${ECHO_T}$has_iquote" >&6; }
11149 if test "x-$has_iquote" = "x-yes" ; then
11150 host_cflags_iquote
=-iquote
11151 host_cflags_iquote_end
=
11153 host_cflags_iquote
=-I
11154 host_cflags_iquote_end
=-I-
11156 kernel_cflags_iquote
=$host_cflags_iquote
11157 kernel_cflags_iquote_end
=$host_cflags_iquote_end
11158 if test "x-$cross_compiling" = "x-yes"; then
11159 CC
="$aros_kernel_cc"
11160 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11161 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11162 cat >conftest.
$ac_ext <<_ACEOF
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11177 rm -f conftest.
$ac_objext
11178 if { (ac_try
="$ac_compile"
11179 case "(($ac_try" in
11180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_compile") 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest.$ac_objext; then
11194 use_no_stack_protector="yes"
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 use_no_stack_protector="no"
11202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11204 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11205 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11206 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11207 cat >conftest.$ac_ext <<_ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11222 rm -f conftest.$ac_objext
11223 if { (ac_try="$ac_compile"
11224 case "(($ac_try" in
11225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11226 *) ac_try_echo
=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_compile") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1
>conftest.err
11233 cat conftest.err
>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest.
$ac_objext; then
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.
$ac_ext >&5
11247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11248 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11249 echo "${ECHO_T}$has_iquote" >&6; }
11250 if test "x-$has_iquote" = "x-yes" ; then
11251 kernel_cflags_iquote
=-iquote
11252 kernel_cflags_iquote_end
=
11254 kernel_cflags_iquote
=-I
11255 kernel_cflags_iquote_end
=-I-
11258 aros_cflags_iquote
=$kernel_cflags_iquote
11259 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
11260 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11261 CC
="$orig_target_cc"
11262 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11263 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11264 cat >conftest.
$ac_ext <<_ACEOF
11267 cat confdefs.h
>>conftest.
$ac_ext
11268 cat >>conftest.
$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11279 rm -f conftest.
$ac_objext
11280 if { (ac_try
="$ac_compile"
11281 case "(($ac_try" in
11282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_compile") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest.$ac_objext; then
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11306 echo "${ECHO_T}$has_iquote" >&6; }
11307 if test "x-$has_iquote" = "x-yes" ; then
11308 aros_cflags_iquote=-iquote
11309 aros_cflags_iquote_end=
11311 aros_cflags_iquote=-I
11312 aros_cflags_iquote_end=-I-
11315 if test "x-$use_no_stack_protector" = "x-yes" ; then
11316 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11319 #-----------------------------------------------------------------------------
11321 # Check if we can explicitly choose older version of symbol hashing
11323 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11324 CC="$aros_kernel_cc"
11325 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11326 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11346 *) ac_try_echo
=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1
>conftest.err
11353 cat conftest.err
>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest
$ac_exeext &&
11359 $as_test_x conftest
$ac_exeext; then
11360 use_hash_style
="yes"
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.
$ac_ext >&5
11365 use_hash_style
="no"
11368 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11369 conftest
$ac_exeext conftest.
$ac_ext
11370 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11371 echo "${ECHO_T}$use_hash_style" >&6; }
11372 if test "x-$use_hash_style" = "x-yes" ; then
11373 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
11376 CFLAGS
="$save_cflags"
11386 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11387 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11389 # Check whether --with-resolution was given.
11390 if test "${with_resolution+set}" = set; then
11391 withval
=$with_resolution; resolution
=$withval
11396 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11397 if test "$resolution" = "yes" ; then
11400 if test "$resolution" = "no" ; then
11403 if test "$resolution" != "none" ; then
11404 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
11405 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
11406 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
11408 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11409 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11410 aros_cv_default_wbwidth
=$aros_default_wbwidth
11411 aros_cv_default_wbheight
=$aros_default_wbheight
11412 aros_cv_default_wbdepth
=$aros_default_wbdepth
11414 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11415 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11417 # Check whether --with-serial-debug was given.
11418 if test "${with_serial_debug+set}" = set; then
11419 withval
=$with_serial_debug; serial_debug
=$withval
11424 if test "$aros_serial_debug" = 0 ; then
11425 serial_debug_forced
=""
11426 if test "$serial_debug" = "yes" ; then
11429 if test "$serial_debug" = "no" ; then
11430 serial_debug
="none"
11433 serial_debug_forced
="(forced)"
11434 serial_debug
=$aros_serial_debug
11436 if test "$serial_debug" != "none" ; then
11437 aros_serial_debug
=$serial_debug
11438 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11439 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11441 { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11445 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11446 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11447 # Check whether --enable-palm_debug_hack was given.
11448 if test "${enable_palm_debug_hack+set}" = set; then
11449 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
11451 palm_debug_hack
="no"
11454 if test "$palm_debug_hack" = "yes" ; then
11455 aros_palm_debug_hack
="1"
11457 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11458 echo "${ECHO_T}$palm_debug_hack" >&6; }
11461 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11462 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11463 # Check whether --enable-nesting_supervisor was given.
11464 if test "${enable_nesting_supervisor+set}" = set; then
11465 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
11467 nesting_supervisor
="no"
11470 if test "$nesting_supervisor" = "yes" ; then
11471 aros_nesting_supervisor
="1"
11473 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11474 echo "${ECHO_T}$nesting_supervisor" >&6; }
11477 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11479 if test "x-$need_dlopen" != "x-no" ; then
11480 { echo "$as_me:$LINENO: checking for dlopen" >&5
11481 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11482 if test "${ac_cv_func_dlopen+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 cat >conftest.
$ac_ext <<_ACEOF
11488 cat confdefs.h
>>conftest.
$ac_ext
11489 cat >>conftest.
$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11493 #define dlopen innocuous_dlopen
11495 /* System header to define __stub macros and hopefully few prototypes,
11496 which can conflict with char dlopen (); below.
11497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11498 <limits.h> exists even on freestanding compilers. */
11501 # include <limits.h>
11503 # include <assert.h>
11508 /* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
11515 /* The GNU C library defines this for functions which it implements
11516 to always fail with ENOSYS. Some functions are actually named
11517 something starting with __ and the normal name is an alias. */
11518 #if defined __stub_dlopen || defined __stub___dlopen
11530 rm -f conftest.
$ac_objext conftest
$ac_exeext
11531 if { (ac_try
="$ac_link"
11532 case "(($ac_try" in
11533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_link") 2>conftest.er1
11539 grep -v '^ *+' conftest.er1 >conftest.err
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } && {
11544 test -z "$ac_c_werror_flag" ||
11545 test ! -s conftest.err
11546 } && test -s conftest$ac_exeext &&
11547 $as_test_x conftest$ac_exeext; then
11548 ac_cv_func_dlopen=yes
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_cv_func_dlopen=no
11556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11557 conftest$ac_exeext conftest.$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11560 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11561 if test $ac_cv_func_dlopen = yes; then
11567 if test "x-$have_dl" = "x-no" ; then
11568 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 ac_check_lib_save_LIBS=$LIBS
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (ac_try="$ac_link"
11599 case "(($ac_try" in
11600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11601 *) ac_try_echo
=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_link") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1
>conftest.err
11608 cat conftest.err
>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } && {
11611 test -z "$ac_c_werror_flag" ||
11612 test ! -s conftest.err
11613 } && test -s conftest
$ac_exeext &&
11614 $as_test_x conftest
$ac_exeext; then
11615 ac_cv_lib_dl_dlopen
=yes
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.
$ac_ext >&5
11620 ac_cv_lib_dl_dlopen
=no
11623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11624 conftest
$ac_exeext conftest.
$ac_ext
11625 LIBS
=$ac_check_lib_save_LIBS
11627 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11628 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11629 if test $ac_cv_lib_dl_dlopen = yes; then
11631 aros_host_ldflags
="$aros_host_ldflags -ldl"
11637 if test "x-$have_dl" = "x-no" ; then
11638 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11639 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11640 { (exit 1); exit 1; }; }
11645 # Check whether --enable-x11_hidd was given.
11646 if test "${enable_x11_hidd+set}" = set; then
11647 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
11652 case "x-$x11_hidd" in
11653 x-yes|x-no|x-auto
) ;;
11654 *) x11_hidd
="auto" ;;
11659 if test "x-$x11_hidd" != "x-no" ; then
11661 { echo "$as_me:$LINENO: checking for X" >&5
11662 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11665 # Check whether --with-x was given.
11666 if test "${with_x+set}" = set; then
11670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11671 if test "x$with_x" = xno
; then
11672 # The user explicitly disabled X.
11675 case $x_includes,$x_libraries in #(
11676 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11677 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11678 { (exit 1); exit 1; }; };; #(
11679 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 # One or both of the vars are not set, and there is no cached value.
11683 ac_x_includes
=no ac_x_libraries
=no
11684 rm -f -r conftest.dir
11685 if mkdir conftest.dir
; then
11687 cat >Imakefile
<<'_ACEOF'
11689 @echo incroot='${INCROOT}'
11691 @echo usrlibdir='${USRLIBDIR}'
11693 @echo libdir='${LIBDIR}'
11695 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
11696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11697 for ac_var
in incroot usrlibdir libdir
; do
11698 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11700 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11701 for ac_extension
in a so sl dylib la dll
; do
11702 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11703 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11704 ac_im_usrlibdir
=$ac_im_libdir; break
11707 # Screen out bogus values from the imake configuration. They are
11708 # bogus both because they are the default anyway, and because
11709 # using them would break gcc on systems where it needs fixed includes.
11710 case $ac_im_incroot in
11711 /usr
/include
) ac_x_includes
= ;;
11712 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
11714 case $ac_im_usrlibdir in
11715 /usr
/lib |
/lib
) ;;
11716 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
11720 rm -f -r conftest.dir
11723 # Standard set of common directories for X headers.
11724 # Check X11 before X11Rn because it is often a symlink to the current release.
11736 /usr/local/X11/include
11737 /usr/local/X11R6/include
11738 /usr/local/X11R5/include
11739 /usr/local/X11R4/include
11741 /usr/local/include/X11
11742 /usr/local/include/X11R6
11743 /usr/local/include/X11R5
11744 /usr/local/include/X11R4
11748 /usr/XFree86/include/X11
11752 /usr/unsupported/include
11753 /usr/athena/include
11754 /usr/local/x11r5/include
11755 /usr/lpp/Xamples/include
11757 /usr/openwin/include
11758 /usr/openwin/share/include'
11760 if test "$ac_x_includes" = no
; then
11761 # Guess where to find include files, by looking for Xlib.h.
11762 # First, try using that file with no special directory specified.
11763 cat >conftest.
$ac_ext <<_ACEOF
11766 cat confdefs.h
>>conftest.
$ac_ext
11767 cat >>conftest.
$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 #include <X11/Xlib.h>
11771 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11772 case "(($ac_try" in
11773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } >/dev/null && {
11784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11787 # We can compile using X headers with no special include directory.
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 for ac_dir in $ac_x_header_dirs; do
11794 if test -r "$ac_dir/X11/Xlib.h"; then
11795 ac_x_includes=$ac_dir
11801 rm -f conftest.err conftest.$ac_ext
11802 fi # $ac_x_includes = no
11804 if test "$ac_x_libraries" = no; then
11805 # Check for the libraries.
11806 # See if we find them without any special options.
11807 # Don't add to $LIBS permanently.
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <X11/Xlib.h>
11825 rm -f conftest.$ac_objext conftest$ac_exeext
11826 if { (ac_try="$ac_link"
11827 case "(($ac_try" in
11828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11829 *) ac_try_echo
=$ac_try;;
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_link") 2>conftest.er1
11834 grep -v '^ *+' conftest.er1
>conftest.err
11836 cat conftest.err
>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest
$ac_exeext &&
11842 $as_test_x conftest
$ac_exeext; then
11844 # We can link X programs with no special library path.
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.
$ac_ext >&5
11851 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11853 # Don't even attempt the hair of trying to link an X program!
11854 for ac_extension
in a so sl dylib la dll
; do
11855 if test -r "$ac_dir/libX11.$ac_extension"; then
11856 ac_x_libraries
=$ac_dir
11863 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11864 conftest
$ac_exeext conftest.
$ac_ext
11865 fi # $ac_x_libraries = no
11867 case $ac_x_includes,$ac_x_libraries in #(
11868 no
,* |
*,no |
*\'*)
11869 # Didn't find X, or a directory has "'" in its name.
11870 ac_cv_have_x
="have_x=no";; #(
11872 # Record where we found X for the cache.
11873 ac_cv_have_x
="have_x=yes\
11874 ac_x_includes='$ac_x_includes'\
11875 ac_x_libraries='$ac_x_libraries'"
11881 eval "$ac_cv_have_x"
11884 if test "$have_x" != yes; then
11885 { echo "$as_me:$LINENO: result: $have_x" >&5
11886 echo "${ECHO_T}$have_x" >&6; }
11889 # If each of the values was on the command line, it overrides each guess.
11890 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
11891 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
11892 # Update the cache value to reflect the command line values.
11893 ac_cv_have_x
="have_x=yes\
11894 ac_x_includes='$x_includes'\
11895 ac_x_libraries='$x_libraries'"
11896 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11897 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11902 for path
in $x_libraries
11904 x_cflags
="$x_cflags -L$path"
11907 for path
in $x_includes
11909 x_cflags
="$x_cflags -I$path"
11912 if test "x-$no_x" = "x-yes" ; then
11914 if test "x-$x11_hidd" != "x-auto" ; then
11915 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11916 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11917 { (exit 1); exit 1; }; }
11921 x11_hidd_target
=kernel-x11gfx-kobj
11924 # Check whether --enable-x11_shm was given.
11925 if test "${enable_x11_shm+set}" = set; then
11926 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
11928 x11_hidd_shm
="auto"
11931 case "x-$x11_hidd_shm" in
11932 x-yes|x-no|x-auto
) ;;
11933 *) x11_hidd_shm
="auto" ;;
11938 if test "x-$x11_hidd_shm" != "x-no" ; then
11941 for ac_header
in sys
/ipc.h
11943 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11944 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ac_res
=`eval echo '${'$as_ac_Header'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11954 # Is the header compilable?
11955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11957 cat >conftest.
$ac_ext <<_ACEOF
11960 cat confdefs.h
>>conftest.
$ac_ext
11961 cat >>conftest.
$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 $ac_includes_default
11964 #include <$ac_header>
11966 rm -f conftest.
$ac_objext
11967 if { (ac_try
="$ac_compile"
11968 case "(($ac_try" in
11969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_compile") 2>conftest.er1
11975 grep -v '^ *+' conftest.er1 >conftest.err
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && {
11980 test -z "$ac_c_werror_flag" ||
11981 test ! -s conftest.err
11982 } && test -s conftest.$ac_objext; then
11983 ac_header_compiler=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_header_compiler=no
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11993 echo "${ECHO_T}$ac_header_compiler" >&6; }
11995 # Is the header present?
11996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <$ac_header>
12006 if { (ac_try="$ac_cpp conftest.$ac_ext"
12007 case "(($ac_try" in
12008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12009 *) ac_try_echo
=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1
>conftest.err
12016 cat conftest.err
>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev
/null
&& {
12019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12022 ac_header_preproc
=yes
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.
$ac_ext >&5
12027 ac_header_preproc
=no
12030 rm -f conftest.err conftest.
$ac_ext
12031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 echo "${ECHO_T}$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc
=yes
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12061 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 eval "$as_ac_Header=\$ac_header_preproc"
12066 ac_res
=`eval echo '${'$as_ac_Header'}'`
12067 { echo "$as_me:$LINENO: result: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12072 cat >>confdefs.h
<<_ACEOF
12073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12081 for ac_header
in sys
/shm.h
12083 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12084 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12087 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 ac_res
=`eval echo '${'$as_ac_Header'}'`
12091 { echo "$as_me:$LINENO: result: $ac_res" >&5
12092 echo "${ECHO_T}$ac_res" >&6; }
12094 # Is the header compilable?
12095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12097 cat >conftest.
$ac_ext <<_ACEOF
12100 cat confdefs.h
>>conftest.
$ac_ext
12101 cat >>conftest.
$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 $ac_includes_default
12104 #include <$ac_header>
12106 rm -f conftest.
$ac_objext
12107 if { (ac_try
="$ac_compile"
12108 case "(($ac_try" in
12109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_compile") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest.$ac_objext; then
12123 ac_header_compiler=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 ac_header_compiler=no
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12133 echo "${ECHO_T}$ac_header_compiler" >&6; }
12135 # Is the header present?
12136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12138 cat >conftest.$ac_ext <<_ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <$ac_header>
12146 if { (ac_try="$ac_cpp conftest.$ac_ext"
12147 case "(($ac_try" in
12148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12149 *) ac_try_echo
=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12154 grep -v '^ *+' conftest.er1
>conftest.err
12156 cat conftest.err
>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } >/dev
/null
&& {
12159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12162 ac_header_preproc
=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.
$ac_ext >&5
12167 ac_header_preproc
=no
12170 rm -f conftest.err conftest.
$ac_ext
12171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12172 echo "${ECHO_T}$ac_header_preproc" >&6; }
12174 # So? What about this header?
12175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12181 ac_header_preproc
=yes
12184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12201 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 eval "$as_ac_Header=\$ac_header_preproc"
12206 ac_res
=`eval echo '${'$as_ac_Header'}'`
12207 { echo "$as_me:$LINENO: result: $ac_res" >&5
12208 echo "${ECHO_T}$ac_res" >&6; }
12211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12212 cat >>confdefs.h
<<_ACEOF
12213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12221 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12223 save_cflags
="$CFLAGS"
12224 CFLAGS
="$CFLAGS $x_cflags"
12225 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12226 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12227 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 ac_check_lib_save_LIBS
=$LIBS
12231 LIBS
="-lXext $LIBS"
12232 cat >conftest.
$ac_ext <<_ACEOF
12235 cat confdefs.h
>>conftest.
$ac_ext
12236 cat >>conftest.
$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12245 char XShmQueryExtension ();
12249 return XShmQueryExtension ();
12254 rm -f conftest.
$ac_objext conftest
$ac_exeext
12255 if { (ac_try
="$ac_link"
12256 case "(($ac_try" in
12257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_link") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest$ac_exeext &&
12271 $as_test_x conftest$ac_exeext; then
12272 ac_cv_lib_Xext_XShmQueryExtension=yes
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12277 ac_cv_lib_Xext_XShmQueryExtension=no
12280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12285 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12286 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12290 CFLAGS="$save_cflags"
12294 if test "x-$have_xshm" = "x-yes" ; then
12295 DO_XSHM_SUPPORT="1"
12296 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12297 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12298 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12299 { (exit 1); exit 1; }; }
12301 DO_XSHM_SUPPORT="0"
12305 # Check whether --enable-x11_vidmode was given.
12306 if test "${enable_x11_vidmode+set}" = set; then
12307 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12309 x11_hidd_vidmode="auto"
12312 case "x-$x11_hidd_vidmode" in
12313 x-yes|x-no|x-auto) ;;
12314 *) x11_hidd_vidmode="auto" ;;
12319 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12321 save_cflags="$CFLAGS"
12322 CFLAGS="$CFLAGS $x_cflags"
12323 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12324 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12325 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-lXxf86vm $LIBS"
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12343 char XF86VidModeQueryExtension ();
12347 return XF86VidModeQueryExtension ();
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (ac_try="$ac_link"
12354 case "(($ac_try" in
12355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12356 *) ac_try_echo
=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_link") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1
>conftest.err
12363 cat conftest.err
>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest
$ac_exeext &&
12369 $as_test_x conftest
$ac_exeext; then
12370 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.
$ac_ext >&5
12375 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
12378 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12379 conftest
$ac_exeext conftest.
$ac_ext
12380 LIBS
=$ac_check_lib_save_LIBS
12382 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12383 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12384 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12388 CFLAGS
="$save_cflags"
12391 if test "x-$have_vidmode" = "x-yes" ; then
12392 DO_VIDMODE_SUPPORT
="1"
12393 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12394 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12395 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12396 { (exit 1); exit 1; }; }
12398 DO_VIDMODE_SUPPORT
="0"
12402 aros_host_x11_includes
=$x_includes
12403 aros_host_x11_libdirs
=$x_libraries
12407 # Check whether --enable-sdl_hidd was given.
12408 if test "${enable_sdl_hidd+set}" = set; then
12409 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
12414 case "x-$sdl_hidd" in
12415 x-yes|x-no|x-auto
) ;;
12416 *) sdl_hidd
="auto" ;;
12419 if test "x-$sdl_hidd" != "x-no" ; then
12422 # Check whether --with-sdl-prefix was given.
12423 if test "${with_sdl_prefix+set}" = set; then
12424 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
12430 # Check whether --with-sdl-exec-prefix was given.
12431 if test "${with_sdl_exec_prefix+set}" = set; then
12432 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
12437 # Check whether --enable-sdltest was given.
12438 if test "${enable_sdltest+set}" = set; then
12439 enableval
=$enable_sdltest;
12445 if test x
$sdl_exec_prefix != x
; then
12446 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
12447 if test x
${SDL_CONFIG+set} != xset
; then
12448 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
12451 if test x
$sdl_prefix != x
; then
12452 sdl_args
="$sdl_args --prefix=$sdl_prefix"
12453 if test x
${SDL_CONFIG+set} != xset
; then
12454 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
12458 if test "x$prefix" != xNONE
; then
12459 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
12461 # Extract the first word of "sdl-config", so it can be a program name with args.
12462 set dummy sdl-config
; ac_word
=$2
12463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12465 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 case $SDL_CONFIG in
12470 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
12473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12474 for as_dir
in $PATH
12477 test -z "$as_dir" && as_dir
=.
12478 for ac_exec_ext
in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
12492 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
12493 if test -n "$SDL_CONFIG"; then
12494 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12495 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12497 { echo "$as_me:$LINENO: result: no" >&5
12498 echo "${ECHO_T}no" >&6; }
12502 min_sdl_version
=1.2.10
12503 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12504 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12506 if test "$SDL_CONFIG" = "no" ; then
12509 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
12510 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
12512 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
12513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12514 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
12515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12516 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
12517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12518 if test "x$enable_sdltest" = "xyes" ; then
12519 ac_save_CFLAGS
="$CFLAGS"
12520 ac_save_CXXFLAGS
="$CXXFLAGS"
12521 ac_save_LIBS
="$LIBS"
12522 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12523 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12524 LIBS
="$LIBS $SDL_LIBS"
12526 if test "$cross_compiling" = yes; then
12527 echo $ac_n "cross compiling; assumed OK... $ac_c"
12529 cat >conftest.
$ac_ext <<_ACEOF
12532 cat confdefs.h
>>conftest.
$ac_ext
12533 cat >>conftest.
$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12537 #include <stdlib.h>
12538 #include <string.h>
12542 my_strdup (char *str)
12548 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12549 strcpy (new_str, str);
12557 int main (int argc, char *argv[])
12559 int major, minor, micro;
12562 /* This hangs on some systems (?)
12563 system ("touch conf.sdltest");
12565 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12567 /* HP/UX 9 (%@#!) writes to sscanf strings */
12568 tmp_version = my_strdup("$min_sdl_version");
12569 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12570 printf("%s, bad version string\n", "$min_sdl_version");
12574 if (($sdl_major_version > major) ||
12575 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12576 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12582 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12583 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12584 printf("*** best to upgrade to the required version.\n");
12585 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12586 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12587 printf("*** config.cache before re-running configure\n");
12594 rm -f conftest
$ac_exeext
12595 if { (ac_try
="$ac_link"
12596 case "(($ac_try" in
12597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_link") 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12607 *) ac_try_echo
=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12616 echo "$as_me: program exited with status $ac_status" >&5
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.
$ac_ext >&5
12620 ( exit $ac_status )
12623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12627 CFLAGS
="$ac_save_CFLAGS"
12628 CXXFLAGS
="$ac_save_CXXFLAGS"
12629 LIBS
="$ac_save_LIBS"
12632 if test "x$no_sdl" = x
; then
12633 { echo "$as_me:$LINENO: result: yes" >&5
12634 echo "${ECHO_T}yes" >&6; }
12637 { echo "$as_me:$LINENO: result: no" >&5
12638 echo "${ECHO_T}no" >&6; }
12639 if test "$SDL_CONFIG" = "no" ; then
12640 echo "*** The sdl-config script installed by SDL could not be found"
12641 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12642 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12643 echo "*** full path to sdl-config."
12645 if test -f conf.sdltest
; then
12648 echo "*** Could not run SDL test program, checking why..."
12649 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12650 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12651 LIBS
="$LIBS $SDL_LIBS"
12652 cat >conftest.
$ac_ext <<_ACEOF
12655 cat confdefs.h
>>conftest.
$ac_ext
12656 cat >>conftest.
$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12662 int main(int argc, char *argv[])
12665 #define main K_and_R_C_main
12675 rm -f conftest.
$ac_objext conftest
$ac_exeext
12676 if { (ac_try
="$ac_link"
12677 case "(($ac_try" in
12678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } && {
12689 test -z "$ac_c_werror_flag" ||
12690 test ! -s conftest.err
12691 } && test -s conftest$ac_exeext &&
12692 $as_test_x conftest$ac_exeext; then
12693 echo "*** The test program compiled, but did not run. This usually means"
12694 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12695 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12696 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12697 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12698 echo "*** is required on your system"
12700 echo "*** If you have an old version installed, it is best to remove it, although"
12701 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 echo "*** The test program failed to compile or link. See the file config.log for the"
12707 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12708 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12709 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12713 conftest$ac_exeext conftest.$ac_ext
12714 CFLAGS="$ac_save_CFLAGS"
12715 CXXFLAGS="$ac_save_CXXFLAGS"
12716 LIBS="$ac_save_LIBS"
12728 if test "x-$have_sdl" != "x-yes" ; then
12730 if test "x-$sdl_hidd" != "x-auto" ; then
12731 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12732 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12733 { (exit 1); exit 1; }; }
12737 sdl_hidd_target=kernel-hidd-sdl
12738 aros_host_sdl_cflags=SDL_CFLAGS
12739 aros_host_sdl_libs=SDL_LIBS
12743 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12744 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
12745 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
12746 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
12750 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
12752 # Is the header compilable?
12753 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
12754 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
12755 cat >conftest.$ac_ext <<_ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 $ac_includes_default
12762 #include <sys/soundcard.h>
12764 rm -f conftest.$ac_objext
12765 if { (ac_try="$ac_compile"
12766 case "(($ac_try" in
12767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12768 *) ac_try_echo
=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_compile") 2>conftest.er1
12773 grep -v '^ *+' conftest.er1
>conftest.err
12775 cat conftest.err
>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest.
$ac_objext; then
12781 ac_header_compiler
=yes
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.
$ac_ext >&5
12786 ac_header_compiler
=no
12789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12791 echo "${ECHO_T}$ac_header_compiler" >&6; }
12793 # Is the header present?
12794 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
12795 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
12796 cat >conftest.
$ac_ext <<_ACEOF
12799 cat confdefs.h
>>conftest.
$ac_ext
12800 cat >>conftest.
$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12802 #include <sys/soundcard.h>
12804 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12805 case "(($ac_try" in
12806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } >/dev/null && {
12817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12820 ac_header_preproc=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_header_preproc=no
12828 rm -f conftest.err conftest.$ac_ext
12829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12830 echo "${ECHO_T}$ac_header_preproc" >&6; }
12832 # So? What about this header?
12833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12835 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
12836 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
12838 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
12839 ac_header_preproc=yes
12842 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
12843 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
12845 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
12847 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
12849 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
12851 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
12853 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
12857 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
12858 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
12859 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 ac_cv_header_sys_soundcard_h=$ac_header_preproc
12864 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
12865 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
12870 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12871 oss_library_target=workbench-libs-oss-unix
12876 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12877 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12878 # Check whether --enable-dbus was given.
12879 if test "${enable_dbus+set}" = set; then
12880 enableval=$enable_dbus; dbus="yes"
12885 if test "$dbus" = "yes" ; then
12887 DBUS_CFLAGS=`pkg-config
--cflags dbus-1
`
12888 DBUS_LIBFLAGS=`pkg-config
--libs dbus-1
`
12889 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12890 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12894 { echo "$as_me:$LINENO: result: $dbus" >&5
12895 echo "${ECHO_T}$dbus" >&6; }
13002 # Native version related
13005 # Palm native version related
13008 # Unix/Hosted version related
13011 # Apple iOS related
13032 # Collect-aros stuff: "-ius" to ignore undefined symbols
13035 # C compiler related
13038 case "$aros_flavour" in
13039 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
13040 aros_flavour="emulation" ;;
13041 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
13042 aros_flavour="emulation" ;;
13043 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
13044 aros_flavour="standalone";;
13045 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13046 aros_flavour="standalone";;
13047 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
13048 aros_flavour="native" ;;
13049 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
13050 aros_flavour="native" ;;
13051 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
13052 aros_flavour="linklib" ;;
13053 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13054 aros_flavour="palmnative" ;;
13055 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13056 aros_flavour="mac68knative" ;;
13057 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13058 aros_flavour="ppcnative" ;;
13061 if test ! -d ${aros_inc_dir} ; then
13062 ${MKDIR} ${aros_inc_dir}
13064 if test ! -d ${aros_geninc_dir} ; then
13065 ${MKDIR} ${aros_geninc_dir}
13067 if test ! -d ${aros_hostcfg_dir} ; then
13068 ${MKDIR} ${aros_hostcfg_dir}
13070 if test ! -d ${aros_targetcfg_dir} ; then
13071 ${MKDIR} ${aros_targetcfg_dir}
13073 if test ! -d ${aros_tools_dir} ; then
13074 ${MKDIR} ${aros_tools_dir}
13076 if test ! -d ${aros_scripts_dir} ; then
13077 ${MKDIR} ${aros_scripts_dir}
13080 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
13083 ac_config_commands="$ac_config_commands compiler_executable"
13085 ac_config_commands="$ac_config_commands genshared_executable"
13087 ac_config_commands="$ac_config_commands genmf_executable"
13090 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
13093 cat >confcache <<\_ACEOF
13094 # This file is a shell script that caches the results of configure
13095 # tests run on this system so they can be shared between configure
13096 # scripts and configure runs, see configure's option --config-cache.
13097 # It is not useful on other systems. If it contains results you don't
13098 # want to keep, you may remove or edit it.
13100 # config.status only pays attention to the cache file if you give it
13101 # the --recheck option to rerun configure.
13103 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
13104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13105 # following values.
13109 # The following way of writing the cache mishandles newlines in values,
13110 # but we know of no workaround that is simple, portable, and efficient.
13111 # So, we kill variables containing newlines.
13112 # Ultrix sh set writes to stderr and can't be redirected directly,
13113 # and sets the high bit in the cache file unless we assign to the vars.
13115 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13116 eval ac_val
=\$
$ac_var
13120 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13121 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13124 _ | IFS | as_nl
) ;; #(
13125 *) $as_unset $ac_var ;;
13131 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13132 *${as_nl}ac_space
=\
*)
13133 # `set' does not quote correctly, so add quotes (double-quote
13134 # substitution turns \\\\ into \\, and sed turns \\ into \).
13137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13140 # `set' quotes correctly as required by POSIX, so do not add quotes.
13141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13154 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13155 if test -w "$cache_file"; then
13156 test "x$cache_file" != "x/dev/null" &&
13157 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13158 echo "$as_me: updating cache $cache_file" >&6;}
13159 cat confcache
>$cache_file
13161 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13162 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13167 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13168 # Let make expand exec_prefix.
13169 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13171 DEFS
=-DHAVE_CONFIG_H
13175 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13176 # 1. Remove the extension, and $U if already installed.
13177 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13178 ac_i
=`echo "$ac_i" | sed "$ac_script"`
13179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13180 # will be set to the directory where LIBOBJS objects are built.
13181 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13182 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13184 LIBOBJS
=$ac_libobjs
13186 LTLIBOBJS
=$ac_ltlibobjs
13190 : ${CONFIG_STATUS=./config.status}
13191 ac_clean_files_save
=$ac_clean_files
13192 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13195 cat >$CONFIG_STATUS <<_ACEOF
13197 # Generated by $as_me.
13198 # Run this file to recreate the current configuration.
13199 # Compiler output produced by configure, useful for debugging
13200 # configure, is in config.log if it exists.
13203 ac_cs_recheck=false
13205 SHELL=\${CONFIG_SHELL-$SHELL}
13208 cat >>$CONFIG_STATUS <<\_ACEOF
13209 ## --------------------- ##
13210 ## M4sh Initialization. ##
13211 ## --------------------- ##
13213 # Be more Bourne compatible
13214 DUALCASE
=1; export DUALCASE
# for MKS sh
13215 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
13218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13219 # is contrary to our usage. Disable this feature.
13220 alias -g '${1+"$@"}'='"$@"'
13221 setopt NO_GLOB_SUBST
13223 case `(set -o) 2>/dev/null` in
13224 *posix
*) set -o posix
;;
13233 # Avoid depending upon Character Ranges.
13234 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13235 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13236 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13237 as_cr_digits
='0123456789'
13238 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13240 # The user is always right.
13241 if test "${PATH_SEPARATOR+set}" != set; then
13242 echo "#! /bin/sh" >conf$$.sh
13243 echo "exit 0" >>conf$$.sh
13245 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13253 # Support unset when possible.
13254 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13262 # We need space, tab and new line, in precisely that order. Quoting is
13263 # there to prevent editors from complaining about space-tab.
13264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13265 # splitting by setting IFS to empty value.)
13270 # Find who we are. Look in the path if we contain no directory separator.
13272 *[\\/]* ) as_myself
=$0 ;;
13273 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13274 for as_dir
in $PATH
13277 test -z "$as_dir" && as_dir
=.
13278 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13284 # We did not find ourselves, most probably we were run as `sh COMMAND'
13285 # in which case we are not to be found in the path.
13286 if test "x$as_myself" = x
; then
13289 if test ! -f "$as_myself"; then
13290 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13291 { (exit 1); exit 1; }
13294 # Work around bugs in pre-3.0 UWIN ksh.
13295 for as_var
in ENV MAIL MAILPATH
13296 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
13304 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13305 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13306 LC_TELEPHONE LC_TIME
13308 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13309 eval $as_var=C
; export $as_var
13311 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
13315 # Required to use basename.
13316 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13317 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13323 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13324 as_basename
=basename
13330 # Name of the executable.
13331 as_me
=`$as_basename -- "$0" ||
13332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13333 X"$0" : 'X\(//\)$' \| \
13334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13336 sed '/^.*\/\([^/][^/]*\)\/*$/{
13355 as_lineno_1
=$LINENO
13356 as_lineno_2
=$LINENO
13357 test "x$as_lineno_1" != "x$as_lineno_2" &&
13358 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
13360 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13361 # uniformly replaced by the line number. The first 'sed' inserts a
13362 # line-number line after each line using $LINENO; the second 'sed'
13363 # does the real work. The second script uses 'N' to pair each
13364 # line-number line with the line containing $LINENO, and appends
13365 # trailing '-' during substitution so that $LINENO is not a special
13366 # case at line end.
13367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13368 # scripts with optimization help from Paolo Bonzini. Blame Lee
13369 # E. McMahon (1931-1989) for sed's syntax. :-)
13381 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13384 ' >$as_me.lineno
&&
13385 chmod +x
"$as_me.lineno" ||
13386 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13387 { (exit 1); exit 1; }; }
13389 # Don't try to exec as it changes $[0], causing all sort of problems
13390 # (the dirname of $[0] is not the place where we might find the
13391 # original and so on. Autoconf is especially sensitive to this).
13392 .
"./$as_me.lineno"
13393 # Exit status is that of the last command.
13398 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13404 ECHO_C
= ECHO_N
= ECHO_T
=
13405 case `echo -n x` in
13407 case `echo 'x\c'` in
13408 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13415 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13416 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13422 rm -f conf$$ conf$$.exe conf$$.
file
13423 if test -d conf$$.dir
; then
13424 rm -f conf$$.dir
/conf$$.
file
13430 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13432 # ... but there are two gotchas:
13433 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13434 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13435 # In both cases, we have to default to `cp -p'.
13436 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13438 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13443 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13444 rmdir conf$$.dir
2>/dev
/null
13446 if mkdir
-p .
2>/dev
/null
; then
13449 test -d .
/-p && rmdir .
/-p
13453 if test -x / >/dev
/null
2>&1; then
13454 as_test_x
='test -x'
13456 if ls -dL / >/dev
/null
2>&1; then
13463 if test -d "$1"; then
13469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13470 ???[sx]*):;;*)false;;esac;fi
13474 as_executable_p
=$as_test_x
13476 # Sed expression to map a string onto a valid CPP name.
13477 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13479 # Sed expression to map a string onto a valid variable name.
13480 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13485 # Save the log message, to keep $[0] and so on meaningful, and to
13486 # report actual input values of CONFIG_FILES etc. instead of their
13487 # values after options handling.
13489 This file was extended by $as_me, which was
13490 generated by GNU Autoconf 2.61. Invocation command line was
13492 CONFIG_FILES = $CONFIG_FILES
13493 CONFIG_HEADERS = $CONFIG_HEADERS
13494 CONFIG_LINKS = $CONFIG_LINKS
13495 CONFIG_COMMANDS = $CONFIG_COMMANDS
13498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13503 cat >>$CONFIG_STATUS <<_ACEOF
13504 # Files that config.status was made for.
13505 config_files="$ac_config_files"
13506 config_headers="$ac_config_headers"
13507 config_commands="$ac_config_commands"
13511 cat >>$CONFIG_STATUS <<\_ACEOF
13513 \`$as_me' instantiates files from templates according to the
13514 current configuration.
13516 Usage: $0 [OPTIONS] [FILE]...
13518 -h, --help print this help, then exit
13519 -V, --version print version number and configuration settings, then exit
13520 -q, --quiet do not print progress messages
13521 -d, --debug don't remove temporary files
13522 --recheck update $as_me by reconfiguring in the same conditions
13523 --file=FILE[:TEMPLATE]
13524 instantiate the configuration file FILE
13525 --header=FILE[:TEMPLATE]
13526 instantiate the configuration header FILE
13528 Configuration files:
13531 Configuration headers:
13534 Configuration commands:
13537 Report bugs to <bug-autoconf@gnu.org>."
13540 cat >>$CONFIG_STATUS <<_ACEOF
13543 configured by $0, generated by GNU Autoconf 2.61,
13544 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13546 Copyright (C) 2006 Free Software Foundation, Inc.
13547 This config.status script is free software; the Free Software Foundation
13548 gives unlimited permission to copy, distribute and modify it."
13554 cat >>$CONFIG_STATUS <<\_ACEOF
13555 # If no file are specified by the user, then we need to provide default
13556 # value. By we need to know if files were specified by the user.
13562 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13563 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13574 # Handling of the options.
13575 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13577 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13578 echo "$ac_cs_version"; exit ;;
13579 --debug |
--debu |
--deb |
--de |
--d |
-d )
13581 --file |
--fil |
--fi |
--f )
13583 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13584 ac_need_defaults
=false
;;
13585 --header |
--heade |
--head |
--hea )
13587 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13588 ac_need_defaults
=false
;;
13590 # Conflict between --help and --header
13591 { echo "$as_me: error: ambiguous option: $1
13592 Try \`$0 --help' for more information." >&2
13593 { (exit 1); exit 1; }; };;
13594 --help |
--hel |
-h )
13595 echo "$ac_cs_usage"; exit ;;
13596 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13597 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13600 # This is an error.
13601 -*) { echo "$as_me: error: unrecognized option: $1
13602 Try \`$0 --help' for more information." >&2
13603 { (exit 1); exit 1; }; } ;;
13605 *) ac_config_targets
="$ac_config_targets $1"
13606 ac_need_defaults
=false
;;
13612 ac_configure_extra_args
=
13614 if $ac_cs_silent; then
13616 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13620 cat >>$CONFIG_STATUS <<_ACEOF
13621 if \$ac_cs_recheck; then
13622 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13623 CONFIG_SHELL=$SHELL
13624 export CONFIG_SHELL
13625 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13629 cat >>$CONFIG_STATUS <<\_ACEOF
13633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13634 ## Running $as_me. ##
13640 cat >>$CONFIG_STATUS <<_ACEOF
13645 aros_host_exe_suffix=${aros_host_exe_suffix}
13646 aros_tools_dir=${aros_tools_dir}
13647 aros_target_cpu=${aros_target_cpu}
13648 aros_target_arch=${aros_target_arch}
13649 aros_target_suffix=${aros_target_suffix}
13650 aros_target_nm_ln=${aros_target_nm_ln}
13651 aros_target_as_ln=${aros_target_as_ln}
13652 aros_target_ar_ln=${aros_target_ar_ln}
13653 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13654 aros_target_objdump_ln=${aros_target_objdump_ln}
13655 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13656 aros_target_strip_ln=${aros_target_strip_ln}
13659 aros_scripts_dir=${aros_scripts_dir}
13661 aros_tools_dir=${aros_tools_dir}
13666 cat >>$CONFIG_STATUS <<\_ACEOF
13668 # Handling of arguments.
13669 for ac_config_target
in $ac_config_targets
13671 case $ac_config_target in
13672 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13673 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
13674 "genshared_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genshared_executable" ;;
13675 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
13676 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13677 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
13678 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13679 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13680 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13681 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13682 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
13683 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13684 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13685 "${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" ;;
13686 "${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" ;;
13687 "${aros_scripts_dir}/genshared") CONFIG_FILES
="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13688 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13689 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
13691 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13692 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13693 { (exit 1); exit 1; }; };;
13698 # If the user did not use the arguments to specify the items to instantiate,
13699 # then the envvar interface is used. Set only those that are not.
13700 # We use the long form for the default assignment because of an extremely
13701 # bizarre bug on SunOS 4.1.3.
13702 if $ac_need_defaults; then
13703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13708 # Have a temporary directory for convenience. Make it in the build tree
13709 # simply because there is no reason against having it here, and in addition,
13710 # creating and moving files from /tmp can sometimes cause problems.
13711 # Hook for its removal unless debugging.
13712 # Note that there is a small window in which the directory will not be cleaned:
13713 # after its creation but before its name has been assigned to `$tmp'.
13717 trap 'exit_status=$?
13718 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13720 trap '{ (exit 1); exit 1; }' 1 2 13 15
13722 # Create a (secure) tmp directory for tmp files.
13725 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13726 test -n "$tmp" && test -d "$tmp"
13729 tmp
=.
/conf$$
-$RANDOM
13730 (umask 077 && mkdir
"$tmp")
13733 echo "$me: cannot create a temporary directory in ." >&2
13734 { (exit 1); exit 1; }
13738 # Set up the sed scripts for CONFIG_FILES section.
13741 # No need to generate the scripts if there are no CONFIG_FILES.
13742 # This happens for instance when ./config.status config.h
13743 if test -n "$CONFIG_FILES"; then
13750 for ac_last_try
in false false false false false
:; do
13751 cat >conf$
$subs.
sed <<_ACEOF
13752 SHELL!$SHELL$ac_delim
13753 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13754 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13755 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13756 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13757 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13758 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13759 exec_prefix!$exec_prefix$ac_delim
13760 prefix!$prefix$ac_delim
13761 program_transform_name!$program_transform_name$ac_delim
13762 bindir!$bindir$ac_delim
13763 sbindir!$sbindir$ac_delim
13764 libexecdir!$libexecdir$ac_delim
13765 datarootdir!$datarootdir$ac_delim
13766 datadir!$datadir$ac_delim
13767 sysconfdir!$sysconfdir$ac_delim
13768 sharedstatedir!$sharedstatedir$ac_delim
13769 localstatedir!$localstatedir$ac_delim
13770 includedir!$includedir$ac_delim
13771 oldincludedir!$oldincludedir$ac_delim
13772 docdir!$docdir$ac_delim
13773 infodir!$infodir$ac_delim
13774 htmldir!$htmldir$ac_delim
13775 dvidir!$dvidir$ac_delim
13776 pdfdir!$pdfdir$ac_delim
13777 psdir!$psdir$ac_delim
13778 libdir!$libdir$ac_delim
13779 localedir!$localedir$ac_delim
13780 mandir!$mandir$ac_delim
13781 DEFS!$DEFS$ac_delim
13782 ECHO_C!$ECHO_C$ac_delim
13783 ECHO_N!$ECHO_N$ac_delim
13784 ECHO_T!$ECHO_T$ac_delim
13785 LIBS!$LIBS$ac_delim
13786 build_alias!$build_alias$ac_delim
13787 host_alias!$host_alias$ac_delim
13788 target_alias!$target_alias$ac_delim
13789 build!$build$ac_delim
13790 build_cpu!$build_cpu$ac_delim
13791 build_vendor!$build_vendor$ac_delim
13792 build_os!$build_os$ac_delim
13793 host!$host$ac_delim
13794 host_cpu!$host_cpu$ac_delim
13795 host_vendor!$host_vendor$ac_delim
13796 host_os!$host_os$ac_delim
13798 CFLAGS!$CFLAGS$ac_delim
13799 LDFLAGS!$LDFLAGS$ac_delim
13800 CPPFLAGS!$CPPFLAGS$ac_delim
13801 ac_ct_CC!$ac_ct_CC$ac_delim
13802 EXEEXT!$EXEEXT$ac_delim
13803 OBJEXT!$OBJEXT$ac_delim
13806 MMAKE!$MMAKE$ac_delim
13807 aros_host_ld!$aros_host_ld$ac_delim
13808 aros_host_aclocal!$aros_host_aclocal$ac_delim
13809 aros_host_autoconf!$aros_host_autoconf$ac_delim
13810 aros_host_autoheader!$aros_host_autoheader$ac_delim
13811 aros_host_automake!$aros_host_automake$ac_delim
13812 aros_host_ar!$aros_host_ar$ac_delim
13813 aros_host_ranlib!$aros_host_ranlib$ac_delim
13814 aros_host_strip!$aros_host_strip$ac_delim
13818 ECHO!$ECHO$ac_delim
13819 MKDIR!$MKDIR$ac_delim
13820 TOUCH!$TOUCH$ac_delim
13821 SORT!$SORT$ac_delim
13822 UNIQ!$UNIQ$ac_delim
13825 BISON!$BISON$ac_delim
13826 FLEX!$FLEX$ac_delim
13827 PNGTOPNM!$PNGTOPNM$ac_delim
13828 PPMTOILBM!$PPMTOILBM$ac_delim
13830 CHMOD!$CHMOD$ac_delim
13831 PYTHON!$PYTHON$ac_delim
13832 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13833 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13834 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13835 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13836 pythondir!$pythondir$ac_delim
13837 pkgpythondir!$pkgpythondir$ac_delim
13838 pyexecdir!$pyexecdir$ac_delim
13839 pkgpyexecdir!$pkgpyexecdir$ac_delim
13842 TEST!$TEST$ac_delim
13844 GREP!$GREP$ac_delim
13845 EGREP!$EGREP$ac_delim
13846 LIBOBJS!$LIBOBJS$ac_delim
13847 DISTCC!$DISTCC$ac_delim
13848 CCACHE!$CCACHE$ac_delim
13851 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13853 elif $ac_last_try; then
13854 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13855 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13856 { (exit 1); exit 1; }; }
13858 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13862 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13863 if test -n "$ac_eof"; then
13864 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13865 ac_eof
=`expr $ac_eof + 1`
13868 cat >>$CONFIG_STATUS <<_ACEOF
13869 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13873 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13874 s/^/s,@/; s/!/@,|#_!!_#|/
13877 s/'"$ac_delim"'$/,g/; t
13879 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13880 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13881 rm -f conf$
$subs.
sed
13882 cat >>$CONFIG_STATUS <<_ACEOF
13888 for ac_last_try
in false false false false false
:; do
13889 cat >conf$
$subs.
sed <<_ACEOF
13890 aros_target_cc!$aros_target_cc$ac_delim
13891 aros_target_ld!$aros_target_ld$ac_delim
13892 aros_target_as_ln!$aros_target_as_ln$ac_delim
13893 aros_kernel_ld!$aros_kernel_ld$ac_delim
13894 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13895 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13896 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13897 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13898 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13899 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13900 aros_target_cxx!$aros_target_cxx$ac_delim
13901 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13902 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13903 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13904 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13905 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13906 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13907 host_cflags_iquote!$host_cflags_iquote$ac_delim
13908 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13909 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13910 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13911 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13912 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13913 XMKMF!$XMKMF$ac_delim
13914 SDL_CONFIG!$SDL_CONFIG$ac_delim
13915 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13916 SDL_LIBS!$SDL_LIBS$ac_delim
13917 aros_arch!$aros_arch$ac_delim
13918 aros_cpu!$aros_cpu$ac_delim
13919 aros_flavour!$aros_flavour$ac_delim
13920 aros_flavour_uc!$aros_flavour_uc$ac_delim
13921 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13922 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13923 SRCDIR!$SRCDIR$ac_delim
13924 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13925 aros_cc_pre!$aros_cc_pre$ac_delim
13926 aros_host_arch!$aros_host_arch$ac_delim
13927 aros_host_cpu!$aros_host_cpu$ac_delim
13928 aros_host_cc!$aros_host_cc$ac_delim
13929 aros_host_make!$aros_host_make$ac_delim
13930 aros_host_cflags!$aros_host_cflags$ac_delim
13931 aros_host_ldflags!$aros_host_ldflags$ac_delim
13932 aros_host_debug!$aros_host_debug$ac_delim
13933 aros_host_mkdep!$aros_host_mkdep$ac_delim
13934 aros_host_mkargs!$aros_host_mkargs$ac_delim
13935 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13936 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13937 aros_tools_dir!$aros_tools_dir$ac_delim
13938 aros_target_guitheme!$aros_target_guitheme$ac_delim
13939 aros_target_iconset!$aros_target_iconset$ac_delim
13940 aros_target_bootloader!$aros_target_bootloader$ac_delim
13941 aros_target_arch!$aros_target_arch$ac_delim
13942 aros_target_family!$aros_target_family$ac_delim
13943 aros_target_cpu!$aros_target_cpu$ac_delim
13944 aros_target_variant!$aros_target_variant$ac_delim
13945 aros_target_suffix!$aros_target_suffix$ac_delim
13946 aros_target_incl!$aros_target_incl$ac_delim
13947 aros_target_ar!$aros_target_ar$ac_delim
13948 aros_target_ranlib!$aros_target_ranlib$ac_delim
13949 aros_kernel_nm!$aros_kernel_nm$ac_delim
13950 orig_target_cc!$orig_target_cc$ac_delim
13951 aros_kernel_cc!$aros_kernel_cc$ac_delim
13952 aros_target_as!$aros_target_as$ac_delim
13953 orig_target_ld!$orig_target_ld$ac_delim
13954 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13955 aros_target_cc_path!$aros_target_cc_path$ac_delim
13956 aros_target_objdump!$aros_target_objdump$ac_delim
13957 aros_target_objcopy!$aros_target_objcopy$ac_delim
13958 aros_target_strip!$aros_target_strip$ac_delim
13959 aros_target_nm!$aros_target_nm$ac_delim
13960 aros_shared_default!$aros_shared_default$ac_delim
13961 aros_shared_ld!$aros_shared_ld$ac_delim
13962 aros_object_format!$aros_object_format$ac_delim
13963 aros_compiler_libs!$aros_compiler_libs$ac_delim
13964 aros_arch_libs!$aros_arch_libs$ac_delim
13965 aros_config_cflags!$aros_config_cflags$ac_delim
13966 aros_config_aflags!$aros_config_aflags$ac_delim
13967 aros_config_ldflags!$aros_config_ldflags$ac_delim
13968 aros_shared_cflags!$aros_shared_cflags$ac_delim
13969 aros_shared_aflags!$aros_shared_aflags$ac_delim
13970 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13971 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13972 aros_kernel_includes!$aros_kernel_includes$ac_delim
13973 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13974 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13975 aros_debug_cflags!$aros_debug_cflags$ac_delim
13976 aros_debug_aflags!$aros_debug_aflags$ac_delim
13977 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13978 aros_paranoia_cflags!$aros_paranoia_cflags$ac_delim
13979 aros_target_genmap!$aros_target_genmap$ac_delim
13980 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13981 crosstools_target!$crosstools_target$ac_delim
13982 x11_hidd_target!$x11_hidd_target$ac_delim
13983 sdl_hidd_target!$sdl_hidd_target$ac_delim
13984 oss_library_target!$oss_library_target$ac_delim
13985 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13986 aros_default_wbheight!$aros_default_wbheight$ac_delim
13989 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13991 elif $ac_last_try; then
13992 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13993 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13994 { (exit 1); exit 1; }; }
13996 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14000 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14001 if test -n "$ac_eof"; then
14002 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14003 ac_eof
=`expr $ac_eof + 1`
14006 cat >>$CONFIG_STATUS <<_ACEOF
14007 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14011 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14012 s/^/s,@/; s/!/@,|#_!!_#|/
14015 s/'"$ac_delim"'$/,g/; t
14017 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14018 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14019 rm -f conf$
$subs.
sed
14020 cat >>$CONFIG_STATUS <<_ACEOF
14026 for ac_last_try
in false false false false false
:; do
14027 cat >conf$
$subs.
sed <<_ACEOF
14028 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
14029 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
14030 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
14031 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
14032 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
14033 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
14034 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
14035 aros_serial_debug!$aros_serial_debug$ac_delim
14036 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
14037 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
14038 aros_ios_platform!$aros_ios_platform$ac_delim
14039 aros_ios_version!$aros_ios_version$ac_delim
14040 aros_ios_sdk!$aros_ios_sdk$ac_delim
14041 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
14042 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
14043 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
14044 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
14045 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
14046 ENABLE_X11!$ENABLE_X11$ac_delim
14047 aros_debug!$aros_debug$ac_delim
14048 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
14049 aros_stack_debug!$aros_stack_debug$ac_delim
14050 aros_modules_debug!$aros_modules_debug$ac_delim
14051 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
14052 gcc_target_cpu!$gcc_target_cpu$ac_delim
14053 LTLIBOBJS!$LTLIBOBJS$ac_delim
14056 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
14058 elif $ac_last_try; then
14059 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14060 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14061 { (exit 1); exit 1; }; }
14063 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14067 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14068 if test -n "$ac_eof"; then
14069 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14070 ac_eof
=`expr $ac_eof + 1`
14073 cat >>$CONFIG_STATUS <<_ACEOF
14074 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
14075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14078 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14079 s/^/s,@/; s/!/@,|#_!!_#|/
14082 s/'"$ac_delim"'$/,g/; t
14084 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14085 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14086 rm -f conf$
$subs.
sed
14087 cat >>$CONFIG_STATUS <<_ACEOF
14094 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14095 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14096 # trailing colons and then remove the whole line if VPATH becomes empty
14097 # (actually we leave an empty line to preserve line numbers).
14098 if test "x$srcdir" = x.
; then
14099 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14100 s/:*\$(srcdir):*/:/
14101 s/:*\${srcdir}:*/:/
14103 s/^\([^=]*=[ ]*\):*/\1/
14109 cat >>$CONFIG_STATUS <<\_ACEOF
14110 fi # test -n "$CONFIG_FILES"
14113 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
14116 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14118 case $ac_mode$ac_tag in
14120 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14121 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14122 { (exit 1); exit 1; }; };;
14123 :[FH
]-) ac_tag
=-:-;;
14124 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14141 -) ac_f
="$tmp/stdin";;
14142 *) # Look for the file first in the build tree, then in the source tree
14143 # (if the path is not absolute). The absolute path cannot be DOS-style,
14144 # because $ac_f cannot contain `:'.
14148 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14150 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14151 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14152 { (exit 1); exit 1; }; };;
14154 ac_file_inputs
="$ac_file_inputs $ac_f"
14157 # Let's still pretend it is `configure' which instantiates (i.e., don't
14158 # use $as_me), people would be surprised to read:
14159 # /* config.h. Generated by config.status. */
14160 configure_input
="Generated from "`IFS=:
14161 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14162 if test x
"$ac_file" != x-
; then
14163 configure_input
="$ac_file. $configure_input"
14164 { echo "$as_me:$LINENO: creating $ac_file" >&5
14165 echo "$as_me: creating $ac_file" >&6;}
14169 *:-:* |
*:-) cat >"$tmp/stdin";;
14174 ac_dir
=`$as_dirname -- "$ac_file" ||
14175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14176 X"$ac_file" : 'X\(//\)[^/]' \| \
14177 X"$ac_file" : 'X\(//\)$' \| \
14178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14184 /^X\(\/\/\)[^/].*/{
14199 -*) as_dir
=.
/$as_dir;;
14201 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
14205 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14206 *) as_qdir
=$as_dir;;
14208 as_dirs
="'$as_qdir' $as_dirs"
14209 as_dir
=`$as_dirname -- "$as_dir" ||
14210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14211 X"$as_dir" : 'X\(//\)[^/]' \| \
14212 X"$as_dir" : 'X\(//\)$' \| \
14213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14219 /^X\(\/\/\)[^/].*/{
14232 test -d "$as_dir" && break
14234 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14235 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14236 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14237 { (exit 1); exit 1; }; }; }
14241 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14243 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14244 # A ".." for each directory in $ac_dir_suffix.
14245 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14246 case $ac_top_builddir_sub in
14247 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14248 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14251 ac_abs_top_builddir
=$ac_pwd
14252 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14253 # for backward compatibility:
14254 ac_top_builddir
=$ac_top_build_prefix
14257 .
) # We are building in place.
14259 ac_top_srcdir
=$ac_top_builddir_sub
14260 ac_abs_top_srcdir
=$ac_pwd ;;
14261 [\\/]* | ?
:[\\/]* ) # Absolute name.
14262 ac_srcdir
=$srcdir$ac_dir_suffix;
14263 ac_top_srcdir
=$srcdir
14264 ac_abs_top_srcdir
=$srcdir ;;
14265 *) # Relative name.
14266 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14267 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14268 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14270 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14281 cat >>$CONFIG_STATUS <<\_ACEOF
14282 # If the template does not know about datarootdir, expand it.
14283 # FIXME: This hack should be removed a few years after 2.60.
14284 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14286 case `sed -n '/datarootdir/ {
14295 ' $ac_file_inputs` in
14296 *datarootdir
*) ac_datarootdir_seen
=yes;;
14297 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14298 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14299 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14301 cat >>$CONFIG_STATUS <<_ACEOF
14302 ac_datarootdir_hack='
14303 s&@datadir@&$datadir&g
14304 s&@docdir@&$docdir&g
14305 s&@infodir@&$infodir&g
14306 s&@localedir@&$localedir&g
14307 s&@mandir@&$mandir&g
14308 s&\\\${datarootdir}&$datarootdir&g' ;;
14312 # Neutralize VPATH when `$srcdir' = `.'.
14313 # Shell code in configure.ac might set extrasub.
14314 # FIXME: do we really want to maintain this feature?
14315 cat >>$CONFIG_STATUS <<_ACEOF
14319 cat >>$CONFIG_STATUS <<\_ACEOF
14321 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14322 s
&@configure_input@
&$configure_input&;t t
14323 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14324 s
&@srcdir@
&$ac_srcdir&;t t
14325 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14326 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14327 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14328 s
&@builddir@
&$ac_builddir&;t t
14329 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14330 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14331 $ac_datarootdir_hack
14332 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
14334 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14335 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14336 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14337 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14338 which seems to be undefined. Please make sure it is defined." >&5
14339 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14340 which seems to be undefined. Please make sure it is defined." >&2;}
14344 -) cat "$tmp/out"; rm -f "$tmp/out";;
14345 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14354 # Transform confdefs.h into a sed script `conftest.defines', that
14355 # substitutes the proper values into config.h.in to produce config.h.
14356 rm -f conftest.defines conftest.
tail
14357 # First, append a space to every undef/define line, to ease matching.
14358 echo 's/$/ /' >conftest.defines
14359 # Then, protect against being on the right side of a sed subst, or in
14360 # an unquoted here document, in config.status. If some macros were
14361 # called several times there might be several #defines for the same
14362 # symbol, which is useless. But do not sort them, since the last
14363 # AC_DEFINE must be honored.
14364 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
14365 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14366 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14367 # PARAMS is the parameter list in the macro definition--in most cases, it's
14368 # just an empty string.
14369 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14370 ac_dB
='\\)[ (].*,\\1define\\2'
14378 s/^[ ]*#[ ]*define[ ][ ]*//
14383 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14384 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14385 ' >>conftest.defines
14387 # Remove the space that was appended to ease matching.
14388 # Then replace #undef with comments. This is necessary, for
14389 # example, in the case of _POSIX_SOURCE, which is predefined and required
14390 # on some systems where configure will not decide to define it.
14391 # (The regexp can be short, since the line contains either #define or #undef.)
14393 s,^[ #]*u.*,/* & */,' >>conftest.defines
14395 # Break up conftest.defines:
14396 ac_max_sed_lines
=50
14398 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14399 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14400 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14402 ac_in
='$ac_file_inputs'
14403 ac_out
='"$tmp/out1"'
14404 ac_nxt
='"$tmp/out2"'
14408 # Write a here document:
14409 cat >>$CONFIG_STATUS <<_ACEOF
14410 # First, check the format of the line:
14411 cat >"\$tmp/defines.sed" <<\\CEOF
14412 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14413 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14417 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
14419 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14420 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
14421 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
14422 grep . conftest.
tail >/dev
/null ||
break
14423 rm -f conftest.defines
14424 mv conftest.
tail conftest.defines
14426 rm -f conftest.defines conftest.
tail
14428 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14429 cat >>$CONFIG_STATUS <<\_ACEOF
14430 if test x
"$ac_file" != x-
; then
14431 echo "/* $configure_input */" >"$tmp/config.h"
14432 cat "$ac_result" >>"$tmp/config.h"
14433 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
14434 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14435 echo "$as_me: $ac_file is unchanged" >&6;}
14438 mv "$tmp/config.h" $ac_file
14441 echo "/* $configure_input */"
14447 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14448 echo "$as_me: executing $ac_file commands" >&6;}
14453 case $ac_file$ac_mode in
14454 "compiler_executable":C
)
14455 prefix
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14457 prefix
="${prefix}/${aros_target_cpu}-aros"
14458 prefix2
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14462 chmod a
+x
${prefix2}-gcc ${prefix2}-ld
14464 ln -sf ${prefix2}-gcc ${prefix}-gcc
14465 ln -sf ${prefix2}-ld ${prefix}-ld
14467 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14468 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14469 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14470 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14471 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14472 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14473 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14475 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14476 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14477 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14478 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14479 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14480 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14481 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14483 "genshared_executable":C
) chmod a
+x
${aros_scripts_dir}/genshared
;;
14484 "genmf_executable":C
) chmod a
+x
${aros_tools_dir}/genmf.py
;;
14490 { (exit 0); exit 0; }
14492 chmod +x
$CONFIG_STATUS
14493 ac_clean_files
=$ac_clean_files_save
14496 # configure is writing to config.log, and then calls config.status.
14497 # config.status does its own redirection, appending to config.log.
14498 # Unfortunately, on DOS this fails, as config.log is still kept open
14499 # by configure, so config.status won't be able to write to it; its
14500 # output is simply discarded. So we exec the FD to /dev/null,
14501 # effectively closing config.log, so it can be properly (re)opened and
14502 # appended to by config.status. When coming back to configure, we
14503 # need to make the FD available again.
14504 if test "$no_create" != yes; then
14506 ac_config_status_args
=
14507 test "$silent" = yes &&
14508 ac_config_status_args
="$ac_config_status_args --quiet"
14510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14513 # would make configure fail if this is the last instruction.
14514 $ac_cs_success ||
{ (exit 1); exit 1; }
14519 #XXX compatability...
14520 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
14522 if test -n "$aros_shared_cflags" ; then
14523 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14524 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg