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
718 aros_target_objcopy_ln
719 aros_target_objdump_ln
720 aros_target_ranlib_ln
722 aros_target_nostdinc_cflags
723 aros_target_nostartup_ldflags
724 aros_target_nix_ldflags
725 aros_target_detach_ldflags
726 aros_target_nostdlib_ldflags
760 aros_target_cc_includes
781 aros_target_strip_flags
790 aros_default_wbheight
797 aros_nesting_supervisor
807 ignore_undefined_symbols
811 ac_precious_vars
='build_alias
823 # Initialize some variables set by options.
825 ac_init_version
=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name
=s
,x
,x
,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir
='${exec_prefix}/bin'
850 sbindir
='${exec_prefix}/sbin'
851 libexecdir
='${exec_prefix}/libexec'
852 datarootdir
='${prefix}/share'
853 datadir
='${datarootdir}'
854 sysconfdir
='${prefix}/etc'
855 sharedstatedir
='${prefix}/com'
856 localstatedir
='${prefix}/var'
857 includedir
='${prefix}/include'
858 oldincludedir
='/usr/include'
859 docdir
='${datarootdir}/doc/${PACKAGE}'
860 infodir
='${datarootdir}/info'
865 libdir
='${exec_prefix}/lib'
866 localedir
='${datarootdir}/locale'
867 mandir
='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\
$ac_option
881 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
893 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
896 -build |
--build |
--buil |
--bui |
--bu)
897 ac_prev
=build_alias
;;
898 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
899 build_alias
=$ac_optarg ;;
901 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
902 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
903 ac_prev
=cache_file
;;
904 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
905 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
906 cache_file
=$ac_optarg ;;
909 cache_file
=config.cache
;;
911 -datadir |
--datadir |
--datadi |
--datad)
913 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
914 datadir
=$ac_optarg ;;
916 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
917 |
--dataroo |
--dataro |
--datar)
918 ac_prev
=datarootdir
;;
919 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
920 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
921 datarootdir
=$ac_optarg ;;
923 -disable-* |
--disable-*)
924 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
930 eval enable_
$ac_feature=no
;;
932 -docdir |
--docdir |
--docdi |
--doc |
--do)
934 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
937 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
939 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
942 -enable-* |
--enable-*)
943 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
949 eval enable_
$ac_feature=\
$ac_optarg ;;
951 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
952 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
953 |
--exec |
--exe |
--ex)
954 ac_prev
=exec_prefix
;;
955 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
956 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
957 |
--exec=* |
--exe=* |
--ex=*)
958 exec_prefix
=$ac_optarg ;;
960 -gas |
--gas |
--ga |
--g)
961 # Obsolete; use --with-gas.
964 -help |
--help |
--hel |
--he |
-h)
966 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
967 ac_init_help
=recursive
;;
968 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
969 ac_init_help
=short
;;
971 -host |
--host |
--hos |
--ho)
972 ac_prev
=host_alias
;;
973 -host=* |
--host=* |
--hos=* |
--ho=*)
974 host_alias
=$ac_optarg ;;
976 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
978 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
980 htmldir
=$ac_optarg ;;
982 -includedir |
--includedir |
--includedi |
--included |
--include \
983 |
--includ |
--inclu |
--incl |
--inc)
984 ac_prev
=includedir
;;
985 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
986 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
987 includedir
=$ac_optarg ;;
989 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
991 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
992 infodir
=$ac_optarg ;;
994 -libdir |
--libdir |
--libdi |
--libd)
996 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
999 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1000 |
--libexe |
--libex |
--libe)
1001 ac_prev
=libexecdir
;;
1002 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1003 |
--libexe=* |
--libex=* |
--libe=*)
1004 libexecdir
=$ac_optarg ;;
1006 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1007 ac_prev
=localedir
;;
1008 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1009 localedir
=$ac_optarg ;;
1011 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1012 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1013 ac_prev
=localstatedir
;;
1014 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1015 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1016 localstatedir
=$ac_optarg ;;
1018 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1020 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1021 mandir
=$ac_optarg ;;
1023 -nfp |
--nfp |
--nf)
1024 # Obsolete; use --without-fp.
1027 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1028 |
--no-cr |
--no-c |
-n)
1031 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1032 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1035 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1036 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1037 |
--oldin |
--oldi |
--old |
--ol |
--o)
1038 ac_prev
=oldincludedir
;;
1039 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1040 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1041 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1042 oldincludedir
=$ac_optarg ;;
1044 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1046 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1047 prefix
=$ac_optarg ;;
1049 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1050 |
--program-pre |
--program-pr |
--program-p)
1051 ac_prev
=program_prefix
;;
1052 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1053 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1054 program_prefix
=$ac_optarg ;;
1056 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1057 |
--program-suf |
--program-su |
--program-s)
1058 ac_prev
=program_suffix
;;
1059 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1060 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1061 program_suffix
=$ac_optarg ;;
1063 -program-transform-name |
--program-transform-name \
1064 |
--program-transform-nam |
--program-transform-na \
1065 |
--program-transform-n |
--program-transform- \
1066 |
--program-transform |
--program-transfor \
1067 |
--program-transfo |
--program-transf \
1068 |
--program-trans |
--program-tran \
1069 |
--progr-tra |
--program-tr |
--program-t)
1070 ac_prev
=program_transform_name
;;
1071 -program-transform-name=* |
--program-transform-name=* \
1072 |
--program-transform-nam=* |
--program-transform-na=* \
1073 |
--program-transform-n=* |
--program-transform-=* \
1074 |
--program-transform=* |
--program-transfor=* \
1075 |
--program-transfo=* |
--program-transf=* \
1076 |
--program-trans=* |
--program-tran=* \
1077 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1078 program_transform_name
=$ac_optarg ;;
1080 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1082 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1083 pdfdir
=$ac_optarg ;;
1085 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1087 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1090 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1091 |
-silent |
--silent |
--silen |
--sile |
--sil)
1094 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1096 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1098 sbindir
=$ac_optarg ;;
1100 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1101 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1102 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1104 ac_prev
=sharedstatedir
;;
1105 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1106 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1107 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1109 sharedstatedir
=$ac_optarg ;;
1111 -site |
--site |
--sit)
1113 -site=* |
--site=* |
--sit=*)
1116 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1118 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1119 srcdir
=$ac_optarg ;;
1121 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1122 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1123 ac_prev
=sysconfdir
;;
1124 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1125 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1126 sysconfdir
=$ac_optarg ;;
1128 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1129 ac_prev
=target_alias
;;
1130 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1131 target_alias
=$ac_optarg ;;
1133 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1136 -version |
--version |
--versio |
--versi |
--vers |
-V)
1137 ac_init_version
=: ;;
1140 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1146 eval with_
$ac_package=\
$ac_optarg ;;
1148 -without-* |
--without-*)
1149 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1155 eval with_
$ac_package=no
;;
1158 # Obsolete; use --with-x.
1161 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1162 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1163 ac_prev
=x_includes
;;
1164 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1165 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1166 x_includes
=$ac_optarg ;;
1168 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1169 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1170 ac_prev
=x_libraries
;;
1171 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1172 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1173 x_libraries
=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1181 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\
$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 if test -n "$ac_prev"; then
1201 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val
=\$
$ac_var
1214 [\\/$
]* | ?
:[\\/]* ) continue;;
1215 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target
=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x
; then
1230 if test "x$build_alias" = x
; then
1231 cross_compiling
=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1242 test "$silent" = yes && exec 6>/dev
/null
1245 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di
=`ls -di .` &&
1247 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted
=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir
=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted
=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var
in $ac_precious_vars; do
1310 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1312 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures this package to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --x-includes=DIR X include files are
in DIR
1382 --x-libraries=DIR X library files are
in DIR
1385 --build=BUILD configure
for building on BUILD
[guessed
]
1386 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1390 if test -n "$ac_init_help"; then
1395 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1396 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1397 --enable-build-type=TYPE
1398 Select the build
type. Available types are
:
1399 personal
, nightly
, snapshot
, milestone
, release. Do
1400 NOT use this option unless you know what you are
1401 doing
! (default
=personal
)
1402 --enable-debug=list Enable different types of debug. Commas or
1403 whitespaces can be used to separate the items
in the
1404 list. Available types of debug are
: all
, none
,
1405 messages
, stack
, mungwall
, modules
, symbols. If no
1406 list is provided
then "all" is assumed.
1408 --enable-distcc Use distcc as a front end to the compiler
1410 --enable-ccache Use ccache as a front end to the compiler
1412 --enable-target-variant=NAME
1413 Enable a specific target variant
(default
=none
)
1414 --enable-includes=dir Alternative system include directory
1415 --enable-bochs-hack Enable hacks to
make BOCHS
(partly
) work
1417 --enable-palm-debug-hack
1418 Enable palm debug output hack
in palm native
1420 --enable-nesting-supervisor
1421 Enable nesting supervisor support
in unix
1423 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1424 --enable-x11-shm use X11 shared memory
(default
=auto
)
1425 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1426 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1427 --disable-sdltest Do not try to compile and run a
test SDL program
1428 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1431 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1432 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1433 --with-optimization=FLAGS
1434 Use optimization flags FLAGS
(default
=-O2).
1435 --with-resolution=XRESxYRESxDEPTH
1436 Default resolution of the initial WorkbenchScreen
1437 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1438 --with-x use the X Window System
1439 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1440 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1442 Some influential environment variables
:
1443 CC C compiler
command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1446 nonstandard directory
<lib dir
>
1447 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1448 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1449 you have headers
in a nonstandard directory
<include dir
>
1451 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1453 Use these variables to override the choices made by
`configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1517 generated by GNU Autoconf 2.61
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by $as_me, which was
1531 generated by GNU Autoconf 2.61. Invocation command line was
1543 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1544 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1545 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1546 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1547 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1549 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1550 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1552 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1553 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1554 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1555 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1556 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1557 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1558 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_must_keep_next=false
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1602 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620 -* ) ac_must_keep_next=true ;;
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1650 eval ac_val=\$$ac_var
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1664 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1688 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 echo "$ac_var='\''$ac_val'\''"
1694 if test -n "$ac_subst_files"; then
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1712 if test -s confdefs.h; then
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1803 # Check that the precious variables saved in the cache have kept the same
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1814 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1818 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1825 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1826 echo "$as_me: former value
: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1828 echo "$as_me: current value
: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1846 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1847 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1878 if test -f "$ac_dir/install-sh"; then
1880 ac_install_sh="$ac_aux_dir/install-sh -c"
1882 elif test -f "$ac_dir/install.sh"; then
1884 ac_install_sh="$ac_aux_dir/install.sh -c"
1886 elif test -f "$ac_dir/shtool"; then
1888 ac_install_sh="$ac_aux_dir/shtool install -c"
1892 if test -z "$ac_aux_dir"; then
1893 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1894 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1895 { (exit 1); exit 1; }; }
1898 # These three variables are undocumented and unsupported,
1899 # and are intended to be withdrawn in a future Autoconf release.
1900 # They can cause serious problems if a builder's source tree is in a directory
1901 # whose full name contains unusual characters.
1902 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1903 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1904 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1908 # Check what host we are running on.
1909 # If a target is not suggested, we use this one.
1910 # Note that what we call a target, Autoconf calls a host.
1911 # Make sure we can run config.sub.
1912 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1913 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1914 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1915 { (exit 1); exit 1; }; }
1917 { echo "$as_me:$LINENO: checking build system type" >&5
1918 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1919 if test "${ac_cv_build+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 ac_build_alias=$build_alias
1923 test "x$ac_build_alias" = x &&
1924 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1925 test "x$ac_build_alias" = x &&
1926 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1927 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1928 { (exit 1); exit 1; }; }
1929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1930 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1931 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1932 { (exit 1); exit 1; }; }
1935 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1936 echo "${ECHO_T}$ac_cv_build" >&6; }
1937 case $ac_cv_build in
1939 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1940 echo "$as_me: error: invalid value of canonical build" >&2;}
1941 { (exit 1); exit 1; }; };;
1944 ac_save_IFS=$IFS; IFS='-'
1950 # Remember, the first character of IFS is used to create $*,
1951 # except with old shells:
1954 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1957 { echo "$as_me:$LINENO: checking host system type" >&5
1958 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1959 if test "${ac_cv_host+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test "x$host_alias" = x; then
1963 ac_cv_host=$ac_cv_build
1965 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1966 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1967 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1968 { (exit 1); exit 1; }; }
1972 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1973 echo "${ECHO_T}$ac_cv_host" >&6; }
1976 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1977 echo "$as_me: error: invalid value of canonical host" >&2;}
1978 { (exit 1); exit 1; }; };;
1981 ac_save_IFS=$IFS; IFS='-'
1987 # Remember, the first character of IFS is used to create $*,
1988 # except with old shells:
1991 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1995 # The AROS target is slightly different to the normal GNU style
1996 # format. We don't have the middle part, and we reverse the order
1997 # of the $(CPU) and $(OS) bits.
1999 # Don't strip the version of the target yet, it might be
2000 # useful on some systems.
2002 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2003 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2005 if test "$target" = "NONE" ; then
2006 target=$host_os-$host_cpu
2009 if test "$target" = "" ; then
2010 target=$host_os-$host_cpu
2016 { echo "$as_me:$LINENO: result: $target" >&5
2017 echo "${ECHO_T}$target" >&6; }
2019 #don't know where else to put this...
2022 # Parse the target field into something useful.
2024 target_os=`echo $target |
sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2025 target_cpu=`echo $target |
sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2028 aros_default_wbwidth=800
2029 aros_default_wbheight=600
2030 aros_default_wbdepth=4
2033 # The first step is to find the host binaries.
2034 # Check for a compiler.
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 if test -n "$CC"; then
2070 { echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6; }
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2079 if test -z "$ac_cv_prog_CC"; then
2081 # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2098 ac_cv_prog_ac_ct_CC="gcc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6; }
2113 { echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6; }
2117 if test "x$ac_ct_CC" = x; then
2120 case $cross_compiling:$ac_tool_warned in
2122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2123 whose name does not start with the host triplet. If you think this
2124 configuration is useful to you, please write to autoconf@gnu.org." >&5
2125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2126 whose name does not start with the host triplet. If you think this
2127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2128 ac_tool_warned=yes ;;
2136 if test -z "$CC"; then
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}cc; ac_word=$2
2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_prog_CC="${ac_tool_prefix}cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 if test -n "$CC"; then
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6; }
2170 { echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6; }
2177 if test -z "$CC"; then
2178 # Extract the first word of "cc", so it can be a program name with args.
2179 set dummy cc; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2197 ac_prog_rejected=yes
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 if test $ac_prog_rejected = yes; then
2209 # We found a bogon in the path, so make sure we never use it.
2210 set dummy $ac_cv_prog_CC
2212 if test $# != 0; then
2213 # We chose a different compiler from the bogus one.
2214 # However, it has the same basename, so the bogon will be chosen
2215 # first if we set CC to just the basename; use the full file name.
2217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2223 if test -n "$CC"; then
2224 { echo "$as_me:$LINENO: result: $CC" >&5
2225 echo "${ECHO_T}$CC" >&6; }
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2233 if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 for ac_prog in cl.exe
2237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2274 test -n "$CC" && break
2277 if test -z "$CC"; then
2279 for ac_prog in cl.exe
2281 # Extract the first word of "$ac_prog", so it can be a program name with args.
2282 set dummy $ac_prog; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$ac_ct_CC"; then
2289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_ac_ct_CC="$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2309 if test -n "$ac_ct_CC"; then
2310 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2311 echo "${ECHO_T}$ac_ct_CC" >&6; }
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2318 test -n "$ac_ct_CC" && break
2321 if test "x$ac_ct_CC" = x; then
2324 case $cross_compiling:$ac_tool_warned in
2326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet. If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&5
2329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2330 whose name does not start with the host triplet. If you think this
2331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2332 ac_tool_warned=yes ;;
2341 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2342 See \`config.log
' for more details." >&5
2343 echo "$as_me: error: no acceptable C compiler found in \$PATH
2344 See \`config.log' for more details.
" >&2;}
2345 { (exit 1); exit 1; }; }
2347 # Provide some information about the compiler.
2348 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2349 ac_compiler=`set X $ac_compile; echo $2`
2350 { (ac_try="$ac_compiler --version >&5"
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2356 (eval "$ac_compiler --version >&5") 2>&5
2358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2359 (exit $ac_status); }
2360 { (ac_try="$ac_compiler -v >&5"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_compiler -v >&5") 2>&5
2368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2369 (exit $ac_status); }
2370 { (ac_try="$ac_compiler -V >&5"
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2376 (eval "$ac_compiler -V >&5") 2>&5
2378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2379 (exit $ac_status); }
2381 cat >conftest.$ac_ext <<_ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2396 ac_clean_files_save=$ac_clean_files
2397 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2398 # Try to create an executable without -o first, disregard a.out.
2399 # It will help us diagnose broken compilers, and finding out an intuition
2401 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2402 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2403 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2405 # List of possible output files, starting from the most likely.
2406 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2407 # only as a last resort. b.out is created by i960 compilers.
2408 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2410 # The IRIX 6 linker writes into existing files which may not be
2411 # executable, retaining their permissions. Remove them first so a
2412 # subsequent execution test works.
2414 for ac_file in $ac_files
2417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2418 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2423 if { (ac_try="$ac_link_default"
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_link_default") 2>&5
2431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2434 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2435 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2436 # so that the user can short-circuit this test for compilers unknown to
2438 for ac_file in $ac_files ''
2440 test -f "$ac_file" || continue
2442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2445 # We found the default executable, but exeext='' is most
2449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2453 # We set ac_cv_exeext here because the later test for it is not
2454 # safe: cross compilers may not add the suffix if given an `-o'
2455 # argument, so we may need to know it at that point already.
2456 # Even if this section looks crufty: it has the advantage of
2463 test "$ac_cv_exeext" = no && ac_cv_exeext=
2469 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2470 echo "${ECHO_T}$ac_file" >&6; }
2471 if test -z "$ac_file"; then
2472 echo "$as_me: failed program was
:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2476 See \
`config.log' for more details." >&5
2477 echo "$as_me: error: C compiler cannot create executables
2478 See \`config.log
' for more details." >&2;}
2479 { (exit 77); exit 77; }; }
2482 ac_exeext=$ac_cv_exeext
2484 # Check that the compiler produces executables we can run. If not, either
2485 # the compiler is broken, or we cross compile.
2486 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2487 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2489 # If not cross compiling, check that we can run a simple program.
2490 if test "$cross_compiling" != yes; then
2491 if { ac_try='.
/$ac_file'
2492 { (case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_try") 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2503 if test "$cross_compiling" = maybe; then
2506 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \
`config.log' for more details." >&5
2509 echo "$as_me: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details.
" >&2;}
2512 { (exit 1); exit 1; }; }
2516 { echo "$as_me:$LINENO: result
: yes" >&5
2517 echo "${ECHO_T}yes" >&6; }
2519 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2520 ac_clean_files=$ac_clean_files_save
2521 # Check that the compiler produces executables we can run. If not, either
2522 # the compiler is broken, or we cross compile.
2523 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2524 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2525 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2526 echo "${ECHO_T}$cross_compiling" >&6; }
2528 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2529 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2530 if { (ac_try="$ac_link"
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_link") 2>&5
2538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2539 (exit $ac_status); }; then
2540 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2541 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2542 # work properly (i.e., refer to `conftest.exe'), while it won't with
2544 for ac_file in conftest.exe conftest conftest.*; do
2545 test -f "$ac_file" || continue
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2548 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2554 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2555 See \
`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log
' for more details." >&2;}
2558 { (exit 1); exit 1; }; }
2561 rm -f conftest$ac_cv_exeext
2562 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2565 rm -f conftest.$ac_ext
2566 EXEEXT=$ac_cv_exeext
2568 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2570 if test "${ac_cv_objext+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 cat >conftest.$ac_ext <<_ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2588 rm -f conftest.o conftest.obj
2589 if { (ac_try="$ac_compile"
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compile") 2>&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; then
2599 for ac_file in conftest.o conftest.obj conftest.*; do
2600 test -f "$ac_file" || continue;
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2603 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2608 echo "$as_me: failed program was:" >&5
2609 sed 's
/^
/|
/' conftest.$ac_ext >&5
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details.
" >&5
2613 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2614 See \
`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2620 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2621 echo "${ECHO_T}$ac_cv_objext" >&6; }
2622 OBJEXT=$ac_cv_objext
2624 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2625 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2626 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2651 *) ac_try_echo
=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2656 grep -v '^ *+' conftest.er1
>conftest.err
2658 cat conftest.err
>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.
$ac_objext; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.
$ac_ext >&5
2672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2673 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2676 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2678 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS
=${CFLAGS+set}
2680 ac_save_CFLAGS
=$CFLAGS
2681 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2682 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_g+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 ac_save_c_werror_flag
=$ac_c_werror_flag
2687 ac_c_werror_flag
=yes
2690 cat >conftest.
$ac_ext <<_ACEOF
2693 cat confdefs.h
>>conftest.
$ac_ext
2694 cat >>conftest.
$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 rm -f conftest.
$ac_objext
2706 if { (ac_try
="$ac_compile"
2708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2714 grep -v '^ *+' conftest.er1 >conftest.err
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } && {
2719 test -z "$ac_c_werror_flag" ||
2720 test ! -s conftest.err
2721 } && test -s conftest.$ac_objext; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2743 rm -f conftest.$ac_objext
2744 if { (ac_try="$ac_compile"
2746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2747 *) ac_try_echo
=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compile") 2>conftest.er1
2752 grep -v '^ *+' conftest.er1
>conftest.err
2754 cat conftest.err
>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } && {
2757 test -z "$ac_c_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest.
$ac_objext; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.
$ac_ext >&5
2765 ac_c_werror_flag
=$ac_save_c_werror_flag
2767 cat >conftest.
$ac_ext <<_ACEOF
2770 cat confdefs.h
>>conftest.
$ac_ext
2771 cat >>conftest.
$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.
$ac_objext
2783 if { (ac_try
="$ac_compile"
2785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } && {
2796 test -z "$ac_c_werror_flag" ||
2797 test ! -s conftest.err
2798 } && test -s conftest.$ac_objext; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 ac_c_werror_flag=$ac_save_c_werror_flag
2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2818 if test "$ac_test_CFLAGS" = set; then
2819 CFLAGS=$ac_save_CFLAGS
2820 elif test $ac_cv_prog_cc_g = yes; then
2821 if test "$GCC" = yes; then
2827 if test "$GCC" = yes; then
2833 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2834 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_cc_c89+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 ac_cv_prog_cc_c89=no
2840 cat >conftest.$ac_ext <<_ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2848 #include <sys/types.h>
2849 #include <sys/stat.h>
2850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2851 struct buf { int x; };
2852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2853 static char *e (p, i)
2859 static char *f (char * (*g) (char **, int), char **p, ...)
2864 s = g (p, va_arg (v,int));
2869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2870 function prototypes and stuff, but not '\xHH' hex character constants.
2871 These don't provoke an error unfortunately, instead are silently treated
2872 as 'x'. The following induces an error, until -std is added to get
2873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2874 array size at least. It's necessary to write '\x00'==0 to get something
2875 that's true only with -std. */
2876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2879 inside strings and character constants. */
2881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2883 int test (int i, double x);
2884 struct s1 {int (*f) (int a);};
2885 struct s2 {int (*f) (double a);};
2886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900 CC="$ac_save_CC $ac_arg"
2901 rm -f conftest.$ac_objext
2902 if { (ac_try="$ac_compile"
2904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2905 *) ac_try_echo
=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>conftest.er1
2910 grep -v '^ *+' conftest.er1
>conftest.err
2912 cat conftest.err
>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } && {
2915 test -z "$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 } && test -s conftest.
$ac_objext; then
2918 ac_cv_prog_cc_c89
=$ac_arg
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.
$ac_ext >&5
2926 rm -f core conftest.err conftest.
$ac_objext
2927 test "x$ac_cv_prog_cc_c89" != "xno" && break
2929 rm -f conftest.
$ac_ext
2934 case "x$ac_cv_prog_cc_c89" in
2936 { echo "$as_me:$LINENO: result: none needed" >&5
2937 echo "${ECHO_T}none needed" >&6; } ;;
2939 { echo "$as_me:$LINENO: result: unsupported" >&5
2940 echo "${ECHO_T}unsupported" >&6; } ;;
2942 CC
="$CC $ac_cv_prog_cc_c89"
2943 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2944 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2949 ac_cpp
='$CPP $CPPFLAGS'
2950 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2954 case $ac_cv_prog_cc_stdc in
2955 no
) ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;;
2956 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2957 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2958 if test "${ac_cv_prog_cc_c99+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 ac_cv_prog_cc_c99
=no
2963 cat >conftest.
$ac_ext <<_ACEOF
2966 cat confdefs.h
>>conftest.
$ac_ext
2967 cat >>conftest.
$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2970 #include <stdbool.h>
2975 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2976 #define debug(...) fprintf (stderr, __VA_ARGS__)
2977 #define showlist(...) puts (#__VA_ARGS__)
2978 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2980 test_varargs_macros (void)
2985 debug ("X = %d\n", x);
2986 showlist (The first, second, and third items.);
2987 report (x>y, "x is %d but y is %d", x, y);
2990 // Check long long types.
2991 #define BIG64 18446744073709551615ull
2992 #define BIG32 4294967295ul
2993 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2995 your preprocessor is broken;
2999 your preprocessor is broken;
3001 static long long int bignum = -9223372036854775807LL;
3002 static unsigned long long int ubignum = BIG64;
3004 struct incomplete_array
3012 const wchar_t *name;
3016 typedef const char *ccp;
3019 test_restrict (ccp restrict text)
3021 // See if C++-style comments work.
3022 // Iterate through items via the restricted pointer.
3023 // Also check for declarations in for loops.
3024 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3029 // Check varargs and va_copy.
3031 test_varargs (const char *format, ...)
3034 va_start (args, format);
3036 va_copy (args_copy, args);
3047 str = va_arg (args_copy, const char *);
3050 number = va_arg (args_copy, int);
3053 fnumber = va_arg (args_copy, double);
3068 _Bool success = false;
3071 if (test_restrict ("String literal") == 0)
3073 char *restrict newvar = "Another string";
3076 test_varargs ("s, d' f .", "string", 65, 34.234);
3077 test_varargs_macros ();
3079 // Check flexible array members.
3080 struct incomplete_array *ia =
3081 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3083 for (int i = 0; i < ia->datasize; ++i)
3084 ia->data[i] = i * 1.234;
3086 // Check named initializers.
3087 struct named_init ni = {
3089 .name = L"Test wide string",
3090 .average = 543.34343,
3095 int dynamic_array[ni.number];
3096 dynamic_array[ni.number - 1] = 543;
3098 // work around unused variable warnings
3099 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3100 || dynamic_array[ni.number - 1] != 543);
3106 for ac_arg
in '' -std=gnu99
-c99 -qlanglvl=extc99
3108 CC
="$ac_save_CC $ac_arg"
3109 rm -f conftest.
$ac_objext
3110 if { (ac_try
="$ac_compile"
3112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cc_c99=$ac_arg
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3134 rm -f core conftest.err conftest.$ac_objext
3135 test "x$ac_cv_prog_cc_c99" != "xno" && break
3137 rm -f conftest.$ac_ext
3142 case "x$ac_cv_prog_cc_c99" in
3144 { echo "$as_me:$LINENO: result: none needed" >&5
3145 echo "${ECHO_T}none needed" >&6; } ;;
3147 { echo "$as_me:$LINENO: result: unsupported" >&5
3148 echo "${ECHO_T}unsupported" >&6; } ;;
3150 CC="$CC $ac_cv_prog_cc_c99"
3151 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3152 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3154 if test "x$ac_cv_prog_cc_c99" != xno; then
3155 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3157 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3158 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_cc_c89+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 ac_cv_prog_cc_c89=no
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3172 #include <sys/types.h>
3173 #include <sys/stat.h>
3174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3175 struct buf { int x; };
3176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3177 static char *e (p, i)
3183 static char *f (char * (*g) (char **, int), char **p, ...)
3188 s = g (p, va_arg (v,int));
3193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3194 function prototypes and stuff, but not '\xHH' hex character constants.
3195 These don't provoke an error unfortunately, instead are silently treated
3196 as 'x'. The following induces an error, until -std is added to get
3197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3198 array size at least. It's necessary to write '\x00'==0 to get something
3199 that's true only with -std. */
3200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3203 inside strings and character constants. */
3205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3207 int test (int i, double x);
3208 struct s1 {int (*f) (int a);};
3209 struct s2 {int (*f) (double a);};
3210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3224 CC="$ac_save_CC $ac_arg"
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3229 *) ac_try_echo
=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1
>conftest.err
3236 cat conftest.err
>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.
$ac_objext; then
3242 ac_cv_prog_cc_c89
=$ac_arg
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.
$ac_ext >&5
3250 rm -f core conftest.err conftest.
$ac_objext
3251 test "x$ac_cv_prog_cc_c89" != "xno" && break
3253 rm -f conftest.
$ac_ext
3258 case "x$ac_cv_prog_cc_c89" in
3260 { echo "$as_me:$LINENO: result: none needed" >&5
3261 echo "${ECHO_T}none needed" >&6; } ;;
3263 { echo "$as_me:$LINENO: result: unsupported" >&5
3264 echo "${ECHO_T}unsupported" >&6; } ;;
3266 CC
="$CC $ac_cv_prog_cc_c89"
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3270 if test "x$ac_cv_prog_cc_c89" != xno
; then
3271 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3273 ac_cv_prog_cc_stdc
=no
3281 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3282 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 case $ac_cv_prog_cc_stdc in
3288 no
) { echo "$as_me:$LINENO: result: unsupported" >&5
3289 echo "${ECHO_T}unsupported" >&6; } ;;
3290 '') { echo "$as_me:$LINENO: result: none needed" >&5
3291 echo "${ECHO_T}none needed" >&6; } ;;
3292 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3293 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3298 ac_cpp
='$CPP $CPPFLAGS'
3299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3302 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3308 if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 # Double quotes because CPP needs to be expanded
3313 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 for ac_c_preproc_warn_flag
in '' yes
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.
$ac_ext <<_ACEOF
3327 cat confdefs.h
>>conftest.
$ac_ext
3328 cat >>conftest.
$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3331 # include <limits.h>
3333 # include <assert.h>
3337 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null && {
3350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 # Broken: fails on valid input.
3362 rm -f conftest.err conftest.$ac_ext
3364 # OK, works on sane cases. Now check whether nonexistent headers
3365 # can be detected and how.
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <ac_nonexistent.h>
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3377 *) ac_try_echo
=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1
>conftest.err
3384 cat conftest.err
>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev
/null
&& {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3390 # Broken: success on invalid input.
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.
$ac_ext >&5
3396 # Passes both tests.
3401 rm -f conftest.err conftest.
$ac_ext
3404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3405 rm -f conftest.err conftest.
$ac_ext
3406 if $ac_preproc_ok; then
3418 { echo "$as_me:$LINENO: result: $CPP" >&5
3419 echo "${ECHO_T}$CPP" >&6; }
3421 for ac_c_preproc_warn_flag
in '' yes
3423 # Use a header file that comes with gcc, so configuring glibc
3424 # with a fresh cross-compiler works.
3425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3426 # <limits.h> exists even on freestanding compilers.
3427 # On the NeXT, cc -E runs the code through the compiler's parser,
3428 # not just through cpp. "Syntax error" is here to catch this case.
3429 cat >conftest.
$ac_ext <<_ACEOF
3432 cat confdefs.h
>>conftest.
$ac_ext
3433 cat >>conftest.
$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3436 # include <limits.h>
3438 # include <assert.h>
3442 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null && {
3455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 # Broken: fails on valid input.
3467 rm -f conftest.err conftest.$ac_ext
3469 # OK, works on sane cases. Now check whether nonexistent headers
3470 # can be detected and how.
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #include <ac_nonexistent.h>
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3482 *) ac_try_echo
=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1
>conftest.err
3489 cat conftest.err
>&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev
/null
&& {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3495 # Broken: success on invalid input.
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.
$ac_ext >&5
3501 # Passes both tests.
3506 rm -f conftest.err conftest.
$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.
$ac_ext
3511 if $ac_preproc_ok; then
3514 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3515 See \`config.log' for more details." >&5
3516 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }
3522 ac_cpp
='$CPP $CPPFLAGS'
3523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3528 # Check for a compatible awk
3529 for ac_prog
in gawk nawk
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy
$ac_prog; ac_word
=$2
3533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_AWK+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if test -n "$AWK"; then
3539 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir
=.
3546 for ac_exec_ext
in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_AWK
="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 if test -n "$AWK"; then
3560 { echo "$as_me:$LINENO: result: $AWK" >&5
3561 echo "${ECHO_T}$AWK" >&6; }
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3568 test -n "$AWK" && break
3571 if test "$AWK" = ""; then
3572 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3573 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3574 { (exit 1); exit 1; }; }
3576 # Extract the first word of "mmake", so it can be a program name with args.
3577 set dummy mmake
; ac_word
=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_MMAKE+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test -n "$MMAKE"; then
3584 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
3586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir
=.
3591 for ac_exec_ext
in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_MMAKE
="mmake "
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 MMAKE
=$ac_cv_prog_MMAKE
3604 if test -n "$MMAKE"; then
3605 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3606 echo "${ECHO_T}$MMAKE" >&6; }
3608 { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3614 # Perform some default variable assignments. Note all of these will be
3615 # Regenerated from the script, so there is no need to cache them.
3618 if test "$GCC" = "yes"; then
3619 aros_gcc_ld
=`$CC -print-prog-name=ld`
3620 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3621 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 case $aros_host_ld in
3629 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3633 for as_dir
in `dirname $aros_gcc_ld`
3636 test -z "$as_dir" && as_dir
=.
3637 for ac_exec_ext
in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 aros_host_ld
=$ac_cv_path_aros_host_ld
3651 if test -n "$aros_host_ld"; then
3652 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3653 echo "${ECHO_T}$aros_host_ld" >&6; }
3655 { echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6; }
3661 if test "$aros_host_ld" = ""; then
3662 # Extract the first word of "ld", so it can be a program name with args.
3663 set dummy ld
; ac_word
=$2
3664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 case $aros_host_ld in
3671 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir
=.
3679 for ac_exec_ext
in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 aros_host_ld
=$ac_cv_path_aros_host_ld
3693 if test -n "$aros_host_ld"; then
3694 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3695 echo "${ECHO_T}$aros_host_ld" >&6; }
3697 { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3703 if test "$aros_host_ld" = ""; then
3704 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3705 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3706 { (exit 1); exit 1; }; }
3708 aros_host_make
="make"
3709 aros_host_cflags
=$CFLAGS
3710 aros_host_ldflags
=$LDFLAGS
3711 aros_host_debug
="-g -O0"
3712 aros_host_mkdep
="\$(TOP)/scripts/mkdep"
3713 aros_host_mkargs
="--no-print-directory"
3714 aros_host_incl
="/usr/include"
3715 aros_host_exe_suffix
="$EXEEXT"
3716 aros_host_lib_suffix
=""
3718 for ac_prog
in aclocal aclocal19
3720 # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy
$ac_prog; ac_word
=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 if test -n "$aros_host_aclocal"; then
3728 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
3730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir
=.
3735 for ac_exec_ext
in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_aros_host_aclocal
="$ac_prog"
3738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
3748 if test -n "$aros_host_aclocal"; then
3749 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3750 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3757 test -n "$aros_host_aclocal" && break
3760 for ac_prog
in autoconf autoconf259 autoconf253
3762 # Extract the first word of "$ac_prog", so it can be a program name with args.
3763 set dummy
$ac_prog; ac_word
=$2
3764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3766 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 if test -n "$aros_host_autoconf"; then
3770 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
3772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir
=.
3777 for ac_exec_ext
in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_aros_host_autoconf
="$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
3790 if test -n "$aros_host_autoconf"; then
3791 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3792 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3794 { echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6; }
3799 test -n "$aros_host_autoconf" && break
3802 for ac_prog
in autoheader autoheader259 autoheader253
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy
$ac_prog; ac_word
=$2
3806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3808 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if test -n "$aros_host_autoheader"; then
3812 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
3814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3818 test -z "$as_dir" && as_dir
=.
3819 for ac_exec_ext
in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_prog_aros_host_autoheader
="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
3832 if test -n "$aros_host_autoheader"; then
3833 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3834 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3836 { echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6; }
3841 test -n "$aros_host_autoheader" && break
3844 for ac_prog
in automake automake19
3846 # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy
$ac_prog; ac_word
=$2
3848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3850 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 if test -n "$aros_host_automake"; then
3854 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
3856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir
=.
3861 for ac_exec_ext
in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_prog_aros_host_automake
="$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 aros_host_automake
=$ac_cv_prog_aros_host_automake
3874 if test -n "$aros_host_automake"; then
3875 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3876 echo "${ECHO_T}$aros_host_automake" >&6; }
3878 { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3883 test -n "$aros_host_automake" && break
3887 case "$aros_host_cc" in
3889 aros_host_cc_pipe
="-pipe"
3892 aros_host_cc_pipe
=""
3895 aros_host_cc_pipe
=""
3899 aros_target_cc_includes
=""
3901 # This is the main host configuration section. It is where the host
3902 # can change the values of any variables it needs to change. We do
3903 # not look at anything that compiles to the target yet, we'll get
3908 aros_host_arch
="linux"
3909 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3912 aros_host_cpu
="i386"
3915 aros_host_cpu
="x86_64"
3918 aros_host_cpu
="m68k"
3924 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3925 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3926 aros_host_cpu
="$host_cpu"
3932 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3933 aros_host_make
="gmake"
3934 aros_host_arch
="freebsd"
3935 aros_host_cpu
="i386"
3937 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
3942 aros_object_format
="elf_i386"
3946 aros_object_format
="elf_i386_fbsd"
3953 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3954 aros_host_arch
="darwin"
3957 aros_host_cpu
="i386"
3963 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3964 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3965 aros_host_cpu
="$host_cpu"
3969 aros_host_ldflags
="$aros_host_ldflags -liconv"
3974 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3975 aros_host_make
="gmake"
3976 aros_host_arch
="netbsd"
3979 aros_host_cpu
="i386"
3982 aros_host_cpu
="m68k"
3985 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3986 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3987 aros_host_cpu
="$host_cpu"
3990 aros_host_lib_suffix
=".0.0"
3994 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3995 aros_host_make
="gmake"
3996 aros_host_arch
="openbsd"
3999 aros_host_cpu
="i386"
4002 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4003 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4004 aros_host_cpu
="$host_cpu"
4010 aros_host_arch
="solaris"
4011 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4014 aros_host_cpu
="sparc"
4017 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4018 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4019 aros_host_cpu
="$host_cpu"
4025 aros_host_arch
="morphos"
4030 aros_host_arch
="amiga"
4035 TOUCH
="/gg/bin/touch"
4038 aros_host_cpu
="m68k"
4044 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4045 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4046 aros_host_cpu
="$host_cpu"
4052 aros_host_arch
="cygwin"
4053 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4056 aros_host_cpu
="i386"
4059 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4060 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4061 aros_host_cpu
="$host_cpu"
4066 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4067 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4068 { (exit 1); exit 1; }; }
4072 # Extract the first word of "ar", so it can be a program name with args.
4073 set dummy
ar; ac_word
=$2
4074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4076 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if test -n "$aros_host_ar"; then
4080 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir
=.
4087 for ac_exec_ext
in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_aros_host_ar
="ar cr"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 aros_host_ar
=$ac_cv_prog_aros_host_ar
4100 if test -n "$aros_host_ar"; then
4101 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4102 echo "${ECHO_T}$aros_host_ar" >&6; }
4104 { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4109 if test "$aros_host_ar" = ""; then
4110 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4111 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4112 { (exit 1); exit 1; }; }
4114 # Extract the first word of "ranlib", so it can be a program name with args.
4115 set dummy ranlib
; ac_word
=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test -n "$aros_host_ranlib"; then
4122 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir
=.
4129 for ac_exec_ext
in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_aros_host_ranlib
="ranlib "
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4142 if test -n "$aros_host_ranlib"; then
4143 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4144 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4146 { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4151 if test "$aros_host_ranlib" = ""; then
4152 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4153 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4154 { (exit 1); exit 1; }; }
4156 # Extract the first word of "strip", so it can be a program name with args.
4157 set dummy strip
; ac_word
=$2
4158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4160 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if test -n "$aros_host_strip"; then
4164 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir
=.
4171 for ac_exec_ext
in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_aros_host_strip
="strip "
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 aros_host_strip
=$ac_cv_prog_aros_host_strip
4184 if test -n "$aros_host_strip"; then
4185 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4186 echo "${ECHO_T}$aros_host_strip" >&6; }
4188 { echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6; }
4193 if test "$aros_host_strip" = ""; then
4194 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4195 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4196 { (exit 1); exit 1; }; }
4199 # Extract the first word of "rm", so it can be a program name with args.
4200 set dummy
rm; ac_word
=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_prog_RM+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 if test -n "$RM"; then
4207 ac_cv_prog_RM
="$RM" # Let the user override the test.
4209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir
=.
4214 for ac_exec_ext
in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_RM
="rm -rf"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 if test -n "$RM"; then
4228 { echo "$as_me:$LINENO: result: $RM" >&5
4229 echo "${ECHO_T}$RM" >&6; }
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4236 if test "$RM" = ""; then
4237 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4238 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4239 { (exit 1); exit 1; }; }
4241 # Extract the first word of "cp", so it can be a program name with args.
4242 set dummy
cp; ac_word
=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_CP+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$CP"; then
4249 ac_cv_prog_CP
="$CP" # Let the user override the test.
4251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir
=.
4256 for ac_exec_ext
in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 if test -n "$CP"; then
4270 { echo "$as_me:$LINENO: result: $CP" >&5
4271 echo "${ECHO_T}$CP" >&6; }
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4278 if test "$CP" = ""; then
4279 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4280 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4281 { (exit 1); exit 1; }; }
4283 # Extract the first word of "mv", so it can be a program name with args.
4284 set dummy
mv; ac_word
=$2
4285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4287 if test "${ac_cv_prog_MV+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test -n "$MV"; then
4291 ac_cv_prog_MV
="$MV" # Let the user override the test.
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 if test -n "$MV"; then
4312 { echo "$as_me:$LINENO: result: $MV" >&5
4313 echo "${ECHO_T}$MV" >&6; }
4315 { echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6; }
4320 if test "$MV" = ""; then
4321 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4322 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4323 { (exit 1); exit 1; }; }
4325 # Extract the first word of "echo", so it can be a program name with args.
4326 set dummy
echo; ac_word
=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_ECHO+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$ECHO"; then
4333 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_ECHO
="echo "
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 ECHO
=$ac_cv_prog_ECHO
4353 if test -n "$ECHO"; then
4354 { echo "$as_me:$LINENO: result: $ECHO" >&5
4355 echo "${ECHO_T}$ECHO" >&6; }
4357 { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4362 if test "$ECHO" = ""; then
4363 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4364 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4365 { (exit 1); exit 1; }; }
4367 # Extract the first word of "mkdir", so it can be a program name with args.
4368 set dummy mkdir
; ac_word
=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_prog_MKDIR+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 if test -n "$MKDIR"; then
4375 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
4377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir
=.
4382 for ac_exec_ext
in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_MKDIR
="mkdir -p"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 MKDIR
=$ac_cv_prog_MKDIR
4395 if test -n "$MKDIR"; then
4396 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4397 echo "${ECHO_T}$MKDIR" >&6; }
4399 { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4404 if test "$MKDIR" = ""; then
4405 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4406 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4407 { (exit 1); exit 1; }; }
4409 # Extract the first word of "touch", so it can be a program name with args.
4410 set dummy
touch; ac_word
=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_prog_TOUCH+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 if test -n "$TOUCH"; then
4417 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
4419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir
=.
4424 for ac_exec_ext
in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_TOUCH
="touch "
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 TOUCH
=$ac_cv_prog_TOUCH
4437 if test -n "$TOUCH"; then
4438 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4439 echo "${ECHO_T}$TOUCH" >&6; }
4441 { echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6; }
4446 if test "$TOUCH" = ""; then
4447 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4448 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4449 { (exit 1); exit 1; }; }
4451 # Extract the first word of "sort", so it can be a program name with args.
4452 set dummy
sort; ac_word
=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_SORT+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 if test -n "$SORT"; then
4459 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
4461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir
=.
4466 for ac_exec_ext
in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_SORT
="sort "
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 SORT
=$ac_cv_prog_SORT
4479 if test -n "$SORT"; then
4480 { echo "$as_me:$LINENO: result: $SORT" >&5
4481 echo "${ECHO_T}$SORT" >&6; }
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 if test "$SORT" = ""; then
4489 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4490 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4491 { (exit 1); exit 1; }; }
4493 # Extract the first word of "uniq", so it can be a program name with args.
4494 set dummy
uniq; ac_word
=$2
4495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4497 if test "${ac_cv_prog_UNIQ+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$UNIQ"; then
4501 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
4503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir
=.
4508 for ac_exec_ext
in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_prog_UNIQ
="uniq "
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 UNIQ
=$ac_cv_prog_UNIQ
4521 if test -n "$UNIQ"; then
4522 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4523 echo "${ECHO_T}$UNIQ" >&6; }
4525 { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4530 if test "$UNIQ" = ""; then
4531 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4532 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4533 { (exit 1); exit 1; }; }
4535 # Extract the first word of "true", so it can be a program name with args.
4536 set dummy true
; ac_word
=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_prog_NOP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 if test -n "$NOP"; then
4543 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
4545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir
=.
4550 for ac_exec_ext
in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_NOP
="true "
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 if test -n "$NOP"; then
4564 { echo "$as_me:$LINENO: result: $NOP" >&5
4565 echo "${ECHO_T}$NOP" >&6; }
4567 { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4572 if test "$NOP" = ""; then
4573 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4574 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4575 { (exit 1); exit 1; }; }
4577 # Extract the first word of "cat", so it can be a program name with args.
4578 set dummy
cat; ac_word
=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_CAT+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$CAT"; then
4585 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
4587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir
=.
4592 for ac_exec_ext
in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_CAT
="cat "
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 if test -n "$CAT"; then
4606 { echo "$as_me:$LINENO: result: $CAT" >&5
4607 echo "${ECHO_T}$CAT" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 if test "$CAT" = ""; then
4615 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4616 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4617 { (exit 1); exit 1; }; }
4619 # Extract the first word of "bison", so it can be a program name with args.
4620 set dummy bison
; ac_word
=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_BISON+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$BISON"; then
4627 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
4629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir
=.
4634 for ac_exec_ext
in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_BISON
="bison "
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 BISON
=$ac_cv_prog_BISON
4647 if test -n "$BISON"; then
4648 { echo "$as_me:$LINENO: result: $BISON" >&5
4649 echo "${ECHO_T}$BISON" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 if test "$BISON" = ""; then
4657 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4658 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4659 { (exit 1); exit 1; }; }
4661 # Extract the first word of "flex", so it can be a program name with args.
4662 set dummy flex
; ac_word
=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_FLEX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$FLEX"; then
4669 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
4671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir
=.
4676 for ac_exec_ext
in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_FLEX
="flex "
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 FLEX
=$ac_cv_prog_FLEX
4689 if test -n "$FLEX"; then
4690 { echo "$as_me:$LINENO: result: $FLEX" >&5
4691 echo "${ECHO_T}$FLEX" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 if test "$FLEX" = ""; then
4699 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4700 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4701 { (exit 1); exit 1; }; }
4703 # Extract the first word of "pngtopnm", so it can be a program name with args.
4704 set dummy pngtopnm
; ac_word
=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$PNGTOPNM"; then
4711 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
4713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir
=.
4718 for ac_exec_ext
in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_PNGTOPNM
="pngtopnm "
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
4731 if test -n "$PNGTOPNM"; then
4732 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4733 echo "${ECHO_T}$PNGTOPNM" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4740 if test "$PNGTOPNM" = ""; then
4741 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4742 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4743 { (exit 1); exit 1; }; }
4745 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4746 set dummy ppmtoilbm
; ac_word
=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 if test -n "$PPMTOILBM"; then
4753 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
4755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir
=.
4760 for ac_exec_ext
in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
4773 if test -n "$PPMTOILBM"; then
4774 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4775 echo "${ECHO_T}$PPMTOILBM" >&6; }
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 if test "$PPMTOILBM" = ""; then
4783 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4784 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4785 { (exit 1); exit 1; }; }
4787 # Extract the first word of "sed", so it can be a program name with args.
4788 set dummy
sed; ac_word
=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_prog_SED+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 if test -n "$SED"; then
4795 ac_cv_prog_SED
="$SED" # Let the user override the test.
4797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir
=.
4802 for ac_exec_ext
in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_SED
="sed "
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 if test -n "$SED"; then
4816 { echo "$as_me:$LINENO: result: $SED" >&5
4817 echo "${ECHO_T}$SED" >&6; }
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4824 if test "$SED" = ""; then
4825 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4826 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4827 { (exit 1); exit 1; }; }
4829 # Extract the first word of "chmod", so it can be a program name with args.
4830 set dummy
chmod; ac_word
=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_prog_CHMOD+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 if test -n "$CHMOD"; then
4837 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
4839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir
=.
4844 for ac_exec_ext
in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_CHMOD
="chmod "
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 CHMOD
=$ac_cv_prog_CHMOD
4857 if test -n "$CHMOD"; then
4858 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4859 echo "${ECHO_T}$CHMOD" >&6; }
4861 { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4866 if test "$CHMOD" = ""; then
4867 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4868 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4869 { (exit 1); exit 1; }; }
4876 if test -n "$PYTHON"; then
4877 # If the user set $PYTHON, use it and don't search something else.
4878 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4879 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4880 prog
="import sys, string
4881 # split strings by '.' and convert to numeric. Append some zeros
4882 # because we need at least 4 digits for the hex conversion.
4883 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4885 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4886 sys.exit(sys.hexversion < minverhex)"
4887 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4888 ($PYTHON -c "$prog") >&5 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; then
4892 { echo "$as_me:$LINENO: result: yes" >&5
4893 echo "${ECHO_T}yes" >&6; }
4895 { { echo "$as_me:$LINENO: error: too old" >&5
4896 echo "$as_me: error: too old" >&2;}
4897 { (exit 1); exit 1; }; }
4900 am_display_PYTHON
=$PYTHON
4902 # Otherwise, try each interpreter until we find one that satisfies
4904 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4905 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4906 if test "${am_cv_pathless_PYTHON+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 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
4911 test "$am_cv_pathless_PYTHON" = none
&& break
4912 prog
="import sys, string
4913 # split strings by '.' and convert to numeric. Append some zeros
4914 # because we need at least 4 digits for the hex conversion.
4915 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4917 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4918 sys.exit(sys.hexversion < minverhex)"
4919 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4920 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; then
4929 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4930 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4931 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4932 if test "$am_cv_pathless_PYTHON" = none
; then
4935 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4936 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_PYTHON+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
4947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir
=.
4952 for ac_exec_ext
in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 PYTHON
=$ac_cv_path_PYTHON
4966 if test -n "$PYTHON"; then
4967 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4968 echo "${ECHO_T}$PYTHON" >&6; }
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4976 am_display_PYTHON
=$am_cv_pathless_PYTHON
4980 if test "$PYTHON" = :; then
4981 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4982 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4983 { (exit 1); exit 1; }; }
4987 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4988 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4989 if test "${am_cv_python_version+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
4994 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4995 echo "${ECHO_T}$am_cv_python_version" >&6; }
4996 PYTHON_VERSION
=$am_cv_python_version
5000 PYTHON_PREFIX
='${prefix}'
5002 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5006 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5007 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5008 if test "${am_cv_python_platform+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5013 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5014 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5015 PYTHON_PLATFORM
=$am_cv_python_platform
5020 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5021 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5022 if test "${am_cv_python_pythondir+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5026 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5028 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5029 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5030 pythondir
=$am_cv_python_pythondir
5034 pkgpythondir
=\
${pythondir}/$PACKAGE
5037 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5038 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5039 if test "${am_cv_python_pyexecdir+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5043 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5045 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5046 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5047 pyexecdir
=$am_cv_python_pyexecdir
5051 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5069 # Check for some includes for the X11 HIDD and the kernel
5072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_GREP+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 # Extract the first word of "grep ggrep" to use in msg output
5078 if test -z "$GREP"; then
5079 set dummy
grep ggrep
; ac_prog_name
=$2
5080 if test "${ac_cv_path_GREP+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 ac_path_GREP_found
=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5086 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5089 test -z "$as_dir" && as_dir
=.
5090 for ac_prog
in grep ggrep
; do
5091 for ac_exec_ext
in '' $ac_executable_extensions; do
5092 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5094 # Check for GNU ac_path_GREP and select it if it is found.
5095 # Check for GNU $ac_path_GREP
5096 case `"$ac_path_GREP" --version 2>&1` in
5098 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 echo 'GREP' >> "conftest.nl"
5108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5109 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5110 ac_count
=`expr $ac_count + 1`
5111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_GREP
="$ac_path_GREP"
5114 ac_path_GREP_max
=$ac_count
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5119 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5123 $ac_path_GREP_found && break 3
5133 GREP
="$ac_cv_path_GREP"
5134 if test -z "$GREP"; then
5135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5137 { (exit 1); exit 1; }; }
5141 ac_cv_path_GREP
=$GREP
5146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5148 GREP
="$ac_cv_path_GREP"
5151 { echo "$as_me:$LINENO: checking for egrep" >&5
5152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5153 if test "${ac_cv_path_EGREP+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5157 then ac_cv_path_EGREP
="$GREP -E"
5159 # Extract the first word of "egrep" to use in msg output
5160 if test -z "$EGREP"; then
5161 set dummy
egrep; ac_prog_name
=$2
5162 if test "${ac_cv_path_EGREP+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 ac_path_EGREP_found
=false
5166 # Loop through the user's path and test for each of PROGNAME-LIST
5167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5168 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5171 test -z "$as_dir" && as_dir
=.
5172 for ac_prog
in egrep; do
5173 for ac_exec_ext
in '' $ac_executable_extensions; do
5174 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5175 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5176 # Check for GNU ac_path_EGREP and select it if it is found.
5177 # Check for GNU $ac_path_EGREP
5178 case `"$ac_path_EGREP" --version 2>&1` in
5180 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5183 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 echo 'EGREP' >> "conftest.nl"
5190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5191 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5192 ac_count
=`expr $ac_count + 1`
5193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_EGREP
="$ac_path_EGREP"
5196 ac_path_EGREP_max
=$ac_count
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5201 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5205 $ac_path_EGREP_found && break 3
5215 EGREP
="$ac_cv_path_EGREP"
5216 if test -z "$EGREP"; then
5217 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5219 { (exit 1); exit 1; }; }
5223 ac_cv_path_EGREP
=$EGREP
5229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5231 EGREP
="$ac_cv_path_EGREP"
5234 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5236 if test "${ac_cv_header_stdc+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 cat >conftest.
$ac_ext <<_ACEOF
5242 cat confdefs.h
>>conftest.
$ac_ext
5243 cat >>conftest.
$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5258 rm -f conftest.
$ac_objext
5259 if { (ac_try
="$ac_compile"
5261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest.$ac_objext; then
5275 ac_cv_header_stdc=yes
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 ac_cv_header_stdc=no
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 if test $ac_cv_header_stdc = yes; then
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "memchr" >/dev/null 2>&1; then
5300 ac_cv_header_stdc=no
5306 if test $ac_cv_header_stdc = yes; then
5307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5308 cat >conftest.$ac_ext <<_ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "free" >/dev/null 2>&1; then
5321 ac_cv_header_stdc=no
5327 if test $ac_cv_header_stdc = yes; then
5328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5329 if test "$cross_compiling" = yes; then
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5340 #if ((' ' & 0x0FF) == 0x020)
5341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5344 # define ISLOWER(c) \
5345 (('a' <= (c) && (c) <= 'i') \
5346 || ('j' <= (c) && (c) <= 'r') \
5347 || ('s' <= (c) && (c) <= 'z'))
5348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5356 for (i = 0; i < 256; i++)
5357 if (XOR (islower (i), ISLOWER (i))
5358 || toupper (i) != TOUPPER (i))
5363 rm -f conftest$ac_exeext
5364 if { (ac_try="$ac_link"
5366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5367 *) ac_try_echo
=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_link") 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5374 { (case "(($ac_try" in
5375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_try") 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5385 echo "$as_me: program exited with status $ac_status" >&5
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5390 ac_cv_header_stdc=no
5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5398 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5399 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5400 if test $ac_cv_header_stdc = yes; then
5402 cat >>confdefs.h <<\_ACEOF
5403 #define STDC_HEADERS 1
5408 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5419 inttypes.h stdint.h unistd.h
5421 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5435 #include <$ac_header>
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5441 *) ac_try_echo
=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5446 grep -v '^ *+' conftest.er1
>conftest.err
5448 cat conftest.err
>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.
$ac_objext; then
5454 eval "$as_ac_Header=yes"
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.
$ac_ext >&5
5459 eval "$as_ac_Header=no"
5462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5464 ac_res
=`eval echo '${'$as_ac_Header'}'`
5465 { echo "$as_me:$LINENO: result: $ac_res" >&5
5466 echo "${ECHO_T}$ac_res" >&6; }
5467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5468 cat >>confdefs.h
<<_ACEOF
5469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5486 for ac_header
in sys
/ipc.h sys
/shm.h \
5487 sys
/mmap.h sys
/mman.h sysexits.h \
5488 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
5491 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5495 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_res
=`eval echo '${'$as_ac_Header'}'`
5499 { echo "$as_me:$LINENO: result: $ac_res" >&5
5500 echo "${ECHO_T}$ac_res" >&6; }
5502 # Is the header compilable?
5503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5505 cat >conftest.
$ac_ext <<_ACEOF
5508 cat confdefs.h
>>conftest.
$ac_ext
5509 cat >>conftest.
$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 #include <$ac_header>
5514 rm -f conftest.
$ac_objext
5515 if { (ac_try
="$ac_compile"
5517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest.$ac_objext; then
5531 ac_header_compiler=yes
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_header_compiler=no
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5541 echo "${ECHO_T}$ac_header_compiler" >&6; }
5543 # Is the header present?
5544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 #include <$ac_header>
5554 if { (ac_try="$ac_cpp conftest.$ac_ext"
5556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5557 *) ac_try_echo
=$ac_try;;
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5562 grep -v '^ *+' conftest.er1
>conftest.err
5564 cat conftest.err
>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } >/dev
/null
&& {
5567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5570 ac_header_preproc
=yes
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.
$ac_ext >&5
5575 ac_header_preproc
=no
5578 rm -f conftest.err conftest.
$ac_ext
5579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5580 echo "${ECHO_T}$ac_header_preproc" >&6; }
5582 # So? What about this header?
5583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5589 ac_header_preproc
=yes
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5609 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 eval "$as_ac_Header=\$ac_header_preproc"
5614 ac_res
=`eval echo '${'$as_ac_Header'}'`
5615 { echo "$as_me:$LINENO: result: $ac_res" >&5
5616 echo "${ECHO_T}$ac_res" >&6; }
5619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5620 cat >>confdefs.h
<<_ACEOF
5621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5630 for ac_header
in sys
/mount.h
5632 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 cat >conftest.
$ac_ext <<_ACEOF
5641 cat confdefs.h
>>conftest.
$ac_ext
5642 cat >>conftest.
$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #include <sys/param.h>
5646 #include <$ac_header>
5648 rm -f conftest.
$ac_objext
5649 if { (ac_try
="$ac_compile"
5651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 eval "$as_ac_Header=yes"
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 eval "$as_ac_Header=no"
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_res=`eval echo '${'$as_ac_Header'}'`
5676 { echo "$as_me:$LINENO: result: $ac_res" >&5
5677 echo "${ECHO_T}$ac_res" >&6; }
5678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5679 cat >>confdefs.h <<_ACEOF
5680 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5695 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5696 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 cat >conftest.$ac_ext <<_ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5723 *) ac_try_echo
=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1
>conftest.err
5730 cat conftest.err
>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.
$ac_objext; then
5736 eval "$as_ac_Header=yes"
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.
$ac_ext >&5
5741 eval "$as_ac_Header=no"
5744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5746 ac_res
=`eval echo '${'$as_ac_Header'}'`
5747 { echo "$as_me:$LINENO: result: $ac_res" >&5
5748 echo "${ECHO_T}$ac_res" >&6; }
5749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5750 cat >>confdefs.h
<<_ACEOF
5751 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5754 ac_header_dirent
=$ac_hdr; break
5758 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5759 if test $ac_header_dirent = dirent.h
; then
5760 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5762 if test "${ac_cv_search_opendir+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 ac_func_search_save_LIBS
=$LIBS
5766 cat >conftest.
$ac_ext <<_ACEOF
5769 cat confdefs.h
>>conftest.
$ac_ext
5770 cat >>conftest.
$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5788 for ac_lib
in '' dir
; do
5789 if test -z "$ac_lib"; then
5790 ac_res
="none required"
5793 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5795 rm -f conftest.
$ac_objext conftest
$ac_exeext
5796 if { (ac_try
="$ac_link"
5798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_link") 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest$ac_exeext &&
5812 $as_test_x conftest$ac_exeext; then
5813 ac_cv_search_opendir=$ac_res
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 if test "${ac_cv_search_opendir+set}" = set; then
5827 if test "${ac_cv_search_opendir+set}" = set; then
5830 ac_cv_search_opendir=no
5833 LIBS=$ac_func_search_save_LIBS
5835 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5836 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5837 ac_res=$ac_cv_search_opendir
5838 if test "$ac_res" != no; then
5839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5846 if test "${ac_cv_search_opendir+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 ac_func_search_save_LIBS=$LIBS
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5872 for ac_lib in '' x; do
5873 if test -z "$ac_lib"; then
5874 ac_res="none required"
5877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (ac_try="$ac_link"
5882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5883 *) ac_try_echo
=$ac_try;;
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_link") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1
>conftest.err
5890 cat conftest.err
>&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest
$ac_exeext &&
5896 $as_test_x conftest
$ac_exeext; then
5897 ac_cv_search_opendir
=$ac_res
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.
$ac_ext >&5
5905 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5907 if test "${ac_cv_search_opendir+set}" = set; then
5911 if test "${ac_cv_search_opendir+set}" = set; then
5914 ac_cv_search_opendir
=no
5917 LIBS
=$ac_func_search_save_LIBS
5919 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5920 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5921 ac_res
=$ac_cv_search_opendir
5922 if test "$ac_res" != no
; then
5923 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5929 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5930 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5931 if test "${ac_cv_header_stat_broken+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/types.h>
5941 #include <sys/stat.h>
5943 #if defined S_ISBLK && defined S_IFDIR
5944 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5947 #if defined S_ISBLK && defined S_IFCHR
5948 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5951 #if defined S_ISLNK && defined S_IFREG
5952 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5955 #if defined S_ISSOCK && defined S_IFREG
5956 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5960 rm -f conftest.
$ac_objext
5961 if { (ac_try
="$ac_compile"
5963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5969 grep -v '^ *+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 ac_cv_header_stat_broken=no
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_cv_header_stat_broken=yes
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5988 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5989 if test $ac_cv_header_stat_broken = yes; then
5991 cat >>confdefs.h <<\_ACEOF
5992 #define STAT_MACROS_BROKEN 1
5997 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5998 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5999 if test "${ac_cv_header_stdc+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6021 rm -f conftest.$ac_objext
6022 if { (ac_try="$ac_compile"
6024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6025 *) ac_try_echo
=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compile") 2>conftest.er1
6030 grep -v '^ *+' conftest.er1
>conftest.err
6032 cat conftest.err
>&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest.
$ac_objext; then
6038 ac_cv_header_stdc
=yes
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.
$ac_ext >&5
6043 ac_cv_header_stdc
=no
6046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6048 if test $ac_cv_header_stdc = yes; then
6049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6050 cat >conftest.
$ac_ext <<_ACEOF
6053 cat confdefs.h
>>conftest.
$ac_ext
6054 cat >>conftest.
$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "memchr" >/dev
/null
2>&1; then
6063 ac_cv_header_stdc
=no
6069 if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6071 cat >conftest.
$ac_ext <<_ACEOF
6074 cat confdefs.h
>>conftest.
$ac_ext
6075 cat >>conftest.
$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "free" >/dev
/null
2>&1; then
6084 ac_cv_header_stdc
=no
6090 if test $ac_cv_header_stdc = yes; then
6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6092 if test "$cross_compiling" = yes; then
6095 cat >conftest.
$ac_ext <<_ACEOF
6098 cat confdefs.h
>>conftest.
$ac_ext
6099 cat >>conftest.
$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6103 #if ((' ' & 0x0FF) == 0x020)
6104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6107 # define ISLOWER(c) \
6108 (('a' <= (c) && (c) <= 'i') \
6109 || ('j' <= (c) && (c) <= 'r') \
6110 || ('s' <= (c) && (c) <= 'z'))
6111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6119 for (i = 0; i < 256; i++)
6120 if (XOR (islower (i), ISLOWER (i))
6121 || toupper (i) != TOUPPER (i))
6126 rm -f conftest
$ac_exeext
6127 if { (ac_try
="$ac_link"
6129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_link") 2>&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6137 { (case "(($ac_try" in
6138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6139 *) ac_try_echo
=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_try") 2>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6148 echo "$as_me: program exited with status $ac_status" >&5
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.
$ac_ext >&5
6153 ac_cv_header_stdc
=no
6155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6162 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6163 if test $ac_cv_header_stdc = yes; then
6165 cat >>confdefs.h
<<\_ACEOF
6166 #define STDC_HEADERS 1
6171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 cat >conftest.
$ac_ext <<_ACEOF
6179 cat confdefs.h
>>conftest.
$ac_ext
6180 cat >>conftest.
$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #include <sys/types.h>
6183 #include <sys/wait.h>
6185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6201 rm -f conftest.
$ac_objext
6202 if { (ac_try
="$ac_compile"
6204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 ac_cv_header_sys_wait_h=yes
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_cv_header_sys_wait_h=no
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6230 if test $ac_cv_header_sys_wait_h = yes; then
6232 cat >>confdefs.h <<\_ACEOF
6233 #define HAVE_SYS_WAIT_H 1
6238 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6239 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6240 if test "${ac_cv_header_time+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <sys/types.h>
6250 #include <sys/time.h>
6256 if ((struct tm *) 0)
6262 rm -f conftest.$ac_objext
6263 if { (ac_try="$ac_compile"
6265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6266 *) ac_try_echo
=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1
>conftest.err
6273 cat conftest.err
>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.
$ac_objext; then
6279 ac_cv_header_time
=yes
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.
$ac_ext >&5
6284 ac_cv_header_time
=no
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6290 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6291 if test $ac_cv_header_time = yes; then
6293 cat >>confdefs.h
<<\_ACEOF
6294 #define TIME_WITH_SYS_TIME 1
6299 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6300 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6301 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 cat >conftest.
$ac_ext <<_ACEOF
6307 cat confdefs.h
>>conftest.
$ac_ext
6308 cat >>conftest.
$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6314 static struct stat ac_aggr;
6315 if (ac_aggr.st_blksize)
6321 rm -f conftest.
$ac_objext
6322 if { (ac_try
="$ac_compile"
6324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest.$ac_objext; then
6338 ac_cv_member_struct_stat_st_blksize=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 $ac_includes_default
6353 static struct stat ac_aggr;
6354 if (sizeof ac_aggr.st_blksize)
6360 rm -f conftest.$ac_objext
6361 if { (ac_try="$ac_compile"
6363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6364 *) ac_try_echo
=$ac_try;;
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_compile") 2>conftest.er1
6369 grep -v '^ *+' conftest.er1
>conftest.err
6371 cat conftest.err
>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest.
$ac_objext; then
6377 ac_cv_member_struct_stat_st_blksize
=yes
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.
$ac_ext >&5
6382 ac_cv_member_struct_stat_st_blksize
=no
6385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6391 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6392 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6394 cat >>confdefs.h
<<_ACEOF
6395 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6399 cat >>confdefs.h
<<\_ACEOF
6400 #define HAVE_ST_BLKSIZE 1
6406 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6407 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6408 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 cat >conftest.
$ac_ext <<_ACEOF
6414 cat confdefs.h
>>conftest.
$ac_ext
6415 cat >>conftest.
$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6421 static struct stat ac_aggr;
6422 if (ac_aggr.st_blocks)
6428 rm -f conftest.
$ac_objext
6429 if { (ac_try
="$ac_compile"
6431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_compile") 2>conftest.er1
6437 grep -v '^ *+' conftest.er1 >conftest.err
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest.$ac_objext; then
6445 ac_cv_member_struct_stat_st_blocks=yes
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6460 static struct stat ac_aggr;
6461 if (sizeof ac_aggr.st_blocks)
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6471 *) ac_try_echo
=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_compile") 2>conftest.er1
6476 grep -v '^ *+' conftest.er1
>conftest.err
6478 cat conftest.err
>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest.
$ac_objext; then
6484 ac_cv_member_struct_stat_st_blocks
=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6489 ac_cv_member_struct_stat_st_blocks
=no
6492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6498 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6499 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6501 cat >>confdefs.h
<<_ACEOF
6502 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6506 cat >>confdefs.h
<<\_ACEOF
6507 #define HAVE_ST_BLOCKS 1
6511 case " $LIBOBJS " in
6512 *" fileblocks.$ac_objext "* ) ;;
6513 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6520 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6521 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6522 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 cat >conftest.
$ac_ext <<_ACEOF
6528 cat confdefs.h
>>conftest.
$ac_ext
6529 cat >>conftest.
$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6535 static struct stat ac_aggr;
6536 if (ac_aggr.st_rdev)
6542 rm -f conftest.
$ac_objext
6543 if { (ac_try
="$ac_compile"
6545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6551 grep -v '^ *+' conftest.er1 >conftest.err
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_cv_member_struct_stat_st_rdev=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6574 static struct stat ac_aggr;
6575 if (sizeof ac_aggr.st_rdev)
6581 rm -f conftest.$ac_objext
6582 if { (ac_try="$ac_compile"
6584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6585 *) ac_try_echo
=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_compile") 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest.
$ac_objext; then
6598 ac_cv_member_struct_stat_st_rdev
=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.
$ac_ext >&5
6603 ac_cv_member_struct_stat_st_rdev
=no
6606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6612 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6613 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6615 cat >>confdefs.h
<<_ACEOF
6616 #define HAVE_STRUCT_STAT_ST_RDEV 1
6620 cat >>confdefs.h
<<\_ACEOF
6621 #define HAVE_ST_RDEV 1
6627 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6629 if test "${ac_cv_struct_tm+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 cat >conftest.
$ac_ext <<_ACEOF
6635 cat confdefs.h
>>conftest.
$ac_ext
6636 cat >>conftest.
$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 #include <sys/types.h>
6645 int *p = &tm.tm_sec;
6651 rm -f conftest.
$ac_objext
6652 if { (ac_try
="$ac_compile"
6654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_compile") 2>conftest.er1
6660 grep -v '^ *+' conftest.er1 >conftest.err
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest.$ac_objext; then
6668 ac_cv_struct_tm=time.h
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_cv_struct_tm=sys/time.h
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6679 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6680 if test $ac_cv_struct_tm = sys/time.h; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define TM_IN_SYS_TIME 1
6688 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6689 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6690 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <sys/types.h>
6700 #include <$ac_cv_struct_tm>
6706 static struct tm ac_aggr;
6707 if (ac_aggr.tm_zone)
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6717 *) ac_try_echo
=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1
>conftest.err
6724 cat conftest.err
>&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.
$ac_objext; then
6730 ac_cv_member_struct_tm_tm_zone
=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.
$ac_ext >&5
6735 cat >conftest.
$ac_ext <<_ACEOF
6738 cat confdefs.h
>>conftest.
$ac_ext
6739 cat >>conftest.
$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <$ac_cv_struct_tm>
6748 static struct tm ac_aggr;
6749 if (sizeof ac_aggr.tm_zone)
6755 rm -f conftest.
$ac_objext
6756 if { (ac_try
="$ac_compile"
6758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 ac_cv_member_struct_tm_tm_zone=yes
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_member_struct_tm_tm_zone=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6786 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6787 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_STRUCT_TM_TM_ZONE 1
6796 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_TM_ZONE 1
6803 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6804 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6805 if test "${ac_cv_have_decl_tzname+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6831 *) ac_try_echo
=$ac_try;;
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6836 grep -v '^ *+' conftest.er1
>conftest.err
6838 cat conftest.err
>&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } && {
6841 test -z "$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 } && test -s conftest.
$ac_objext; then
6844 ac_cv_have_decl_tzname
=yes
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.
$ac_ext >&5
6849 ac_cv_have_decl_tzname
=no
6852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6854 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6855 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6856 if test $ac_cv_have_decl_tzname = yes; then
6858 cat >>confdefs.h
<<_ACEOF
6859 #define HAVE_DECL_TZNAME 1
6864 cat >>confdefs.h
<<_ACEOF
6865 #define HAVE_DECL_TZNAME 0
6872 { echo "$as_me:$LINENO: checking for tzname" >&5
6873 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6874 if test "${ac_cv_var_tzname+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 cat >conftest.
$ac_ext <<_ACEOF
6880 cat confdefs.h
>>conftest.
$ac_ext
6881 cat >>conftest.
$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6884 #if !HAVE_DECL_TZNAME
6885 extern char *tzname[];
6891 return tzname[0][0];
6896 rm -f conftest.
$ac_objext conftest
$ac_exeext
6897 if { (ac_try
="$ac_link"
6899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_link") 2>conftest.er1
6905 grep -v '^ *+' conftest.er1 >conftest.err
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest$ac_exeext &&
6913 $as_test_x conftest$ac_exeext; then
6914 ac_cv_var_tzname=yes
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6923 conftest$ac_exeext conftest.$ac_ext
6925 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6926 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6927 if test $ac_cv_var_tzname = yes; then
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_TZNAME 1
6936 { echo "$as_me:$LINENO: checking for off_t" >&5
6937 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6938 if test "${ac_cv_type_off_t+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 typedef off_t ac__type_new_;
6952 if ((ac__type_new_ *) 0)
6954 if (sizeof (ac__type_new_))
6960 rm -f conftest.$ac_objext
6961 if { (ac_try="$ac_compile"
6963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6964 *) ac_try_echo
=$ac_try;;
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6969 grep -v '^ *+' conftest.er1
>conftest.err
6971 cat conftest.err
>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.
$ac_objext; then
6977 ac_cv_type_off_t
=yes
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.
$ac_ext >&5
6985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6987 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6988 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6989 if test $ac_cv_type_off_t = yes; then
6993 cat >>confdefs.h
<<_ACEOF
6994 #define off_t long int
6999 { echo "$as_me:$LINENO: checking for pid_t" >&5
7000 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7001 if test "${ac_cv_type_pid_t+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 cat >conftest.
$ac_ext <<_ACEOF
7007 cat confdefs.h
>>conftest.
$ac_ext
7008 cat >>conftest.
$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7011 typedef pid_t ac__type_new_;
7015 if ((ac__type_new_ *) 0)
7017 if (sizeof (ac__type_new_))
7023 rm -f conftest.
$ac_objext
7024 if { (ac_try
="$ac_compile"
7026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030 (eval "$ac_compile") 2>conftest.er1
7032 grep -v '^ *+' conftest.er1 >conftest.err
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } && {
7037 test -z "$ac_c_werror_flag" ||
7038 test ! -s conftest.err
7039 } && test -s conftest.$ac_objext; then
7040 ac_cv_type_pid_t=yes
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7051 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7052 if test $ac_cv_type_pid_t = yes; then
7056 cat >>confdefs.h <<_ACEOF
7062 { echo "$as_me:$LINENO: checking for size_t" >&5
7063 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7064 if test "${ac_cv_type_size_t+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 cat >conftest.$ac_ext <<_ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 $ac_includes_default
7074 typedef size_t ac__type_new_;
7078 if ((ac__type_new_ *) 0)
7080 if (sizeof (ac__type_new_))
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7090 *) ac_try_echo
=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7095 grep -v '^ *+' conftest.er1
>conftest.err
7097 cat conftest.err
>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.
$ac_objext; then
7103 ac_cv_type_size_t
=yes
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.
$ac_ext >&5
7108 ac_cv_type_size_t
=no
7111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7113 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7114 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7115 if test $ac_cv_type_size_t = yes; then
7119 cat >>confdefs.h
<<_ACEOF
7120 #define size_t unsigned int
7125 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7126 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7127 if test "${ac_cv_type_uid_t+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 cat >conftest.
$ac_ext <<_ACEOF
7133 cat confdefs.h
>>conftest.
$ac_ext
7134 cat >>conftest.
$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <sys/types.h>
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "uid_t" >/dev
/null
2>&1; then
7141 ac_cv_type_uid_t
=yes
7148 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7149 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7150 if test $ac_cv_type_uid_t = no
; then
7152 cat >>confdefs.h
<<\_ACEOF
7157 cat >>confdefs.h
<<\_ACEOF
7164 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7165 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7166 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7179 static struct tm ac_aggr;
7180 if (ac_aggr.tm_gmtoff)
7186 rm -f conftest.
$ac_objext
7187 if { (ac_try
="$ac_compile"
7189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 ac_cv_member_struct_tm_tm_gmtoff=yes
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 cat >conftest.$ac_ext <<_ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 $ac_includes_default
7218 static struct tm ac_aggr;
7219 if (sizeof ac_aggr.tm_gmtoff)
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7229 *) ac_try_echo
=$ac_try;;
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7234 grep -v '^ *+' conftest.er1
>conftest.err
7236 cat conftest.err
>&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.
$ac_objext; then
7242 ac_cv_member_struct_tm_tm_gmtoff
=yes
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.
$ac_ext >&5
7247 ac_cv_member_struct_tm_tm_gmtoff
=no
7250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7255 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7256 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7257 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7259 cat >>confdefs.h
<<_ACEOF
7260 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7267 # Look for some functions
7282 for ac_func
in getpagesize kqueue statfs statvfs \
7283 clone kse_create rfork_thread thr_create sa_register \
7284 getcontext makecontext setcontext sigaltstack swapcontext
7286 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7289 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 cat >conftest.
$ac_ext <<_ACEOF
7295 cat confdefs.h
>>conftest.
$ac_ext
7296 cat >>conftest.
$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7300 #define $ac_func innocuous_$ac_func
7302 /* System header to define __stub macros and hopefully few prototypes,
7303 which can conflict with char $ac_func (); below.
7304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7305 <limits.h> exists even on freestanding compilers. */
7308 # include <limits.h>
7310 # include <assert.h>
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined __stub_$ac_func || defined __stub___$ac_func
7337 rm -f conftest.
$ac_objext conftest
$ac_exeext
7338 if { (ac_try
="$ac_link"
7340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>conftest.er1
7346 grep -v '^ *+' conftest.er1 >conftest.err
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest$ac_exeext &&
7354 $as_test_x conftest$ac_exeext; then
7355 eval "$as_ac_var=yes"
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 eval "$as_ac_var=no"
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364 conftest$ac_exeext conftest.$ac_ext
7366 ac_res=`eval echo '${'$as_ac_var'}'`
7367 { echo "$as_me:$LINENO: result: $ac_res" >&5
7368 echo "${ECHO_T}$ac_res" >&6; }
7369 if test `eval echo '${'$as_ac_var'}'` = yes; then
7370 cat >>confdefs.h <<_ACEOF
7371 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
7380 for ac_header in stdlib.h unistd.h
7382 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_res=`eval echo '${'$as_ac_Header'}'`
7390 { echo "$as_me:$LINENO: result: $ac_res" >&5
7391 echo "${ECHO_T}$ac_res" >&6; }
7393 # Is the header compilable?
7394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 #include <$ac_header>
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7409 *) ac_try_echo
=$ac_try;;
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1
>conftest.err
7416 cat conftest.err
>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.
$ac_objext; then
7422 ac_header_compiler
=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.
$ac_ext >&5
7427 ac_header_compiler
=no
7430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432 echo "${ECHO_T}$ac_header_compiler" >&6; }
7434 # Is the header present?
7435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #include <$ac_header>
7445 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7453 grep -v '^ *+' conftest.er1 >conftest.err
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } >/dev/null && {
7458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7461 ac_header_preproc=yes
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 ac_header_preproc=no
7469 rm -f conftest.err conftest.$ac_ext
7470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7471 echo "${ECHO_T}$ac_header_preproc" >&6; }
7473 # So? What about this header?
7474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7480 ac_header_preproc=yes
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 eval "$as_ac_Header=\$ac_header_preproc"
7505 ac_res=`eval echo '${'$as_ac_Header'}'`
7506 { echo "$as_me:$LINENO: result: $ac_res" >&5
7507 echo "${ECHO_T}$ac_res" >&6; }
7510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7520 for ac_func in getpagesize
7522 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 cat >conftest.$ac_ext <<_ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7536 #define $ac_func innocuous_$ac_func
7538 /* System header to define __stub macros and hopefully few prototypes,
7539 which can conflict with char $ac_func (); below.
7540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7541 <limits.h> exists even on freestanding compilers. */
7544 # include <limits.h>
7546 # include <assert.h>
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined __stub_$ac_func || defined __stub___$ac_func
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (ac_try="$ac_link"
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_link") 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); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest
$ac_exeext &&
7590 $as_test_x conftest
$ac_exeext; then
7591 eval "$as_ac_var=yes"
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.
$ac_ext >&5
7596 eval "$as_ac_var=no"
7599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7600 conftest
$ac_exeext conftest.
$ac_ext
7602 ac_res
=`eval echo '${'$as_ac_var'}'`
7603 { echo "$as_me:$LINENO: result: $ac_res" >&5
7604 echo "${ECHO_T}$ac_res" >&6; }
7605 if test `eval echo '${'$as_ac_var'}'` = yes; then
7606 cat >>confdefs.h
<<_ACEOF
7607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7613 { echo "$as_me:$LINENO: checking for working mmap" >&5
7614 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7615 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 if test "$cross_compiling" = yes; then
7619 ac_cv_func_mmap_fixed_mapped
=no
7621 cat >conftest.
$ac_ext <<_ACEOF
7624 cat confdefs.h
>>conftest.
$ac_ext
7625 cat >>conftest.
$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 $ac_includes_default
7628 /* malloc might have been renamed as rpl_malloc. */
7631 /* Thanks to Mike Haertel and Jim Avera for this test.
7632 Here is a matrix of mmap possibilities:
7633 mmap private not fixed
7634 mmap private fixed at somewhere currently unmapped
7635 mmap private fixed at somewhere already mapped
7636 mmap shared not fixed
7637 mmap shared fixed at somewhere currently unmapped
7638 mmap shared fixed at somewhere already mapped
7639 For private mappings, we should verify that changes cannot be read()
7640 back from the file, nor mmap's back from the file at a different
7641 address. (There have been systems where private was not correctly
7642 implemented like the infamous i386 svr4.0, and systems where the
7643 VM page cache was not coherent with the file system buffer cache
7644 like early versions of FreeBSD and possibly contemporary NetBSD.)
7645 For shared mappings, we should conversely verify that changes get
7646 propagated back to all the places they're supposed to be.
7648 Grep wants private fixed already mapped.
7649 The main things grep needs to know about mmap are:
7650 * does it exist and is it safe to write into the mmap'd area
7651 * how to use it (BSD variants) */
7654 #include <sys/mman.h>
7656 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7660 /* This mess was copied from the GNU getpagesize.h. */
7661 #ifndef HAVE_GETPAGESIZE
7662 /* Assume that all systems that can run configure have sys/param.h. */
7663 # ifndef HAVE_SYS_PARAM_H
7664 # define HAVE_SYS_PARAM_H 1
7667 # ifdef _SC_PAGESIZE
7668 # define getpagesize() sysconf(_SC_PAGESIZE)
7669 # else /* no _SC_PAGESIZE */
7670 # ifdef HAVE_SYS_PARAM_H
7671 # include <sys/param.h>
7672 # ifdef EXEC_PAGESIZE
7673 # define getpagesize() EXEC_PAGESIZE
7674 # else /* no EXEC_PAGESIZE */
7676 # define getpagesize() NBPG * CLSIZE
7679 # endif /* no CLSIZE */
7680 # else /* no NBPG */
7682 # define getpagesize() NBPC
7683 # else /* no NBPC */
7685 # define getpagesize() PAGESIZE
7686 # endif /* PAGESIZE */
7687 # endif /* no NBPC */
7688 # endif /* no NBPG */
7689 # endif /* no EXEC_PAGESIZE */
7690 # else /* no HAVE_SYS_PARAM_H */
7691 # define getpagesize() 8192 /* punt totally */
7692 # endif /* no HAVE_SYS_PARAM_H */
7693 # endif /* no _SC_PAGESIZE */
7695 #endif /* no HAVE_GETPAGESIZE */
7700 char *data, *data2, *data3;
7704 pagesize = getpagesize ();
7706 /* First, make a file with some known garbage in it. */
7707 data = (char *) malloc (pagesize);
7710 for (i = 0; i < pagesize; ++i)
7711 *(data + i) = rand ();
7713 fd = creat ("conftest.mmap", 0600);
7716 if (write (fd, data, pagesize) != pagesize)
7720 /* Next, try to mmap the file at a fixed address which already has
7721 something else allocated at it. If we can, also make sure that
7722 we see the same garbage. */
7723 fd = open ("conftest.mmap", O_RDWR);
7726 data2 = (char *) malloc (2 * pagesize);
7729 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7730 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7731 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7733 for (i = 0; i < pagesize; ++i)
7734 if (*(data + i) != *(data2 + i))
7737 /* Finally, make sure that changes to the mapped area do not
7738 percolate back to the file as seen by read(). (This is a bug on
7739 some variants of i386 svr4.0.) */
7740 for (i = 0; i < pagesize; ++i)
7741 *(data2 + i) = *(data2 + i) + 1;
7742 data3 = (char *) malloc (pagesize);
7745 if (read (fd, data3, pagesize) != pagesize)
7747 for (i = 0; i < pagesize; ++i)
7748 if (*(data + i) != *(data3 + i))
7754 rm -f conftest
$ac_exeext
7755 if { (ac_try
="$ac_link"
7757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7765 { (case "(($ac_try" in
7766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7767 *) ac_try_echo
=$ac_try;;
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_try") 2>&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_cv_func_mmap_fixed_mapped
=yes
7776 echo "$as_me: program exited with status $ac_status" >&5
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.
$ac_ext >&5
7781 ac_cv_func_mmap_fixed_mapped
=no
7783 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7788 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7789 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7792 cat >>confdefs.h
<<\_ACEOF
7802 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7803 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7804 aros_config_ldflags
=""
7806 aros_shared_default
=yes
7808 aros_shared_cflags
="-fPIC"
7809 aros_shared_aflags
=""
7810 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7811 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7813 aros_target_ar_flags
="cr"
7814 aros_target_nm_flags
="-C -ul"
7815 aros_target_strip_flags
="--strip-unneeded -R.comment"
7819 aros_target_genmap
="-Wl,-Map -Xlinker"
7821 # Native flavour stuff
7823 aros_serial_debug
="0"
7825 # Palm native flavour stuff
7826 aros_palm_debug_hack
="0"
7828 # Unix flavour stuff
7829 aros_nesting_supervisor
="0"
7831 # Collect-aros stuff: "-ius" to ignore undefined symbols
7832 ignore_undefined_symbols
=""
7834 #-----------------------------------------------------------------------------
7837 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7838 # it switched on by default, and we use the host compiler, so it compiles AROS
7839 # code with this enabled resulting in link failures as we don't have support
7842 # We use two methods to disable it. For the host compiler (used to compile
7843 # some hosted modules), we test to see if the compiler supports stack
7844 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7845 # work on all platforms.
7847 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7848 # (this is done unconditionally, as it should have no effect on compilers
7849 # without the stack protection feature). This may be specific to the way that
7850 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7851 # strong enough to disable it in a generic way though, so we'll live with it
7852 # until another vendor ships GCC with it enabled in a different way, and deal
7856 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7857 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7858 save_cflags
="$CFLAGS"
7859 CFLAGS
="$CFLAGS -fno-stack-protector"
7860 cat >conftest.
$ac_ext <<_ACEOF
7863 cat confdefs.h
>>conftest.
$ac_ext
7864 cat >>conftest.
$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7875 rm -f conftest.
$ac_objext
7876 if { (ac_try
="$ac_compile"
7878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest.$ac_objext; then
7892 use_no_stack_protector="yes"
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 use_no_stack_protector="no"
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7902 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7903 if test "x-$use_no_stack_protector" = "x-yes" ; then
7904 aros_config_cflags="$aros_config_cflags -fno-stack-protector"
7906 CFLAGS="$save_cflags"
7908 #-----------------------------------------------------------------------------
7910 { echo "$as_me:$LINENO: checking for type of build" >&5
7911 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7912 # Check whether --enable-build_type was given.
7913 if test "${enable_build_type+set}" = set; then
7914 enableval=$enable_build_type; build_type=$enableval
7916 build_type="personal"
7920 if test "$build_type" = "nightly"; then
7921 build_type_string="NIGHTLY"
7922 elif test "$build_type" = "snapshot"; then
7923 build_type_string="SNAPSHOT"
7924 elif test "$build_type" = "milestone"; then
7925 build_type_string="MILESTONE"
7926 elif test "$build_type" = "release"; then
7927 build_type_string="RELEASE"
7929 build_type_string="PERSONAL"
7930 build_type="personal"
7933 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7935 { echo "$as_me:$LINENO: result: $build_type" >&5
7936 echo "${ECHO_T}$build_type" >&6; }
7938 #-----------------------------------------------------------------------------
7939 all_debug_types="messages stack mungwall modules symbols"
7941 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7942 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7943 # Check whether --enable-debug was given.
7944 if test "${enable_debug+set}" = set; then
7945 enableval=$enable_debug; debug="$enableval"
7951 if test "$debug" = "" -o "$debug" = "no"; then
7953 elif test "$debug" = "yes"; then
7957 if test "$debug" = "all" ; then
7958 debug=$all_debug_types
7959 for d in $all_debug_types; do
7960 export aros_${d}_debug="1"
7963 for d in $all_debug_types; do
7964 export aros_${d}_debug="0"
7968 if test "$debug" != "none"; then
7969 debug=`echo $debug |
sed s
/,/\
/g
`
7972 for d2 in $all_debug_types; do
7973 if test "$d2" = "$d"; then
7978 if test "$found" = "0"; then
7979 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7980 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7981 { (exit 1); exit 1; }; }
7983 export aros_${d}_debug="1"
7987 { echo "$as_me:$LINENO: result: $debug" >&5
7988 echo "${ECHO_T}$debug" >&6; }
7990 if test "$aros_messages_debug" = "1"; then
7991 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7993 aros_messages_debug=""
7995 if test "$aros_symbols_debug" = "1"; then
7996 aros_symbols_debug="-g"
7998 aros_symbols_debug=""
8001 # These are the flags to pass when compiling debugged programs
8002 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8003 aros_debug_aflags=""
8004 aros_debug_ldflags="$aros_symbols_debug"
8006 #-----------------------------------------------------------------------------
8007 # Checking for distcc and ccache.
8009 # Always apply the transforms in this particular order. Basically you should
8010 # always run 'ccache distcc compiler' in that order for the best performance.
8012 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8013 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8014 # Check whether --enable-distcc was given.
8015 if test "${enable_distcc+set}" = set; then
8016 enableval=$enable_distcc; distcc="$enableval"
8021 if test "$distcc" != "" -a "$distcc" != "no"; then
8022 # AC_CHECK_PROG will print out the result in this case
8023 # Extract the first word of "distcc", so it can be a program name with args.
8024 set dummy distcc; ac_word=$2
8025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8027 if test "${ac_cv_path_DISTCC+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8054 DISTCC=$ac_cv_path_DISTCC
8055 if test -n "$DISTCC"; then
8056 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8057 echo "${ECHO_T}$DISTCC" >&6; }
8059 { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8065 { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8069 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8070 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8071 # Check whether --enable-ccache was given.
8072 if test "${enable_ccache+set}" = set; then
8073 enableval=$enable_ccache; ccache="$enableval"
8078 if test "$ccache" != "" -a "$ccache" != "no"; then
8079 # AC_CHECK_PROG will print out the result in this case
8080 # Extract the first word of "ccache", so it can be a program name with args.
8081 set dummy ccache; ac_word=$2
8082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084 if test "${ac_cv_prog_CCACHE+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 if test -n "$CCACHE"; then
8088 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_prog_CCACHE="ccache"
8098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 CCACHE=$ac_cv_prog_CCACHE
8108 if test -n "$CCACHE"; then
8109 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8110 echo "${ECHO_T}$CCACHE" >&6; }
8112 { echo "$as_me:$LINENO: result: no" >&5
8113 echo "${ECHO_T}no" >&6; }
8118 { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8122 #-----------------------------------------------------------------------------
8123 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8124 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8126 # Check whether --with-optimization was given.
8127 if test "${with_optimization+set}" = set; then
8128 withval=$with_optimization; optimization="$withval"
8130 optimization="unknown"
8133 if test "$optimization" = "unknown"; then
8134 if test "$debug" != "none"; then
8140 aros_config_cflags="$aros_config_cflags $optimization"
8141 { echo "$as_me:$LINENO: result: $optimization" >&5
8142 echo "${ECHO_T}$optimization" >&6; }
8144 #-----------------------------------------------------------------------------
8145 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8146 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8147 # Check whether --enable-target_variant was given.
8148 if test "${enable_target_variant+set}" = set; then
8149 enableval=$enable_target_variant; target_variant=$enableval
8151 target_variant="none"
8154 if test "$target_variant" = "none"; then
8155 aros_target_variant=""
8156 aros_target_suffix=""
8158 aros_target_variant="$target_variant"
8159 aros_target_suffix="-$target_variant"
8161 { echo "$as_me:$LINENO: result: $enableval" >&5
8162 echo "${ECHO_T}$enableval" >&6; }
8164 #-----------------------------------------------------------------------------
8165 # This is the target configuration switch.
8166 case "$target_os" in
8168 aros_target_arch="linux"
8169 case "$target_cpu" in
8171 aros_target_cpu="m68k"
8172 aros_object_format="m68kelf"
8173 aros_flavour="emulcompat"
8174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8175 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8176 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8177 gcc_target_cpu="mc68000"
8180 aros_target_cpu="i386"
8181 aros_object_format="elf_i386"
8182 aros_flavour="emulation"
8183 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8184 aros_default_wbdepth=8
8185 gcc_target_cpu="i386"
8188 aros_target_cpu="x86_64"
8189 aros_object_format="elf_x86_64"
8190 aros_flavour="emulation"
8191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8192 aros_default_wbdepth=8
8193 gcc_target_cpu="x86_64"
8196 aros_target_cpu="ppc"
8197 aros_object_format="elf32ppc"
8198 aros_flavour="emulation"
8199 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8200 aros_default_wbdepth=8
8201 gcc_target_cpu="ppc"
8204 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8205 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8206 { (exit 1); exit 1; }; }
8212 aros_target_arch="pc"
8213 aros_shared_default="no"
8214 case "$target_cpu" in
8216 aros_target_cpu="i386"
8219 if test "$aros_object_format" = "" ; then
8220 aros_object_format="elf_i386"
8222 aros_flavour="standalone"
8223 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8224 aros_kernel_ldflags=""
8225 aros_default_wbwidth=640
8226 aros_default_wbheight=480
8227 gcc_target_cpu="i386"
8230 aros_target_cpu="x86_64"
8231 if test "$aros_object_format" = "" ; then
8232 aros_object_format="elf_x86_64"
8234 aros_flavour="standalone"
8235 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8236 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8237 aros_kernel_ldflags=""
8238 aros_default_wbwidth=640
8239 aros_default_wbheight=480
8240 gcc_target_cpu="x86_64"
8243 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8244 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8245 { (exit 1); exit 1; }; }
8251 aros_target_arch="prep"
8252 aros_shared_default="no"
8253 aros_target_cpu="ppc"
8254 aros_object_format="elf32ppc"
8255 aros_flavour="ppcnative"
8256 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8257 aros_kernel_ldflags=""
8258 aros_default_wbwidth=640
8259 aros_default_wbheight=480
8260 gcc_target_cpu="ppc"
8261 case "$target_cpu" in
8263 aros_target_cc="ppc-linux-gcc -pipe"
8264 aros_target_ld="ppc-linux-ld"
8265 aros_target_as="ppc-linux-as"
8266 aros_target_ar="ppc-linux-ar"
8267 aros_target_ranlib="ppc-linux-ranlib"
8268 aros_target_nm="ppc-linux-nm"
8269 aros_target_strip="ppc-linux-strip"
8270 aros_target_objcopy="ppc-linux-objcopy"
8271 aros_target_objdump="ppc-linux-objdump"
8272 aros_shared_ld="ppc-linux-ld"
8273 aros_kernel_ld="ppc-linux-ld"
8281 aros_target_arch="freebsd"
8282 aros_target_cpu="i386"
8283 aros_flavour="emulation"
8284 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8285 gcc_target_cpu="i386"
8287 aros_target_strip_flags="-x"
8291 aros_target_arch="darwin"
8292 aros_target_cpu="i386"
8293 aros_flavour="emulation"
8294 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8295 gcc_target_cpu="i386"
8297 aros_target_strip_flags="-x"
8301 aros_target_arch="netbsd"
8302 case "$target_cpu" in
8304 aros_target_cpu="m68k"
8305 aros_object_format="m68kelf"
8306 aros_flavour="emulcompat"
8307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8308 gcc_target_cpu="mc68000"
8311 aros_target_cpu="i386"
8312 aros_object_format="elf_i386"
8313 aros_flavour="emulation"
8314 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8315 aros_default_wbdepth=8
8316 gcc_target_cpu="i386"
8319 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8320 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8321 { (exit 1); exit 1; }; }
8324 aros_target_genmap="-Wl,-M -Xlinker >"
8325 aros_flavour="emulation"
8326 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8330 aros_target_arch="openbsd"
8331 case "$target_cpu" in
8333 aros_target_cpu="i386"
8334 aros_object_format="elf_i386"
8335 aros_flavour="emulation"
8336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8337 gcc_target_cpu="i386"
8340 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8341 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8342 { (exit 1); exit 1; }; }
8345 aros_target_genmap="-Wl,-M -Xlinker >"
8346 aros_target_nm_flags="-u"
8347 aros_flavour="emulation"
8351 aros_target_arch="solaris"
8352 case "$target_cpu" in
8354 aros_target_cpu="sparc"
8355 aros_object_format="elf_sparc"
8356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8357 gcc_target_cpu="sparc"
8360 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8361 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8362 { (exit 1); exit 1; }; }
8365 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8366 aros_flavour="emulation"
8370 aros_target_arch="morphos"
8371 aros_shared_default="no"
8372 aros_target_cpu="ppc"
8373 aros_object_format="elf_ppc"
8374 aros_flavour="nativecompat"
8375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8376 gcc_target_cpu="ppc"
8380 aros_target_arch="amiga"
8381 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8382 aros_shared_default="no"
8384 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8386 case "$target_cpu" in
8388 aros_target_cpu="m68k"
8389 aros_object_format="m68kelf"
8390 aros_flavour="nativecompat"
8391 gcc_target_cpu="mc68000"
8395 aros_flavour="native"
8396 gcc_target_cpu="ppc"
8399 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8400 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8401 { (exit 1); exit 1; }; }
8407 aros_target_arch="cygwin"
8408 aros_shared_default="no"
8409 case "$target_cpu" in
8411 aros_target_cpu="i386"
8412 aros_object_format="elf_i386"
8413 aros_flavour="emulation"
8414 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8415 aros_shared_cflags=""
8416 aros_default_wbdepth=8
8417 gcc_target_cpu="i386"
8420 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8421 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8422 { (exit 1); exit 1; }; }
8427 aros_target_arch="pp"
8428 aros_shared_default="no"
8429 case "$target_cpu" in
8431 aros_target_cpu="m68k"
8432 aros_object_format="m68kelf"
8433 aros_flavour="palmnative"
8434 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8435 aros_kernel_ldflags=""
8436 aros_default_wbwidth=160
8437 aros_default_wbheight=160
8438 aros_default_wbdepth=1
8439 aros_target_cc="m68k-elf-gcc -pipe"
8440 aros_target_ld="$(which m68k-elf-ld)"
8441 aros_target_as="m68k-elf-gcc -pipe"
8442 aros_shared_ld="m68k-elf-gcc"
8443 aros_kernel_ld="m68k-elf-gcc"
8444 aros_target_ar="m68k-elf-ar"
8445 aros_target_ar_flags="cru"
8446 aros_target_ranlib="m68k-elf-ranlib"
8447 aros_target_nm="m68k-elf-nm"
8448 aros_target_objcopy="m68k-elf-objcopy"
8449 aros_target_objdump="m68k-elf-objdump"
8450 aros_compiler_libs="-lgcc1"
8451 aros_shared_default=no
8452 aros_shared_cflags="-fpic"
8453 aros_shared_aflags=""
8454 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8455 aros_kernel_ldflags="-Wl,-rpath,./lib"
8456 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8457 aros_debug_aflags=""
8458 aros_debug_ldflags="$aros_symbols_debug"
8459 aros_mungwall_debug="0"
8460 aros_modules_debug="0"
8461 gcc_target_cpu="mc68000"
8462 ignore_undefined_symbols="-ius"
8465 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8466 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8467 { (exit 1); exit 1; }; }
8473 aros_target_arch="mac"
8474 aros_shared_default="no"
8475 case "$target_cpu" in
8477 aros_target_cpu="m68k"
8478 aros_object_format="m68kelf"
8479 aros_flavour="mac68knative"
8480 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8481 aros_default_wbwidth=512
8482 aros_default_wbheight=384
8483 aros_default_wbdepth=8
8484 aros_target_cc="m68k-elf-gcc -pipe"
8485 aros_target_ld="$(which m68k-elf-ld)"
8486 aros_target_as="m68k-elf-gcc -pipe"
8487 aros_shared_ld="m68k-elf-gcc"
8488 aros_kernel_ld="m68k-elf-gcc"
8489 aros_target_ar="m68k-elf-ar"
8490 aros_target_ar_flags="cru"
8491 aros_target_ranlib="m68k-elf-ranlib"
8492 aros_target_nm="m68k-elf-nm"
8493 aros_target_objcopy="m68k-elf-objcopy"
8494 aros_target_objdump="m68k-elf-objdump"
8495 aros_compiler_libs="-lgcc1"
8496 aros_shared_default=no
8497 aros_shared_cflags="-fpic"
8498 aros_shared_aflags=""
8499 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8500 aros_kernel_ldflags="-Wl,-rpath,./lib"
8501 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8502 aros_debug_aflags=""
8503 aros_debug_ldflags="$aros_symbols_debug"
8504 aros_mungwall_debug="0"
8505 aros_modules_debug="0"
8506 gcc_target_cpu="mc68000"
8507 ignore_undefined_symbols="-ius"
8510 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8511 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8512 { (exit 1); exit 1; }; }
8518 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8519 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8520 { (exit 1); exit 1; }; }
8525 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8528 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8531 if test "$aros_host_arch" == "darwin" ; then
8535 # Set prefix for target compiler etc. if we're cross-compiling
8536 # (should possibly be earlier but needs to be after AC_PROG_CC)
8537 if test "$cross_compiling" = "yes" ; then
8538 target_tool_prefix=${target_cpu}-elf-
8539 CC=${target_tool_prefix}gcc
8542 # Find all the tools we need to compile. This could be cross-compiling
8543 # though! If that is the case we use the GNU form of the target and
8544 # simply add this to the front of the binary name. This is rather simple,
8545 # but it should work under most circumstances.
8547 # The default tools are to use the same as the host, but only if the
8548 # host and target CPU are the same. With GCC this is normally enough.
8552 aros_shared_ld="$aros_host_ld"
8554 aros_target_mkdep="$aros_host_mkdep"
8555 aros_target_incl_def="$aros_host_incl"
8557 # Extract the first word of "$CC", so it can be a program name with args.
8558 set dummy $CC; ac_word=$2
8559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8561 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 case $aros_kernel_cc in
8566 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8588 if test -n "$aros_kernel_cc"; then
8589 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8590 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8592 { echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6; }
8598 # The default tools executables to be linked to.
8600 if test "$cross_compiling" = "yes" ; then
8601 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8602 set dummy ${target_tool_prefix}as; ac_word=$2
8603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8605 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 case $aros_target_as_ln in
8610 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8620 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8632 if test -n "$aros_target_as_ln"; then
8633 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8634 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8636 { echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6; }
8642 if test "$GCC" = "yes"; then
8643 aros_gcc_as=`$CC -print-prog-name=as
`
8644 # Extract the first word of "`basename $aros_gcc_[as
]`", so it can be a program name with args.
8645 set dummy `basename $aros_gcc_as`; ac_word=$2
8646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8648 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 case $aros_target_as_ln in
8653 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in `dirname $aros_gcc_as`
8660 test -z "$as_dir" && as_dir=.
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8663 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8675 if test -n "$aros_target_as_ln"; then
8676 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8677 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8679 { echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6; }
8685 if test "$aros_target_as_ln" = ""; then
8686 # Extract the first word of "as", so it can be a program name with args.
8687 set dummy as; ac_word=$2
8688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8690 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 case $aros_target_as_ln in
8695 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8717 if test -n "$aros_target_as_ln"; then
8718 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8719 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8721 { echo "$as_me:$LINENO: result: no" >&5
8722 echo "${ECHO_T}no" >&6; }
8729 if test "$aros_target_as_ln" = ""; then
8730 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8731 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8732 { (exit 1); exit 1; }; }
8735 if test "$cross_compiling" = "yes" ; then
8736 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8737 set dummy ${target_tool_prefix}ld; ac_word=$2
8738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8740 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 case $aros_kernel_ld in
8745 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8767 if test -n "$aros_kernel_ld"; then
8768 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8769 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8771 { echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6; }
8777 if test "$GCC" = "yes"; then
8778 aros_gcc_ld=`$CC -print-prog-name=ld
`
8779 # Extract the first word of "`basename $aros_gcc_[ld
]`", so it can be a program name with args.
8780 set dummy `basename $aros_gcc_ld`; ac_word=$2
8781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8783 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 case $aros_kernel_ld in
8788 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in `dirname $aros_gcc_ld`
8795 test -z "$as_dir" && as_dir=.
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8798 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8810 if test -n "$aros_kernel_ld"; then
8811 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8812 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8814 { echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6; }
8820 if test "$aros_kernel_ld" = ""; then
8821 # Extract the first word of "ld", so it can be a program name with args.
8822 set dummy ld; ac_word=$2
8823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8825 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 case $aros_kernel_ld in
8830 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8852 if test -n "$aros_kernel_ld"; then
8853 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8854 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8856 { echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6; }
8864 if test "$aros_kernel_ld" = ""; then
8865 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8866 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8867 { (exit 1); exit 1; }; }
8870 if test "$cross_compiling" = "yes" ; then
8871 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8872 set dummy ${target_tool_prefix}ar; ac_word=$2
8873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8875 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 case $aros_target_ar_ln in
8880 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8890 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8902 if test -n "$aros_target_ar_ln"; then
8903 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8904 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8906 { echo "$as_me:$LINENO: result: no" >&5
8907 echo "${ECHO_T}no" >&6; }
8912 if test "$GCC" = "yes"; then
8913 aros_gcc_ar=`$CC -print-prog-name=ar`
8914 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8915 set dummy `basename $aros_gcc_ar`; ac_word=$2
8916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8918 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 case $aros_target_ar_ln in
8923 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in `dirname $aros_gcc_ar`
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8945 if test -n "$aros_target_ar_ln"; then
8946 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8947 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8949 { echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6; }
8955 if test "$aros_target_ar_ln" = ""; then
8956 # Extract the first word of "ar", so it can be a program name with args.
8957 set dummy ar; ac_word=$2
8958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8960 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 case $aros_target_ar_ln in
8965 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8987 if test -n "$aros_target_ar_ln"; then
8988 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8989 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8991 { echo "$as_me:$LINENO: result: no" >&5
8992 echo "${ECHO_T}no" >&6; }
8999 if test "$aros_target_ar_ln" = ""; then
9000 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9001 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9002 { (exit 1); exit 1; }; }
9005 if test "$cross_compiling" = "yes" ; then
9006 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9007 set dummy ${target_tool_prefix}nm; ac_word=$2
9008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9010 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 case $aros_target_nm_ln in
9015 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9037 if test -n "$aros_target_nm_ln"; then
9038 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9039 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9041 { echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6; }
9047 if test "$GCC" = "yes"; then
9048 aros_gcc_nm=`$CC -print-prog-name=nm
`
9049 # Extract the first word of "`basename $aros_gcc_[nm
]`", so it can be a program name with args.
9050 set dummy `basename $aros_gcc_nm`; ac_word=$2
9051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9053 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 case $aros_target_nm_ln in
9058 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 for as_dir in `dirname $aros_gcc_nm`
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9068 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9079 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9080 if test -n "$aros_target_nm_ln"; then
9081 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9082 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9084 { echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6; }
9090 if test "$aros_target_nm_ln" = ""; then
9091 # Extract the first word of "nm", so it can be a program name with args.
9092 set dummy nm; ac_word=$2
9093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9095 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 case $aros_target_nm_ln in
9100 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 test -z "$as_dir" && as_dir=.
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9110 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9122 if test -n "$aros_target_nm_ln"; then
9123 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9124 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9126 { echo "$as_me:$LINENO: result: no" >&5
9127 echo "${ECHO_T}no" >&6; }
9134 if test "$aros_target_nm_ln" = ""; then
9135 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9136 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9137 { (exit 1); exit 1; }; }
9140 if test "$cross_compiling" = "yes" ; then
9141 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9142 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9145 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 case $aros_target_objcopy_ln in
9150 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9172 if test -n "$aros_target_objcopy_ln"; then
9173 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9174 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9176 { echo "$as_me:$LINENO: result: no" >&5
9177 echo "${ECHO_T}no" >&6; }
9182 if test "$GCC" = "yes"; then
9183 aros_gcc_objcopy=`$CC -print-prog-name=objcopy
`
9184 # Extract the first word of "`basename $aros_gcc_[objcopy
]`", so it can be a program name with args.
9185 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9188 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 case $aros_target_objcopy_ln in
9193 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in `dirname $aros_gcc_objcopy`
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9215 if test -n "$aros_target_objcopy_ln"; then
9216 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9217 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9219 { echo "$as_me:$LINENO: result: no" >&5
9220 echo "${ECHO_T}no" >&6; }
9225 if test "$aros_target_objcopy_ln" = ""; then
9226 # Extract the first word of "objcopy", so it can be a program name with args.
9227 set dummy objcopy; ac_word=$2
9228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9230 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 case $aros_target_objcopy_ln in
9235 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242 test -z "$as_dir" && as_dir=.
9243 for ac_exec_ext in '' $ac_executable_extensions; do
9244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9245 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9257 if test -n "$aros_target_objcopy_ln"; then
9258 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9259 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9261 { echo "$as_me:$LINENO: result: no" >&5
9262 echo "${ECHO_T}no" >&6; }
9269 if test "$aros_target_objcopy_ln" = ""; then
9270 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9271 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9272 { (exit 1); exit 1; }; }
9275 if test "$cross_compiling" = "yes" ; then
9276 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9277 set dummy ${target_tool_prefix}objdump; ac_word=$2
9278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9280 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 case $aros_target_objdump_ln in
9285 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9307 if test -n "$aros_target_objdump_ln"; then
9308 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9309 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9311 { echo "$as_me:$LINENO: result: no" >&5
9312 echo "${ECHO_T}no" >&6; }
9317 if test "$GCC" = "yes"; then
9318 aros_gcc_objdump=`$CC -print-prog-name=objdump
`
9319 # Extract the first word of "`basename $aros_gcc_[objdump
]`", so it can be a program name with args.
9320 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9323 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 case $aros_target_objdump_ln in
9328 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in `dirname $aros_gcc_objdump`
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9338 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9350 if test -n "$aros_target_objdump_ln"; then
9351 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9352 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9354 { echo "$as_me:$LINENO: result: no" >&5
9355 echo "${ECHO_T}no" >&6; }
9360 if test "$aros_target_objdump_ln" = ""; then
9361 # Extract the first word of "objdump", so it can be a program name with args.
9362 set dummy objdump; ac_word=$2
9363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9365 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 case $aros_target_objdump_ln in
9370 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9392 if test -n "$aros_target_objdump_ln"; then
9393 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9394 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9396 { echo "$as_me:$LINENO: result: no" >&5
9397 echo "${ECHO_T}no" >&6; }
9404 if test "$aros_target_objdump_ln" = ""; then
9405 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9406 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9407 { (exit 1); exit 1; }; }
9410 if test "$cross_compiling" = "yes" ; then
9411 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9412 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9415 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 case $aros_target_ranlib_ln in
9420 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9442 if test -n "$aros_target_ranlib_ln"; then
9443 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9444 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9446 { echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6; }
9452 if test "$GCC" = "yes"; then
9453 aros_gcc_ranlib=`$CC -print-prog-name=ranlib
`
9454 # Extract the first word of "`basename $aros_gcc_[ranlib
]`", so it can be a program name with args.
9455 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9458 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 case $aros_target_ranlib_ln in
9463 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in `dirname $aros_gcc_ranlib`
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9485 if test -n "$aros_target_ranlib_ln"; then
9486 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9487 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9489 { echo "$as_me:$LINENO: result: no" >&5
9490 echo "${ECHO_T}no" >&6; }
9495 if test "$aros_target_ranlib_ln" = ""; then
9496 # Extract the first word of "ranlib", so it can be a program name with args.
9497 set dummy ranlib; ac_word=$2
9498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9500 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 case $aros_target_ranlib_ln in
9505 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9515 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9527 if test -n "$aros_target_ranlib_ln"; then
9528 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9529 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9531 { echo "$as_me:$LINENO: result: no" >&5
9532 echo "${ECHO_T}no" >&6; }
9539 if test "$aros_target_ranlib_ln" = ""; then
9540 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9541 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9542 { (exit 1); exit 1; }; }
9545 if test "$cross_compiling" = "yes" ; then
9546 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9547 set dummy ${target_tool_prefix}strip; ac_word=$2
9548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9550 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 case $aros_target_strip_ln in
9555 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9577 if test -n "$aros_target_strip_ln"; then
9578 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9579 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9581 { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9587 if test "$GCC" = "yes"; then
9588 aros_gcc_strip=`$CC -print-prog-name=strip
`
9589 # Extract the first word of "`basename $aros_gcc_[strip
]`", so it can be a program name with args.
9590 set dummy `basename $aros_gcc_strip`; ac_word=$2
9591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9593 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 case $aros_target_strip_ln in
9598 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in `dirname $aros_gcc_strip`
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9620 if test -n "$aros_target_strip_ln"; then
9621 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9622 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9624 { echo "$as_me:$LINENO: result: no" >&5
9625 echo "${ECHO_T}no" >&6; }
9630 if test "$aros_target_strip_ln" = ""; then
9631 # Extract the first word of "strip", so it can be a program name with args.
9632 set dummy strip; ac_word=$2
9633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9635 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 case $aros_target_strip_ln in
9640 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9662 if test -n "$aros_target_strip_ln"; then
9663 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9664 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9666 { echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6; }
9674 if test "$aros_target_strip_ln" = ""; then
9675 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9676 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9677 { (exit 1); exit 1; }; }
9680 if test "$GCC" = "yes"; then
9681 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs |
grep "programs: =" | cut
-c 12-`
9684 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9685 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9686 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9687 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9688 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9689 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9690 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9692 # aros_cc_pre is a variable that is added to the front of the compiler name
9693 # in the generated aros-gcc shell script. We need this to enable the cache
9694 # to work across cleaned builds. Also, support DISTCC using the correct
9695 # environment variable.
9698 if test "x${DISTCC}" != "x" ; then
9699 if test "x${CCACHE}" != "x" ; then
9700 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9702 aros_cc_pre="${DISTCC} "
9705 if test "x${CCACHE}" != "x" ; then
9706 aros_cc_pre="${CCACHE} "
9710 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9712 aros_target_nostdinc_cflags=-nostdinc
9714 aros_target_nostartup_ldflags=-nostartfiles
9716 aros_target_nix_ldflags=-nix
9718 aros_target_detach_ldflags=-detach
9720 aros_target_nostdlib_ldflags=-nostdlib
9724 aros_target_cc="${prefix}-gcc"
9725 aros_target_as="${prefix}-as"
9726 aros_target_ld="${prefix}-ld"
9727 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9728 aros_target_objcopy=${prefix}-objcopy
9729 aros_target_objdump=${prefix}-objdump
9730 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9731 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9732 aros_kernel_nm="${prefix}-nm"
9733 aros_target_strip=${prefix}-strip
9736 # Find the system include path. We can suggest that an alternative is
9737 # used if we don't get it correct. The default is to use /usr/include.
9738 # Which is set in the aros_target_incl_def variable.
9740 # Check whether --enable-includes was given.
9741 if test "${enable_includes+set}" = set; then
9742 enableval=$enable_includes; aros_target_incl=$enable_includes
9744 aros_target_incl=$aros_target_incl_def
9748 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9749 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
9750 if test "$aros_target_cc_includes" = "" ; then
9751 #try to guess where the directory is
9752 aros_target_cc_includes=`dirname \
`${aros_kernel_cc} -print-libgcc-file-name\``/include
9753 if ! test -d $aros_target_cc_includes; then
9754 #the directory doesn't exist, we need to do some more work
9755 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9757 #these are the headers we're looling for
9758 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9759 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9763 for h in $headers; do
9764 #which other headers each of the above headers needs?
9765 deps=$(echo "#include <$h>" | \
9766 $aros_host_cc -E -M - 2>/dev/null | \
9767 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9769 #copy all the needed headers to a directory beneath gendir
9772 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9773 sed -n "s,^.*/include\(/.*\),\1,p")
9774 ! test -d $dir && mkdir -p $dir
9775 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9780 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9781 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
9783 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9784 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
9786 # Check whether --with-resolution was given.
9787 if test "${with_resolution+set}" = set; then
9788 withval=$with_resolution; resolution=$withval
9793 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9794 if test "$resolution" = "yes" ; then
9797 if test "$resolution" = "no" ; then
9800 if test "$resolution" != "none" ; then
9801 aros_default_wbwidth=`echo $resolution | cut
-d'x' -f1`
9802 aros_default_wbheight=`echo $resolution | cut
-d'x' -f2`
9803 aros_default_wbdepth=`echo $resolution | cut
-d'x' -f3`
9805 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9806 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9807 aros_cv_default_wbwidth=$aros_default_wbwidth
9808 aros_cv_default_wbheight=$aros_default_wbheight
9809 aros_cv_default_wbdepth=$aros_default_wbdepth
9811 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9812 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
9813 # Check whether --enable-bochs_hack was given.
9814 if test "${enable_bochs_hack+set}" = set; then
9815 enableval=$enable_bochs_hack; bochs_hack="yes"
9820 if test "$bochs_hack" = "yes" ; then
9823 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
9824 echo "${ECHO_T}$bochs_hack" >&6; }
9826 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9827 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
9829 # Check whether --with-serial-debug was given.
9830 if test "${with_serial_debug+set}" = set; then
9831 withval=$with_serial_debug; serial_debug=$withval
9836 if test "$serial_debug" = "yes" ; then
9839 if test "$serial_debug" = "no" ; then
9842 if test "$serial_debug" != "none" ; then
9843 aros_serial_debug=$serial_debug
9844 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9845 echo "${ECHO_T}on port $serial_debug" >&6; }
9847 { echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6; }
9851 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9852 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
9853 # Check whether --enable-palm_debug_hack was given.
9854 if test "${enable_palm_debug_hack+set}" = set; then
9855 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9857 palm_debug_hack="no"
9860 if test "$palm_debug_hack" = "yes" ; then
9861 aros_palm_debug_hack="1"
9863 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9864 echo "${ECHO_T}$palm_debug_hack" >&6; }
9867 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9868 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
9869 # Check whether --enable-nesting_supervisor was given.
9870 if test "${enable_nesting_supervisor+set}" = set; then
9871 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9873 nesting_supervisor="no"
9876 if test "$nesting_supervisor" = "yes" ; then
9877 aros_nesting_supervisor="1"
9879 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9880 echo "${ECHO_T}$nesting_supervisor" >&6; }
9883 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9885 { echo "$as_me:$LINENO: checking for dlopen" >&5
9886 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9887 if test "${ac_cv_func_dlopen+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9898 #define dlopen innocuous_dlopen
9900 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char dlopen (); below.
9902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903 <limits.h> exists even on freestanding compilers. */
9906 # include <limits.h>
9908 # include <assert.h>
9913 /* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
9920 /* The GNU C library defines this for functions which it implements
9921 to always fail with ENOSYS. Some functions are actually named
9922 something starting with __ and the normal name is an alias. */
9923 #if defined __stub_dlopen || defined __stub___dlopen
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9939 *) ac_try_echo
=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_link") 2>conftest.er1
9944 grep -v '^ *+' conftest.er1
>conftest.err
9946 cat conftest.err
>&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest
$ac_exeext &&
9952 $as_test_x conftest
$ac_exeext; then
9953 ac_cv_func_dlopen
=yes
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.
$ac_ext >&5
9958 ac_cv_func_dlopen
=no
9961 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9962 conftest
$ac_exeext conftest.
$ac_ext
9964 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9965 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9966 if test $ac_cv_func_dlopen = yes; then
9972 if test "x-$have_dl" = "x-no" ; then
9973 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 ac_check_lib_save_LIBS
=$LIBS
9980 cat >conftest.
$ac_ext <<_ACEOF
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
10002 rm -f conftest.
$ac_objext conftest
$ac_exeext
10003 if { (ac_try
="$ac_link"
10004 case "(($ac_try" in
10005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest$ac_exeext &&
10019 $as_test_x conftest$ac_exeext; then
10020 ac_cv_lib_dl_dlopen=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_lib_dl_dlopen=no
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10033 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10034 if test $ac_cv_lib_dl_dlopen = yes; then
10036 aros_host_ldflags="$aros_host_ldflags -ldl"
10042 if test "x-$have_dl" = "x-no" ; then
10043 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10044 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10045 { (exit 1); exit 1; }; }
10049 # Check whether --enable-x11_hidd was given.
10050 if test "${enable_x11_hidd+set}" = set; then
10051 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10056 case "x-$x11_hidd" in
10057 x-yes|x-no|x-auto) ;;
10058 *) x11_hidd="auto" ;;
10061 if test "x-$x11_hidd" != "x-no" ; then
10063 { echo "$as_me:$LINENO: checking for X" >&5
10064 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10067 # Check whether --with-x was given.
10068 if test "${with_x+set}" = set; then
10072 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10073 if test "x$with_x" = xno; then
10074 # The user explicitly disabled X.
10077 case $x_includes,$x_libraries in #(
10078 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10079 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10080 { (exit 1); exit 1; }; };; #(
10081 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 # One or both of the vars are not set, and there is no cached value.
10085 ac_x_includes=no ac_x_libraries=no
10086 rm -f -r conftest.dir
10087 if mkdir conftest.dir; then
10089 cat >Imakefile <<'_ACEOF'
10091 @echo incroot='${INCROOT}'
10093 @echo usrlibdir='${USRLIBDIR}'
10095 @echo libdir='${LIBDIR}'
10097 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10098 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10099 for ac_var in incroot usrlibdir libdir; do
10100 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
10102 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10103 for ac_extension in a so sl; do
10104 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10105 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10106 ac_im_usrlibdir=$ac_im_libdir; break
10109 # Screen out bogus values from the imake configuration. They are
10110 # bogus both because they are the default anyway, and because
10111 # using them would break gcc on systems where it needs fixed includes.
10112 case $ac_im_incroot in
10113 /usr/include) ac_x_includes= ;;
10114 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10116 case $ac_im_usrlibdir in
10117 /usr/lib | /lib) ;;
10118 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10122 rm -f -r conftest.dir
10125 # Standard set of common directories for X headers.
10126 # Check X11 before X11Rn because it is often a symlink to the current release.
10138 /usr/local/X11/include
10139 /usr/local/X11R6/include
10140 /usr/local/X11R5/include
10141 /usr/local/X11R4/include
10143 /usr/local/include/X11
10144 /usr/local/include/X11R6
10145 /usr/local/include/X11R5
10146 /usr/local/include/X11R4
10150 /usr/XFree86/include/X11
10154 /usr/unsupported/include
10155 /usr/athena/include
10156 /usr/local/x11r5/include
10157 /usr/lpp/Xamples/include
10159 /usr/openwin/include
10160 /usr/openwin/share/include'
10162 if test "$ac_x_includes" = no; then
10163 # Guess where to find include files, by looking for Xlib.h.
10164 # First, try using that file with no special directory specified.
10165 cat >conftest.$ac_ext <<_ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 #include <X11/Xlib.h>
10173 if { (ac_try="$ac_cpp conftest.$ac_ext"
10174 case "(($ac_try" in
10175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10176 *) ac_try_echo
=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1
>conftest.err
10183 cat conftest.err
>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } >/dev
/null
&& {
10186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10189 # We can compile using X headers with no special include directory.
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.
$ac_ext >&5
10195 for ac_dir
in $ac_x_header_dirs; do
10196 if test -r "$ac_dir/X11/Xlib.h"; then
10197 ac_x_includes
=$ac_dir
10203 rm -f conftest.err conftest.
$ac_ext
10204 fi # $ac_x_includes = no
10206 if test "$ac_x_libraries" = no
; then
10207 # Check for the libraries.
10208 # See if we find them without any special options.
10209 # Don't add to $LIBS permanently.
10212 cat >conftest.
$ac_ext <<_ACEOF
10215 cat confdefs.h
>>conftest.
$ac_ext
10216 cat >>conftest.
$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 #include <X11/Xlib.h>
10227 rm -f conftest.
$ac_objext conftest
$ac_exeext
10228 if { (ac_try
="$ac_link"
10229 case "(($ac_try" in
10230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10246 # We can link X programs with no special library path.
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10253 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
10255 # Don't even attempt the hair of trying to link an X program!
10256 for ac_extension in a so sl; do
10257 if test -r "$ac_dir/libX11.$ac_extension"; then
10258 ac_x_libraries=$ac_dir
10265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10266 conftest$ac_exeext conftest.$ac_ext
10267 fi # $ac_x_libraries = no
10269 case $ac_x_includes,$ac_x_libraries in #(
10270 no,* | *,no | *\'*)
10271 # Didn't find X, or a directory has "'" in its name.
10272 ac_cv_have_x="have_x=no";; #(
10274 # Record where we found X for the cache.
10275 ac_cv_have_x="have_x=yes\
10276 ac_x_includes='$ac_x_includes'\
10277 ac_x_libraries='$ac_x_libraries'"
10283 eval "$ac_cv_have_x"
10286 if test "$have_x" != yes; then
10287 { echo "$as_me:$LINENO: result: $have_x" >&5
10288 echo "${ECHO_T}$have_x" >&6; }
10291 # If each of the values was on the command line, it overrides each guess.
10292 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10293 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10294 # Update the cache value to reflect the command line values.
10295 ac_cv_have_x="have_x=yes\
10296 ac_x_includes='$x_includes'\
10297 ac_x_libraries='$x_libraries'"
10298 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10299 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10303 if test "x-$no_x" = "x-yes" ; then
10305 if test "x-$x11_hidd" != "x-auto" ; then
10306 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10307 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10308 { (exit 1); exit 1; }; }
10312 x11_hidd_target=kernel-x11gfx
10315 # Check whether --enable-x11_shm was given.
10316 if test "${enable_x11_shm+set}" = set; then
10317 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10319 x11_hidd_shm="auto"
10322 case "x-$x11_hidd_shm" in
10323 x-yes|x-no|x-auto) ;;
10324 *) x11_hidd_shm="auto" ;;
10329 if test "x-$x11_hidd_shm" != "x-no" ; then
10332 for ac_header in sys/ipc.h
10334 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 ac_res=`eval echo '${'$as_ac_Header'}'`
10342 { echo "$as_me:$LINENO: result: $ac_res" >&5
10343 echo "${ECHO_T}$ac_res" >&6; }
10345 # Is the header compilable?
10346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10348 cat >conftest.$ac_ext <<_ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10355 #include <$ac_header>
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10361 *) ac_try_echo
=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_compile") 2>conftest.er1
10366 grep -v '^ *+' conftest.er1
>conftest.err
10368 cat conftest.err
>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest.
$ac_objext; then
10374 ac_header_compiler
=yes
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.
$ac_ext >&5
10379 ac_header_compiler
=no
10382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10384 echo "${ECHO_T}$ac_header_compiler" >&6; }
10386 # Is the header present?
10387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10389 cat >conftest.
$ac_ext <<_ACEOF
10392 cat confdefs.h
>>conftest.
$ac_ext
10393 cat >>conftest.
$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <$ac_header>
10397 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10398 case "(($ac_try" in
10399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } >/dev/null && {
10410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10413 ac_header_preproc=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_header_preproc=no
10421 rm -f conftest.err conftest.$ac_ext
10422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10423 echo "${ECHO_T}$ac_header_preproc" >&6; }
10425 # So? What about this header?
10426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10432 ac_header_preproc=yes
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 eval "$as_ac_Header=\$ac_header_preproc"
10457 ac_res=`eval echo '${'$as_ac_Header'}'`
10458 { echo "$as_me:$LINENO: result: $ac_res" >&5
10459 echo "${ECHO_T}$ac_res" >&6; }
10462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10463 cat >>confdefs.h <<_ACEOF
10464 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10472 for ac_header in sys/shm.h
10474 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 ac_res=`eval echo '${'$as_ac_Header'}'`
10482 { echo "$as_me:$LINENO: result: $ac_res" >&5
10483 echo "${ECHO_T}$ac_res" >&6; }
10485 # Is the header compilable?
10486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 $ac_includes_default
10495 #include <$ac_header>
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10501 *) ac_try_echo
=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_compile") 2>conftest.er1
10506 grep -v '^ *+' conftest.er1
>conftest.err
10508 cat conftest.err
>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest.
$ac_objext; then
10514 ac_header_compiler
=yes
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.
$ac_ext >&5
10519 ac_header_compiler
=no
10522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10524 echo "${ECHO_T}$ac_header_compiler" >&6; }
10526 # Is the header present?
10527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10529 cat >conftest.
$ac_ext <<_ACEOF
10532 cat confdefs.h
>>conftest.
$ac_ext
10533 cat >>conftest.
$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 #include <$ac_header>
10537 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10538 case "(($ac_try" in
10539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } >/dev/null && {
10550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10553 ac_header_preproc=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_header_preproc=no
10561 rm -f conftest.err conftest.$ac_ext
10562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10563 echo "${ECHO_T}$ac_header_preproc" >&6; }
10565 # So? What about this header?
10566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10572 ac_header_preproc=yes
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 eval "$as_ac_Header=\$ac_header_preproc"
10597 ac_res=`eval echo '${'$as_ac_Header'}'`
10598 { echo "$as_me:$LINENO: result: $ac_res" >&5
10599 echo "${ECHO_T}$ac_res" >&6; }
10602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10603 cat >>confdefs.h <<_ACEOF
10604 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10612 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10615 save_cflags="$CFLAGS"
10616 LIBS="$x_libraries"
10617 CFLAGS="$x_includes"
10618 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10619 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10620 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-lXext $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10638 char XShmQueryExtension ();
10642 return XShmQueryExtension ();
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (ac_try="$ac_link"
10649 case "(($ac_try" in
10650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10651 *) ac_try_echo
=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_link") 2>conftest.er1
10656 grep -v '^ *+' conftest.er1
>conftest.err
10658 cat conftest.err
>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest
$ac_exeext &&
10664 $as_test_x conftest
$ac_exeext; then
10665 ac_cv_lib_Xext_XShmQueryExtension
=yes
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.
$ac_ext >&5
10670 ac_cv_lib_Xext_XShmQueryExtension
=no
10673 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10674 conftest
$ac_exeext conftest.
$ac_ext
10675 LIBS
=$ac_check_lib_save_LIBS
10677 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10678 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10679 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10684 CFLAGS
="$save_cflags"
10688 if test "x-$have_xshm" = "x-yes" ; then
10689 DO_XSHM_SUPPORT
="1"
10690 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10691 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
10692 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
10693 { (exit 1); exit 1; }; }
10695 DO_XSHM_SUPPORT
="0"
10699 # Check whether --enable-x11_vidmode was given.
10700 if test "${enable_x11_vidmode+set}" = set; then
10701 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
10703 x11_hidd_vidmode
="auto"
10706 case "x-$x11_hidd_vidmode" in
10707 x-yes|x-no|x-auto
) ;;
10708 *) x11_hidd_vidmode
="auto" ;;
10713 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10716 save_cflags
="$CFLAGS"
10717 LIBS
="$x_libraries"
10718 CFLAGS
="$x_includes"
10719 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10720 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
10721 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 ac_check_lib_save_LIBS
=$LIBS
10725 LIBS
="-lXxf86vm $LIBS"
10726 cat >conftest.
$ac_ext <<_ACEOF
10729 cat confdefs.h
>>conftest.
$ac_ext
10730 cat >>conftest.
$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10739 char XF86VidModeQueryExtension ();
10743 return XF86VidModeQueryExtension ();
10748 rm -f conftest.
$ac_objext conftest
$ac_exeext
10749 if { (ac_try
="$ac_link"
10750 case "(($ac_try" in
10751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext &&
10765 $as_test_x conftest$ac_exeext; then
10766 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10775 conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10778 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10779 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10780 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10785 CFLAGS="$save_cflags"
10788 if test "x-$have_vidmode" = "x-yes" ; then
10789 DO_VIDMODE_SUPPORT="1"
10790 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10791 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
10792 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
10793 { (exit 1); exit 1; }; }
10795 DO_VIDMODE_SUPPORT="0"
10802 # Check whether --enable-sdl_hidd was given.
10803 if test "${enable_sdl_hidd+set}" = set; then
10804 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10809 case "x-$sdl_hidd" in
10810 x-yes|x-no|x-auto) ;;
10811 *) sdl_hidd="auto" ;;
10814 if test "x-$sdl_hidd" != "x-no" ; then
10817 # Check whether --with-sdl-prefix was given.
10818 if test "${with_sdl_prefix+set}" = set; then
10819 withval=$with_sdl_prefix; sdl_prefix="$withval"
10825 # Check whether --with-sdl-exec-prefix was given.
10826 if test "${with_sdl_exec_prefix+set}" = set; then
10827 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10832 # Check whether --enable-sdltest was given.
10833 if test "${enable_sdltest+set}" = set; then
10834 enableval=$enable_sdltest;
10840 if test x$sdl_exec_prefix != x ; then
10841 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10842 if test x${SDL_CONFIG+set} != xset ; then
10843 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10846 if test x$sdl_prefix != x ; then
10847 sdl_args="$sdl_args --prefix=$sdl_prefix"
10848 if test x${SDL_CONFIG+set} != xset ; then
10849 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10853 if test "x$prefix" != xNONE; then
10854 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10856 # Extract the first word of "sdl-config", so it can be a program name with args.
10857 set dummy sdl-config; ac_word=$2
10858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10860 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 case $SDL_CONFIG in
10865 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10887 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10888 if test -n "$SDL_CONFIG"; then
10889 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
10890 echo "${ECHO_T}$SDL_CONFIG" >&6; }
10892 { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10897 min_sdl_version=1.2.10
10898 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
10899 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
10901 if test "$SDL_CONFIG" = "no" ; then
10904 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10905 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10907 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10909 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10911 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10913 if test "x$enable_sdltest" = "xyes" ; then
10914 ac_save_CFLAGS="$CFLAGS"
10915 ac_save_CXXFLAGS="$CXXFLAGS"
10916 ac_save_LIBS="$LIBS"
10917 CFLAGS="$CFLAGS $SDL_CFLAGS"
10918 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10919 LIBS="$LIBS $SDL_LIBS"
10921 if test "$cross_compiling" = yes; then
10922 echo $ac_n "cross compiling; assumed OK... $ac_c"
10924 cat >conftest.$ac_ext <<_ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10932 #include <stdlib.h>
10933 #include <string.h>
10937 my_strdup (char *str)
10943 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10944 strcpy (new_str, str);
10952 int main (int argc, char *argv[])
10954 int major, minor, micro;
10957 /* This hangs on some systems (?)
10958 system ("touch conf.sdltest");
10960 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10962 /* HP/UX 9 (%@#!) writes to sscanf strings */
10963 tmp_version = my_strdup("$min_sdl_version");
10964 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
10965 printf("%s, bad version string\n", "$min_sdl_version");
10969 if (($sdl_major_version > major) ||
10970 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10971 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10977 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10978 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10979 printf("*** best to upgrade to the required version.\n");
10980 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10981 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10982 printf("*** config.cache before re-running configure\n");
10989 rm -f conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10993 *) ac_try_echo
=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_link") 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11000 { (case "(($ac_try" in
11001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11011 echo "$as_me: program exited with status $ac_status" >&5
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ( exit $ac_status )
11018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11022 CFLAGS="$ac_save_CFLAGS"
11023 CXXFLAGS="$ac_save_CXXFLAGS"
11024 LIBS="$ac_save_LIBS"
11027 if test "x$no_sdl" = x ; then
11028 { echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6; }
11032 { echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6; }
11034 if test "$SDL_CONFIG" = "no" ; then
11035 echo "*** The sdl-config script installed by SDL could not be found"
11036 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11037 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11038 echo "*** full path to sdl-config."
11040 if test -f conf.sdltest ; then
11043 echo "*** Could not run SDL test program, checking why..."
11044 CFLAGS="$CFLAGS $SDL_CFLAGS"
11045 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11046 LIBS="$LIBS $SDL_LIBS"
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11057 int main(int argc, char *argv[])
11060 #define main K_and_R_C_main
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11074 *) ac_try_echo
=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_link") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1
>conftest.err
11081 cat conftest.err
>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest
$ac_exeext &&
11087 $as_test_x conftest
$ac_exeext; then
11088 echo "*** The test program compiled, but did not run. This usually means"
11089 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11090 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11091 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11092 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11093 echo "*** is required on your system"
11095 echo "*** If you have an old version installed, it is best to remove it, although"
11096 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.
$ac_ext >&5
11101 echo "*** The test program failed to compile or link. See the file config.log for the"
11102 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11103 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11104 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11107 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11108 conftest
$ac_exeext conftest.
$ac_ext
11109 CFLAGS
="$ac_save_CFLAGS"
11110 CXXFLAGS
="$ac_save_CXXFLAGS"
11111 LIBS
="$ac_save_LIBS"
11123 if test "x-$have_sdl" != "x-yes" ; then
11125 if test "x-$sdl_hidd" != "x-auto" ; then
11126 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11127 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11128 { (exit 1); exit 1; }; }
11132 sdl_hidd_target
=kernel-hidd-sdl
11139 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11140 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11141 # Check whether --enable-dbus was given.
11142 if test "${enable_dbus+set}" = set; then
11143 enableval
=$enable_dbus; dbus
="yes"
11148 if test "$dbus" = "yes" ; then
11150 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
11151 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
11152 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
11153 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
11157 { echo "$as_me:$LINENO: result: $dbus" >&5
11158 echo "${ECHO_T}$dbus" >&6; }
11247 # Native version related
11251 # Palm native version related
11254 # Unix/Hosted version related
11270 # Collect-aros stuff: "-ius" to ignore undefined symbols
11273 # C compiler related
11276 case "$aros_flavour" in
11277 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
11278 aros_flavour
="emulation" ;;
11279 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11280 aros_flavour
="emulation" ;;
11281 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
11282 aros_flavour
="standalone";;
11283 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
11284 aros_flavour
="native" ;;
11285 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11286 aros_flavour
="native" ;;
11287 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
11288 aros_flavour
="linklib" ;;
11289 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11290 aros_flavour
="palmnative" ;;
11291 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11292 aros_flavour
="mac68knative" ;;
11293 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11294 aros_flavour
="ppcnative" ;;
11299 if test ! -d ${aros_inc_dir} ; then
11300 ${MKDIR} ${aros_inc_dir}
11302 if test ! -d ${aros_geninc_dir} ; then
11303 ${MKDIR} ${aros_geninc_dir}
11305 if test ! -d ${aros_hostcfg_dir} ; then
11306 ${MKDIR} ${aros_hostcfg_dir}
11308 if test ! -d ${aros_targetcfg_dir} ; then
11309 ${MKDIR} ${aros_targetcfg_dir}
11311 if test ! -d ${aros_tools_dir} ; then
11312 ${MKDIR} ${aros_tools_dir}
11314 if test ! -d ${aros_scripts_dir} ; then
11315 ${MKDIR} ${aros_scripts_dir}
11318 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11321 ac_config_commands
="$ac_config_commands compiler_executable"
11323 ac_config_commands
="$ac_config_commands genshared_executable"
11325 ac_config_commands
="$ac_config_commands genmf_executable"
11327 ac_config_commands
="$ac_config_commands adflib_myaros.conf_executable"
11330 ac_config_files
="$ac_config_files Makefile rom/mmakefile ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/adflib/myconf.aros tools/collect-aros/env.h"
11333 cat >confcache
<<\_ACEOF
11334 # This file is a shell script that caches the results of configure
11335 # tests run on this system so they can be shared between configure
11336 # scripts and configure runs, see configure's option --config-cache.
11337 # It is not useful on other systems. If it contains results you don't
11338 # want to keep, you may remove or edit it.
11340 # config.status only pays attention to the cache file if you give it
11341 # the --recheck option to rerun configure.
11343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11345 # following values.
11349 # The following way of writing the cache mishandles newlines in values,
11350 # but we know of no workaround that is simple, portable, and efficient.
11351 # So, we kill variables containing newlines.
11352 # Ultrix sh set writes to stderr and can't be redirected directly,
11353 # and sets the high bit in the cache file unless we assign to the vars.
11355 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11356 eval ac_val
=\$
$ac_var
11360 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11361 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11364 _ | IFS | as_nl
) ;; #(
11365 *) $as_unset $ac_var ;;
11371 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11372 *${as_nl}ac_space
=\
*)
11373 # `set' does not quote correctly, so add quotes (double-quote
11374 # substitution turns \\\\ into \\, and sed turns \\ into \).
11377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11380 # `set' quotes correctly as required by POSIX, so do not add quotes.
11381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11392 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11394 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11395 if test -w "$cache_file"; then
11396 test "x$cache_file" != "x/dev/null" &&
11397 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11398 echo "$as_me: updating cache $cache_file" >&6;}
11399 cat confcache
>$cache_file
11401 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11402 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11407 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11408 # Let make expand exec_prefix.
11409 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11411 DEFS
=-DHAVE_CONFIG_H
11415 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11416 # 1. Remove the extension, and $U if already installed.
11417 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11418 ac_i
=`echo "$ac_i" | sed "$ac_script"`
11419 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11420 # will be set to the directory where LIBOBJS objects are built.
11421 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11422 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11424 LIBOBJS
=$ac_libobjs
11426 LTLIBOBJS
=$ac_ltlibobjs
11430 : ${CONFIG_STATUS=./config.status}
11431 ac_clean_files_save
=$ac_clean_files
11432 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11433 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11434 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11435 cat >$CONFIG_STATUS <<_ACEOF
11437 # Generated by $as_me.
11438 # Run this file to recreate the current configuration.
11439 # Compiler output produced by configure, useful for debugging
11440 # configure, is in config.log if it exists.
11443 ac_cs_recheck=false
11445 SHELL=\${CONFIG_SHELL-$SHELL}
11448 cat >>$CONFIG_STATUS <<\_ACEOF
11449 ## --------------------- ##
11450 ## M4sh Initialization. ##
11451 ## --------------------- ##
11453 # Be more Bourne compatible
11454 DUALCASE
=1; export DUALCASE
# for MKS sh
11455 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11458 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11459 # is contrary to our usage. Disable this feature.
11460 alias -g '${1+"$@"}'='"$@"'
11461 setopt NO_GLOB_SUBST
11463 case `(set -o) 2>/dev/null` in
11464 *posix
*) set -o posix
;;
11473 # Avoid depending upon Character Ranges.
11474 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11475 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11476 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11477 as_cr_digits
='0123456789'
11478 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11480 # The user is always right.
11481 if test "${PATH_SEPARATOR+set}" != set; then
11482 echo "#! /bin/sh" >conf$$.sh
11483 echo "exit 0" >>conf$$.sh
11485 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11493 # Support unset when possible.
11494 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
11502 # We need space, tab and new line, in precisely that order. Quoting is
11503 # there to prevent editors from complaining about space-tab.
11504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11505 # splitting by setting IFS to empty value.)
11510 # Find who we are. Look in the path if we contain no directory separator.
11512 *[\\/]* ) as_myself
=$0 ;;
11513 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11514 for as_dir
in $PATH
11517 test -z "$as_dir" && as_dir
=.
11518 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11524 # We did not find ourselves, most probably we were run as `sh COMMAND'
11525 # in which case we are not to be found in the path.
11526 if test "x$as_myself" = x
; then
11529 if test ! -f "$as_myself"; then
11530 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11531 { (exit 1); exit 1; }
11534 # Work around bugs in pre-3.0 UWIN ksh.
11535 for as_var
in ENV MAIL MAILPATH
11536 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11544 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11545 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11546 LC_TELEPHONE LC_TIME
11548 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11549 eval $as_var=C
; export $as_var
11551 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11555 # Required to use basename.
11556 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11557 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11563 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11564 as_basename
=basename
11570 # Name of the executable.
11571 as_me
=`$as_basename -- "$0" ||
11572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11573 X"$0" : 'X\(//\)$' \| \
11574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11576 sed '/^.*\/\([^/][^/]*\)\/*$/{
11595 as_lineno_1
=$LINENO
11596 as_lineno_2
=$LINENO
11597 test "x$as_lineno_1" != "x$as_lineno_2" &&
11598 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
11600 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11601 # uniformly replaced by the line number. The first 'sed' inserts a
11602 # line-number line after each line using $LINENO; the second 'sed'
11603 # does the real work. The second script uses 'N' to pair each
11604 # line-number line with the line containing $LINENO, and appends
11605 # trailing '-' during substitution so that $LINENO is not a special
11606 # case at line end.
11607 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11608 # scripts with optimization help from Paolo Bonzini. Blame Lee
11609 # E. McMahon (1931-1989) for sed's syntax. :-)
11621 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11624 ' >$as_me.lineno
&&
11625 chmod +x
"$as_me.lineno" ||
11626 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11627 { (exit 1); exit 1; }; }
11629 # Don't try to exec as it changes $[0], causing all sort of problems
11630 # (the dirname of $[0] is not the place where we might find the
11631 # original and so on. Autoconf is especially sensitive to this).
11632 .
"./$as_me.lineno"
11633 # Exit status is that of the last command.
11638 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11644 ECHO_C
= ECHO_N
= ECHO_T
=
11645 case `echo -n x` in
11647 case `echo 'x\c'` in
11648 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11655 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11656 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11662 rm -f conf$$ conf$$.exe conf$$.
file
11663 if test -d conf$$.dir
; then
11664 rm -f conf$$.dir
/conf$$.
file
11670 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11672 # ... but there are two gotchas:
11673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11675 # In both cases, we have to default to `cp -p'.
11676 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11678 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11683 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11684 rmdir conf$$.dir
2>/dev
/null
11686 if mkdir
-p .
2>/dev
/null
; then
11689 test -d .
/-p && rmdir .
/-p
11693 if test -x / >/dev
/null
2>&1; then
11694 as_test_x
='test -x'
11696 if ls -dL / >/dev
/null
2>&1; then
11703 if test -d "$1"; then
11709 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11710 ???[sx]*):;;*)false;;esac;fi
11714 as_executable_p
=$as_test_x
11716 # Sed expression to map a string onto a valid CPP name.
11717 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11719 # Sed expression to map a string onto a valid variable name.
11720 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11725 # Save the log message, to keep $[0] and so on meaningful, and to
11726 # report actual input values of CONFIG_FILES etc. instead of their
11727 # values after options handling.
11729 This file was extended by $as_me, which was
11730 generated by GNU Autoconf 2.61. Invocation command line was
11732 CONFIG_FILES = $CONFIG_FILES
11733 CONFIG_HEADERS = $CONFIG_HEADERS
11734 CONFIG_LINKS = $CONFIG_LINKS
11735 CONFIG_COMMANDS = $CONFIG_COMMANDS
11738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11743 cat >>$CONFIG_STATUS <<_ACEOF
11744 # Files that config.status was made for.
11745 config_files="$ac_config_files"
11746 config_headers="$ac_config_headers"
11747 config_commands="$ac_config_commands"
11751 cat >>$CONFIG_STATUS <<\_ACEOF
11753 \`$as_me' instantiates files from templates according to the
11754 current configuration.
11756 Usage: $0 [OPTIONS] [FILE]...
11758 -h, --help print this help, then exit
11759 -V, --version print version number and configuration settings, then exit
11760 -q, --quiet do not print progress messages
11761 -d, --debug don't remove temporary files
11762 --recheck update $as_me by reconfiguring in the same conditions
11763 --file=FILE[:TEMPLATE]
11764 instantiate the configuration file FILE
11765 --header=FILE[:TEMPLATE]
11766 instantiate the configuration header FILE
11768 Configuration files:
11771 Configuration headers:
11774 Configuration commands:
11777 Report bugs to <bug-autoconf@gnu.org>."
11780 cat >>$CONFIG_STATUS <<_ACEOF
11783 configured by $0, generated by GNU Autoconf 2.61,
11784 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11786 Copyright (C) 2006 Free Software Foundation, Inc.
11787 This config.status script is free software; the Free Software Foundation
11788 gives unlimited permission to copy, distribute and modify it."
11794 cat >>$CONFIG_STATUS <<\_ACEOF
11795 # If no file are specified by the user, then we need to provide default
11796 # value. By we need to know if files were specified by the user.
11802 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11803 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11814 # Handling of the options.
11815 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11817 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11818 echo "$ac_cs_version"; exit ;;
11819 --debug |
--debu |
--deb |
--de |
--d |
-d )
11821 --file |
--fil |
--fi |
--f )
11823 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11824 ac_need_defaults
=false
;;
11825 --header |
--heade |
--head |
--hea )
11827 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11828 ac_need_defaults
=false
;;
11830 # Conflict between --help and --header
11831 { echo "$as_me: error: ambiguous option: $1
11832 Try \`$0 --help' for more information." >&2
11833 { (exit 1); exit 1; }; };;
11834 --help |
--hel |
-h )
11835 echo "$ac_cs_usage"; exit ;;
11836 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11837 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11840 # This is an error.
11841 -*) { echo "$as_me: error: unrecognized option: $1
11842 Try \`$0 --help' for more information." >&2
11843 { (exit 1); exit 1; }; } ;;
11845 *) ac_config_targets
="$ac_config_targets $1"
11846 ac_need_defaults
=false
;;
11852 ac_configure_extra_args
=
11854 if $ac_cs_silent; then
11856 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11860 cat >>$CONFIG_STATUS <<_ACEOF
11861 if \$ac_cs_recheck; then
11862 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11863 CONFIG_SHELL=$SHELL
11864 export CONFIG_SHELL
11865 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11869 cat >>$CONFIG_STATUS <<\_ACEOF
11873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11874 ## Running $as_me. ##
11880 cat >>$CONFIG_STATUS <<_ACEOF
11885 aros_tools_dir=${aros_tools_dir}
11886 aros_target_cpu=${aros_target_cpu}
11887 aros_target_arch=${aros_target_arch}
11888 aros_target_suffix=${aros_target_suffix}
11889 aros_target_nm_ln=${aros_target_nm_ln}
11890 aros_target_as_ln=${aros_target_as_ln}
11891 aros_target_ar_ln=${aros_target_ar_ln}
11892 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11893 aros_target_objdump_ln=${aros_target_objdump_ln}
11894 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11895 aros_target_strip_ln=${aros_target_strip_ln}
11898 aros_scripts_dir=${aros_scripts_dir}
11900 aros_tools_dir=${aros_tools_dir}
11905 cat >>$CONFIG_STATUS <<\_ACEOF
11907 # Handling of arguments.
11908 for ac_config_target
in $ac_config_targets
11910 case $ac_config_target in
11911 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11912 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
11913 "genshared_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genshared_executable" ;;
11914 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
11915 "adflib_myaros.conf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
11916 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11917 "rom/mmakefile") CONFIG_FILES
="$CONFIG_FILES rom/mmakefile" ;;
11918 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11919 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11920 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11921 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11922 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
11923 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11924 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11925 "${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" ;;
11926 "${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" ;;
11927 "${aros_scripts_dir}/genshared") CONFIG_FILES
="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11928 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11929 "tools/adflib/myconf.aros") CONFIG_FILES
="$CONFIG_FILES tools/adflib/myconf.aros" ;;
11930 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
11932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11934 { (exit 1); exit 1; }; };;
11939 # If the user did not use the arguments to specify the items to instantiate,
11940 # then the envvar interface is used. Set only those that are not.
11941 # We use the long form for the default assignment because of an extremely
11942 # bizarre bug on SunOS 4.1.3.
11943 if $ac_need_defaults; then
11944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11949 # Have a temporary directory for convenience. Make it in the build tree
11950 # simply because there is no reason against having it here, and in addition,
11951 # creating and moving files from /tmp can sometimes cause problems.
11952 # Hook for its removal unless debugging.
11953 # Note that there is a small window in which the directory will not be cleaned:
11954 # after its creation but before its name has been assigned to `$tmp'.
11958 trap 'exit_status=$?
11959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11961 trap '{ (exit 1); exit 1; }' 1 2 13 15
11963 # Create a (secure) tmp directory for tmp files.
11966 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11967 test -n "$tmp" && test -d "$tmp"
11970 tmp
=.
/conf$$
-$RANDOM
11971 (umask 077 && mkdir
"$tmp")
11974 echo "$me: cannot create a temporary directory in ." >&2
11975 { (exit 1); exit 1; }
11979 # Set up the sed scripts for CONFIG_FILES section.
11982 # No need to generate the scripts if there are no CONFIG_FILES.
11983 # This happens for instance when ./config.status config.h
11984 if test -n "$CONFIG_FILES"; then
11991 for ac_last_try
in false false false false false
:; do
11992 cat >conf$
$subs.
sed <<_ACEOF
11993 SHELL!$SHELL$ac_delim
11994 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11995 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11996 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11997 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11998 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11999 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12000 exec_prefix!$exec_prefix$ac_delim
12001 prefix!$prefix$ac_delim
12002 program_transform_name!$program_transform_name$ac_delim
12003 bindir!$bindir$ac_delim
12004 sbindir!$sbindir$ac_delim
12005 libexecdir!$libexecdir$ac_delim
12006 datarootdir!$datarootdir$ac_delim
12007 datadir!$datadir$ac_delim
12008 sysconfdir!$sysconfdir$ac_delim
12009 sharedstatedir!$sharedstatedir$ac_delim
12010 localstatedir!$localstatedir$ac_delim
12011 includedir!$includedir$ac_delim
12012 oldincludedir!$oldincludedir$ac_delim
12013 docdir!$docdir$ac_delim
12014 infodir!$infodir$ac_delim
12015 htmldir!$htmldir$ac_delim
12016 dvidir!$dvidir$ac_delim
12017 pdfdir!$pdfdir$ac_delim
12018 psdir!$psdir$ac_delim
12019 libdir!$libdir$ac_delim
12020 localedir!$localedir$ac_delim
12021 mandir!$mandir$ac_delim
12022 DEFS!$DEFS$ac_delim
12023 ECHO_C!$ECHO_C$ac_delim
12024 ECHO_N!$ECHO_N$ac_delim
12025 ECHO_T!$ECHO_T$ac_delim
12026 LIBS!$LIBS$ac_delim
12027 build_alias!$build_alias$ac_delim
12028 host_alias!$host_alias$ac_delim
12029 target_alias!$target_alias$ac_delim
12030 build!$build$ac_delim
12031 build_cpu!$build_cpu$ac_delim
12032 build_vendor!$build_vendor$ac_delim
12033 build_os!$build_os$ac_delim
12034 host!$host$ac_delim
12035 host_cpu!$host_cpu$ac_delim
12036 host_vendor!$host_vendor$ac_delim
12037 host_os!$host_os$ac_delim
12039 CFLAGS!$CFLAGS$ac_delim
12040 LDFLAGS!$LDFLAGS$ac_delim
12041 CPPFLAGS!$CPPFLAGS$ac_delim
12042 ac_ct_CC!$ac_ct_CC$ac_delim
12043 EXEEXT!$EXEEXT$ac_delim
12044 OBJEXT!$OBJEXT$ac_delim
12047 MMAKE!$MMAKE$ac_delim
12048 aros_host_ld!$aros_host_ld$ac_delim
12049 aros_host_aclocal!$aros_host_aclocal$ac_delim
12050 aros_host_autoconf!$aros_host_autoconf$ac_delim
12051 aros_host_autoheader!$aros_host_autoheader$ac_delim
12052 aros_host_automake!$aros_host_automake$ac_delim
12053 aros_host_ar!$aros_host_ar$ac_delim
12054 aros_host_ranlib!$aros_host_ranlib$ac_delim
12055 aros_host_strip!$aros_host_strip$ac_delim
12059 ECHO!$ECHO$ac_delim
12060 MKDIR!$MKDIR$ac_delim
12061 TOUCH!$TOUCH$ac_delim
12062 SORT!$SORT$ac_delim
12063 UNIQ!$UNIQ$ac_delim
12066 BISON!$BISON$ac_delim
12067 FLEX!$FLEX$ac_delim
12068 PNGTOPNM!$PNGTOPNM$ac_delim
12069 PPMTOILBM!$PPMTOILBM$ac_delim
12071 CHMOD!$CHMOD$ac_delim
12072 PYTHON!$PYTHON$ac_delim
12073 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12074 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12075 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12076 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12077 pythondir!$pythondir$ac_delim
12078 pkgpythondir!$pkgpythondir$ac_delim
12079 pyexecdir!$pyexecdir$ac_delim
12080 pkgpyexecdir!$pkgpyexecdir$ac_delim
12083 TEST!$TEST$ac_delim
12085 GREP!$GREP$ac_delim
12086 EGREP!$EGREP$ac_delim
12087 LIBOBJS!$LIBOBJS$ac_delim
12088 DISTCC!$DISTCC$ac_delim
12089 CCACHE!$CCACHE$ac_delim
12092 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12094 elif $ac_last_try; then
12095 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12097 { (exit 1); exit 1; }; }
12099 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12103 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12104 if test -n "$ac_eof"; then
12105 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12106 ac_eof
=`expr $ac_eof + 1`
12109 cat >>$CONFIG_STATUS <<_ACEOF
12110 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12115 s/^/s,@/; s/!/@,|#_!!_#|/
12118 s/'"$ac_delim"'$/,g/; t
12120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12121 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12122 rm -f conf$
$subs.
sed
12123 cat >>$CONFIG_STATUS <<_ACEOF
12129 for ac_last_try
in false false false false false
:; do
12130 cat >conf$
$subs.
sed <<_ACEOF
12131 aros_kernel_cc!$aros_kernel_cc$ac_delim
12132 aros_target_as_ln!$aros_target_as_ln$ac_delim
12133 aros_kernel_ld!$aros_kernel_ld$ac_delim
12134 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12135 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12136 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12137 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12138 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12139 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12140 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12141 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12142 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12143 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12144 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12145 XMKMF!$XMKMF$ac_delim
12146 SDL_CONFIG!$SDL_CONFIG$ac_delim
12147 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12148 SDL_LIBS!$SDL_LIBS$ac_delim
12149 aros_arch!$aros_arch$ac_delim
12150 aros_cpu!$aros_cpu$ac_delim
12151 aros_flavour!$aros_flavour$ac_delim
12152 aros_flavour_uc!$aros_flavour_uc$ac_delim
12153 TOPDIR!$TOPDIR$ac_delim
12154 aros_cc_pre!$aros_cc_pre$ac_delim
12155 aros_host_arch!$aros_host_arch$ac_delim
12156 aros_host_cpu!$aros_host_cpu$ac_delim
12157 aros_host_cc!$aros_host_cc$ac_delim
12158 aros_host_make!$aros_host_make$ac_delim
12159 aros_host_cflags!$aros_host_cflags$ac_delim
12160 aros_host_ldflags!$aros_host_ldflags$ac_delim
12161 aros_host_debug!$aros_host_debug$ac_delim
12162 aros_host_mkdep!$aros_host_mkdep$ac_delim
12163 aros_host_mkargs!$aros_host_mkargs$ac_delim
12164 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12165 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12166 aros_tools_dir!$aros_tools_dir$ac_delim
12167 aros_target_arch!$aros_target_arch$ac_delim
12168 aros_target_cpu!$aros_target_cpu$ac_delim
12169 aros_target_variant!$aros_target_variant$ac_delim
12170 aros_target_suffix!$aros_target_suffix$ac_delim
12171 aros_target_incl!$aros_target_incl$ac_delim
12172 aros_target_ar!$aros_target_ar$ac_delim
12173 aros_target_ranlib!$aros_target_ranlib$ac_delim
12174 aros_kernel_nm!$aros_kernel_nm$ac_delim
12175 aros_target_cc!$aros_target_cc$ac_delim
12176 aros_target_as!$aros_target_as$ac_delim
12177 aros_target_ld!$aros_target_ld$ac_delim
12178 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12179 aros_target_cc_path!$aros_target_cc_path$ac_delim
12180 aros_target_objdump!$aros_target_objdump$ac_delim
12181 aros_target_objcopy!$aros_target_objcopy$ac_delim
12182 aros_target_strip!$aros_target_strip$ac_delim
12183 aros_target_nm!$aros_target_nm$ac_delim
12184 aros_shared_default!$aros_shared_default$ac_delim
12185 aros_shared_ld!$aros_shared_ld$ac_delim
12186 aros_object_format!$aros_object_format$ac_delim
12187 aros_compiler_libs!$aros_compiler_libs$ac_delim
12188 aros_config_cflags!$aros_config_cflags$ac_delim
12189 aros_config_aflags!$aros_config_aflags$ac_delim
12190 aros_config_ldflags!$aros_config_ldflags$ac_delim
12191 aros_shared_cflags!$aros_shared_cflags$ac_delim
12192 aros_shared_aflags!$aros_shared_aflags$ac_delim
12193 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12194 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12195 aros_debug_cflags!$aros_debug_cflags$ac_delim
12196 aros_debug_aflags!$aros_debug_aflags$ac_delim
12197 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12198 aros_target_genmap!$aros_target_genmap$ac_delim
12199 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12200 aros_gui_libdir!$aros_gui_libdir$ac_delim
12201 aros_gui_ldflags!$aros_gui_ldflags$ac_delim
12202 aros_gui_libflags!$aros_gui_libflags$ac_delim
12203 aros_gui_incdir!$aros_gui_incdir$ac_delim
12204 aros_gui_ccflags!$aros_gui_ccflags$ac_delim
12205 x11_hidd_target!$x11_hidd_target$ac_delim
12206 sdl_hidd_target!$sdl_hidd_target$ac_delim
12207 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12208 aros_default_wbheight!$aros_default_wbheight$ac_delim
12209 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12210 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12211 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12212 aros_bochs_hack!$aros_bochs_hack$ac_delim
12213 aros_serial_debug!$aros_serial_debug$ac_delim
12214 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12215 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12216 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12217 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12218 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12219 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12220 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12221 aros_debug!$aros_debug$ac_delim
12222 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12223 aros_stack_debug!$aros_stack_debug$ac_delim
12224 aros_modules_debug!$aros_modules_debug$ac_delim
12225 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12226 gcc_target_cpu!$gcc_target_cpu$ac_delim
12227 LTLIBOBJS!$LTLIBOBJS$ac_delim
12230 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12232 elif $ac_last_try; then
12233 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12234 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12235 { (exit 1); exit 1; }; }
12237 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12241 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12242 if test -n "$ac_eof"; then
12243 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12244 ac_eof
=`expr $ac_eof + 1`
12247 cat >>$CONFIG_STATUS <<_ACEOF
12248 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12252 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12253 s/^/s,@/; s/!/@,|#_!!_#|/
12256 s/'"$ac_delim"'$/,g/; t
12258 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12259 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12260 rm -f conf$
$subs.
sed
12261 cat >>$CONFIG_STATUS <<_ACEOF
12266 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12267 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12268 # trailing colons and then remove the whole line if VPATH becomes empty
12269 # (actually we leave an empty line to preserve line numbers).
12270 if test "x$srcdir" = x.
; then
12271 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12272 s/:*\$(srcdir):*/:/
12273 s/:*\${srcdir}:*/:/
12275 s/^\([^=]*=[ ]*\):*/\1/
12281 cat >>$CONFIG_STATUS <<\_ACEOF
12282 fi # test -n "$CONFIG_FILES"
12285 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
12288 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12290 case $ac_mode$ac_tag in
12292 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12293 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12294 { (exit 1); exit 1; }; };;
12295 :[FH
]-) ac_tag
=-:-;;
12296 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12313 -) ac_f
="$tmp/stdin";;
12314 *) # Look for the file first in the build tree, then in the source tree
12315 # (if the path is not absolute). The absolute path cannot be DOS-style,
12316 # because $ac_f cannot contain `:'.
12320 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12322 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12323 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12324 { (exit 1); exit 1; }; };;
12326 ac_file_inputs
="$ac_file_inputs $ac_f"
12329 # Let's still pretend it is `configure' which instantiates (i.e., don't
12330 # use $as_me), people would be surprised to read:
12331 # /* config.h. Generated by config.status. */
12332 configure_input
="Generated from "`IFS=:
12333 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12334 if test x
"$ac_file" != x-
; then
12335 configure_input
="$ac_file. $configure_input"
12336 { echo "$as_me:$LINENO: creating $ac_file" >&5
12337 echo "$as_me: creating $ac_file" >&6;}
12341 *:-:* |
*:-) cat >"$tmp/stdin";;
12346 ac_dir
=`$as_dirname -- "$ac_file" ||
12347 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12348 X"$ac_file" : 'X\(//\)[^/]' \| \
12349 X"$ac_file" : 'X\(//\)$' \| \
12350 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12356 /^X\(\/\/\)[^/].*/{
12371 -*) as_dir
=.
/$as_dir;;
12373 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
12377 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12378 *) as_qdir
=$as_dir;;
12380 as_dirs
="'$as_qdir' $as_dirs"
12381 as_dir
=`$as_dirname -- "$as_dir" ||
12382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12383 X"$as_dir" : 'X\(//\)[^/]' \| \
12384 X"$as_dir" : 'X\(//\)$' \| \
12385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12391 /^X\(\/\/\)[^/].*/{
12404 test -d "$as_dir" && break
12406 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12407 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12408 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12409 { (exit 1); exit 1; }; }; }
12413 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12415 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12416 # A ".." for each directory in $ac_dir_suffix.
12417 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12418 case $ac_top_builddir_sub in
12419 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12420 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12423 ac_abs_top_builddir
=$ac_pwd
12424 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12425 # for backward compatibility:
12426 ac_top_builddir
=$ac_top_build_prefix
12429 .
) # We are building in place.
12431 ac_top_srcdir
=$ac_top_builddir_sub
12432 ac_abs_top_srcdir
=$ac_pwd ;;
12433 [\\/]* | ?
:[\\/]* ) # Absolute name.
12434 ac_srcdir
=$srcdir$ac_dir_suffix;
12435 ac_top_srcdir
=$srcdir
12436 ac_abs_top_srcdir
=$srcdir ;;
12437 *) # Relative name.
12438 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12439 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12440 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12442 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12453 cat >>$CONFIG_STATUS <<\_ACEOF
12454 # If the template does not know about datarootdir, expand it.
12455 # FIXME: This hack should be removed a few years after 2.60.
12456 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12458 case `sed -n '/datarootdir/ {
12467 ' $ac_file_inputs` in
12468 *datarootdir
*) ac_datarootdir_seen
=yes;;
12469 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12470 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12471 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12473 cat >>$CONFIG_STATUS <<_ACEOF
12474 ac_datarootdir_hack='
12475 s&@datadir@&$datadir&g
12476 s&@docdir@&$docdir&g
12477 s&@infodir@&$infodir&g
12478 s&@localedir@&$localedir&g
12479 s&@mandir@&$mandir&g
12480 s&\\\${datarootdir}&$datarootdir&g' ;;
12484 # Neutralize VPATH when `$srcdir' = `.'.
12485 # Shell code in configure.ac might set extrasub.
12486 # FIXME: do we really want to maintain this feature?
12487 cat >>$CONFIG_STATUS <<_ACEOF
12491 cat >>$CONFIG_STATUS <<\_ACEOF
12493 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12494 s
&@configure_input@
&$configure_input&;t t
12495 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12496 s
&@srcdir@
&$ac_srcdir&;t t
12497 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12498 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12499 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12500 s
&@builddir@
&$ac_builddir&;t t
12501 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12502 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12503 $ac_datarootdir_hack
12504 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed 's/|#_!!_#|//g' >$tmp/out
12506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12509 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12510 which seems to be undefined. Please make sure it is defined." >&5
12511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12512 which seems to be undefined. Please make sure it is defined." >&2;}
12516 -) cat "$tmp/out"; rm -f "$tmp/out";;
12517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12526 # Transform confdefs.h into a sed script `conftest.defines', that
12527 # substitutes the proper values into config.h.in to produce config.h.
12528 rm -f conftest.defines conftest.
tail
12529 # First, append a space to every undef/define line, to ease matching.
12530 echo 's/$/ /' >conftest.defines
12531 # Then, protect against being on the right side of a sed subst, or in
12532 # an unquoted here document, in config.status. If some macros were
12533 # called several times there might be several #defines for the same
12534 # symbol, which is useless. But do not sort them, since the last
12535 # AC_DEFINE must be honored.
12536 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
12537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12539 # PARAMS is the parameter list in the macro definition--in most cases, it's
12540 # just an empty string.
12541 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12542 ac_dB
='\\)[ (].*,\\1define\\2'
12550 s/^[ ]*#[ ]*define[ ][ ]*//
12555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12557 ' >>conftest.defines
12559 # Remove the space that was appended to ease matching.
12560 # Then replace #undef with comments. This is necessary, for
12561 # example, in the case of _POSIX_SOURCE, which is predefined and required
12562 # on some systems where configure will not decide to define it.
12563 # (The regexp can be short, since the line contains either #define or #undef.)
12565 s,^[ #]*u.*,/* & */,' >>conftest.defines
12567 # Break up conftest.defines:
12568 ac_max_sed_lines
=50
12570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12574 ac_in
='$ac_file_inputs'
12575 ac_out
='"$tmp/out1"'
12576 ac_nxt
='"$tmp/out2"'
12580 # Write a here document:
12581 cat >>$CONFIG_STATUS <<_ACEOF
12582 # First, check the format of the line:
12583 cat >"\$tmp/defines.sed" <<\\CEOF
12584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12589 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
12591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12592 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
12593 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
12594 grep . conftest.
tail >/dev
/null ||
break
12595 rm -f conftest.defines
12596 mv conftest.
tail conftest.defines
12598 rm -f conftest.defines conftest.
tail
12600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12601 cat >>$CONFIG_STATUS <<\_ACEOF
12602 if test x
"$ac_file" != x-
; then
12603 echo "/* $configure_input */" >"$tmp/config.h"
12604 cat "$ac_result" >>"$tmp/config.h"
12605 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
12606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12607 echo "$as_me: $ac_file is unchanged" >&6;}
12610 mv "$tmp/config.h" $ac_file
12613 echo "/* $configure_input */"
12619 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12620 echo "$as_me: executing $ac_file commands" >&6;}
12625 case $ac_file$ac_mode in
12626 "compiler_executable":C
)
12627 prefix
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12629 prefix
="${prefix}/${aros_target_cpu}-aros"
12630 prefix2
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12634 chmod a
+x
${prefix2}-gcc ${prefix2}-ld
12636 ln -sf ${prefix2}-gcc ${prefix}-gcc
12637 ln -sf ${prefix2}-ld ${prefix}-ld
12639 ln -sf $aros_target_as_ln ${prefix}-as
12640 ln -sf $aros_target_nm_ln ${prefix}-nm
12641 ln -sf $aros_target_ar_ln ${prefix}-ar
12642 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
12643 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
12644 ln -sf $aros_target_objdump_ln ${prefix}-objdump
12645 ln -sf $aros_target_strip_ln ${prefix}-strip
12647 ln -sf $aros_target_as_ln ${prefix2}-as
12648 ln -sf $aros_target_nm_ln ${prefix2}-nm
12649 ln -sf $aros_target_ar_ln ${prefix2}-ar
12650 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
12651 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
12652 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
12653 ln -sf $aros_target_strip_ln ${prefix2}-strip
12655 "genshared_executable":C
) chmod a
+x
${aros_scripts_dir}/genshared
;;
12656 "genmf_executable":C
) chmod a
+x
${aros_tools_dir}/genmf.py
;;
12657 "adflib_myaros.conf_executable":C
) chmod a
+x tools
/adflib
/myconf.aros
12664 { (exit 0); exit 0; }
12666 chmod +x
$CONFIG_STATUS
12667 ac_clean_files
=$ac_clean_files_save
12670 # configure is writing to config.log, and then calls config.status.
12671 # config.status does its own redirection, appending to config.log.
12672 # Unfortunately, on DOS this fails, as config.log is still kept open
12673 # by configure, so config.status won't be able to write to it; its
12674 # output is simply discarded. So we exec the FD to /dev/null,
12675 # effectively closing config.log, so it can be properly (re)opened and
12676 # appended to by config.status. When coming back to configure, we
12677 # need to make the FD available again.
12678 if test "$no_create" != yes; then
12680 ac_config_status_args
=
12681 test "$silent" = yes &&
12682 ac_config_status_args
="$ac_config_status_args --quiet"
12684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12687 # would make configure fail if this is the last instruction.
12688 $ac_cs_success ||
{ (exit 1); exit 1; }
12693 #XXX compatability...
12694 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
12696 if test -n "$aros_shared_cflags" ; then
12697 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12698 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg