2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
565 ac_unique_file
="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
603 ac_subst_vars
='LTLIBOBJS
605 ignore_undefined_symbols
621 aros_nesting_supervisor
626 aros_host_x11_libdirs
627 aros_host_x11_includes
631 aros_default_wbheight
637 crosstools_cxx_target
639 aros_target_strip_flags
647 aros_kernel_objcflags
666 aros_target_cc_includes
681 aros_target_bootloader
711 aros_cflags_iquote_end
713 kernel_cflags_iquote_end
715 host_cflags_iquote_end
717 aros_target_nostdlib_ldflags
718 aros_target_detach_ldflags
719 aros_target_nix_ldflags
720 aros_target_nostartup_ldflags
721 aros_target_nostdinc_cflags
726 aros_target_ranlib_ln
727 aros_target_objdump_ln
728 aros_target_objcopy_ln
823 program_transform_name
836 enable_option_checking
845 enable_target_variant
861 enable_palm_debug_hack
862 enable_nesting_supervisor
874 ac_precious_vars
='build_alias
887 # Initialize some variables set by options.
889 ac_init_version
=false
890 ac_unrecognized_opts
=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name
=s
,x
,x
,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir
='${exec_prefix}/bin'
916 sbindir
='${exec_prefix}/sbin'
917 libexecdir
='${exec_prefix}/libexec'
918 datarootdir
='${prefix}/share'
919 datadir
='${datarootdir}'
920 sysconfdir
='${prefix}/etc'
921 sharedstatedir
='${prefix}/com'
922 localstatedir
='${prefix}/var'
923 includedir
='${prefix}/include'
924 oldincludedir
='/usr/include'
925 docdir
='${datarootdir}/doc/${PACKAGE}'
926 infodir
='${datarootdir}/info'
931 libdir
='${exec_prefix}/lib'
932 localedir
='${datarootdir}/locale'
933 mandir
='${datarootdir}/man'
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\
$ac_option
947 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
958 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
960 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
963 -build |
--build |
--buil |
--bui |
--bu)
964 ac_prev
=build_alias
;;
965 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
966 build_alias
=$ac_optarg ;;
968 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
969 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
970 ac_prev
=cache_file
;;
971 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
972 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
973 cache_file
=$ac_optarg ;;
976 cache_file
=config.cache
;;
978 -datadir |
--datadir |
--datadi |
--datad)
980 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
981 datadir
=$ac_optarg ;;
983 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
984 |
--dataroo |
--dataro |
--datar)
985 ac_prev
=datarootdir
;;
986 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
987 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
988 datarootdir
=$ac_optarg ;;
990 -disable-* |
--disable-*)
991 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
994 as_fn_error $?
"invalid feature name: $ac_useropt"
995 ac_useropt_orig
=$ac_useropt
996 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
1001 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep
=', ';;
1004 eval enable_
$ac_useropt=no
;;
1006 -docdir |
--docdir |
--docdi |
--doc |
--do)
1008 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1009 docdir
=$ac_optarg ;;
1011 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1013 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1014 dvidir
=$ac_optarg ;;
1016 -enable-* |
--enable-*)
1017 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1020 as_fn_error $?
"invalid feature name: $ac_useropt"
1021 ac_useropt_orig
=$ac_useropt
1022 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_
$ac_useropt"
1027 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep
=', ';;
1030 eval enable_
$ac_useropt=\
$ac_optarg ;;
1032 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1033 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1034 |
--exec |
--exe |
--ex)
1035 ac_prev
=exec_prefix
;;
1036 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1037 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1038 |
--exec=* |
--exe=* |
--ex=*)
1039 exec_prefix
=$ac_optarg ;;
1041 -gas |
--gas |
--ga |
--g)
1042 # Obsolete; use --with-gas.
1045 -help |
--help |
--hel |
--he |
-h)
1046 ac_init_help
=long
;;
1047 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1048 ac_init_help
=recursive
;;
1049 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1050 ac_init_help
=short
;;
1052 -host |
--host |
--hos |
--ho)
1053 ac_prev
=host_alias
;;
1054 -host=* |
--host=* |
--hos=* |
--ho=*)
1055 host_alias
=$ac_optarg ;;
1057 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1059 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1061 htmldir
=$ac_optarg ;;
1063 -includedir |
--includedir |
--includedi |
--included |
--include \
1064 |
--includ |
--inclu |
--incl |
--inc)
1065 ac_prev
=includedir
;;
1066 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1067 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1068 includedir
=$ac_optarg ;;
1070 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1072 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1073 infodir
=$ac_optarg ;;
1075 -libdir |
--libdir |
--libdi |
--libd)
1077 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1078 libdir
=$ac_optarg ;;
1080 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1081 |
--libexe |
--libex |
--libe)
1082 ac_prev
=libexecdir
;;
1083 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1084 |
--libexe=* |
--libex=* |
--libe=*)
1085 libexecdir
=$ac_optarg ;;
1087 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1088 ac_prev
=localedir
;;
1089 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1090 localedir
=$ac_optarg ;;
1092 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1093 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1094 ac_prev
=localstatedir
;;
1095 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1096 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1097 localstatedir
=$ac_optarg ;;
1099 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1101 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1102 mandir
=$ac_optarg ;;
1104 -nfp |
--nfp |
--nf)
1105 # Obsolete; use --without-fp.
1108 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1109 |
--no-cr |
--no-c |
-n)
1112 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1113 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1116 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1117 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1118 |
--oldin |
--oldi |
--old |
--ol |
--o)
1119 ac_prev
=oldincludedir
;;
1120 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1121 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1122 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1123 oldincludedir
=$ac_optarg ;;
1125 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1127 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1128 prefix
=$ac_optarg ;;
1130 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1131 |
--program-pre |
--program-pr |
--program-p)
1132 ac_prev
=program_prefix
;;
1133 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1134 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1135 program_prefix
=$ac_optarg ;;
1137 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1138 |
--program-suf |
--program-su |
--program-s)
1139 ac_prev
=program_suffix
;;
1140 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1141 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1142 program_suffix
=$ac_optarg ;;
1144 -program-transform-name |
--program-transform-name \
1145 |
--program-transform-nam |
--program-transform-na \
1146 |
--program-transform-n |
--program-transform- \
1147 |
--program-transform |
--program-transfor \
1148 |
--program-transfo |
--program-transf \
1149 |
--program-trans |
--program-tran \
1150 |
--progr-tra |
--program-tr |
--program-t)
1151 ac_prev
=program_transform_name
;;
1152 -program-transform-name=* |
--program-transform-name=* \
1153 |
--program-transform-nam=* |
--program-transform-na=* \
1154 |
--program-transform-n=* |
--program-transform-=* \
1155 |
--program-transform=* |
--program-transfor=* \
1156 |
--program-transfo=* |
--program-transf=* \
1157 |
--program-trans=* |
--program-tran=* \
1158 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1159 program_transform_name
=$ac_optarg ;;
1161 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1163 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1164 pdfdir
=$ac_optarg ;;
1166 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1168 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1171 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1172 |
-silent |
--silent |
--silen |
--sile |
--sil)
1175 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1177 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1179 sbindir
=$ac_optarg ;;
1181 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1182 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1183 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1185 ac_prev
=sharedstatedir
;;
1186 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1187 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1188 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1190 sharedstatedir
=$ac_optarg ;;
1192 -site |
--site |
--sit)
1194 -site=* |
--site=* |
--sit=*)
1197 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1199 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1200 srcdir
=$ac_optarg ;;
1202 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1203 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1204 ac_prev
=sysconfdir
;;
1205 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1206 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1207 sysconfdir
=$ac_optarg ;;
1209 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1210 ac_prev
=target_alias
;;
1211 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1212 target_alias
=$ac_optarg ;;
1214 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1217 -version |
--version |
--versio |
--versi |
--vers |
-V)
1218 ac_init_version
=: ;;
1221 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1224 as_fn_error $?
"invalid package name: $ac_useropt"
1225 ac_useropt_orig
=$ac_useropt
1226 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep
=', ';;
1234 eval with_
$ac_useropt=\
$ac_optarg ;;
1236 -without-* |
--without-*)
1237 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1240 as_fn_error $?
"invalid package name: $ac_useropt"
1241 ac_useropt_orig
=$ac_useropt
1242 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep
=', ';;
1250 eval with_
$ac_useropt=no
;;
1253 # Obsolete; use --with-x.
1256 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1257 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1258 ac_prev
=x_includes
;;
1259 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1260 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1261 x_includes
=$ac_optarg ;;
1263 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1264 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1265 ac_prev
=x_libraries
;;
1266 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1267 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1268 x_libraries
=$ac_optarg ;;
1270 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1275 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1279 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1281 eval $ac_envvar=\
$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 if test -n "$ac_prev"; then
1296 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $?
"missing argument to $ac_option"
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1303 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 # Check all directory arguments for consistency.
1309 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1314 eval ac_val
=\$
$ac_var
1315 # Remove trailing slashes.
1318 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\
$ac_val;;
1321 # Be sure to have absolute directory names.
1323 [\\/$
]* | ?
:[\\/]* ) continue;;
1324 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1326 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1334 target
=$target_alias
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x
; then
1338 if test "x$build_alias" = x
; then
1339 cross_compiling
=maybe
1340 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1341 If a cross compiler is detected then cross compile mode will be used" >&2
1342 elif test "x$build_alias" != "x$host_alias"; then
1348 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1350 test "$silent" = yes && exec 6>/dev
/null
1353 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di
=`ls -di .` &&
1355 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $?
"working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $?
"pwd does not report name of working directory"
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted
=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir
=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1393 ac_srcdir_defaulted
=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1397 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1399 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1411 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 for ac_var
in $ac_precious_vars; do
1414 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1416 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1427 \`configure' configures this package to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1485 --x-includes=DIR X include files are
in DIR
1486 --x-libraries=DIR X library files are
in DIR
1489 --build=BUILD configure
for building on BUILD
[guessed
]
1490 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1494 if test -n "$ac_init_help"; then
1499 --disable-option-checking ignore unrecognized
--enable/--with options
1500 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1501 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1502 --enable-build-type=TYPE
1503 Select the build
type. Available types are
:
1504 personal
, nightly
, snapshot
, milestone
, release. Do
1505 NOT use this option unless you know what you are
1506 doing
! (default
=personal
)
1507 --enable-debug=list Enable different types of debug. Commas or
1508 whitespaces can be used to separate the items
in the
1509 list. Available types of debug are
: all
, none
,
1510 messages
, stack
, mungwall
, modules
, symbols. If no
1511 list is provided
then "all" is assumed.
1513 --enable-crosstools Build cross-compiler toolchains
if necessary
1515 --enable-distcc Use distcc as a front end to the compiler
1517 --enable-ccache Use ccache as a front end to the compiler
1519 --enable-target-variant=NAME
1520 Enable a specific target variant
(default
=none
)
1521 --enable-includes=dir Alternative system include directory
1522 --enable-palm-debug-hack
1523 Enable palm debug output hack
in palm native
1525 --enable-nesting-supervisor
1526 Enable nesting supervisor support
in unix
1528 --disable-mmu Disable MMU support
(default
=enabled
)
1529 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1530 --enable-x11-shm use X11 shared memory
(default
=auto
)
1531 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1532 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1533 --disable-sdltest Do not try to compile and run a
test SDL program
1534 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1537 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1538 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1539 --with-gcc-version=VERSION
1540 Use
host gcc-VERSION
for building AROS
1541 --with-optimization=FLAGS
1542 Use optimization flags FLAGS
(default
=-O2).
1543 --with-paranoia=FLAGS CC flags to
enable paranoia
1544 --with-xcode=PATH Specify XCode path
for iOS targets
1545 (default
=/Developer
).
1546 --with-ios-version=VERSION
1547 Specify minimum supported iOS version
(default
=3.0).
1548 --with-ios-sdk=VERSION Use iOS SDK version VERSION
(default
=4.1).
1549 --with-sdk=PATH Specify Android SDK path
1550 (default
=$default_android_sdk).
1551 --with-ndk=PATH Specify Android NDK path
1552 (default
=$default_android_ndk).
1553 --with-android-version=VERSION
1554 Use Android platform VERSION
(default
=2.2).
1555 --with-crosstools=DIR Where to
install or search
for cross tools binaries
1556 --with-aros-gcc=VERSION Use aros-gcc-VERSION
for building AROS
1557 --with-portssources=DIR Where to download sourcecode
for external ports
1558 --with-bootloader=NAME Use a specific bootloader
1559 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1560 --with-theme=NAME Use a specific GUI Theme
1561 --with-resolution=XRESxYRESxDEPTH
1562 Default resolution of the initial WorkbenchScreen
1563 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1564 --with-x use the X Window System
1565 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1566 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1568 Some influential environment variables
:
1569 CC C compiler
command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1572 nonstandard directory
<lib dir
>
1573 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1574 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1575 you have headers
in a nonstandard directory
<include dir
>
1577 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1579 Use these variables to override the choices made by
`configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1582 Report bugs to the package provider.
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" ||
1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1599 # A ".." for each directory in $ac_dir_suffix.
1600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1601 case $ac_top_builddir_sub in
1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 ac_abs_top_builddir=$ac_pwd
1607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608 # for backward compatibility:
1609 ac_top_builddir=$ac_top_build_prefix
1612 .) # We are building in place.
1614 ac_top_srcdir=$ac_top_builddir_sub
1615 ac_abs_top_srcdir=$ac_pwd ;;
1616 [\\/]* | ?:[\\/]* ) # Absolute name.
1617 ac_srcdir=$srcdir$ac_dir_suffix;
1618 ac_top_srcdir=$srcdir
1619 ac_abs_top_srcdir=$srcdir ;;
1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622 ac_top_srcdir=$ac_top_build_prefix$srcdir
1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627 cd "$ac_dir" || { ac_status=$?; continue; }
1628 # Check for guested configure.
1629 if test -f "$ac_srcdir/configure.gnu"; then
1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632 elif test -f "$ac_srcdir/configure"; then
1634 $SHELL "$ac_srcdir/configure" --help=recursive
1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638 cd "$ac_pwd" || { ac_status=$?; break; }
1642 test -n "$ac_init_help" && exit $ac_status
1643 if $ac_init_version; then
1646 generated by GNU Autoconf 2.68
1648 Copyright (C) 2010 Free Software Foundation, Inc.
1649 This configure script is free software; the Free Software Foundation
1650 gives unlimited permission to copy, distribute and modify it.
1655 ## ------------------------ ##
1656 ## Autoconf initialization. ##
1657 ## ------------------------ ##
1659 # ac_fn_c_try_compile LINENO
1660 # --------------------------
1661 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext
1666 if { { ac_try="$ac_compile"
1668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1669 *) ac_try_echo
=$ac_try;;
1671 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_compile") 2>conftest.err
1675 if test -s conftest.err
; then
1676 grep -v '^ *+' conftest.err
>conftest.er1
1677 cat conftest.er1
>&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest.
$ac_objext; then :
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.
$ac_ext >&5
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status
$ac_retval
1695 } # ac_fn_c_try_compile
1697 # ac_fn_c_try_cpp LINENO
1698 # ----------------------
1699 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1703 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } > conftest.i && {
1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1734 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1737 # the include files in INCLUDES and setting the cache variable VAR
1739 ac_fn_c_check_header_mongrel ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if eval \${$3+:} false; then :
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1752 # Is the header compilable?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1754 $as_echo_n "checking $2 usability... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 ac_header_compiler=yes
1763 ac_header_compiler=no
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1767 $as_echo "$ac_header_compiler" >&6; }
1769 # Is the header present?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1771 $as_echo_n "checking $2 presence... " >&6; }
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1776 if ac_fn_c_try_cpp "$LINENO"; then :
1777 ac_header_preproc=yes
1779 ac_header_preproc=no
1781 rm -f conftest.err conftest.i conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1783 $as_echo "$ac_header_preproc" >&6; }
1785 # So? What about this header?
1786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1789 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1795 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1797 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1799 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1801 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1811 eval "$3=\$ac_header_compiler"
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 } # ac_fn_c_check_header_mongrel
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1831 *) ac_try_echo
=$ac_try;;
1833 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1904 *) ac_try_echo
=$ac_try;;
1906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err
; then
1911 grep -v '^ *+' conftest.err
>conftest.er1
1912 cat conftest.er1
>&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest
$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 $as_test_x conftest
$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.
$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status
$ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1941 # ----------------------------------------------------
1942 # Tries to find if the field MEMBER exists in type AGGR, after including
1943 # INCLUDES, setting cache variable VAR accordingly.
1944 ac_fn_c_check_member
()
1946 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1948 $as_echo_n "checking for $2.$3... " >&6; }
1949 if eval \
${$4+:} false
; then :
1950 $as_echo_n "(cached) " >&6
1952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1965 if ac_fn_c_try_compile
"$LINENO"; then :
1968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1975 if (sizeof ac_aggr.$3)
1981 if ac_fn_c_try_compile
"$LINENO"; then :
1986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_member
1997 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1998 # ---------------------------------------------
1999 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2001 ac_fn_c_check_decl
()
2003 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2004 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2005 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2007 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2008 if eval \
${$3+:} false
; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 #ifndef $as_decl_name
2019 (void) $as_decl_use;
2021 (void) $as_decl_name;
2029 if ac_fn_c_try_compile
"$LINENO"; then :
2034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_decl
2043 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2044 # -------------------------------------------
2045 # Tests whether TYPE exists after having included INCLUDES, setting cache
2046 # variable VAR accordingly.
2047 ac_fn_c_check_type
()
2049 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \
${$3+:} false
; then :
2053 $as_echo_n "(cached) " >&6
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2068 if ac_fn_c_try_compile
"$LINENO"; then :
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2081 if ac_fn_c_try_compile
"$LINENO"; then :
2086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_type
2097 # ac_fn_c_check_func LINENO FUNC VAR
2098 # ----------------------------------
2099 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2100 ac_fn_c_check_func
()
2102 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \
${$3+:} false
; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2112 #define $2 innocuous_$2
2114 /* System header to define __stub macros and hopefully few prototypes,
2115 which can conflict with char $2 (); below.
2116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2117 <limits.h> exists even on freestanding compilers. */
2120 # include <limits.h>
2122 # include <assert.h>
2127 /* Override any GCC internal prototype to avoid an error.
2128 Use char because int might match the return type of a GCC
2129 builtin and then its argument prototype would still apply. */
2134 /* The GNU C library defines this for functions which it implements
2135 to always fail with ENOSYS. Some functions are actually named
2136 something starting with __ and the normal name is an alias. */
2137 #if defined __stub_$2 || defined __stub___$2
2149 if ac_fn_c_try_link
"$LINENO"; then :
2154 rm -f core conftest.err conftest.
$ac_objext \
2155 conftest
$ac_exeext conftest.
$ac_ext
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 } # ac_fn_c_check_func
2163 cat >config.log
<<_ACEOF
2164 This file contains any messages produced by compilers while
2165 running configure, to aid debugging if configure makes a mistake.
2167 It was created by $as_me, which was
2168 generated by GNU Autoconf 2.68. Invocation command line was
2180 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2181 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2182 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2183 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2184 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2186 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2187 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2189 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2190 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2191 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2192 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2193 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2194 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2195 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir
=.
2204 $as_echo "PATH: $as_dir"
2220 # Keep a trace of the command line.
2221 # Strip out --no-create and --no-recursion so they do not pile up.
2222 # Strip out --silent because we don't want to record it for future runs.
2223 # Also quote any args containing shell meta-characters.
2224 # Make two passes to allow for proper duplicate-argument suppression.
2228 ac_must_keep_next
=false
2234 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2235 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2236 |
-silent |
--silent |
--silen |
--sile |
--sil)
2239 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2244 as_fn_append ac_configure_args1
" '$ac_arg'"
2245 if test $ac_must_keep_next = true
; then
2246 ac_must_keep_next
=false
# Got value, back to normal.
2249 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2250 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2251 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2252 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2253 case "$ac_configure_args0 " in
2254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2257 -* ) ac_must_keep_next
=true
;;
2260 as_fn_append ac_configure_args
" '$ac_arg'"
2265 { ac_configure_args0
=; unset ac_configure_args0
;}
2266 { ac_configure_args1
=; unset ac_configure_args1
;}
2268 # When interrupted or exit'd, cleanup temporary files, and complete
2269 # config.log. We remove comments because anyway the quotes in there
2270 # would cause problems or look ugly.
2271 # WARNING: Use '\'' to represent an apostrophe within the trap.
2272 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2273 trap 'exit_status=$?
2274 # Save into config.log some information that might help in debugging.
2278 $as_echo "## ---------------- ##
2279 ## Cache variables. ##
2280 ## ---------------- ##"
2282 # The following way of writing the cache mishandles newlines in values,
2284 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2285 eval ac_val=\$$ac_var
2289 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2290 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2293 _ | IFS | as_nl) ;; #(
2294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2295 *) { eval $ac_var=; unset $ac_var;} ;;
2300 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2301 *${as_nl}ac_space=\ *)
2303 "s/'\''/'\''\\\\'\'''\''/g;
2304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2314 $as_echo "## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##"
2318 for ac_var in $ac_subst_vars
2320 eval ac_val=\$$ac_var
2322 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 $as_echo "$ac_var='\''$ac_val'\''"
2328 if test -n "$ac_subst_files"; then
2329 $as_echo "## ------------------- ##
2330 ## File substitutions. ##
2331 ## ------------------- ##"
2333 for ac_var
in $ac_subst_files
2335 eval ac_val
=\$
$ac_var
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 $as_echo "$ac_var='\''$ac_val'\''"
2344 if test -s confdefs.h; then
2345 $as_echo "## ----------- ##
2352 test "$ac_signal" != 0 &&
2353 $as_echo "$as_me: caught signal $ac_signal"
2354 $as_echo "$as_me: exit $exit_status"
2356 rm -f core *.core core.conftest.* &&
2357 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360 for ac_signal
in 1 2 13 15; do
2361 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2366 rm -f -r conftest
* confdefs.h
2368 $as_echo "/* confdefs.h */" > confdefs.h
2370 # Predefined preprocessor variables.
2372 cat >>confdefs.h
<<_ACEOF
2373 #define PACKAGE_NAME "$PACKAGE_NAME"
2376 cat >>confdefs.h
<<_ACEOF
2377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 cat >>confdefs.h
<<_ACEOF
2381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2384 cat >>confdefs.h
<<_ACEOF
2385 #define PACKAGE_STRING "$PACKAGE_STRING"
2388 cat >>confdefs.h
<<_ACEOF
2389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392 cat >>confdefs.h
<<_ACEOF
2393 #define PACKAGE_URL "$PACKAGE_URL"
2397 # Let the site file select an alternate cache file if it wants to.
2398 # Prefer an explicitly selected file to automatically selected ones.
2401 if test -n "$CONFIG_SITE"; then
2402 # We do not want a PATH search for config.site.
2403 case $CONFIG_SITE in #((
2404 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2405 */*) ac_site_file1
=$CONFIG_SITE;;
2406 *) ac_site_file1
=.
/$CONFIG_SITE;;
2408 elif test "x$prefix" != xNONE
; then
2409 ac_site_file1
=$prefix/share
/config.site
2410 ac_site_file2
=$prefix/etc
/config.site
2412 ac_site_file1
=$ac_default_prefix/share
/config.site
2413 ac_site_file2
=$ac_default_prefix/etc
/config.site
2415 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2417 test "x$ac_site_file" = xNONE
&& continue
2418 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2420 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2423 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425 as_fn_error $?
"failed to load site script $ac_site_file
2426 See \`config.log' for more details" "$LINENO" 5; }
2430 if test -r "$cache_file"; then
2431 # Some versions of bash will fail to source /dev/null (special files
2432 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2433 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2435 $as_echo "$as_me: loading cache $cache_file" >&6;}
2437 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2438 *) .
"./$cache_file";;
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2443 $as_echo "$as_me: creating cache $cache_file" >&6;}
2447 as_fn_append ac_header_list
" stdlib.h"
2448 as_fn_append ac_header_list
" unistd.h"
2449 as_fn_append ac_header_list
" sys/param.h"
2450 # Check that the precious variables saved in the cache have kept the same
2452 ac_cache_corrupted
=false
2453 for ac_var
in $ac_precious_vars; do
2454 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2455 eval ac_new_set
=\
$ac_env_${ac_var}_set
2456 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2457 eval ac_new_val
=\
$ac_env_${ac_var}_value
2458 case $ac_old_set,$ac_new_set in
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2462 ac_cache_corrupted
=: ;;
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2465 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2466 ac_cache_corrupted
=: ;;
2469 if test "x$ac_old_val" != "x$ac_new_val"; then
2470 # differences in whitespace do not lead to failure.
2471 ac_old_val_w
=`echo x $ac_old_val`
2472 ac_new_val_w
=`echo x $ac_new_val`
2473 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2475 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2476 ac_cache_corrupted
=:
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2479 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2480 eval $ac_var=\
$ac_old_val
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2483 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2485 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 # Pass precious variables to config.status.
2489 if test "$ac_new_set" = set; then
2491 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2492 *) ac_arg
=$ac_var=$ac_new_val ;;
2494 case " $ac_configure_args " in
2495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2496 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2500 if $ac_cache_corrupted; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2504 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2505 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2507 ## -------------------- ##
2508 ## Main body of script. ##
2509 ## -------------------- ##
2512 ac_cpp
='$CPP $CPPFLAGS'
2513 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2520 for ac_dir
in scripts
/autoconf
"$srcdir"/scripts
/autoconf
; do
2521 if test -f "$ac_dir/install-sh"; then
2523 ac_install_sh
="$ac_aux_dir/install-sh -c"
2525 elif test -f "$ac_dir/install.sh"; then
2527 ac_install_sh
="$ac_aux_dir/install.sh -c"
2529 elif test -f "$ac_dir/shtool"; then
2531 ac_install_sh
="$ac_aux_dir/shtool install -c"
2535 if test -z "$ac_aux_dir"; then
2536 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2539 # These three variables are undocumented and unsupported,
2540 # and are intended to be withdrawn in a future Autoconf release.
2541 # They can cause serious problems if a builder's source tree is in a directory
2542 # whose full name contains unusual characters.
2543 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2544 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2545 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2549 # Check what host we are running on.
2550 # If a target is not suggested, we use this one.
2551 # Note that what we call a target, Autoconf calls a host.
2552 # Make sure we can run config.sub.
2553 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2554 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2557 $as_echo_n "checking build system type... " >&6; }
2558 if ${ac_cv_build+:} false
; then :
2559 $as_echo_n "(cached) " >&6
2561 ac_build_alias
=$build_alias
2562 test "x$ac_build_alias" = x
&&
2563 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2564 test "x$ac_build_alias" = x
&&
2565 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2566 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2567 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2571 $as_echo "$ac_cv_build" >&6; }
2572 case $ac_cv_build in
2574 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2577 ac_save_IFS
=$IFS; IFS
='-'
2583 # Remember, the first character of IFS is used to create $*,
2584 # except with old shells:
2587 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2591 $as_echo_n "checking host system type... " >&6; }
2592 if ${ac_cv_host+:} false
; then :
2593 $as_echo_n "(cached) " >&6
2595 if test "x$host_alias" = x
; then
2596 ac_cv_host
=$ac_cv_build
2598 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2599 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2604 $as_echo "$ac_cv_host" >&6; }
2607 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2610 ac_save_IFS
=$IFS; IFS
='-'
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2620 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2624 # The AROS target is slightly different to the normal GNU style
2625 # format. We don't have the middle part, and we reverse the order
2626 # of the $(CPU) and $(OS) bits.
2628 # Don't strip the version of the target yet, it might be
2629 # useful on some systems.
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2632 $as_echo_n "checking for AROS style target... " >&6; }
2634 if test "$target" = "NONE" ; then
2635 target
=$host_os-$host_cpu
2637 if test "$target" = "" ; then
2638 target
=$host_os-$host_cpu
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2642 $as_echo "$target" >&6; }
2644 if test "$host_os" = "mingw32" ; then
2648 #don't know where else to put this...
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2650 $as_echo_n "checking building AROS in... " >&6; }
2651 AROS_BUILDDIR
=`${PWDCMD-pwd}`
2652 AROS_BUILDDIR_UNIX
=${PWD}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2654 $as_echo "$AROS_BUILDDIR" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2657 $as_echo_n "checking AROS source in... " >&6; }
2658 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2661 $as_echo "$SRCDIR" >&6; }
2663 # Parse the target field into something useful.
2665 target_os
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2666 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2669 aros_default_wbwidth
=800
2670 aros_default_wbheight
=600
2671 aros_default_wbdepth
=4
2674 # The first step is to find the host binaries.
2675 # Check for a compiler.
2677 ac_cpp
='$CPP $CPPFLAGS'
2678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_CC+:} false
; then :
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$CC"; then
2690 ac_cv_prog_CC
="$CC" # Let the user override the test.
2692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir
=.
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$ac_cv_prog_CC"; then
2722 # Extract the first word of "gcc", so it can be a program name with args.
2723 set dummy gcc
; ac_word
=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 for ac_exec_ext
in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_CC
="gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752 $as_echo "$ac_ct_CC" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2758 if test "x$ac_ct_CC" = x
; then
2761 case $cross_compiling:$ac_tool_warned in
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned
=yes ;;
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_CC+:} false
; then :
2780 $as_echo_n "(cached) " >&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC
="$CC" # Let the user override the test.
2785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir
=.
2790 for ac_exec_ext
in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2814 if test -z "$CC"; then
2815 # Extract the first word of "cc", so it can be a program name with args.
2816 set dummy cc
; ac_word
=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false
; then :
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC
="$CC" # Let the user override the test.
2826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir
=.
2831 for ac_exec_ext
in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834 ac_prog_rejected
=yes
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 if test $ac_prog_rejected = yes; then
2846 # We found a bogon in the path, so make sure we never use it.
2847 set dummy
$ac_cv_prog_CC
2849 if test $# != 0; then
2850 # We chose a different compiler from the bogus one.
2851 # However, it has the same basename, so the bogon will be chosen
2852 # first if we set CC to just the basename; use the full file name.
2854 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog
in cl.exe
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false
; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC
="$CC" # Let the user override the test.
2884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir
=.
2889 for ac_exec_ext
in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$CC" && break
2914 if test -z "$CC"; then
2916 for ac_prog
in cl.exe
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy
$ac_prog; ac_word
=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2923 $as_echo_n "(cached) " >&6
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir
=.
2933 for ac_exec_ext
in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC
="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948 $as_echo "$ac_ct_CC" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2955 test -n "$ac_ct_CC" && break
2958 if test "x$ac_ct_CC" = x
; then
2961 case $cross_compiling:$ac_tool_warned in
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned
=yes ;;
2974 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error $?
"no acceptable C compiler found in \$PATH
2977 See \`config.log' for more details" "$LINENO" 5; }
2979 # Provide some information about the compiler.
2980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2983 for ac_option
in --version -v -V -qversion; do
2984 { { ac_try
="$ac_compiler $ac_option >&5"
2986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2993 if test -s conftest.err; then
2995 ... rest of stderr output deleted ...
2996 10q' conftest.err >conftest.er1
2997 cat conftest.er1 >&5
2999 rm -f conftest.er1 conftest.err
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3015 ac_clean_files_save=$ac_clean_files
3016 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3017 # Try to create an executable without -o first, disregard a.out.
3018 # It will help us diagnose broken compilers, and finding out an intuition
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3021 $as_echo_n "checking whether the C compiler works... " >&6; }
3022 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3024 # The possible output files:
3025 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3028 for ac_file in $ac_files
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3037 if { { ac_try="$ac_link_default"
3039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3040 *) ac_try_echo
=$ac_try;;
3042 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_link_default") 2>&5
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }; then :
3048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3051 # so that the user can short-circuit this test for compilers unknown to
3053 for ac_file
in $ac_files ''
3055 test -f "$ac_file" ||
continue
3057 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3060 # We found the default executable, but exeext='' is most
3064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3066 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 # We set ac_cv_exeext here because the later test for it is not
3069 # safe: cross compilers may not add the suffix if given an `-o'
3070 # argument, so we may need to know it at that point already.
3071 # Even if this section looks crufty: it has the advantage of
3078 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3083 if test -z "$ac_file"; then :
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.
$ac_ext >&5
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error
77 "C compiler cannot create executables
3092 See \`config.log' for more details" "$LINENO" 5; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3098 $as_echo_n "checking for C compiler default output file name... " >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3100 $as_echo "$ac_file" >&6; }
3101 ac_exeext
=$ac_cv_exeext
3103 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3104 ac_clean_files
=$ac_clean_files_save
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106 $as_echo_n "checking for suffix of executables... " >&6; }
3107 if { { ac_try
="$ac_link"
3109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>&5
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3119 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3122 for ac_file
in conftest.exe conftest conftest.
*; do
3123 test -f "$ac_file" ||
continue
3125 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3126 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details" "$LINENO" 5; }
3137 rm -f conftest conftest
$ac_cv_exeext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139 $as_echo "$ac_cv_exeext" >&6; }
3141 rm -f conftest.
$ac_ext
3142 EXEEXT
=$ac_cv_exeext
3144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3150 FILE *f = fopen ("conftest.out", "w");
3151 return ferror (f) || fclose (f) != 0;
3157 ac_clean_files
="$ac_clean_files conftest.out"
3158 # Check that the compiler produces executables we can run. If not, either
3159 # the compiler is broken, or we cross compile.
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3161 $as_echo_n "checking whether we are cross compiling... " >&6; }
3162 if test "$cross_compiling" != yes; then
3163 { { ac_try
="$ac_link"
3165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 if { ac_try='./conftest$ac_cv_exeext'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3177 *) ac_try_echo
=$ac_try;;
3179 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3187 if test "$cross_compiling" = maybe
; then
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $?
"cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details" "$LINENO" 5; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199 $as_echo "$cross_compiling" >&6; }
3201 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3202 ac_clean_files
=$ac_clean_files_save
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204 $as_echo_n "checking for suffix of object files... " >&6; }
3205 if ${ac_cv_objext+:} false
; then :
3206 $as_echo_n "(cached) " >&6
3208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 rm -f conftest.o conftest.obj
3220 if { { ac_try
="$ac_compile"
3222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compile") 2>&5
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }; then :
3231 for ac_file in conftest.o conftest.obj conftest.*; do
3232 test -f "$ac_file" || continue;
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3246 See \
`config.log' for more details" "$LINENO" 5; }
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251 $as_echo "$ac_cv_objext" >&6; }
3252 OBJEXT=$ac_cv_objext
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256 if ${ac_cv_c_compiler_gnu+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3273 if ac_fn_c_try_compile "$LINENO"; then :
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284 if test $ac_compiler_gnu = yes; then
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3293 if ${ac_cv_prog_cc_g+:} false; then :
3294 $as_echo_n "(cached) " >&6
3296 ac_save_c_werror_flag=$ac_c_werror_flag
3297 ac_c_werror_flag=yes
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3311 if ac_fn_c_try_compile "$LINENO"; then :
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3326 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_c_werror_flag=$ac_save_c_werror_flag
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3342 if ac_fn_c_try_compile "$LINENO"; then :
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353 $as_echo "$ac_cv_prog_cc_g" >&6; }
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3363 if test "$GCC" = yes; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371 if ${ac_cv_prog_cc_c89+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 ac_cv_prog_cc_c89=no
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3396 s = g (p, va_arg (v,int));
3401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
3404 as 'x'. The following induces an error, until -std is added to get
3405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
3407 that's true only with -std. */
3408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432 CC="$ac_save_CC $ac_arg"
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_c89=$ac_arg
3436 rm -f core conftest.err conftest.$ac_objext
3437 test "x$ac_cv_prog_cc_c89" != "xno" && break
3439 rm -f conftest.$ac_ext
3444 case "x$ac_cv_prog_cc_c89" in
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447 $as_echo "none needed" >&6; } ;;
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450 $as_echo "unsupported" >&6; } ;;
3452 CC="$CC $ac_cv_prog_cc_c89"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3456 if test "x$ac_cv_prog_cc_c89" != xno; then :
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 case $ac_cv_prog_cc_stdc in #(
3468 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3472 if ${ac_cv_prog_cc_c99+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 ac_cv_prog_cc_c99=no
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3480 #include <stdbool.h>
3485 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3486 #define debug(...) fprintf (stderr, __VA_ARGS__)
3487 #define showlist(...) puts (#__VA_ARGS__)
3488 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3490 test_varargs_macros (void)
3495 debug ("X = %d\n", x);
3496 showlist (The first, second, and third items.);
3497 report (x>y, "x is %d but y is %d", x, y);
3500 // Check long long types.
3501 #define BIG64 18446744073709551615ull
3502 #define BIG32 4294967295ul
3503 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3505 your preprocessor is broken;
3509 your preprocessor is broken;
3511 static long long int bignum = -9223372036854775807LL;
3512 static unsigned long long int ubignum = BIG64;
3514 struct incomplete_array
3522 const wchar_t *name;
3526 typedef const char *ccp;
3529 test_restrict (ccp restrict text)
3531 // See if C++-style comments work.
3532 // Iterate through items via the restricted pointer.
3533 // Also check for declarations in for loops.
3534 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3539 // Check varargs and va_copy.
3541 test_varargs (const char *format, ...)
3544 va_start (args, format);
3546 va_copy (args_copy, args);
3557 str = va_arg (args_copy, const char *);
3560 number = va_arg (args_copy, int);
3563 fnumber = va_arg (args_copy, double);
3578 _Bool success = false;
3581 if (test_restrict ("String literal") == 0)
3583 char *restrict newvar = "Another string";
3586 test_varargs ("s, d' f .", "string", 65, 34.234);
3587 test_varargs_macros ();
3589 // Check flexible array members.
3590 struct incomplete_array *ia =
3591 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3593 for (int i = 0; i < ia->datasize; ++i)
3594 ia->data[i] = i * 1.234;
3596 // Check named initializers.
3597 struct named_init ni = {
3599 .name = L"Test wide string",
3600 .average = 543.34343,
3605 int dynamic_array[ni.number];
3606 dynamic_array[ni.number - 1] = 543;
3608 // work around unused variable warnings
3609 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3610 || dynamic_array[ni.number - 1] != 543);
3616 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c99=$ac_arg
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c99" != "xno" && break
3625 rm -f conftest.$ac_ext
3630 case "x$ac_cv_prog_cc_c99" in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3638 CC="$CC $ac_cv_prog_cc_c99"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3640 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3642 if test "x$ac_cv_prog_cc_c99" != xno; then :
3643 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647 if ${ac_cv_prog_cc_c89+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 ac_cv_prog_cc_c89=no
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3672 s = g (p, va_arg (v,int));
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3712 rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 rm -f conftest.$ac_ext
3720 case "x$ac_cv_prog_cc_c89" in
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3733 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3735 ac_cv_prog_cc_stdc=no
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3742 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3743 if ${ac_cv_prog_cc_stdc+:} false; then :
3744 $as_echo_n "(cached) " >&6
3747 case $ac_cv_prog_cc_stdc in #(
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;; #(
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 $as_echo "none needed" >&6; } ;; #(
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3756 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3765 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3766 # On Suns, sometimes $CPP names a directory.
3767 if test -n "$CPP" && test -d "$CPP"; then
3770 if test -z "$CPP"; then
3771 if ${ac_cv_prog_CPP+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 # Double quotes because CPP needs to be expanded
3775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3778 for ac_c_preproc_warn_flag in '' yes
3780 # Use a header file that comes with gcc, so configuring glibc
3781 # with a fresh cross-compiler works.
3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783 # <limits.h> exists even on freestanding compilers.
3784 # On the NeXT, cc -E runs the code through the compiler's parser,
3785 # not just through cpp. "Syntax error" is here to catch this case.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3789 # include <limits.h>
3791 # include <assert.h>
3795 if ac_fn_c_try_cpp "$LINENO"; then :
3798 # Broken: fails on valid input.
3801 rm -f conftest.err conftest.i conftest.$ac_ext
3803 # OK, works on sane cases. Now check whether nonexistent headers
3804 # can be detected and how.
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3809 if ac_fn_c_try_cpp "$LINENO"; then :
3810 # Broken: success on invalid input.
3813 # Passes both tests.
3817 rm -f conftest.err conftest.i conftest.$ac_ext
3820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3821 rm -f conftest.i conftest.err conftest.
$ac_ext
3822 if $ac_preproc_ok; then :
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3835 $as_echo "$CPP" >&6; }
3837 for ac_c_preproc_warn_flag
in '' yes
3839 # Use a header file that comes with gcc, so configuring glibc
3840 # with a fresh cross-compiler works.
3841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3842 # <limits.h> exists even on freestanding compilers.
3843 # On the NeXT, cc -E runs the code through the compiler's parser,
3844 # not just through cpp. "Syntax error" is here to catch this case.
3845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3848 # include <limits.h>
3850 # include <assert.h>
3854 if ac_fn_c_try_cpp
"$LINENO"; then :
3857 # Broken: fails on valid input.
3860 rm -f conftest.err conftest.i conftest.
$ac_ext
3862 # OK, works on sane cases. Now check whether nonexistent headers
3863 # can be detected and how.
3864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <ac_nonexistent.h>
3868 if ac_fn_c_try_cpp
"$LINENO"; then :
3869 # Broken: success on invalid input.
3872 # Passes both tests.
3876 rm -f conftest.err conftest.i conftest.
$ac_ext
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.i conftest.err conftest.
$ac_ext
3881 if $ac_preproc_ok; then :
3884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details" "$LINENO" 5; }
3891 ac_cpp
='$CPP $CPPFLAGS'
3892 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3897 # Check for a compatible awk
3898 for ac_prog
in gawk nawk
3900 # Extract the first word of "$ac_prog", so it can be a program name with args.
3901 set dummy
$ac_prog; ac_word
=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if ${ac_cv_prog_AWK+:} false
; then :
3905 $as_echo_n "(cached) " >&6
3907 if test -n "$AWK"; then
3908 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir
=.
3915 for ac_exec_ext
in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_AWK
="$ac_prog"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 if test -n "$AWK"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3930 $as_echo "$AWK" >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3937 test -n "$AWK" && break
3940 if test "$AWK" = ""; then
3941 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3943 # Extract the first word of "mmake", so it can be a program name with args.
3944 set dummy mmake
; ac_word
=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_MMAKE+:} false
; then :
3948 $as_echo_n "(cached) " >&6
3950 if test -n "$MMAKE"; then
3951 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
3953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir
=.
3958 for ac_exec_ext
in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_MMAKE
="mmake "
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 MMAKE
=$ac_cv_prog_MMAKE
3971 if test -n "$MMAKE"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3973 $as_echo "$MMAKE" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3981 # Perform some default variable assignments. Note all of these will be
3982 # Regenerated from the script, so there is no need to cache them.
3985 if test "$GCC" = "yes"; then
3986 aros_gcc_ld
=`$CC -print-prog-name=ld`
3987 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3988 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_path_aros_host_ld+:} false
; then :
3992 $as_echo_n "(cached) " >&6
3994 case $aros_host_ld in
3996 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4000 for as_dir
in `dirname $aros_gcc_ld`
4003 test -z "$as_dir" && as_dir
=.
4004 for ac_exec_ext
in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 aros_host_ld
=$ac_cv_path_aros_host_ld
4018 if test -n "$aros_host_ld"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4020 $as_echo "$aros_host_ld" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4028 if test "$aros_host_ld" = ""; then
4029 # Extract the first word of "ld", so it can be a program name with args.
4030 set dummy ld
; ac_word
=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_path_aros_host_ld+:} false
; then :
4034 $as_echo_n "(cached) " >&6
4036 case $aros_host_ld in
4038 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir
=.
4046 for ac_exec_ext
in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 aros_host_ld
=$ac_cv_path_aros_host_ld
4060 if test -n "$aros_host_ld"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4062 $as_echo "$aros_host_ld" >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4070 if test "$aros_host_ld" = ""; then
4071 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4073 aros_host_make
="make"
4074 aros_host_cflags
=$CFLAGS
4075 aros_host_ldflags
=$LDFLAGS
4076 aros_host_debug
="-g -O0"
4077 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4078 aros_host_mkargs
="--no-print-directory"
4079 aros_host_incl
="/usr/include"
4080 aros_host_exe_suffix
="$EXEEXT"
4081 aros_host_lib_suffix
=""
4083 for ac_prog
in aclocal aclocal19 aclocal-1.9
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy
$ac_prog; ac_word
=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 if test -n "$aros_host_aclocal"; then
4093 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir
=.
4100 for ac_exec_ext
in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4113 if test -n "$aros_host_aclocal"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4115 $as_echo "$aros_host_aclocal" >&6; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4122 test -n "$aros_host_aclocal" && break
4125 for ac_prog
in autoconf autoconf259 autoconf253
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy
$ac_prog; ac_word
=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -n "$aros_host_autoconf"; then
4135 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir
=.
4142 for ac_exec_ext
in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4155 if test -n "$aros_host_autoconf"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4157 $as_echo "$aros_host_autoconf" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4164 test -n "$aros_host_autoconf" && break
4167 for ac_prog
in autoheader autoheader259 autoheader253
4169 # Extract the first word of "$ac_prog", so it can be a program name with args.
4170 set dummy
$ac_prog; ac_word
=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4174 $as_echo_n "(cached) " >&6
4176 if test -n "$aros_host_autoheader"; then
4177 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4183 test -z "$as_dir" && as_dir
=.
4184 for ac_exec_ext
in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4197 if test -n "$aros_host_autoheader"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4199 $as_echo "$aros_host_autoheader" >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4206 test -n "$aros_host_autoheader" && break
4209 for ac_prog
in automake automake19 automake-1.9
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy
$ac_prog; ac_word
=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -n "$aros_host_automake"; then
4219 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_aros_host_automake
="$ac_prog"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 aros_host_automake
=$ac_cv_prog_aros_host_automake
4239 if test -n "$aros_host_automake"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4241 $as_echo "$aros_host_automake" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4248 test -n "$aros_host_automake" && break
4252 if test "$aros_host_aclocal" = ""; then
4253 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4255 if test "$aros_host_automake" = ""; then
4256 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4259 case "$aros_host_cc" in
4261 aros_host_cc_pipe
="-pipe"
4264 aros_host_cc_pipe
=""
4267 aros_host_cc_pipe
=""
4271 aros_kernel_cc_includes
=""
4272 aros_target_cc_includes
=""
4274 # ----------------------------------------------------------------------------------------
4275 # Host-specific defaults
4277 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4278 # instead of a wrapper script.
4279 # Useful for non-ELF hosts (like Windows and Darwin).
4280 # Can also be overriden in target section below
4283 # This is the main host configuration section. It is where the host
4284 # can change the values of any variables it needs to change. We do
4285 # not look at anything that compiles to the target yet, we'll get
4290 aros_host_arch
="aros"
4291 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4294 aros_host_cpu
="i386"
4297 aros_host_cpu
="x86_64"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4304 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4305 aros_host_cpu
="$host_cpu"
4311 aros_host_arch
="linux"
4312 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4315 aros_host_cpu
="i386"
4318 aros_host_cpu
="x86_64"
4321 aros_host_cpu
="m68k"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4331 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4332 aros_host_cpu
="$host_cpu"
4338 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4339 aros_host_make
="gmake"
4340 aros_host_arch
="freebsd"
4341 aros_host_cpu
="i386"
4343 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4347 aros_object_format
="elf_i386"
4351 aros_object_format
="elf_i386_fbsd"
4358 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4359 aros_host_arch
="darwin"
4361 android_build_os
="darwin-x86"
4362 android_tool
="android"
4363 default_android_sdk
="/android-sdk-mac_x86"
4364 default_android_ndk
="/android-ndk-r5b"
4367 aros_host_cpu
="i386"
4370 aros_host_cpu
="x86_64"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4377 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4378 aros_host_cpu
="$host_cpu"
4382 aros_host_ldflags
="$aros_host_ldflags -liconv"
4387 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4388 aros_host_make
="gmake"
4389 aros_host_arch
="dragonfly"
4392 aros_host_cpu
="i386"
4395 aros_host_cpu
="x86_64"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4399 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4400 aros_host_cpu
="$host_cpu"
4406 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4407 aros_host_make
="gmake"
4408 aros_host_arch
="netbsd"
4411 aros_host_cpu
="i386"
4414 aros_host_cpu
="m68k"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4418 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4419 aros_host_cpu
="$host_cpu"
4422 aros_host_lib_suffix
=".0.0"
4426 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4427 aros_host_make
="gmake"
4428 aros_host_arch
="openbsd"
4431 aros_host_cpu
="i386"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4435 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4436 aros_host_cpu
="$host_cpu"
4442 aros_host_arch
="solaris"
4443 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4446 aros_host_cpu
="i386"
4449 aros_host_cpu
="sparc"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4453 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4454 aros_host_cpu
="$host_cpu"
4460 aros_host_arch
="morphos"
4465 aros_host_arch
="amiga"
4470 TOUCH
="/gg/bin/touch"
4473 aros_host_cpu
="m68k"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4480 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4481 aros_host_cpu
="$host_cpu"
4487 aros_host_arch
="cygwin"
4489 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4490 android_build_os
="windows"
4491 android_tool
="android.bat"
4492 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4496 aros_host_cpu
="i386"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4500 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4501 aros_host_cpu
="$host_cpu"
4507 aros_host_arch
="mingw32"
4509 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4510 android_build_os
="windows"
4511 android_tool
="android.bat"
4512 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4516 aros_host_cpu
="i386"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4520 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4521 aros_host_cpu
="$host_cpu"
4526 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4530 # Extract the first word of "ar", so it can be a program name with args.
4531 set dummy
ar; ac_word
=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4535 $as_echo_n "(cached) " >&6
4537 if test -n "$aros_host_ar"; then
4538 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4544 test -z "$as_dir" && as_dir
=.
4545 for ac_exec_ext
in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_aros_host_ar
="ar cr"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 aros_host_ar
=$ac_cv_prog_aros_host_ar
4558 if test -n "$aros_host_ar"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4560 $as_echo "$aros_host_ar" >&6; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4567 if test "$aros_host_ar" = ""; then
4568 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4570 # Extract the first word of "ranlib", so it can be a program name with args.
4571 set dummy ranlib
; ac_word
=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4575 $as_echo_n "(cached) " >&6
4577 if test -n "$aros_host_ranlib"; then
4578 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir
=.
4585 for ac_exec_ext
in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_aros_host_ranlib
="ranlib "
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4598 if test -n "$aros_host_ranlib"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4600 $as_echo "$aros_host_ranlib" >&6; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 if test "$aros_host_ranlib" = ""; then
4608 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4610 # Extract the first word of "strip", so it can be a program name with args.
4611 set dummy strip
; ac_word
=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4615 $as_echo_n "(cached) " >&6
4617 if test -n "$aros_host_strip"; then
4618 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir
=.
4625 for ac_exec_ext
in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_aros_host_strip
="strip "
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 aros_host_strip
=$ac_cv_prog_aros_host_strip
4638 if test -n "$aros_host_strip"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4640 $as_echo "$aros_host_strip" >&6; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4647 if test "$aros_host_strip" = ""; then
4648 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4651 # Extract the first word of "rm", so it can be a program name with args.
4652 set dummy
rm; ac_word
=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_RM+:} false
; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$RM"; then
4659 ac_cv_prog_RM
="$RM" # Let the user override the test.
4661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir
=.
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_RM
="rm -rf"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 if test -n "$RM"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4681 $as_echo "$RM" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 if test "$RM" = ""; then
4689 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4691 # Extract the first word of "cp", so it can be a program name with args.
4692 set dummy
cp; ac_word
=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_CP+:} false
; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$CP"; then
4699 ac_cv_prog_CP
="$CP" # Let the user override the test.
4701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir
=.
4706 for ac_exec_ext
in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 if test -n "$CP"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4721 $as_echo "$CP" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 if test "$CP" = ""; then
4729 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4731 # Extract the first word of "mv", so it can be a program name with args.
4732 set dummy
mv; ac_word
=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_MV+:} false
; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$MV"; then
4739 ac_cv_prog_MV
="$MV" # Let the user override the test.
4741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir
=.
4746 for ac_exec_ext
in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 if test -n "$MV"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4761 $as_echo "$MV" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 if test "$MV" = ""; then
4769 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4771 # Extract the first word of "echo", so it can be a program name with args.
4772 set dummy
echo; ac_word
=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_ECHO+:} false
; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$ECHO"; then
4779 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
4781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir
=.
4786 for ac_exec_ext
in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_ECHO
="echo "
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 ECHO
=$ac_cv_prog_ECHO
4799 if test -n "$ECHO"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4801 $as_echo "$ECHO" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 if test "$ECHO" = ""; then
4809 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4811 # Extract the first word of "mkdir", so it can be a program name with args.
4812 set dummy mkdir
; ac_word
=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_prog_MKDIR+:} false
; then :
4816 $as_echo_n "(cached) " >&6
4818 if test -n "$MKDIR"; then
4819 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
4821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir
=.
4826 for ac_exec_ext
in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_MKDIR
="mkdir -p"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 MKDIR
=$ac_cv_prog_MKDIR
4839 if test -n "$MKDIR"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4841 $as_echo "$MKDIR" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 if test "$MKDIR" = ""; then
4849 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4851 # Extract the first word of "touch", so it can be a program name with args.
4852 set dummy
touch; ac_word
=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_TOUCH+:} false
; then :
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$TOUCH"; then
4859 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
4861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir
=.
4866 for ac_exec_ext
in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_TOUCH
="touch "
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 TOUCH
=$ac_cv_prog_TOUCH
4879 if test -n "$TOUCH"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4881 $as_echo "$TOUCH" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 if test "$TOUCH" = ""; then
4889 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4891 # Extract the first word of "sort", so it can be a program name with args.
4892 set dummy
sort; ac_word
=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_SORT+:} false
; then :
4896 $as_echo_n "(cached) " >&6
4898 if test -n "$SORT"; then
4899 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
4901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir
=.
4906 for ac_exec_ext
in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_SORT
="sort "
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 SORT
=$ac_cv_prog_SORT
4919 if test -n "$SORT"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4921 $as_echo "$SORT" >&6; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 if test "$SORT" = ""; then
4929 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4931 # Extract the first word of "uniq", so it can be a program name with args.
4932 set dummy
uniq; ac_word
=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_UNIQ+:} false
; then :
4936 $as_echo_n "(cached) " >&6
4938 if test -n "$UNIQ"; then
4939 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
4941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4945 test -z "$as_dir" && as_dir
=.
4946 for ac_exec_ext
in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_UNIQ
="uniq "
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 UNIQ
=$ac_cv_prog_UNIQ
4959 if test -n "$UNIQ"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4961 $as_echo "$UNIQ" >&6; }
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4968 if test "$UNIQ" = ""; then
4969 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4971 # Extract the first word of "true", so it can be a program name with args.
4972 set dummy true
; ac_word
=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_NOP+:} false
; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$NOP"; then
4979 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
4981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir
=.
4986 for ac_exec_ext
in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_NOP
="true "
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 if test -n "$NOP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5001 $as_echo "$NOP" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 if test "$NOP" = ""; then
5009 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5011 # Extract the first word of "cat", so it can be a program name with args.
5012 set dummy
cat; ac_word
=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_CAT+:} false
; then :
5016 $as_echo_n "(cached) " >&6
5018 if test -n "$CAT"; then
5019 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir
=.
5026 for ac_exec_ext
in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_CAT
="cat "
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 if test -n "$CAT"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5041 $as_echo "$CAT" >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 if test "$CAT" = ""; then
5049 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5051 # Extract the first word of "bison", so it can be a program name with args.
5052 set dummy bison
; ac_word
=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_BISON+:} false
; then :
5056 $as_echo_n "(cached) " >&6
5058 if test -n "$BISON"; then
5059 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_BISON
="bison "
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 BISON
=$ac_cv_prog_BISON
5079 if test -n "$BISON"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5081 $as_echo "$BISON" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5088 if test "$BISON" = ""; then
5089 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5091 # Extract the first word of "flex", so it can be a program name with args.
5092 set dummy flex
; ac_word
=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_FLEX+:} false
; then :
5096 $as_echo_n "(cached) " >&6
5098 if test -n "$FLEX"; then
5099 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_exec_ext
in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_FLEX
="flex "
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 FLEX
=$ac_cv_prog_FLEX
5119 if test -n "$FLEX"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5121 $as_echo "$FLEX" >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5128 if test "$FLEX" = ""; then
5129 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5131 # Extract the first word of "pngtopnm", so it can be a program name with args.
5132 set dummy pngtopnm
; ac_word
=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5136 $as_echo_n "(cached) " >&6
5138 if test -n "$PNGTOPNM"; then
5139 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir
=.
5146 for ac_exec_ext
in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_PNGTOPNM
="pngtopnm "
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5159 if test -n "$PNGTOPNM"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5161 $as_echo "$PNGTOPNM" >&6; }
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5168 if test "$PNGTOPNM" = ""; then
5169 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5171 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5172 set dummy ppmtoilbm
; ac_word
=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5176 $as_echo_n "(cached) " >&6
5178 if test -n "$PPMTOILBM"; then
5179 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir
=.
5186 for ac_exec_ext
in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5199 if test -n "$PPMTOILBM"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5201 $as_echo "$PPMTOILBM" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 if test "$PPMTOILBM" = ""; then
5209 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5211 # Extract the first word of "sed", so it can be a program name with args.
5212 set dummy
sed; ac_word
=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_SED+:} false
; then :
5216 $as_echo_n "(cached) " >&6
5218 if test -n "$SED"; then
5219 ac_cv_prog_SED
="$SED" # Let the user override the test.
5221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir
=.
5226 for ac_exec_ext
in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_SED
="sed "
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 if test -n "$SED"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5241 $as_echo "$SED" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 if test "$SED" = ""; then
5249 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5251 # Extract the first word of "chmod", so it can be a program name with args.
5252 set dummy
chmod; ac_word
=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_CHMOD+:} false
; then :
5256 $as_echo_n "(cached) " >&6
5258 if test -n "$CHMOD"; then
5259 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5265 test -z "$as_dir" && as_dir
=.
5266 for ac_exec_ext
in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_prog_CHMOD
="chmod "
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 CHMOD
=$ac_cv_prog_CHMOD
5279 if test -n "$CHMOD"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5281 $as_echo "$CHMOD" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 if test "$CHMOD" = ""; then
5289 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5291 # Extract the first word of "patch", so it can be a program name with args.
5292 set dummy
patch; ac_word
=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_PATCH+:} false
; then :
5296 $as_echo_n "(cached) " >&6
5298 if test -n "$PATCH"; then
5299 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir
=.
5306 for ac_exec_ext
in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_PATCH
="patch "
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 PATCH
=$ac_cv_prog_PATCH
5319 if test -n "$PATCH"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5321 $as_echo "$PATCH" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5328 if test "$PATCH" = ""; then
5329 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5336 if test -n "$PYTHON"; then
5337 # If the user set $PYTHON, use it and don't search something else.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5339 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5340 prog
="import sys, string
5341 # split strings by '.' and convert to numeric. Append some zeros
5342 # because we need at least 4 digits for the hex conversion.
5343 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5345 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5346 sys.exit(sys.hexversion < minverhex)"
5347 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5348 ($PYTHON -c "$prog") >&5 2>&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; then :
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5355 as_fn_error $?
"too old" "$LINENO" 5
5357 am_display_PYTHON
=$PYTHON
5359 # Otherwise, try each interpreter until we find one that satisfies
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5362 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5363 if ${am_cv_pathless_PYTHON+:} false
; then :
5364 $as_echo_n "(cached) " >&6
5367 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
5368 test "$am_cv_pathless_PYTHON" = none
&& break
5369 prog
="import sys, string
5370 # split strings by '.' and convert to numeric. Append some zeros
5371 # because we need at least 4 digits for the hex conversion.
5372 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5374 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5375 sys.exit(sys.hexversion < minverhex)"
5376 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5377 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; then :
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5386 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5387 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5388 if test "$am_cv_pathless_PYTHON" = none
; then
5391 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5392 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_path_PYTHON+:} false
; then :
5396 $as_echo_n "(cached) " >&6
5400 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir
=.
5408 for ac_exec_ext
in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 PYTHON
=$ac_cv_path_PYTHON
5422 if test -n "$PYTHON"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5424 $as_echo "$PYTHON" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5432 am_display_PYTHON
=$am_cv_pathless_PYTHON
5436 if test "$PYTHON" = :; then
5437 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5442 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5443 if ${am_cv_python_version+:} false
; then :
5444 $as_echo_n "(cached) " >&6
5446 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5449 $as_echo "$am_cv_python_version" >&6; }
5450 PYTHON_VERSION
=$am_cv_python_version
5454 PYTHON_PREFIX
='${prefix}'
5456 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5461 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5462 if ${am_cv_python_platform+:} false
; then :
5463 $as_echo_n "(cached) " >&6
5465 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5468 $as_echo "$am_cv_python_platform" >&6; }
5469 PYTHON_PLATFORM
=$am_cv_python_platform
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5475 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5476 if ${am_cv_python_pythondir+:} false
; then :
5477 $as_echo_n "(cached) " >&6
5479 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5480 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5483 $as_echo "$am_cv_python_pythondir" >&6; }
5484 pythondir
=$am_cv_python_pythondir
5488 pkgpythondir
=\
${pythondir}/$PACKAGE
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5492 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5493 if ${am_cv_python_pyexecdir+:} false
; then :
5494 $as_echo_n "(cached) " >&6
5496 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5497 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5500 $as_echo "$am_cv_python_pyexecdir" >&6; }
5501 pyexecdir
=$am_cv_python_pyexecdir
5505 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5523 # Check for some includes for the X11 HIDD and the kernel
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5527 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5528 if ${ac_cv_path_GREP+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 if test -z "$GREP"; then
5532 ac_path_GREP_found
=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5535 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5538 test -z "$as_dir" && as_dir
=.
5539 for ac_prog
in grep ggrep
; do
5540 for ac_exec_ext
in '' $ac_executable_extensions; do
5541 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5542 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5543 # Check for GNU ac_path_GREP and select it if it is found.
5544 # Check for GNU $ac_path_GREP
5545 case `"$ac_path_GREP" --version 2>&1` in
5547 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5550 $as_echo_n 0123456789 >"conftest.in"
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo 'GREP' >> "conftest.nl"
5557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5558 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5559 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5560 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_GREP
="$ac_path_GREP"
5563 ac_path_GREP_max
=$ac_count
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5568 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5571 $ac_path_GREP_found && break 3
5576 if test -z "$ac_cv_path_GREP"; then
5577 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5580 ac_cv_path_GREP
=$GREP
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5585 $as_echo "$ac_cv_path_GREP" >&6; }
5586 GREP
="$ac_cv_path_GREP"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5590 $as_echo_n "checking for egrep... " >&6; }
5591 if ${ac_cv_path_EGREP+:} false
; then :
5592 $as_echo_n "(cached) " >&6
5594 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5595 then ac_cv_path_EGREP
="$GREP -E"
5597 if test -z "$EGREP"; then
5598 ac_path_EGREP_found
=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5601 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5604 test -z "$as_dir" && as_dir
=.
5605 for ac_prog
in egrep; do
5606 for ac_exec_ext
in '' $ac_executable_extensions; do
5607 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5608 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5609 # Check for GNU ac_path_EGREP and select it if it is found.
5610 # Check for GNU $ac_path_EGREP
5611 case `"$ac_path_EGREP" --version 2>&1` in
5613 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5616 $as_echo_n 0123456789 >"conftest.in"
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo 'EGREP' >> "conftest.nl"
5623 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5624 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5625 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5626 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_EGREP
="$ac_path_EGREP"
5629 ac_path_EGREP_max
=$ac_count
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5634 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5637 $ac_path_EGREP_found && break 3
5642 if test -z "$ac_cv_path_EGREP"; then
5643 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5646 ac_cv_path_EGREP
=$EGREP
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5652 $as_echo "$ac_cv_path_EGREP" >&6; }
5653 EGREP
="$ac_cv_path_EGREP"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5657 $as_echo_n "checking for ANSI C header files... " >&6; }
5658 if ${ac_cv_header_stdc+:} false
; then :
5659 $as_echo_n "(cached) " >&6
5661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5676 if ac_fn_c_try_compile
"$LINENO"; then :
5677 ac_cv_header_stdc
=yes
5679 ac_cv_header_stdc
=no
5681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 if test $ac_cv_header_stdc = yes; then
5684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691 $EGREP "memchr" >/dev
/null
2>&1; then :
5694 ac_cv_header_stdc
=no
5700 if test $ac_cv_header_stdc = yes; then
5701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "free" >/dev
/null
2>&1; then :
5711 ac_cv_header_stdc
=no
5717 if test $ac_cv_header_stdc = yes; then
5718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5719 if test "$cross_compiling" = yes; then :
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5726 #if ((' ' & 0x0FF) == 0x020)
5727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5730 # define ISLOWER(c) \
5731 (('a' <= (c) && (c) <= 'i') \
5732 || ('j' <= (c) && (c) <= 'r') \
5733 || ('s' <= (c) && (c) <= 'z'))
5734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5742 for (i = 0; i < 256; i++)
5743 if (XOR (islower (i), ISLOWER (i))
5744 || toupper (i) != TOUPPER (i))
5749 if ac_fn_c_try_run
"$LINENO"; then :
5752 ac_cv_header_stdc
=no
5754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5761 $as_echo "$ac_cv_header_stdc" >&6; }
5762 if test $ac_cv_header_stdc = yes; then
5764 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5768 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5769 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5770 inttypes.h stdint.h unistd.h
5772 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5773 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5775 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5776 cat >>confdefs.h
<<_ACEOF
5777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5785 for ac_header
in sys
/ipc.h sys
/shm.h \
5786 sys
/mmap.h sys
/mman.h sysexits.h \
5787 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
5790 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5791 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5792 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5793 cat >>confdefs.h
<<_ACEOF
5794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5802 for ac_header
in sys
/mount.h
5804 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5806 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
5807 cat >>confdefs.h
<<_ACEOF
5808 #define HAVE_SYS_MOUNT_H 1
5817 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5818 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5820 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5821 if eval \
${$as_ac_Header+:} false
; then :
5822 $as_echo_n "(cached) " >&6
5824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 #include <sys/types.h>
5838 if ac_fn_c_try_compile
"$LINENO"; then :
5839 eval "$as_ac_Header=yes"
5841 eval "$as_ac_Header=no"
5843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5845 eval ac_res
=\$
$as_ac_Header
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5847 $as_echo "$ac_res" >&6; }
5848 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5849 cat >>confdefs.h
<<_ACEOF
5850 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5853 ac_header_dirent
=$ac_hdr; break
5857 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5858 if test $ac_header_dirent = dirent.h
; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5860 $as_echo_n "checking for library containing opendir... " >&6; }
5861 if ${ac_cv_search_opendir+:} false
; then :
5862 $as_echo_n "(cached) " >&6
5864 ac_func_search_save_LIBS
=$LIBS
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5883 for ac_lib
in '' dir
; do
5884 if test -z "$ac_lib"; then
5885 ac_res
="none required"
5888 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5890 if ac_fn_c_try_link
"$LINENO"; then :
5891 ac_cv_search_opendir
=$ac_res
5893 rm -f core conftest.err conftest.
$ac_objext \
5895 if ${ac_cv_search_opendir+:} false
; then :
5899 if ${ac_cv_search_opendir+:} false
; then :
5902 ac_cv_search_opendir
=no
5905 LIBS
=$ac_func_search_save_LIBS
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5908 $as_echo "$ac_cv_search_opendir" >&6; }
5909 ac_res
=$ac_cv_search_opendir
5910 if test "$ac_res" != no
; then :
5911 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5917 $as_echo_n "checking for library containing opendir... " >&6; }
5918 if ${ac_cv_search_opendir+:} false
; then :
5919 $as_echo_n "(cached) " >&6
5921 ac_func_search_save_LIBS
=$LIBS
5922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5925 /* Override any GCC internal prototype to avoid an error.
5926 Use char because int might match the return type of a GCC
5927 builtin and then its argument prototype would still apply. */
5940 for ac_lib
in '' x
; do
5941 if test -z "$ac_lib"; then
5942 ac_res
="none required"
5945 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5947 if ac_fn_c_try_link
"$LINENO"; then :
5948 ac_cv_search_opendir
=$ac_res
5950 rm -f core conftest.err conftest.
$ac_objext \
5952 if ${ac_cv_search_opendir+:} false
; then :
5956 if ${ac_cv_search_opendir+:} false
; then :
5959 ac_cv_search_opendir
=no
5962 LIBS
=$ac_func_search_save_LIBS
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5965 $as_echo "$ac_cv_search_opendir" >&6; }
5966 ac_res
=$ac_cv_search_opendir
5967 if test "$ac_res" != no
; then :
5968 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5975 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5976 if ${ac_cv_header_stat_broken+:} false
; then :
5977 $as_echo_n "(cached) " >&6
5979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <sys/types.h>
5982 #include <sys/stat.h>
5984 #if defined S_ISBLK && defined S_IFDIR
5985 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5988 #if defined S_ISBLK && defined S_IFCHR
5989 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5992 #if defined S_ISLNK && defined S_IFREG
5993 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5996 #if defined S_ISSOCK && defined S_IFREG
5997 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6001 if ac_fn_c_try_compile
"$LINENO"; then :
6002 ac_cv_header_stat_broken
=no
6004 ac_cv_header_stat_broken
=yes
6006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6009 $as_echo "$ac_cv_header_stat_broken" >&6; }
6010 if test $ac_cv_header_stat_broken = yes; then
6012 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6017 $as_echo_n "checking for ANSI C header files... " >&6; }
6018 if ${ac_cv_header_stdc+:} false
; then :
6019 $as_echo_n "(cached) " >&6
6021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6036 if ac_fn_c_try_compile
"$LINENO"; then :
6037 ac_cv_header_stdc
=yes
6039 ac_cv_header_stdc
=no
6041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6043 if test $ac_cv_header_stdc = yes; then
6044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6051 $EGREP "memchr" >/dev
/null
2>&1; then :
6054 ac_cv_header_stdc
=no
6060 if test $ac_cv_header_stdc = yes; then
6061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 $EGREP "free" >/dev
/null
2>&1; then :
6071 ac_cv_header_stdc
=no
6077 if test $ac_cv_header_stdc = yes; then
6078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079 if test "$cross_compiling" = yes; then :
6082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6086 #if ((' ' & 0x0FF) == 0x020)
6087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6090 # define ISLOWER(c) \
6091 (('a' <= (c) && (c) <= 'i') \
6092 || ('j' <= (c) && (c) <= 'r') \
6093 || ('s' <= (c) && (c) <= 'z'))
6094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6102 for (i = 0; i < 256; i++)
6103 if (XOR (islower (i), ISLOWER (i))
6104 || toupper (i) != TOUPPER (i))
6109 if ac_fn_c_try_run
"$LINENO"; then :
6112 ac_cv_header_stdc
=no
6114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6115 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6121 $as_echo "$ac_cv_header_stdc" >&6; }
6122 if test $ac_cv_header_stdc = yes; then
6124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6129 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6130 if ${ac_cv_header_sys_wait_h+:} false
; then :
6131 $as_echo_n "(cached) " >&6
6133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <sys/types.h>
6136 #include <sys/wait.h>
6138 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6141 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6149 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6154 if ac_fn_c_try_compile
"$LINENO"; then :
6155 ac_cv_header_sys_wait_h
=yes
6157 ac_cv_header_sys_wait_h
=no
6159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6162 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6163 if test $ac_cv_header_sys_wait_h = yes; then
6165 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6170 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6171 if ${ac_cv_header_time+:} false
; then :
6172 $as_echo_n "(cached) " >&6
6174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176 #include <sys/types.h>
6177 #include <sys/time.h>
6183 if ((struct tm *) 0)
6189 if ac_fn_c_try_compile
"$LINENO"; then :
6190 ac_cv_header_time
=yes
6192 ac_cv_header_time
=no
6194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6197 $as_echo "$ac_cv_header_time" >&6; }
6198 if test $ac_cv_header_time = yes; then
6200 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6204 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6205 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6207 cat >>confdefs.h
<<_ACEOF
6208 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6212 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6217 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6218 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6220 cat >>confdefs.h
<<_ACEOF
6221 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6225 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6228 case " $LIBOBJS " in
6229 *" fileblocks.$ac_objext "* ) ;;
6230 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6237 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6238 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6240 cat >>confdefs.h
<<_ACEOF
6241 #define HAVE_STRUCT_STAT_ST_RDEV 1
6245 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6251 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6252 if ${ac_cv_struct_tm+:} false
; then :
6253 $as_echo_n "(cached) " >&6
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <sys/types.h>
6264 int *p = &tm.tm_sec;
6270 if ac_fn_c_try_compile
"$LINENO"; then :
6271 ac_cv_struct_tm
=time.h
6273 ac_cv_struct_tm
=sys
/time.h
6275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6278 $as_echo "$ac_cv_struct_tm" >&6; }
6279 if test $ac_cv_struct_tm = sys
/time.h
; then
6281 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6285 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6286 #include <$ac_cv_struct_tm>
6289 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6291 cat >>confdefs.h
<<_ACEOF
6292 #define HAVE_STRUCT_TM_TM_ZONE 1
6298 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6300 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6303 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6305 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6311 cat >>confdefs.h
<<_ACEOF
6312 #define HAVE_DECL_TZNAME $ac_have_decl
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6316 $as_echo_n "checking for tzname... " >&6; }
6317 if ${ac_cv_var_tzname+:} false
; then :
6318 $as_echo_n "(cached) " >&6
6320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6323 #if !HAVE_DECL_TZNAME
6324 extern char *tzname[];
6330 return tzname[0][0];
6335 if ac_fn_c_try_link
"$LINENO"; then :
6336 ac_cv_var_tzname
=yes
6340 rm -f core conftest.err conftest.
$ac_objext \
6341 conftest
$ac_exeext conftest.
$ac_ext
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6344 $as_echo "$ac_cv_var_tzname" >&6; }
6345 if test $ac_cv_var_tzname = yes; then
6347 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6352 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6353 if test "x$ac_cv_type_off_t" = xyes
; then :
6357 cat >>confdefs.h
<<_ACEOF
6358 #define off_t long int
6363 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6364 if test "x$ac_cv_type_pid_t" = xyes
; then :
6368 cat >>confdefs.h
<<_ACEOF
6374 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6375 if test "x$ac_cv_type_size_t" = xyes
; then :
6379 cat >>confdefs.h
<<_ACEOF
6380 #define size_t unsigned int
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6386 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6387 if ${ac_cv_type_uid_t+:} false
; then :
6388 $as_echo_n "(cached) " >&6
6390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 $EGREP "uid_t" >/dev
/null
2>&1; then :
6397 ac_cv_type_uid_t
=yes
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6405 $as_echo "$ac_cv_type_uid_t" >&6; }
6406 if test $ac_cv_type_uid_t = no
; then
6408 $as_echo "#define uid_t int" >>confdefs.h
6411 $as_echo "#define gid_t int" >>confdefs.h
6416 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6417 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
6419 cat >>confdefs.h
<<_ACEOF
6420 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6427 # Look for some functions
6428 for ac_func
in getpagesize kqueue statfs statvfs \
6429 clone kse_create rfork_thread thr_create sa_register \
6430 getcontext makecontext setcontext sigaltstack swapcontext
6432 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6433 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6434 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6435 cat >>confdefs.h
<<_ACEOF
6436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6446 for ac_header
in $ac_header_list
6448 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6449 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6451 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6452 cat >>confdefs.h
<<_ACEOF
6453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6467 for ac_func
in getpagesize
6469 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6470 if test "x$ac_cv_func_getpagesize" = xyes
; then :
6471 cat >>confdefs.h
<<_ACEOF
6472 #define HAVE_GETPAGESIZE 1
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6479 $as_echo_n "checking for working mmap... " >&6; }
6480 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
6481 $as_echo_n "(cached) " >&6
6483 if test "$cross_compiling" = yes; then :
6484 ac_cv_func_mmap_fixed_mapped
=no
6486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 $ac_includes_default
6489 /* malloc might have been renamed as rpl_malloc. */
6492 /* Thanks to Mike Haertel and Jim Avera for this test.
6493 Here is a matrix of mmap possibilities:
6494 mmap private not fixed
6495 mmap private fixed at somewhere currently unmapped
6496 mmap private fixed at somewhere already mapped
6497 mmap shared not fixed
6498 mmap shared fixed at somewhere currently unmapped
6499 mmap shared fixed at somewhere already mapped
6500 For private mappings, we should verify that changes cannot be read()
6501 back from the file, nor mmap's back from the file at a different
6502 address. (There have been systems where private was not correctly
6503 implemented like the infamous i386 svr4.0, and systems where the
6504 VM page cache was not coherent with the file system buffer cache
6505 like early versions of FreeBSD and possibly contemporary NetBSD.)
6506 For shared mappings, we should conversely verify that changes get
6507 propagated back to all the places they're supposed to be.
6509 Grep wants private fixed already mapped.
6510 The main things grep needs to know about mmap are:
6511 * does it exist and is it safe to write into the mmap'd area
6512 * how to use it (BSD variants) */
6515 #include <sys/mman.h>
6517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6521 /* This mess was copied from the GNU getpagesize.h. */
6522 #ifndef HAVE_GETPAGESIZE
6523 # ifdef _SC_PAGESIZE
6524 # define getpagesize() sysconf(_SC_PAGESIZE)
6525 # else /* no _SC_PAGESIZE */
6526 # ifdef HAVE_SYS_PARAM_H
6527 # include <sys/param.h>
6528 # ifdef EXEC_PAGESIZE
6529 # define getpagesize() EXEC_PAGESIZE
6530 # else /* no EXEC_PAGESIZE */
6532 # define getpagesize() NBPG * CLSIZE
6535 # endif /* no CLSIZE */
6536 # else /* no NBPG */
6538 # define getpagesize() NBPC
6539 # else /* no NBPC */
6541 # define getpagesize() PAGESIZE
6542 # endif /* PAGESIZE */
6543 # endif /* no NBPC */
6544 # endif /* no NBPG */
6545 # endif /* no EXEC_PAGESIZE */
6546 # else /* no HAVE_SYS_PARAM_H */
6547 # define getpagesize() 8192 /* punt totally */
6548 # endif /* no HAVE_SYS_PARAM_H */
6549 # endif /* no _SC_PAGESIZE */
6551 #endif /* no HAVE_GETPAGESIZE */
6556 char *data, *data2, *data3;
6561 pagesize = getpagesize ();
6563 /* First, make a file with some known garbage in it. */
6564 data = (char *) malloc (pagesize);
6567 for (i = 0; i < pagesize; ++i)
6568 *(data + i) = rand ();
6570 fd = creat ("conftest.mmap", 0600);
6573 if (write (fd, data, pagesize) != pagesize)
6577 /* Next, check that the tail of a page is zero-filled. File must have
6578 non-zero length, otherwise we risk SIGBUS for entire page. */
6579 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6583 if (write (fd2, cdata2, 1) != 1)
6585 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6586 if (data2 == MAP_FAILED)
6588 for (i = 0; i < pagesize; ++i)
6592 if (munmap (data2, pagesize))
6595 /* Next, try to mmap the file at a fixed address which already has
6596 something else allocated at it. If we can, also make sure that
6597 we see the same garbage. */
6598 fd = open ("conftest.mmap", O_RDWR);
6601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6604 for (i = 0; i < pagesize; ++i)
6605 if (*(data + i) != *(data2 + i))
6608 /* Finally, make sure that changes to the mapped area do not
6609 percolate back to the file as seen by read(). (This is a bug on
6610 some variants of i386 svr4.0.) */
6611 for (i = 0; i < pagesize; ++i)
6612 *(data2 + i) = *(data2 + i) + 1;
6613 data3 = (char *) malloc (pagesize);
6616 if (read (fd, data3, pagesize) != pagesize)
6618 for (i = 0; i < pagesize; ++i)
6619 if (*(data + i) != *(data3 + i))
6625 if ac_fn_c_try_run
"$LINENO"; then :
6626 ac_cv_func_mmap_fixed_mapped
=yes
6628 ac_cv_func_mmap_fixed_mapped
=no
6630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6636 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6637 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6639 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6642 rm -f conftest.mmap conftest.txt
6647 aros_config_cflags
="-Wall -Werror-implicit-function-declaration -Wno-uninitialized -Wno-parentheses"
6648 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
6649 aros_config_ldflags
=""
6651 aros_shared_default
=yes
6653 aros_shared_cflags
="-fPIC"
6654 aros_shared_aflags
=""
6655 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
6656 aros_kernel_ldflags
="-Wl,-rpath,./lib"
6658 aros_target_ar_flags
="cr"
6659 aros_target_nm_flags
="-C -ul"
6660 aros_target_strip_flags
="--strip-unneeded -R.comment"
6665 aros_target_genmap
="-Wl,-Map -Xlinker"
6667 # Native flavour stuff
6668 aros_serial_debug
="0"
6670 # Palm native flavour stuff
6671 aros_palm_debug_hack
="0"
6673 # Unix flavour stuff
6674 aros_nesting_supervisor
="0"
6676 # Collect-aros stuff: "-ius" to ignore undefined symbols
6677 ignore_undefined_symbols
=""
6679 # Check for X11 by default
6682 #-----------------------------------------------------------------------------
6685 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6686 # it switched on by default, and we use the host compiler, so it compiles AROS
6687 # code with this enabled resulting in link failures as we don't have support
6690 # We use two methods to disable it. For the host compiler (used to compile
6691 # some hosted modules), we test to see if the compiler supports stack
6692 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6693 # work on all platforms.
6695 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6696 # (this is done unconditionally, as it should have no effect on compilers
6697 # without the stack protection feature). This may be specific to the way that
6698 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6699 # strong enough to disable it in a generic way though, so we'll live with it
6700 # until another vendor ships GCC with it enabled in a different way, and deal
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6705 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6706 save_cflags
="$CFLAGS"
6707 CFLAGS
="$CFLAGS -fno-stack-protector"
6708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6719 if ac_fn_c_try_compile
"$LINENO"; then :
6720 use_no_stack_protector
="yes"
6722 use_no_stack_protector
="no"
6724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6726 $as_echo "$use_no_stack_protector" >&6; }
6727 if test "x-$use_no_stack_protector" = "x-yes" ; then
6728 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
6730 CFLAGS
="$save_cflags"
6732 #-----------------------------------------------------------------------------
6734 # Disable pointer-signedness warnings if the compiler recognises the option
6735 # (this only works for the host compiler at the moment)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6738 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6739 save_cflags
="$CFLAGS"
6740 CFLAGS
="$CFLAGS -Wno-pointer-sign"
6741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6752 if ac_fn_c_try_compile
"$LINENO"; then :
6753 use_no_sign_warning
="yes"
6755 use_no_sign_warning
="no"
6757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6759 $as_echo "$use_no_sign_warning" >&6; }
6760 if test "x-$use_no_sign_warning" = "x-yes" ; then
6761 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
6763 CFLAGS
="$save_cflags"
6765 #-----------------------------------------------------------------------------
6767 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6770 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6771 save_cflags
="$CFLAGS"
6772 CFLAGS
="$CFLAGS -fgnu89-inline"
6773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6784 if ac_fn_c_try_compile
"$LINENO"; then :
6785 use_gnu89_inline
="yes"
6787 use_gnu89_inline
="no"
6789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6791 $as_echo "$use_gnu89_inline" >&6; }
6792 if test "x-$use_gnu89_inline" = "x-yes" ; then
6793 gnu89_inline
="-fgnu89-inline"
6795 CFLAGS
="$save_cflags"
6797 #-----------------------------------------------------------------------------
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6800 $as_echo_n "checking for type of build... " >&6; }
6801 # Check whether --enable-build_type was given.
6802 if test "${enable_build_type+set}" = set; then :
6803 enableval
=$enable_build_type; build_type
=$enableval
6805 build_type
="personal"
6809 if test "$build_type" = "nightly"; then
6810 build_type_string
="NIGHTLY"
6811 elif test "$build_type" = "snapshot"; then
6812 build_type_string
="SNAPSHOT"
6813 elif test "$build_type" = "milestone"; then
6814 build_type_string
="MILESTONE"
6815 elif test "$build_type" = "release"; then
6816 build_type_string
="RELEASE"
6818 build_type_string
="PERSONAL"
6819 build_type
="personal"
6822 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6825 $as_echo "$build_type" >&6; }
6827 #-----------------------------------------------------------------------------
6828 all_debug_types
="messages stack modules mungwall symbols"
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6831 $as_echo_n "checking which debug types to enable... " >&6; }
6832 # Check whether --enable-debug was given.
6833 if test "${enable_debug+set}" = set; then :
6834 enableval
=$enable_debug; debug
="$enableval"
6840 if test "$debug" = "" -o "$debug" = "no"; then
6842 elif test "$debug" = "yes"; then
6846 if test "$debug" = "all" ; then
6847 debug
="messages stack modules symbols"
6848 for d
in $all_debug_types; do
6849 export aros_
${d}_debug
="1"
6852 for d
in $all_debug_types; do
6853 export aros_
${d}_debug
="0"
6857 if test "$debug" != "none"; then
6858 debug
=`echo $debug | sed s/,/\ /g`
6861 for d2
in $all_debug_types; do
6862 if test "$d2" = "$d"; then
6867 if test "$found" = "0"; then
6868 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6870 export aros_
${d}_debug
="1"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6875 $as_echo "$debug" >&6; }
6877 if test "$aros_messages_debug" = "1"; then
6878 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
6880 aros_messages_debug
=""
6882 if test "$aros_symbols_debug" = "1"; then
6883 aros_symbols_debug
="-g"
6885 aros_symbols_debug
=""
6888 # These are the flags to pass when compiling debugged programs
6889 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
6890 aros_debug_aflags
=""
6891 aros_debug_ldflags
="$aros_symbols_debug"
6893 #-----------------------------------------------------------------------------
6894 # Checking if we should build crosstools..
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6896 $as_echo_n "checking whether to build crosstools... " >&6; }
6897 # Check whether --enable-crosstools was given.
6898 if test "${enable_crosstools+set}" = set; then :
6899 enableval
=$enable_crosstools; crosstools
="$enableval"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6905 $as_echo "$crosstools" >&6; }
6907 #-----------------------------------------------------------------------------
6908 # Checking for distcc and ccache.
6910 # Always apply the transforms in this particular order. Basically you should
6911 # always run 'ccache distcc compiler' in that order for the best performance.
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6914 $as_echo_n "checking whether to enable distcc... " >&6; }
6915 # Check whether --enable-distcc was given.
6916 if test "${enable_distcc+set}" = set; then :
6917 enableval
=$enable_distcc; distcc
="$enableval"
6922 if test "$distcc" != "" -a "$distcc" != "no"; then
6923 # AC_CHECK_PROG will print out the result in this case
6924 # Extract the first word of "distcc", so it can be a program name with args.
6925 set dummy distcc
; ac_word
=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_path_DISTCC+:} false
; then :
6929 $as_echo_n "(cached) " >&6
6933 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
6936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir
=.
6941 for ac_exec_ext
in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
6955 DISTCC
=$ac_cv_path_DISTCC
6956 if test -n "$DISTCC"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6958 $as_echo "$DISTCC" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6971 $as_echo_n "checking whether to enable ccache... " >&6; }
6972 # Check whether --enable-ccache was given.
6973 if test "${enable_ccache+set}" = set; then :
6974 enableval
=$enable_ccache; ccache
="$enableval"
6979 if test "$ccache" != "" -a "$ccache" != "no"; then
6980 # AC_CHECK_PROG will print out the result in this case
6981 # Extract the first word of "ccache", so it can be a program name with args.
6982 set dummy ccache
; ac_word
=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_CCACHE+:} false
; then :
6986 $as_echo_n "(cached) " >&6
6988 if test -n "$CCACHE"; then
6989 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
6991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir
=.
6996 for ac_exec_ext
in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_CCACHE
="ccache"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 CCACHE
=$ac_cv_prog_CCACHE
7009 if test -n "$CCACHE"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7011 $as_echo "$CCACHE" >&6; }
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7023 #-----------------------------------------------------------------------------
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7025 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7027 # Check whether --with-gcc-version was given.
7028 if test "${with_gcc_version+set}" = set; then :
7029 withval
=$with_gcc_version; target_tool_version
="$withval"
7031 target_tool_version
="default"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7035 $as_echo "$target_tool_version" >&6; }
7037 #-----------------------------------------------------------------------------
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7039 $as_echo_n "checking what optimization flags to use... " >&6; }
7041 # Check whether --with-optimization was given.
7042 if test "${with_optimization+set}" = set; then :
7043 withval
=$with_optimization; optimization
="$withval"
7045 optimization
="unknown"
7048 if test "$optimization" = "unknown"; then
7049 if test "$debug" != "none"; then
7055 aros_config_cflags
="$aros_config_cflags $optimization"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7057 $as_echo "$optimization" >&6; }
7059 #-----------------------------------------------------------------------------
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7061 $as_echo_n "checking what paranoia flags to use... " >&6; }
7063 # Check whether --with-paranoia was given.
7064 if test "${with_paranoia+set}" = set; then :
7065 withval
=$with_paranoia; paranoia_flags
="$withval"
7067 paranoia_flags
="default"
7070 if test "$paranoia_flags" = "default"; then
7072 else if test "$paranoia_flags" = "yes"; then
7073 paranoia_flags
="-Werror"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7076 $as_echo "$paranoia_flags" >&6; }
7077 aros_paranoia_cflags
="$paranoia_flags"
7079 #-----------------------------------------------------------------------------
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7081 $as_echo_n "checking what target variant to enable... " >&6; }
7082 # Check whether --enable-target_variant was given.
7083 if test "${enable_target_variant+set}" = set; then :
7084 enableval
=$enable_target_variant; target_variant
=$enableval
7089 if test "$target_variant" = ""; then
7090 aros_target_variant
=""
7091 aros_target_suffix
=""
7094 aros_target_variant
="$target_variant"
7095 aros_target_suffix
="-$target_variant"
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7098 $as_echo "$enableval" >&6; }
7100 #-----------------------------------------------------------------------------
7101 # Target-specific defaults. You can override then on a per-target basis.
7103 # Bootloader name. Currently used by PC target.
7104 target_bootloader
="none"
7106 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7107 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7108 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7109 if test "$crosstools" != "yes"; then
7110 target_tool_prefix
=${target_cpu}-elf-
7112 target_tool_prefix
=${target_cpu}-aros-
7115 #-----------------------------------------------------------------------------
7116 # Additional options for some specific targets
7118 case "$aros_target_variant" in
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7121 $as_echo_n "checking XCode path... " >&6; }
7123 # Check whether --with-xcode was given.
7124 if test "${with_xcode+set}" = set; then :
7125 withval
=$with_xcode; aros_xcode_path
="$withval"
7127 aros_xcode_path
="/Developer"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7131 $as_echo "$aros_xcode_path" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7134 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7136 # Check whether --with-ios-version was given.
7137 if test "${with_ios_version+set}" = set; then :
7138 withval
=$with_ios_version; aros_ios_version
="$withval"
7140 aros_ios_version
="3.0"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7144 $as_echo "$aros_ios_version" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7147 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7149 # Check whether --with-ios-sdk was given.
7150 if test "${with_ios_sdk+set}" = set; then :
7151 withval
=$with_ios_sdk; aros_ios_sdk
="$withval"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7157 $as_echo "$aros_ios_sdk" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7163 $as_echo_n "checking Android SDK path... " >&6; }
7165 # Check whether --with-sdk was given.
7166 if test "${with_sdk+set}" = set; then :
7167 withval
=$with_sdk; aros_android_sdk
="$withval"
7169 aros_android_sdk
=$default_android_sdk
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7173 $as_echo "$aros_android_sdk" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7176 $as_echo_n "checking Android NDK path... " >&6; }
7178 # Check whether --with-ndk was given.
7179 if test "${with_ndk+set}" = set; then :
7180 withval
=$with_ndk; aros_android_ndk
="$withval"
7182 aros_android_ndk
="$default_android_ndk"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7186 $as_echo "$aros_android_ndk" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7189 $as_echo_n "checking what Android version to use... " >&6; }
7191 # Check whether --with-android-version was given.
7192 if test "${with_android_version+set}" = set; then :
7193 withval
=$with_android_version; aros_android_version
="$withval"
7195 aros_android_version
="2.2"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7199 $as_echo "$aros_android_version" >&6; }
7201 export PATH
="$aros_android_sdk/tools:$PATH"
7202 # Extract the first word of "$android_tool", so it can be a program name with args.
7203 set dummy
$android_tool; ac_word
=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_path_android_tool+:} false
; then :
7207 $as_echo_n "(cached) " >&6
7209 case $android_tool in
7211 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir
=.
7219 for ac_exec_ext
in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 android_tool
=$ac_cv_path_android_tool
7233 if test -n "$android_tool"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7235 $as_echo "$android_tool" >&6; }
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7242 if test "$android_tool" = ""; then
7243 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7246 if test $host_os = "mingw32"; then
7247 android_tool
="cmd //c $android_tool"
7253 #-----------------------------------------------------------------------------
7254 # This is the target configuration switch.
7255 case "$target_os" in
7257 aros_target_arch
="linux"
7258 aros_target_family
="unix"
7259 case "$target_cpu" in
7261 aros_target_cpu
="m68k"
7262 aros_object_format
="m68kelf"
7263 aros_flavour
="emulcompat"
7264 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7265 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7266 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7267 gcc_target_cpu
="mc68000"
7270 aros_target_cpu
="i386"
7271 aros_object_format
="elf_i386"
7272 aros_flavour
="emulation"
7273 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7274 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7275 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7276 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7277 aros_config_ldflags
="-m32 -march=i486"
7278 aros_kernel_ldflags
="-melf_i386"
7279 aros_default_wbdepth
=8
7280 gcc_target_cpu
="i386"
7281 pci_hidd_target
="hidd-pci-linux"
7284 aros_target_cpu
="x86_64"
7285 aros_object_format
="elf_x86_64"
7286 aros_flavour
="emulation"
7287 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7288 aros_config_cflags
="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7289 aros_default_wbdepth
=8
7290 pci_hidd_target
="hidd-pci-linux"
7293 aros_target_cpu
="ppc"
7294 aros_object_format
="elf32ppc"
7295 aros_flavour
="emulation"
7296 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7297 aros_default_wbdepth
=8
7298 gcc_target_cpu
="ppc"
7301 # Same as powerpc, but I need this for the nightly build to work again.
7302 # Actually, the nightly should be made working with powerpc target.
7303 # That just was too much work for the moment, another week or two.
7305 aros_target_cpu
="ppc"
7306 aros_object_format
="elf32ppc"
7307 aros_flavour
="emulation"
7308 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7309 aros_default_wbdepth
=8
7310 gcc_target_cpu
="ppc"
7313 aros_target_cpu
="arm"
7314 aros_object_format
="armelf_linux_eabi"
7315 aros_flavour
="emulation"
7316 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7317 gcc_target_cpu
="arm"
7318 aros_config_cflags
="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7319 aros_config_aflags
="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7320 aros_arch_libs
="-laeabi"
7323 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7326 case "$aros_target_variant" in
7328 case "$aros_android_version" in
7330 aros_android_level
=android-8
7333 aros_android_level
=android-9
7336 aros_default_wbwidth
=320
7337 aros_default_wbheight
=480
7339 if test "$aros_android_ndk" = ""; then
7340 aros_kernel_cflags
="-mandroid"
7341 aros_kernel_ldflags
="-mandroid"
7344 export PATH
="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7345 aros_android_ndk
="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7346 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
7347 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
7348 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7349 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
7352 target_tool_prefix
="arm-linux-androideabi-"
7358 aros_target_arch
="pc"
7359 aros_shared_default
="no"
7360 target_bootloader
="grub2"
7361 case "$target_cpu" in
7363 aros_target_cpu
="i386"
7366 if test "$aros_object_format" = "" ; then
7367 aros_object_format
="elf_i386"
7369 aros_flavour
="standalone"
7370 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7371 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7372 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7373 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7374 aros_config_ldflags
="-m32 -march=i486"
7375 aros_kernel_ldflags
="-melf_i386"
7376 aros_default_wbwidth
=640
7377 aros_default_wbheight
=480
7378 gcc_target_cpu
="i386"
7381 aros_target_cpu
="x86_64"
7383 if test "$aros_object_format" = "" ; then
7384 aros_object_format
="elf_x86_64"
7386 aros_flavour
="standalone"
7387 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7388 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7389 aros_kernel_ldflags
=""
7390 aros_default_wbwidth
=640
7391 aros_default_wbheight
=480
7394 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7400 aros_target_arch
="prep"
7401 aros_shared_default
="no"
7402 aros_target_cpu
="ppc"
7403 aros_object_format
="elf32ppc"
7404 aros_flavour
="ppcnative"
7405 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7406 aros_kernel_ldflags
=""
7407 aros_default_wbwidth
=640
7408 aros_default_wbheight
=480
7409 gcc_target_cpu
="ppc"
7413 aros_target_arch
="freebsd"
7414 aros_target_family
="unix"
7415 aros_target_cpu
="i386"
7416 aros_flavour
="emulation"
7417 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7418 gcc_target_cpu
="i386"
7420 aros_target_strip_flags
="-x"
7424 aros_target_arch
="darwin"
7425 aros_target_family
="unix"
7426 aros_flavour
="emulation"
7427 case "$target_cpu" in
7429 aros_ios_platform
="iPhoneSimulator"
7430 aros_target_cpu
="i386"
7431 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7432 aros_kernel_ldflags
=""
7433 aros_macosx_version
="10.4"
7434 aros_default_wbdepth
=8
7435 gcc_target_cpu
="i386"
7436 aros_object_format
="elf_i386"
7437 aros_target_strip_flags
="-x"
7438 target_tool_prefix
="i686-apple-darwin10-"
7439 target_tool_flags
="-m32"
7442 aros_target_cpu
="x86_64"
7443 aros_object_format
="elf_x86_64"
7444 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7445 aros_macosx_version
="10.6"
7446 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7447 aros_kernel_cflags
="-m64"
7448 aros_kernel_ldflags
="-m64"
7449 aros_target_cflags
="-mcmodel=large"
7450 aros_default_wbdepth
=8
7452 target_tool_prefix
="i686-apple-darwin10-"
7455 aros_target_cpu
="ppc"
7456 aros_object_format
="elf32ppc"
7457 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7458 aros_kernel_ldflags
=""
7459 aros_macosx_version
="10.0"
7460 aros_default_wbdepth
=8
7461 gcc_target_cpu
="ppc"
7462 aros_kernel_ld
="ld -arch ppc"
7463 target_tool_prefix
="powerpc-apple-darwin10-"
7466 aros_ios_platform
="iPhoneOS"
7467 aros_target_cpu
="arm"
7468 aros_object_format
="armelf_linux_eabi"
7469 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7470 aros_config_cflags
="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7471 aros_config_aflags
="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7472 aros_arch_libs
="-laeabi"
7473 aros_default_wbdepth
=8
7474 gcc_target_cpu
="arm"
7475 aros_kernel_ld
="ld -arch arm"
7476 target_tool_prefix
="arm-apple-darwin10-"
7477 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7480 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7483 case "$aros_target_variant" in
7485 aros_default_wbwidth
=320
7486 aros_default_wbheight
=480
7487 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7488 target_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
7489 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
7491 # This is here because it may depend on iOS or SDK version
7492 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7493 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7494 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7497 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7498 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7504 aros_target_arch
="dragonfly"
7505 aros_target_family
="unix"
7506 aros_flavour
="emulation"
7507 case "$target_cpu" in
7509 aros_target_cpu
="i386"
7510 aros_object_format
="elf_i386"
7511 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7514 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7515 aros_target_cpu
="x86_64"
7516 aros_object_format
="elf_x86_64"
7517 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7520 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7526 aros_target_arch
="netbsd"
7527 aros_target_family
="unix"
7528 case "$target_cpu" in
7530 aros_target_cpu
="m68k"
7531 aros_object_format
="m68kelf"
7532 aros_flavour
="emulcompat"
7533 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7534 gcc_target_cpu
="mc68000"
7537 aros_target_cpu
="i386"
7538 aros_object_format
="elf_i386"
7539 aros_flavour
="emulation"
7540 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7541 aros_default_wbdepth
=8
7542 gcc_target_cpu
="i386"
7545 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7548 aros_target_genmap
="-Wl,-M -Xlinker >"
7549 aros_flavour
="emulation"
7550 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7554 aros_target_arch
="openbsd"
7555 aros_target_family
="unix"
7556 case "$target_cpu" in
7558 aros_target_cpu
="i386"
7559 aros_object_format
="elf_i386"
7560 aros_flavour
="emulation"
7561 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7562 gcc_target_cpu
="i386"
7565 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7568 aros_target_genmap
="-Wl,-M -Xlinker >"
7569 aros_target_nm_flags
="-u"
7570 aros_flavour
="emulation"
7574 aros_target_arch
="solaris"
7575 aros_target_family
="unix"
7576 case "$target_cpu" in
7578 aros_target_cpu
="i386"
7579 aros_object_format
="elf_i386"
7580 aros_flavour
="emulation"
7581 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7582 aros_default_wbdepth
=8
7583 gcc_target_cpu
="i386"
7586 aros_target_cpu
="sparc"
7587 aros_object_format
="elf_sparc"
7588 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7589 gcc_target_cpu
="sparc"
7592 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7595 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
7596 aros_flavour
="emulation"
7600 aros_target_arch
="morphos"
7601 aros_shared_default
="no"
7602 aros_target_cpu
="ppc"
7603 aros_object_format
="elf_ppc"
7604 aros_flavour
="nativecompat"
7605 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7606 gcc_target_cpu
="ppc"
7610 aros_target_arch
="sam440"
7611 aros_shared_default
="no"
7612 aros_target_cpu
="ppc"
7613 aros_object_format
="elf32ppc"
7614 aros_flavour
="ppcnative"
7615 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7616 aros_kernel_ldflags
=""
7617 aros_default_wbwidth
=1024
7618 aros_default_wbheight
=768
7619 aros_default_wbdepth
=24
7620 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7621 gcc_target_cpu
="powerpc"
7625 aros_target_arch
="efika"
7626 aros_shared_default
="no"
7627 aros_target_cpu
="arm"
7628 aros_object_format
="armelf_linux_eabi"
7629 aros_flavour
="standalone"
7630 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7631 aros_kernel_ldflags
=""
7632 aros_default_wbwidth
=1024
7633 aros_default_wbheight
=600
7634 aros_arch_libs
="-laeabi"
7635 aros_config_cflags
="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7636 aros_config_aflags
="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7640 aros_target_arch
="chrp"
7641 aros_shared_default
="no"
7642 aros_target_cpu
="ppc"
7643 aros_object_format
="elf32ppc"
7644 aros_flavour
="ppcnative"
7645 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7646 aros_kernel_ldflags
=""
7647 aros_default_wbwidth
=640
7648 aros_default_wbheight
=480
7649 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7650 gcc_target_cpu
="powerpc"
7651 case "$aros_target_variant" in
7653 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7659 aros_target_arch
="amiga"
7660 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7661 aros_shared_default
="no"
7663 case "$target_cpu" in
7666 aros_target_cpu
="m68k"
7667 aros_object_format
="m68kelf"
7668 aros_flavour
="standcompat"
7669 gcc_target_cpu
="m68000"
7670 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7671 aros_config_aflags
="$aros_config_aflags -${gcc_target_cpu}"
7672 aros_paranoia_cflags
="$aros_paranoia_cflags -Wno-volatile-register-var"
7673 target_tool_prefix
="m68k-elf-"
7674 # Needed to get the correct multilib
7675 aros_config_ldflags
="-${gcc_target_cpu}"
7676 aros_shared_ldflags
="-${gcc_target_cpu}"
7677 aros_kernel_ldflags
="-${gcc_target_cpu}"
7678 aros_target_nostdlib_ldflags
="-${gcc_target_cpu}"
7679 aros_target_strip_flags
="-R.comment --strip-debug"
7680 aros_default_wbwidth
=640
7681 aros_default_wbheight
=256
7682 aros_default_wbdepth
=2
7686 aros_flavour
="native"
7687 gcc_target_cpu
="ppc"
7690 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7696 aros_target_arch
="mingw32"
7697 aros_shared_default
="no"
7698 aros_flavour
="emulation"
7699 aros_shared_cflags
=""
7702 case "$target_cpu" in
7704 aros_target_cpu
="i386"
7705 aros_object_format
="elf_i386"
7706 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7707 aros_default_wbdepth
=8
7708 gcc_target_cpu
="i386"
7710 aros_target_as
="i386-aros-as"
7711 aros_target_ar
="i386-aros-ar"
7712 aros_target_ranlib
="i386-aros-ranlib"
7713 aros_target_nm
="i386-aros-nm"
7714 aros_target_strip
="i386-aros-strip"
7715 aros_target_objcopy
="i386-aros-objcopy"
7716 aros_target_objdump
="i386-aros-objdump"
7718 target_tool_prefix
="i386-mingw32-"
7721 aros_target_cpu
="x86_64"
7722 aros_object_format
="elf_x86_64"
7723 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7724 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7725 aros_default_wbdepth
=8
7726 target_tool_prefix
="x86_64-w64-mingw32-"
7729 aros_target_cpu
="arm"
7730 aros_object_format
="armelf_linux_eabi"
7731 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7732 aros_arch_libs
="-laeabi"
7733 aros_default_wbdepth
=8
7734 gcc_target_cpu
="arm"
7735 target_tool_prefix
="arm-mingw32ce-"
7736 aros_default_wbwidth
=160
7737 aros_default_wbheight
=160
7740 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7743 if test $host_os = "cygwin"; then
7744 aros_kernel_cflags
="-mno-cygwin"
7748 aros_target_arch
="pp"
7749 aros_shared_default
="no"
7750 case "$target_cpu" in
7752 aros_target_cpu
="m68k"
7753 aros_object_format
="m68kelf"
7754 aros_flavour
="palmnative"
7755 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7756 aros_default_wbwidth
=160
7757 aros_default_wbheight
=160
7758 aros_default_wbdepth
=1
7759 aros_target_ar_flags
="cru"
7760 aros_compiler_libs
="-lgcc1"
7761 aros_shared_default
=no
7762 aros_shared_cflags
="-fpic"
7763 aros_shared_aflags
=""
7764 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7765 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7766 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7767 aros_debug_aflags
=""
7768 aros_debug_ldflags
="$aros_symbols_debug"
7769 aros_mungwall_debug
="0"
7770 aros_modules_debug
="0"
7771 gcc_target_cpu
="mc68000"
7772 ignore_undefined_symbols
="-ius"
7775 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7781 aros_target_arch
="mac"
7782 aros_shared_default
="no"
7783 case "$target_cpu" in
7785 aros_target_cpu
="m68k"
7786 aros_object_format
="m68kelf"
7787 aros_flavour
="mac68knative"
7788 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7789 aros_default_wbwidth
=512
7790 aros_default_wbheight
=384
7791 aros_default_wbdepth
=8
7792 aros_target_ar_flags
="cru"
7793 aros_compiler_libs
="-lgcc1"
7794 aros_shared_default
=no
7795 aros_shared_cflags
="-fpic"
7796 aros_shared_aflags
=""
7797 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7798 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7799 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000"
7800 aros_debug_aflags
=""
7801 aros_debug_ldflags
="$aros_symbols_debug"
7802 aros_mungwall_debug
="0"
7803 aros_modules_debug
="0"
7804 gcc_target_cpu
="mc68000"
7805 ignore_undefined_symbols
="-ius"
7808 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7814 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
7818 #-----------------------------------------------------------------------------
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7820 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7822 # Check whether --with-crosstools was given.
7823 if test "${with_crosstools+set}" = set; then :
7824 withval
=$with_crosstools; with_crosstools
=$withval
7826 with_crosstools
="default"
7829 if test "$with_crosstools" = "default"; then
7830 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7832 AROS_CROSSTOOLSDIR
="$with_crosstools"
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7835 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7837 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7839 PATH
=$AROS_CROSSTOOLSDIR:$PATH
7840 target_tool_prefix
=${target_cpu}-aros-
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7844 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7846 # Check whether --with-aros-gcc was given.
7847 if test "${with_aros_gcc+set}" = set; then :
7848 withval
=$with_aros_gcc; aros_gcc_version
="$withval"
7850 aros_gcc_version
="$use_aros_gcc"
7853 case "$aros_gcc_version" in
7855 aros_gcc_version
="default"
7858 aros_gcc_version
="none"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7862 $as_echo "$aros_gcc_version" >&6; }
7864 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7865 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7866 aros_target_cc
="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7867 aros_target_cxx
="$aros_target_cpu-aros-g++-$aros_gcc_version"
7869 aros_target_cc
="$aros_target_cpu-aros-gcc"
7870 aros_target_cxx
="$aros_target_cpu-aros-g++"
7873 aros_target_ld
="$aros_target_cpu-aros-ld"
7874 aros_target_as
="$aros_target_cpu-aros-as"
7875 aros_target_ar
="$aros_target_cpu-aros-ar"
7876 aros_target_ranlib
="$aros_target_cpu-aros-ranlib"
7877 aros_target_nm
="$aros_target_cpu-aros-nm"
7878 aros_target_strip
="$aros_target_cpu-aros-strip"
7879 aros_target_objcopy
="$aros_target_cpu-aros-objcopy"
7880 aros_target_objdump
="$aros_target_cpu-aros-objdump"
7883 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7884 # Since we override specs, we may need to put these defines there
7885 if test "$gcc_target_cpu" != ""; then
7886 gcc_target_cpu
="-D__${gcc_target_cpu}__"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7890 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7892 # Check whether --with-portssources was given.
7893 if test "${with_portssources+set}" = set; then :
7894 withval
=$with_portssources; with_portssrcdir
=$withval
7896 with_portssrcdir
="default"
7899 if test "$with_portssrcdir" = "default"; then
7900 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
7902 AROS_PORTSSRCDIR
="$with_portssrcdir"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7905 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7908 $as_echo_n "checking which bootloader to use... " >&6; }
7910 # Check whether --with-bootloader was given.
7911 if test "${with_bootloader+set}" = set; then :
7912 withval
=$with_bootloader; target_bootloader
=$withval
7914 target_bootloader
=$target_bootloader
7917 if test "$target_bootloader" = "none"; then
7918 aros_target_bootloader
=""
7920 aros_target_bootloader
="$target_bootloader"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7923 $as_echo "$target_bootloader" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7926 $as_echo_n "checking which icon-set to use... " >&6; }
7928 # Check whether --with-iconset was given.
7929 if test "${with_iconset+set}" = set; then :
7930 withval
=$with_iconset; target_iconset
=$withval
7932 target_iconset
="default"
7935 if test "$target_iconset" = "default"; then
7936 aros_target_iconset
="Gorilla"
7937 target_iconset
="default (Gorilla)"
7939 aros_target_iconset
="$target_iconset"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7942 $as_echo "$target_iconset" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7945 $as_echo_n "checking which GUI Theme to use... " >&6; }
7947 # Check whether --with-theme was given.
7948 if test "${with_theme+set}" = set; then :
7949 withval
=$with_theme; target_guitheme
=$withval
7951 target_guitheme
="default"
7954 if test "$target_guitheme" = "default"; then
7955 aros_target_guitheme
="Ice"
7957 aros_target_guitheme
="$target_guitheme"
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7960 $as_echo "$aros_target_guitheme" >&6; }
7962 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7965 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7969 if test "$aros_host_cpu" == "x86_64" ; then
7970 if test "$aros_target_cpu" == "i386" ; then
7971 if test "$aros_target_arch" != "mingw32"; then
7977 if test "$aros_host_arch" == "darwin" ; then
7978 if test "$aros_target_arch" != "darwin" ; then
7983 # I want to have this information in configure output, although it might be
7984 # misleading, e.g. for darwin hosted you cannot compile target code without a
7985 # cross compiler, but here it says no.
7986 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
7988 # Set prefix for target compiler etc. if we're cross-compiling
7989 # (should possibly be earlier but needs to be after AC_PROG_CC)
7990 if test "$cross_compiling" = "yes" ; then
7991 CC
=${target_tool_prefix}gcc
7992 CPP
=${target_tool_prefix}cpp
7993 if test "$target_tool_version" != "default"; then
7994 CC
="$CC-$target_tool_version"
7995 CPP
="$CC-$target_tool_version"
7997 if test "$crosstools" != "yes" ; then
7998 # Extract the first word of "$CC", so it can be a program name with args.
7999 set dummy
$CC; ac_word
=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_path_CC+:} false
; then :
8003 $as_echo_n "(cached) " >&6
8007 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
8010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8014 test -z "$as_dir" && as_dir
=.
8015 for ac_exec_ext
in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 if test -n "$CC"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8031 $as_echo "$CC" >&6; }
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8038 if test "$CC" = ""; then
8039 as_fn_error $?
"gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8042 CC
=$AROS_CROSSTOOLSDIR/$CC
8045 CC
="$CC $target_tool_flags"
8047 #-----------------------------------------------------------------------------
8049 # Disable pointer-signedness warnings if the compiler recognises the option
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8052 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8053 save_cflags
="$CFLAGS"
8054 if test "$crosstools" != "yes" ; then
8055 CFLAGS
="$CFLAGS -Wno-pointer-sign"
8056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8067 if ac_fn_c_try_compile
"$LINENO"; then :
8068 use_no_sign_warning
="yes"
8070 use_no_sign_warning
="no"
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 # we do know it is supported for the smallest version of gcc we are going to build
8075 # we assume it's also supported by later versions
8076 use_no_sign_warning
=yes
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8079 $as_echo "$use_no_sign_warning" >&6; }
8080 if test "x-$use_no_sign_warning" = "x-yes" ; then
8081 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
8083 CFLAGS
="$save_cflags"
8085 #-----------------------------------------------------------------------------
8087 # Find all the tools we need to compile. This could be cross-compiling
8088 # though! If that is the case we use the GNU form of the target and
8089 # simply add this to the front of the binary name. This is rather simple,
8090 # but it should work under most circumstances.
8092 # The default tools are to use the same as the host, but only if the
8093 # host and target CPU are the same. With GCC this is normally enough.
8097 aros_shared_ld
="$aros_host_ld"
8099 aros_target_mkdep
="$aros_host_mkdep"
8100 aros_target_incl_def
="$aros_host_incl"
8102 aros_kernel_cc
="$CC"
8104 # The default tools executables to be linked to.
8105 if test "$rescomp" != ""; then
8106 if test "$cross_compiling" = "yes" ; then
8107 rescomp
=${target_tool_prefix}${rescomp}
8109 # Extract the first word of "$rescomp", so it can be a program name with args.
8110 set dummy
$rescomp; ac_word
=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
8114 $as_echo_n "(cached) " >&6
8116 case $aros_kernel_rescomp in
8118 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
8121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir
=.
8126 for ac_exec_ext
in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
8140 if test -n "$aros_kernel_rescomp"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8142 $as_echo "$aros_kernel_rescomp" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8149 if test "$aros_kernel_rescomp" = ""; then
8150 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8154 if test "$crosstools" != "yes"; then
8156 if test "$aros_kernel_ld" = ""; then
8157 if test "$cross_compiling" = "yes" ; then
8158 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8159 set dummy
${target_tool_prefix}ld
; ac_word
=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
8163 $as_echo_n "(cached) " >&6
8165 case $aros_kernel_ld in
8167 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir
=.
8175 for ac_exec_ext
in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8189 if test -n "$aros_kernel_ld"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8191 $as_echo "$aros_kernel_ld" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8199 if test "$GCC" = "yes"; then
8200 aros_gcc_ld
=`$CC -print-prog-name=ld`
8201 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8202 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
8206 $as_echo_n "(cached) " >&6
8208 case $aros_kernel_ld in
8210 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8214 for as_dir
in `dirname $aros_gcc_ld`
8217 test -z "$as_dir" && as_dir
=.
8218 for ac_exec_ext
in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8232 if test -n "$aros_kernel_ld"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8234 $as_echo "$aros_kernel_ld" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 if test "$aros_kernel_ld" = ""; then
8243 # Extract the first word of "ld", so it can be a program name with args.
8244 set dummy ld
; ac_word
=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
8248 $as_echo_n "(cached) " >&6
8250 case $aros_kernel_ld in
8252 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir
=.
8260 for ac_exec_ext
in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8274 if test -n "$aros_kernel_ld"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8276 $as_echo "$aros_kernel_ld" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8286 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8287 set dummy
$aros_kernel_ld; ac_word
=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
8291 $as_echo_n "(cached) " >&6
8293 case $aros_kernel_ld in
8295 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8302 test -z "$as_dir" && as_dir
=.
8303 for ac_exec_ext
in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8305 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8317 if test -n "$aros_kernel_ld"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8319 $as_echo "$aros_kernel_ld" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8328 if test "$aros_kernel_ld" = ""; then
8329 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8332 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8333 target_tool_prefix
=${target_cpu}-elf-
8334 if test "$aros_target_cc" == ""; then
8335 aros_target_cc
="${target_tool_prefix}gcc"
8337 if test "$aros_target_ld" == ""; then
8338 aros_target_ld
="${target_tool_prefix}ld"
8342 if test "$aros_target_as" = ""; then
8343 if test "$cross_compiling" = "yes" ; then
8344 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8345 set dummy
${target_tool_prefix}as
; ac_word
=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
8349 $as_echo_n "(cached) " >&6
8351 case $aros_target_as_ln in
8353 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir
=.
8361 for ac_exec_ext
in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8375 if test -n "$aros_target_as_ln"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8377 $as_echo "$aros_target_as_ln" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8385 if test "$GCC" = "yes"; then
8386 aros_gcc_as
=`$CC -print-prog-name=as`
8387 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8388 set dummy
`basename $aros_gcc_as`; ac_word
=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
8392 $as_echo_n "(cached) " >&6
8394 case $aros_target_as_ln in
8396 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8400 for as_dir
in `dirname $aros_gcc_as`
8403 test -z "$as_dir" && as_dir
=.
8404 for ac_exec_ext
in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8418 if test -n "$aros_target_as_ln"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8420 $as_echo "$aros_target_as_ln" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8428 if test "$aros_target_as_ln" = ""; then
8429 # Extract the first word of "as", so it can be a program name with args.
8430 set dummy as
; ac_word
=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
8434 $as_echo_n "(cached) " >&6
8436 case $aros_target_as_ln in
8438 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir
=.
8446 for ac_exec_ext
in '' $ac_executable_extensions; do
8447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8460 if test -n "$aros_target_as_ln"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8462 $as_echo "$aros_target_as_ln" >&6; }
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8472 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8473 set dummy
$aros_target_as; ac_word
=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_path_aros_target_as_ln+:} false
; then :
8477 $as_echo_n "(cached) " >&6
8479 case $aros_target_as_ln in
8481 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir
=.
8489 for ac_exec_ext
in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8503 if test -n "$aros_target_as_ln"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8505 $as_echo "$aros_target_as_ln" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8514 if test "$aros_target_as_ln" = ""; then
8515 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
8518 if test "$aros_target_ar" = ""; then
8519 if test "$cross_compiling" = "yes" ; then
8520 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8521 set dummy
${target_tool_prefix}ar; ac_word
=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
8525 $as_echo_n "(cached) " >&6
8527 case $aros_target_ar_ln in
8529 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8536 test -z "$as_dir" && as_dir
=.
8537 for ac_exec_ext
in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8551 if test -n "$aros_target_ar_ln"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8553 $as_echo "$aros_target_ar_ln" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8561 if test "$GCC" = "yes"; then
8562 aros_gcc_ar
=`$CC -print-prog-name=ar`
8563 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8564 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
8568 $as_echo_n "(cached) " >&6
8570 case $aros_target_ar_ln in
8572 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8576 for as_dir
in `dirname $aros_gcc_ar`
8579 test -z "$as_dir" && as_dir
=.
8580 for ac_exec_ext
in '' $ac_executable_extensions; do
8581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8582 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8594 if test -n "$aros_target_ar_ln"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8596 $as_echo "$aros_target_ar_ln" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8604 if test "$aros_target_ar_ln" = ""; then
8605 # Extract the first word of "ar", so it can be a program name with args.
8606 set dummy
ar; ac_word
=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
8610 $as_echo_n "(cached) " >&6
8612 case $aros_target_ar_ln in
8614 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8621 test -z "$as_dir" && as_dir
=.
8622 for ac_exec_ext
in '' $ac_executable_extensions; do
8623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8624 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8636 if test -n "$aros_target_ar_ln"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8638 $as_echo "$aros_target_ar_ln" >&6; }
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8648 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8649 set dummy
$aros_target_ar; ac_word
=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_path_aros_target_ar_ln+:} false
; then :
8653 $as_echo_n "(cached) " >&6
8655 case $aros_target_ar_ln in
8657 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8664 test -z "$as_dir" && as_dir
=.
8665 for ac_exec_ext
in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8679 if test -n "$aros_target_ar_ln"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8681 $as_echo "$aros_target_ar_ln" >&6; }
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8690 if test "$aros_target_ar_ln" = ""; then
8691 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8694 if test "$aros_target_nm" = ""; then
8695 if test "$cross_compiling" = "yes" ; then
8696 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8697 set dummy
${target_tool_prefix}nm
; ac_word
=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
8701 $as_echo_n "(cached) " >&6
8703 case $aros_target_nm_ln in
8705 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8712 test -z "$as_dir" && as_dir
=.
8713 for ac_exec_ext
in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8727 if test -n "$aros_target_nm_ln"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8729 $as_echo "$aros_target_nm_ln" >&6; }
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8737 if test "$GCC" = "yes"; then
8738 aros_gcc_nm
=`$CC -print-prog-name=nm`
8739 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8740 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
8744 $as_echo_n "(cached) " >&6
8746 case $aros_target_nm_ln in
8748 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8752 for as_dir
in `dirname $aros_gcc_nm`
8755 test -z "$as_dir" && as_dir
=.
8756 for ac_exec_ext
in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8770 if test -n "$aros_target_nm_ln"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8772 $as_echo "$aros_target_nm_ln" >&6; }
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8780 if test "$aros_target_nm_ln" = ""; then
8781 # Extract the first word of "nm", so it can be a program name with args.
8782 set dummy nm
; ac_word
=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
8786 $as_echo_n "(cached) " >&6
8788 case $aros_target_nm_ln in
8790 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8797 test -z "$as_dir" && as_dir
=.
8798 for ac_exec_ext
in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8812 if test -n "$aros_target_nm_ln"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8814 $as_echo "$aros_target_nm_ln" >&6; }
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8824 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8825 set dummy
$aros_target_nm; ac_word
=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_path_aros_target_nm_ln+:} false
; then :
8829 $as_echo_n "(cached) " >&6
8831 case $aros_target_nm_ln in
8833 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8840 test -z "$as_dir" && as_dir
=.
8841 for ac_exec_ext
in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8855 if test -n "$aros_target_nm_ln"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8857 $as_echo "$aros_target_nm_ln" >&6; }
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8866 if test "$aros_target_nm_ln" = ""; then
8867 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8870 if test "$aros_target_objcopy" = ""; then
8871 if test "$cross_compiling" = "yes" ; then
8872 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8873 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
8877 $as_echo_n "(cached) " >&6
8879 case $aros_target_objcopy_ln in
8881 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8888 test -z "$as_dir" && as_dir
=.
8889 for ac_exec_ext
in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8903 if test -n "$aros_target_objcopy_ln"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8905 $as_echo "$aros_target_objcopy_ln" >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8913 if test "$GCC" = "yes"; then
8914 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
8915 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8916 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
8920 $as_echo_n "(cached) " >&6
8922 case $aros_target_objcopy_ln in
8924 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8928 for as_dir
in `dirname $aros_gcc_objcopy`
8931 test -z "$as_dir" && as_dir
=.
8932 for ac_exec_ext
in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8946 if test -n "$aros_target_objcopy_ln"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8948 $as_echo "$aros_target_objcopy_ln" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8956 if test "$aros_target_objcopy_ln" = ""; then
8957 # Extract the first word of "objcopy", so it can be a program name with args.
8958 set dummy objcopy
; ac_word
=$2
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8960 $as_echo_n "checking for $ac_word... " >&6; }
8961 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
8962 $as_echo_n "(cached) " >&6
8964 case $aros_target_objcopy_ln in
8966 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8973 test -z "$as_dir" && as_dir
=.
8974 for ac_exec_ext
in '' $ac_executable_extensions; do
8975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8976 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8988 if test -n "$aros_target_objcopy_ln"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8990 $as_echo "$aros_target_objcopy_ln" >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
9000 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9001 set dummy
$aros_target_objcopy; ac_word
=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_path_aros_target_objcopy_ln+:} false
; then :
9005 $as_echo_n "(cached) " >&6
9007 case $aros_target_objcopy_ln in
9009 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
9012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9016 test -z "$as_dir" && as_dir
=.
9017 for ac_exec_ext
in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
9031 if test -n "$aros_target_objcopy_ln"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9033 $as_echo "$aros_target_objcopy_ln" >&6; }
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9042 if test "$aros_target_objcopy_ln" = ""; then
9043 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9046 if test "$aros_target_objdump" = ""; then
9047 if test "$cross_compiling" = "yes" ; then
9048 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9049 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9053 $as_echo_n "(cached) " >&6
9055 case $aros_target_objdump_ln in
9057 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9064 test -z "$as_dir" && as_dir
=.
9065 for ac_exec_ext
in '' $ac_executable_extensions; do
9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9067 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9079 if test -n "$aros_target_objdump_ln"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9081 $as_echo "$aros_target_objdump_ln" >&6; }
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9089 if test "$GCC" = "yes"; then
9090 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
9091 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9092 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9096 $as_echo_n "(cached) " >&6
9098 case $aros_target_objdump_ln in
9100 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9104 for as_dir
in `dirname $aros_gcc_objdump`
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_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9122 if test -n "$aros_target_objdump_ln"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9124 $as_echo "$aros_target_objdump_ln" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9132 if test "$aros_target_objdump_ln" = ""; then
9133 # Extract the first word of "objdump", so it can be a program name with args.
9134 set dummy objdump
; ac_word
=$2
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9138 $as_echo_n "(cached) " >&6
9140 case $aros_target_objdump_ln in
9142 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9149 test -z "$as_dir" && as_dir
=.
9150 for ac_exec_ext
in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9164 if test -n "$aros_target_objdump_ln"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9166 $as_echo "$aros_target_objdump_ln" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9176 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9177 set dummy
$aros_target_objdump; ac_word
=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_path_aros_target_objdump_ln+:} false
; then :
9181 $as_echo_n "(cached) " >&6
9183 case $aros_target_objdump_ln in
9185 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9192 test -z "$as_dir" && as_dir
=.
9193 for ac_exec_ext
in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9207 if test -n "$aros_target_objdump_ln"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9209 $as_echo "$aros_target_objdump_ln" >&6; }
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9218 if test "$aros_target_objdump_ln" = ""; then
9219 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9222 if test "$aros_target_ranlib" = ""; then
9223 if test "$cross_compiling" = "yes" ; then
9224 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9225 set dummy
${target_tool_prefix}ranlib
; ac_word
=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9229 $as_echo_n "(cached) " >&6
9231 case $aros_target_ranlib_ln in
9233 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir
=.
9241 for ac_exec_ext
in '' $ac_executable_extensions; do
9242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9243 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9255 if test -n "$aros_target_ranlib_ln"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9257 $as_echo "$aros_target_ranlib_ln" >&6; }
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9265 if test "$GCC" = "yes"; then
9266 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
9267 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9268 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9272 $as_echo_n "(cached) " >&6
9274 case $aros_target_ranlib_ln in
9276 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9280 for as_dir
in `dirname $aros_gcc_ranlib`
9283 test -z "$as_dir" && as_dir
=.
9284 for ac_exec_ext
in '' $ac_executable_extensions; do
9285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9286 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9298 if test -n "$aros_target_ranlib_ln"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9300 $as_echo "$aros_target_ranlib_ln" >&6; }
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9308 if test "$aros_target_ranlib_ln" = ""; then
9309 # Extract the first word of "ranlib", so it can be a program name with args.
9310 set dummy ranlib
; ac_word
=$2
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9312 $as_echo_n "checking for $ac_word... " >&6; }
9313 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9314 $as_echo_n "(cached) " >&6
9316 case $aros_target_ranlib_ln in
9318 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9325 test -z "$as_dir" && as_dir
=.
9326 for ac_exec_ext
in '' $ac_executable_extensions; do
9327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9328 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9340 if test -n "$aros_target_ranlib_ln"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9342 $as_echo "$aros_target_ranlib_ln" >&6; }
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9352 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9353 set dummy
$aros_target_ranlib; ac_word
=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if ${ac_cv_path_aros_target_ranlib_ln+:} false
; then :
9357 $as_echo_n "(cached) " >&6
9359 case $aros_target_ranlib_ln in
9361 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9368 test -z "$as_dir" && as_dir
=.
9369 for ac_exec_ext
in '' $ac_executable_extensions; do
9370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9383 if test -n "$aros_target_ranlib_ln"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9385 $as_echo "$aros_target_ranlib_ln" >&6; }
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9394 if test "$aros_target_ranlib_ln" = ""; then
9395 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9398 if test "$aros_target_strip" = ""; then
9399 if test "$cross_compiling" = "yes" ; then
9400 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9401 set dummy
${target_tool_prefix}strip
; ac_word
=$2
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403 $as_echo_n "checking for $ac_word... " >&6; }
9404 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
9405 $as_echo_n "(cached) " >&6
9407 case $aros_target_strip_ln in
9409 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9416 test -z "$as_dir" && as_dir
=.
9417 for ac_exec_ext
in '' $ac_executable_extensions; do
9418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9419 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9431 if test -n "$aros_target_strip_ln"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9433 $as_echo "$aros_target_strip_ln" >&6; }
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9441 if test "$GCC" = "yes"; then
9442 aros_gcc_strip
=`$CC -print-prog-name=strip`
9443 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9444 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
9448 $as_echo_n "(cached) " >&6
9450 case $aros_target_strip_ln in
9452 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9456 for as_dir
in `dirname $aros_gcc_strip`
9459 test -z "$as_dir" && as_dir
=.
9460 for ac_exec_ext
in '' $ac_executable_extensions; do
9461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9462 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9474 if test -n "$aros_target_strip_ln"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9476 $as_echo "$aros_target_strip_ln" >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9484 if test "$aros_target_strip_ln" = ""; then
9485 # Extract the first word of "strip", so it can be a program name with args.
9486 set dummy strip
; ac_word
=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
9490 $as_echo_n "(cached) " >&6
9492 case $aros_target_strip_ln in
9494 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9501 test -z "$as_dir" && as_dir
=.
9502 for ac_exec_ext
in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9515 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9516 if test -n "$aros_target_strip_ln"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9518 $as_echo "$aros_target_strip_ln" >&6; }
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9528 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9529 set dummy
$aros_target_strip; ac_word
=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_path_aros_target_strip_ln+:} false
; then :
9533 $as_echo_n "(cached) " >&6
9535 case $aros_target_strip_ln in
9537 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9544 test -z "$as_dir" && as_dir
=.
9545 for ac_exec_ext
in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9559 if test -n "$aros_target_strip_ln"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9561 $as_echo "$aros_target_strip_ln" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9570 if test "$aros_target_strip_ln" = ""; then
9571 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9573 if test "$aros_target_cxx" != ""; then
9574 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9575 set dummy
$aros_target_cxx; ac_word
=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_aros_target_cxx+:} false
; then :
9579 $as_echo_n "(cached) " >&6
9581 case $aros_target_cxx in
9583 ac_cv_path_aros_target_cxx
="$aros_target_cxx" # Let the user override the test with a path.
9586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9590 test -z "$as_dir" && as_dir
=.
9591 for ac_exec_ext
in '' $ac_executable_extensions; do
9592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593 ac_cv_path_aros_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 aros_target_cxx
=$ac_cv_path_aros_target_cxx
9605 if test -n "$aros_target_cxx"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9607 $as_echo "$aros_target_cxx" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9614 if test "$aros_target_cxx" = ""; then
9615 as_fn_error $?
"c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9619 aros_target_cc
=$AROS_CROSSTOOLSDIR/$aros_target_cc
9620 aros_target_cxx
=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9621 aros_target_as_ln
=$AROS_CROSSTOOLSDIR/$aros_target_as
9622 aros_target_ar_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ar
9623 aros_target_nm_ln
=$AROS_CROSSTOOLSDIR/$aros_target_nm
9624 aros_target_objcopy_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9625 aros_target_objdump_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9626 aros_target_ranlib_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9627 aros_target_strip_ln
=$AROS_CROSSTOOLSDIR/$aros_target_strip
9629 aros_kernel_ld
=$AROS_CROSSTOOLSDIR/$aros_target_ld
9631 crosstools_target
=tools-crosstools
9634 orig_target_cc
=$aros_kernel_cc
9635 orig_target_ld
=$aros_kernel_ld
9637 if test "$crosstools" != "yes"; then
9638 if test "$aros_target_cc" != ""; then
9639 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9640 set dummy
$aros_target_cc; ac_word
=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_aros_target_cc+:} false
; then :
9644 $as_echo_n "(cached) " >&6
9646 case $aros_target_cc in
9648 ac_cv_path_aros_target_cc
="$aros_target_cc" # Let the user override the test with a path.
9651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9655 test -z "$as_dir" && as_dir
=.
9656 for ac_exec_ext
in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_path_aros_target_cc
="$as_dir/$ac_word$ac_exec_ext"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 aros_target_cc
=$ac_cv_path_aros_target_cc
9670 if test -n "$aros_target_cc"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9672 $as_echo "$aros_target_cc" >&6; }
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9679 if test "$aros_target_cc" = ""; then
9680 as_fn_error $?
"gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9682 orig_target_cc
=$aros_target_cc
9684 if test "$aros_target_ld" != ""; then
9685 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9686 set dummy
$aros_target_ld; ac_word
=$2
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 $as_echo_n "checking for $ac_word... " >&6; }
9689 if ${ac_cv_path_aros_target_ld+:} false
; then :
9690 $as_echo_n "(cached) " >&6
9692 case $aros_target_ld in
9694 ac_cv_path_aros_target_ld
="$aros_target_ld" # Let the user override the test with a path.
9697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9701 test -z "$as_dir" && as_dir
=.
9702 for ac_exec_ext
in '' $ac_executable_extensions; do
9703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9704 ac_cv_path_aros_target_ld
="$as_dir/$ac_word$ac_exec_ext"
9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715 aros_target_ld
=$ac_cv_path_aros_target_ld
9716 if test -n "$aros_target_ld"; then
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9718 $as_echo "$aros_target_ld" >&6; }
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9725 if test "$aros_target_ld" = ""; then
9726 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9728 orig_target_ld
=$aros_target_ld
9731 orig_target_cc
=$aros_target_cc
9732 orig_target_ld
=$aros_target_ld
9735 # Build crosstools if we have no C++ - temporary thing
9736 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
9737 crosstools_cxx_target
=tools-crosstools
9740 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9741 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9742 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9743 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9744 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9745 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9746 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9748 # aros_cc_pre is a variable that is added to the front of the compiler name
9749 # in the generated aros-gcc shell script. We need this to enable the cache
9750 # to work across cleaned builds. Also, support DISTCC using the correct
9751 # environment variable.
9754 if test "x${DISTCC}" != "x" ; then
9755 if test "x${CCACHE}" != "x" ; then
9756 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9758 aros_cc_pre
="${DISTCC} "
9761 if test "x${CCACHE}" != "x" ; then
9762 aros_cc_pre
="${CCACHE} "
9766 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9768 aros_target_nostdinc_cflags
=-nostdinc
9770 aros_target_nostartup_ldflags
=-nostartfiles
9772 aros_target_nix_ldflags
=-nix
9774 aros_target_detach_ldflags
=-detach
9776 aros_target_nostdlib_ldflags
=-nostdlib
9780 if test "$crosstools" != "yes"; then
9781 if test "$GCC" = "yes"; then
9782 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9785 # We do not know which gcc version we are going to build and what we need to know
9786 # here is different for different versions so this will be set later during the
9787 # build of crosstools.
9788 aros_target_cc_path
=@aros_target_cc_path@
9790 aros_target_cc
="${prefix}-gcc"
9791 aros_target_as
="${prefix}-as"
9792 aros_target_ld
="${prefix}-ld"
9793 aros_target_ar
="${prefix}-ar $aros_target_ar_flags"
9794 aros_target_objcopy
=${prefix}-objcopy
9795 aros_target_objdump
=${prefix}-objdump
9796 aros_target_ranlib
="${prefix}-ranlib $aros_target_ranlib_flags"
9797 aros_target_nm
="${prefix}-nm $aros_target_nm_flags"
9798 aros_kernel_nm
="${prefix}-nm"
9799 aros_target_strip
=${prefix}-strip
9800 aros_kernel_ar
="${prefix}-ar"
9802 # Find the system include path. We can suggest that an alternative is
9803 # used if we don't get it correct. The default is to use /usr/include.
9804 # Which is set in the aros_target_incl_def variable.
9806 # Check whether --enable-includes was given.
9807 if test "${enable_includes+set}" = set; then :
9808 enableval
=$enable_includes; aros_target_incl
=$enable_includes
9810 aros_target_incl
=$aros_target_incl_def
9814 if test "$aros_kernel_includes" = ""; then
9815 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9816 # FIXME: for cross-compiling this should point to another location
9817 aros_kernel_includes
="-isystem $aros_target_incl"
9821 if test "$aros_kernel_includes" != "" ; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9823 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9824 if test "$aros_kernel_cc_includes" = "" ; then
9825 # Try to guess where the directory is.
9826 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
9827 if test -d $aros_kernel_cc_includes; then
9828 # Check if there is also an include-fixed directory and add it
9829 # to kernel compiler's include path as it may contain some of
9830 # the headers we need.
9831 if test -d "$aros_kernel_cc_includes"-fixed; then
9832 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
9835 # The directory doesn't exist, we need to do some more work.
9836 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
9838 # These are the headers we're looking for.
9839 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9840 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9844 for h
in $headers; do
9845 # Which other headers are needed by each of the above?
9846 deps
=$
(echo "#include <$h>" | \
9847 $aros_kernel_cc -E -M - 2>/dev
/null | \
9848 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9850 # Copy all the needed headers to a directory beneath gendir.
9853 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
9854 sed -n "s,^.*/include\(/.*\),\1,p")
9855 ! test -d $dir && mkdir
-p $dir
9856 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9862 $as_echo "$aros_kernel_cc_includes" >&6; }
9863 # Adding -nostdinc to kernel includes as they are always used together.
9864 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9867 if test "$crosstools" != "yes"; then
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9869 $as_echo_n "checking for the target compiler's include path... " >&6; }
9870 if test "$aros_target_cc_includes" = "" ; then
9871 #try to guess where the directory is
9872 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
9873 if ! test -d $aros_target_cc_includes; then
9874 #the directory doesn't exist, we need to do some more work
9875 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
9877 #these are the headers we're looking for
9878 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9879 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9883 for h
in $headers; do
9884 #which other headers each of the above headers needs?
9885 deps
=$
(echo "#include <$h>" | \
9886 $orig_target_cc -E -M - 2>/dev
/null | \
9887 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9889 #copy all the needed headers to a directory beneath gendir
9892 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
9893 sed -n "s,^.*/include\(/.*\),\1,p")
9894 ! test -d $dir && mkdir
-p $dir
9895 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9901 $as_echo "$aros_target_cc_includes" >&6; }
9903 # We do not know which gcc version we are going to build and what we need to know
9904 # here is different for different versions so this will be set later during the
9905 # build of crosstools.
9906 aros_target_cc_includes
=@aros_target_cc_includes@
9910 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9911 # On GCC >= 4.0 -iquote should be used
9915 save_cflags
="$CFLAGS"
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9918 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9919 if test "x-$crosstools" != "x-yes"; then
9920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9931 if ac_fn_c_try_compile
"$LINENO"; then :
9936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9938 # we do know it is supported for the smallest version of gcc we are going to build
9939 # we assume it's also supported by later versions
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9943 $as_echo "$has_iquote" >&6; }
9944 if test "x-$has_iquote" = "x-yes" ; then
9945 host_cflags_iquote
=-iquote
9946 host_cflags_iquote_end
=
9948 host_cflags_iquote
=-I
9949 host_cflags_iquote_end
=-I-
9951 kernel_cflags_iquote
=$host_cflags_iquote
9952 kernel_cflags_iquote_end
=$host_cflags_iquote_end
9953 if test "x-$cross_compiling" = "x-yes"; then
9954 CC
="$aros_kernel_cc"
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9956 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9957 if test "x-$crosstools" != "x-yes"; then
9958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9969 if ac_fn_c_try_compile
"$LINENO"; then :
9970 use_no_stack_protector
="yes"
9972 use_no_stack_protector
="no"
9974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9976 # we do know it is supported for the smallest version of gcc we are going to build
9977 # we assume it's also supported by later versions
9978 use_no_stack_protector
=yes
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9981 $as_echo "$use_no_stack_protector" >&6; }
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9983 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9984 if test "x-$crosstools" != "x-yes"; then
9985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9996 if ac_fn_c_try_compile
"$LINENO"; then :
10001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10003 # we do know it is supported for the smallest version of gcc we are going to build
10004 # we assume it's also supported by later versions
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10008 $as_echo "$has_iquote" >&6; }
10009 if test "x-$has_iquote" = "x-yes" ; then
10010 kernel_cflags_iquote
=-iquote
10011 kernel_cflags_iquote_end
=
10013 kernel_cflags_iquote
=-I
10014 kernel_cflags_iquote_end
=-I-
10017 aros_cflags_iquote
=$kernel_cflags_iquote
10018 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
10019 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10020 CC
="$orig_target_cc"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10022 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10023 if test "x-$crosstools" != "x-yes"; then
10024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10035 if ac_fn_c_try_compile
"$LINENO"; then :
10040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10042 # we do know it is supported for the smallest version of gcc we are going to build
10043 # we assume it's also supported by later versions
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10047 $as_echo "$has_iquote" >&6; }
10048 if test "x-$has_iquote" = "x-yes" ; then
10049 aros_cflags_iquote
=-iquote
10050 aros_cflags_iquote_end
=
10052 aros_cflags_iquote
=-I
10053 aros_cflags_iquote_end
=-I-
10056 if test "x-$use_no_stack_protector" = "x-yes" ; then
10057 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
10060 #-----------------------------------------------------------------------------
10062 # Check if we can explicitly choose older version of symbol hashing
10064 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
10065 CC
="$aros_kernel_cc"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10067 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10079 if ac_fn_c_try_link
"$LINENO"; then :
10080 use_hash_style
="yes"
10082 use_hash_style
="no"
10084 rm -f core conftest.err conftest.
$ac_objext \
10085 conftest
$ac_exeext conftest.
$ac_ext
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10087 $as_echo "$use_hash_style" >&6; }
10088 if test "x-$use_hash_style" = "x-yes" ; then
10089 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
10092 CFLAGS
="$save_cflags"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10103 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10105 # Check whether --with-resolution was given.
10106 if test "${with_resolution+set}" = set; then :
10107 withval
=$with_resolution; resolution
=$withval
10112 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10113 if test "$resolution" = "yes" ; then
10116 if test "$resolution" = "no" ; then
10119 if test "$resolution" != "none" ; then
10120 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
10121 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
10122 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10125 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10126 aros_cv_default_wbwidth
=$aros_default_wbwidth
10127 aros_cv_default_wbheight
=$aros_default_wbheight
10128 aros_cv_default_wbdepth
=$aros_default_wbdepth
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10131 $as_echo_n "checking if serial debug is enabled... " >&6; }
10133 # Check whether --with-serial-debug was given.
10134 if test "${with_serial_debug+set}" = set; then :
10135 withval
=$with_serial_debug; serial_debug
=$withval
10140 if test "$aros_serial_debug" = 0 ; then
10141 serial_debug_forced
=""
10142 if test "$serial_debug" = "yes" ; then
10145 if test "$serial_debug" = "no" ; then
10146 serial_debug
="none"
10149 serial_debug_forced
="(forced)"
10150 serial_debug
=$aros_serial_debug
10152 if test "$serial_debug" != "none" ; then
10153 aros_serial_debug
=$serial_debug
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10155 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10162 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10163 # Check whether --enable-palm_debug_hack was given.
10164 if test "${enable_palm_debug_hack+set}" = set; then :
10165 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
10167 palm_debug_hack
="no"
10170 if test "$palm_debug_hack" = "yes" ; then
10171 aros_palm_debug_hack
="1"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10174 $as_echo "$palm_debug_hack" >&6; }
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10178 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10179 # Check whether --enable-nesting_supervisor was given.
10180 if test "${enable_nesting_supervisor+set}" = set; then :
10181 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
10183 nesting_supervisor
="no"
10186 if test "$nesting_supervisor" = "yes" ; then
10187 aros_nesting_supervisor
="1"
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10190 $as_echo "$nesting_supervisor" >&6; }
10192 if test "$aros_enable_mmu" = "" ; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10194 $as_echo_n "checking if MMU support is enabled... " >&6; }
10195 # Check whether --enable-mmu was given.
10196 if test "${enable_mmu+set}" = set; then :
10197 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
10199 aros_enable_mmu
="yes"
10202 if test "$aros_enable_mmu" = "" ; then
10203 aros_enable_mmu
="yes"
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10206 $as_echo "$aros_enable_mmu" >&6; }
10208 if test "$aros_enable_mmu" = "no" ; then
10209 aros_enable_mmu
="0"
10211 aros_enable_mmu
="1"
10215 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10217 if test "x-$need_dlopen" != "x-no" ; then
10218 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10219 if test "x$ac_cv_func_dlopen" = xyes
; then :
10225 if test "x-$have_dl" = "x-no" ; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10228 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10229 $as_echo_n "(cached) " >&6
10231 ac_check_lib_save_LIBS
=$LIBS
10233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10251 if ac_fn_c_try_link
"$LINENO"; then :
10252 ac_cv_lib_dl_dlopen
=yes
10254 ac_cv_lib_dl_dlopen
=no
10256 rm -f core conftest.err conftest.
$ac_objext \
10257 conftest
$ac_exeext conftest.
$ac_ext
10258 LIBS
=$ac_check_lib_save_LIBS
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10262 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10264 aros_host_ldflags
="$aros_host_ldflags -ldl"
10270 if test "x-$have_dl" = "x-no" ; then
10271 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
10276 # Check whether --enable-x11_hidd was given.
10277 if test "${enable_x11_hidd+set}" = set; then :
10278 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
10280 x11_hidd
="$need_x11"
10283 case "x-$x11_hidd" in
10284 x-yes|x-no|x-auto
) ;;
10285 *) x11_hidd
="$need_x11" ;;
10290 if test "x-$x11_hidd" != "x-no" ; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10293 $as_echo_n "checking for X... " >&6; }
10296 # Check whether --with-x was given.
10297 if test "${with_x+set}" = set; then :
10301 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10302 if test "x$with_x" = xno
; then
10303 # The user explicitly disabled X.
10306 case $x_includes,$x_libraries in #(
10307 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
10308 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
10309 $as_echo_n "(cached) " >&6
10311 # One or both of the vars are not set, and there is no cached value.
10312 ac_x_includes
=no ac_x_libraries
=no
10313 rm -f -r conftest.dir
10314 if mkdir conftest.dir
; then
10316 cat >Imakefile
<<'_ACEOF'
10318 @echo incroot='${INCROOT}'
10320 @echo usrlibdir='${USRLIBDIR}'
10322 @echo libdir='${LIBDIR}'
10324 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10325 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10326 for ac_var
in incroot usrlibdir libdir
; do
10327 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10329 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10330 for ac_extension
in a so sl dylib la dll
; do
10331 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10332 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10333 ac_im_usrlibdir
=$ac_im_libdir; break
10336 # Screen out bogus values from the imake configuration. They are
10337 # bogus both because they are the default anyway, and because
10338 # using them would break gcc on systems where it needs fixed includes.
10339 case $ac_im_incroot in
10340 /usr
/include
) ac_x_includes
= ;;
10341 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
10343 case $ac_im_usrlibdir in
10344 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
10345 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
10349 rm -f -r conftest.dir
10352 # Standard set of common directories for X headers.
10353 # Check X11 before X11Rn because it is often a symlink to the current release.
10367 /usr/local/X11/include
10368 /usr/local/X11R7/include
10369 /usr/local/X11R6/include
10370 /usr/local/X11R5/include
10371 /usr/local/X11R4/include
10373 /usr/local/include/X11
10374 /usr/local/include/X11R7
10375 /usr/local/include/X11R6
10376 /usr/local/include/X11R5
10377 /usr/local/include/X11R4
10381 /usr/XFree86/include/X11
10385 /usr/unsupported/include
10386 /usr/athena/include
10387 /usr/local/x11r5/include
10388 /usr/lpp/Xamples/include
10390 /usr/openwin/include
10391 /usr/openwin/share/include'
10393 if test "$ac_x_includes" = no
; then
10394 # Guess where to find include files, by looking for Xlib.h.
10395 # First, try using that file with no special directory specified.
10396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 #include <X11/Xlib.h>
10400 if ac_fn_c_try_cpp
"$LINENO"; then :
10401 # We can compile using X headers with no special include directory.
10404 for ac_dir
in $ac_x_header_dirs; do
10405 if test -r "$ac_dir/X11/Xlib.h"; then
10406 ac_x_includes
=$ac_dir
10411 rm -f conftest.err conftest.i conftest.
$ac_ext
10412 fi # $ac_x_includes = no
10414 if test "$ac_x_libraries" = no
; then
10415 # Check for the libraries.
10416 # See if we find them without any special options.
10417 # Don't add to $LIBS permanently.
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #include <X11/Xlib.h>
10431 if ac_fn_c_try_link
"$LINENO"; then :
10433 # We can link X programs with no special library path.
10437 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10439 # Don't even attempt the hair of trying to link an X program!
10440 for ac_extension
in a so sl dylib la dll
; do
10441 if test -r "$ac_dir/libX11.$ac_extension"; then
10442 ac_x_libraries
=$ac_dir
10448 rm -f core conftest.err conftest.
$ac_objext \
10449 conftest
$ac_exeext conftest.
$ac_ext
10450 fi # $ac_x_libraries = no
10452 case $ac_x_includes,$ac_x_libraries in #(
10453 no
,* |
*,no |
*\'*)
10454 # Didn't find X, or a directory has "'" in its name.
10455 ac_cv_have_x
="have_x=no";; #(
10457 # Record where we found X for the cache.
10458 ac_cv_have_x
="have_x=yes\
10459 ac_x_includes='$ac_x_includes'\
10460 ac_x_libraries='$ac_x_libraries'"
10466 eval "$ac_cv_have_x"
10469 if test "$have_x" != yes; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10471 $as_echo "$have_x" >&6; }
10474 # If each of the values was on the command line, it overrides each guess.
10475 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10476 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10477 # Update the cache value to reflect the command line values.
10478 ac_cv_have_x
="have_x=yes\
10479 ac_x_includes='$x_includes'\
10480 ac_x_libraries='$x_libraries'"
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10482 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10487 for path
in $x_libraries
10489 x_cflags
="$x_cflags -L$path"
10492 for path
in $x_includes
10494 x_cflags
="$x_cflags -I$path"
10497 if test "x-$no_x" = "x-yes" ; then
10499 if test "x-$x11_hidd" != "x-auto" ; then
10500 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10504 x11_hidd_target
=kernel-x11gfx-kobj
10507 # Check whether --enable-x11_shm was given.
10508 if test "${enable_x11_shm+set}" = set; then :
10509 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
10511 x11_hidd_shm
="auto"
10514 case "x-$x11_hidd_shm" in
10515 x-yes|x-no|x-auto
) ;;
10516 *) x11_hidd_shm
="auto" ;;
10521 if test "x-$x11_hidd_shm" != "x-no" ; then
10523 for ac_header
in sys
/ipc.h
10525 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10526 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
10527 cat >>confdefs.h
<<_ACEOF
10528 #define HAVE_SYS_IPC_H 1
10535 for ac_header
in sys
/shm.h
10537 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10538 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
10539 cat >>confdefs.h
<<_ACEOF
10540 #define HAVE_SYS_SHM_H 1
10548 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10550 save_cflags
="$CFLAGS"
10551 CFLAGS
="$CFLAGS $x_cflags"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10553 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10554 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
10555 $as_echo_n "(cached) " >&6
10557 ac_check_lib_save_LIBS
=$LIBS
10558 LIBS
="-lXext $LIBS"
10559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10568 char XShmQueryExtension ();
10572 return XShmQueryExtension ();
10577 if ac_fn_c_try_link
"$LINENO"; then :
10578 ac_cv_lib_Xext_XShmQueryExtension
=yes
10580 ac_cv_lib_Xext_XShmQueryExtension
=no
10582 rm -f core conftest.err conftest.
$ac_objext \
10583 conftest
$ac_exeext conftest.
$ac_ext
10584 LIBS
=$ac_check_lib_save_LIBS
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10587 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10588 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
10592 CFLAGS
="$save_cflags"
10596 if test "x-$have_xshm" = "x-yes" ; then
10597 DO_XSHM_SUPPORT
="1"
10598 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10599 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10601 DO_XSHM_SUPPORT
="0"
10605 # Check whether --enable-x11_vidmode was given.
10606 if test "${enable_x11_vidmode+set}" = set; then :
10607 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
10609 x11_hidd_vidmode
="auto"
10612 case "x-$x11_hidd_vidmode" in
10613 x-yes|x-no|x-auto
) ;;
10614 *) x11_hidd_vidmode
="auto" ;;
10619 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10621 save_cflags
="$CFLAGS"
10622 CFLAGS
="$CFLAGS $x_cflags"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10624 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10625 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
10626 $as_echo_n "(cached) " >&6
10628 ac_check_lib_save_LIBS
=$LIBS
10629 LIBS
="-lXxf86vm $LIBS"
10630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10639 char XF86VidModeQueryExtension ();
10643 return XF86VidModeQueryExtension ();
10648 if ac_fn_c_try_link
"$LINENO"; then :
10649 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
10651 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
10653 rm -f core conftest.err conftest.
$ac_objext \
10654 conftest
$ac_exeext conftest.
$ac_ext
10655 LIBS
=$ac_check_lib_save_LIBS
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10658 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10659 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
10663 CFLAGS
="$save_cflags"
10666 if test "x-$have_vidmode" = "x-yes" ; then
10667 DO_VIDMODE_SUPPORT
="1"
10668 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10669 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10671 DO_VIDMODE_SUPPORT
="0"
10675 aros_host_x11_includes
=$x_includes
10676 aros_host_x11_libdirs
=$x_libraries
10680 # Check whether --enable-sdl_hidd was given.
10681 if test "${enable_sdl_hidd+set}" = set; then :
10682 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
10687 case "x-$sdl_hidd" in
10688 x-yes|x-no|x-auto
) ;;
10689 *) sdl_hidd
="auto" ;;
10692 if test "x-$sdl_hidd" != "x-no" ; then
10695 # Check whether --with-sdl-prefix was given.
10696 if test "${with_sdl_prefix+set}" = set; then :
10697 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
10703 # Check whether --with-sdl-exec-prefix was given.
10704 if test "${with_sdl_exec_prefix+set}" = set; then :
10705 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
10710 # Check whether --enable-sdltest was given.
10711 if test "${enable_sdltest+set}" = set; then :
10712 enableval
=$enable_sdltest;
10718 if test x
$sdl_exec_prefix != x
; then
10719 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
10720 if test x
${SDL_CONFIG+set} != xset
; then
10721 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
10724 if test x
$sdl_prefix != x
; then
10725 sdl_args
="$sdl_args --prefix=$sdl_prefix"
10726 if test x
${SDL_CONFIG+set} != xset
; then
10727 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
10731 if test "x$prefix" != xNONE
; then
10732 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
10734 # Extract the first word of "sdl-config", so it can be a program name with args.
10735 set dummy sdl-config
; ac_word
=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
10739 $as_echo_n "(cached) " >&6
10741 case $SDL_CONFIG in
10743 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
10746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10747 for as_dir
in $PATH
10750 test -z "$as_dir" && as_dir
=.
10751 for ac_exec_ext
in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
10765 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
10766 if test -n "$SDL_CONFIG"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10768 $as_echo "$SDL_CONFIG" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10775 min_sdl_version
=1.2.10
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10777 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10779 if test "$SDL_CONFIG" = "no" ; then
10782 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
10783 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
10785 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
10786 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10787 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
10788 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10789 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
10790 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10791 if test "x$enable_sdltest" = "xyes" ; then
10792 ac_save_CFLAGS
="$CFLAGS"
10793 ac_save_CXXFLAGS
="$CXXFLAGS"
10794 ac_save_LIBS
="$LIBS"
10795 CFLAGS
="$CFLAGS $SDL_CFLAGS"
10796 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
10797 LIBS
="$LIBS $SDL_LIBS"
10799 if test "$cross_compiling" = yes; then :
10800 echo $ac_n "cross compiling; assumed OK... $ac_c"
10802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10806 #include <stdlib.h>
10807 #include <string.h>
10811 my_strdup (char *str)
10817 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10818 strcpy (new_str, str);
10826 int main (int argc, char *argv[])
10828 int major, minor, micro;
10831 /* This hangs on some systems (?)
10832 system ("touch conf.sdltest");
10834 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10836 /* HP/UX 9 (%@#!) writes to sscanf strings */
10837 tmp_version = my_strdup("$min_sdl_version");
10838 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
10839 printf("%s, bad version string\n", "$min_sdl_version");
10843 if (($sdl_major_version > major) ||
10844 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10845 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10851 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10852 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10853 printf("*** best to upgrade to the required version.\n");
10854 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10855 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10856 printf("*** config.cache before re-running configure\n");
10863 if ac_fn_c_try_run
"$LINENO"; then :
10868 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10869 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10872 CFLAGS
="$ac_save_CFLAGS"
10873 CXXFLAGS
="$ac_save_CXXFLAGS"
10874 LIBS
="$ac_save_LIBS"
10877 if test "x$no_sdl" = x
; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10884 if test "$SDL_CONFIG" = "no" ; then
10885 echo "*** The sdl-config script installed by SDL could not be found"
10886 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10887 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10888 echo "*** full path to sdl-config."
10890 if test -f conf.sdltest
; then
10893 echo "*** Could not run SDL test program, checking why..."
10894 CFLAGS
="$CFLAGS $SDL_CFLAGS"
10895 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
10896 LIBS
="$LIBS $SDL_LIBS"
10897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10903 int main(int argc, char *argv[])
10906 #define main K_and_R_C_main
10916 if ac_fn_c_try_link
"$LINENO"; then :
10917 echo "*** The test program compiled, but did not run. This usually means"
10918 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10919 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10920 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10921 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10922 echo "*** is required on your system"
10924 echo "*** If you have an old version installed, it is best to remove it, although"
10925 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10927 echo "*** The test program failed to compile or link. See the file config.log for the"
10928 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10929 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10930 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10932 rm -f core conftest.err conftest.
$ac_objext \
10933 conftest
$ac_exeext conftest.
$ac_ext
10934 CFLAGS
="$ac_save_CFLAGS"
10935 CXXFLAGS
="$ac_save_CXXFLAGS"
10936 LIBS
="$ac_save_LIBS"
10948 if test "x-$have_sdl" != "x-yes" ; then
10950 if test "x-$sdl_hidd" != "x-auto" ; then
10951 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10955 sdl_hidd_target
=kernel-hidd-sdl
10956 aros_host_sdl_cflags
=SDL_CFLAGS
10957 aros_host_sdl_libs
=SDL_LIBS
10961 ac_fn_c_check_header_mongrel
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10962 if test "x$ac_cv_header_sys_soundcard_h" = xyes
; then :
10967 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10968 oss_library_target
=workbench-libs-oss-unix
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10974 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10975 # Check whether --enable-dbus was given.
10976 if test "${enable_dbus+set}" = set; then :
10977 enableval
=$enable_dbus; dbus
="yes"
10982 if test "$dbus" = "yes" ; then
10984 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
10985 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
10986 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
10987 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10992 $as_echo "$dbus" >&6; }
11105 # Native version related
11108 # Palm native version related
11111 # Unix/Hosted version related
11117 # Apple iOS related
11142 # Collect-aros stuff: "-ius" to ignore undefined symbols
11145 # C compiler related
11148 case "$aros_flavour" in
11149 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
11150 aros_flavour
="emulation" ;;
11151 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11152 aros_flavour
="emulation" ;;
11153 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
11154 aros_flavour
="standalone";;
11155 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11156 aros_flavour
="standalone";;
11157 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
11158 aros_flavour
="native" ;;
11159 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11160 aros_flavour
="native" ;;
11161 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
11162 aros_flavour
="linklib" ;;
11163 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11164 aros_flavour
="palmnative" ;;
11165 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11166 aros_flavour
="mac68knative" ;;
11167 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11168 aros_flavour
="ppcnative" ;;
11171 if test ! -d ${aros_inc_dir} ; then
11172 ${MKDIR} ${aros_inc_dir}
11174 if test ! -d ${aros_geninc_dir} ; then
11175 ${MKDIR} ${aros_geninc_dir}
11177 if test ! -d ${aros_hostcfg_dir} ; then
11178 ${MKDIR} ${aros_hostcfg_dir}
11180 if test ! -d ${aros_targetcfg_dir} ; then
11181 ${MKDIR} ${aros_targetcfg_dir}
11183 if test ! -d ${aros_tools_dir} ; then
11184 ${MKDIR} ${aros_tools_dir}
11186 if test ! -d ${aros_scripts_dir} ; then
11187 ${MKDIR} ${aros_scripts_dir}
11190 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11193 ac_config_commands
="$ac_config_commands compiler_executable"
11195 ac_config_commands
="$ac_config_commands genmf_executable"
11198 ac_config_files
="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
11201 cat >confcache
<<\_ACEOF
11202 # This file is a shell script that caches the results of configure
11203 # tests run on this system so they can be shared between configure
11204 # scripts and configure runs, see configure's option --config-cache.
11205 # It is not useful on other systems. If it contains results you don't
11206 # want to keep, you may remove or edit it.
11208 # config.status only pays attention to the cache file if you give it
11209 # the --recheck option to rerun configure.
11211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11213 # following values.
11217 # The following way of writing the cache mishandles newlines in values,
11218 # but we know of no workaround that is simple, portable, and efficient.
11219 # So, we kill variables containing newlines.
11220 # Ultrix sh set writes to stderr and can't be redirected directly,
11221 # and sets the high bit in the cache file unless we assign to the vars.
11223 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11224 eval ac_val
=\$
$ac_var
11228 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11232 _ | IFS | as_nl
) ;; #(
11233 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11234 *) { eval $ac_var=; unset $ac_var;} ;;
11240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11241 *${as_nl}ac_space
=\
*)
11242 # `set' does not quote correctly, so add quotes: double-quote
11243 # substitution turns \\\\ into \\, and sed turns \\ into \.
11246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11249 # `set' quotes correctly as required by POSIX, so do not add quotes.
11250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11263 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11264 if test -w "$cache_file"; then
11265 if test "x$cache_file" != "x/dev/null"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11267 $as_echo "$as_me: updating cache $cache_file" >&6;}
11268 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11269 cat confcache
>"$cache_file"
11271 case $cache_file in #(
11273 mv -f confcache
"$cache_file"$$
&&
11274 mv -f "$cache_file"$$
"$cache_file" ;; #(
11276 mv -f confcache
"$cache_file" ;;
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11287 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11288 # Let make expand exec_prefix.
11289 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11291 DEFS
=-DHAVE_CONFIG_H
11296 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11297 # 1. Remove the extension, and $U if already installed.
11298 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11299 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11301 # will be set to the directory where LIBOBJS objects are built.
11302 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11303 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11305 LIBOBJS
=$ac_libobjs
11307 LTLIBOBJS
=$ac_ltlibobjs
11311 : "${CONFIG_STATUS=./config.status}"
11313 ac_clean_files_save
=$ac_clean_files
11314 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11320 # Generated by $as_me.
11321 # Run this file to recreate the current configuration.
11322 # Compiler output produced by configure, useful for debugging
11323 # configure, is in config.log if it exists.
11326 ac_cs_recheck=false
11329 SHELL=\${CONFIG_SHELL-$SHELL}
11332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11333 ## -------------------- ##
11334 ## M4sh Initialization. ##
11335 ## -------------------- ##
11337 # Be more Bourne compatible
11338 DUALCASE
=1; export DUALCASE
# for MKS sh
11339 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11342 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11343 # is contrary to our usage. Disable this feature.
11344 alias -g '${1+"$@"}'='"$@"'
11345 setopt NO_GLOB_SUBST
11347 case `(set -o) 2>/dev/null` in #(
11359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11360 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11363 # Prefer a ksh shell builtin over an external printf program on Solaris,
11364 # but without wasting forks for bash or zsh.
11365 if test -z "$BASH_VERSION$ZSH_VERSION" \
11366 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11367 as_echo='print
-r --'
11368 as_echo_n='print
-rn --'
11369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11370 as_echo='printf %s
\n'
11371 as_echo_n='printf %s
'
11373 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11374 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11375 as_echo_n='/usr
/ucb
/echo -n'
11377 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11378 as_echo_n_body='eval
11382 expr "X$arg" : "X\\(.*\\)$as_nl";
11383 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11385 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11387 export as_echo_n_body
11388 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11390 export as_echo_body
11391 as_echo='sh
-c $as_echo_body as_echo
'
11394 # The user is always right.
11395 if test "${PATH_SEPARATOR+set}" != set; then
11397 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11398 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11405 # We need space, tab and new line, in precisely that order. Quoting is
11406 # there to prevent editors from complaining about space-tab.
11407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11408 # splitting by setting IFS to empty value.)
11411 # Find who we are. Look in the path if we contain no directory separator.
11414 *[\\/]* ) as_myself=$0 ;;
11415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11419 test -z "$as_dir" && as_dir=.
11420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11426 # We did not find ourselves, most probably we were run as `sh COMMAND'
11427 # in which case we are not to be found in the path.
11428 if test "x$as_myself" = x
; then
11431 if test ! -f "$as_myself"; then
11432 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11436 # Unset variables that we do not need and which cause bugs (e.g. in
11437 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11438 # suppresses any "Segmentation fault" message there. '((' could
11439 # trigger a bug in pdksh 5.2.14.
11440 for as_var
in BASH_ENV ENV MAIL MAILPATH
11441 do eval test x\
${$as_var+set} = xset \
11442 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11455 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11458 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11459 # ----------------------------------------
11460 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11461 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11462 # script with STATUS, using 1 if that was 0.
11465 as_status
=$1; test $as_status -eq 0 && as_status
=1
11467 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11468 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11470 $as_echo "$as_me: error: $2" >&2
11471 as_fn_exit
$as_status
11475 # as_fn_set_status STATUS
11476 # -----------------------
11477 # Set $? to STATUS, without forking.
11478 as_fn_set_status
()
11481 } # as_fn_set_status
11483 # as_fn_exit STATUS
11484 # -----------------
11485 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11489 as_fn_set_status
$1
11495 # Portably unset VAR.
11498 { eval $1=; unset $1;}
11500 as_unset
=as_fn_unset
11501 # as_fn_append VAR VALUE
11502 # ----------------------
11503 # Append the text in VALUE to the end of the definition contained in VAR. Take
11504 # advantage of any shell optimizations that allow amortized linear growth over
11505 # repeated appends, instead of the typical quadratic growth present in naive
11507 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11508 eval 'as_fn_append ()
11519 # as_fn_arith ARG...
11520 # ------------------
11521 # Perform arithmetic evaluation on the ARGs, and store the result in the
11522 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11523 # must be portable across $(()) and expr.
11524 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11525 eval 'as_fn_arith ()
11532 as_val
=`expr "$@" || test $? -eq 1`
11537 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11538 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11544 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11545 as_basename
=basename
11550 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11556 as_me
=`$as_basename -- "$0" ||
11557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11558 X"$0" : 'X\(//\)$' \| \
11559 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11561 sed '/^.*\/\([^/][^/]*\)\/*$/{
11575 # Avoid depending upon Character Ranges.
11576 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11577 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11578 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11579 as_cr_digits
='0123456789'
11580 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11582 ECHO_C
= ECHO_N
= ECHO_T
=
11583 case `echo -n x` in #(((((
11585 case `echo 'xy\c'` in
11586 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11588 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11595 rm -f conf$$ conf$$.exe conf$$.
file
11596 if test -d conf$$.dir
; then
11597 rm -f conf$$.dir
/conf$$.
file
11600 mkdir conf$$.dir
2>/dev
/null
11602 if (echo >conf$$.
file) 2>/dev
/null
; then
11603 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11605 # ... but there are two gotchas:
11606 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11607 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11608 # In both cases, we have to default to `cp -p'.
11609 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11611 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11619 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11620 rmdir conf$$.dir
2>/dev
/null
11625 # Create "$as_dir" as a directory, including parents if necessary.
11630 -*) as_dir
=.
/$as_dir;;
11632 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11636 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11637 *) as_qdir
=$as_dir;;
11639 as_dirs
="'$as_qdir' $as_dirs"
11640 as_dir
=`$as_dirname -- "$as_dir" ||
11641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11642 X"$as_dir" : 'X\(//\)[^/]' \| \
11643 X"$as_dir" : 'X\(//\)$' \| \
11644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11645 $as_echo X"$as_dir" |
11646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11650 /^X\(\/\/\)[^/].*/{
11663 test -d "$as_dir" && break
11665 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11666 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11670 if mkdir
-p .
2>/dev
/null
; then
11671 as_mkdir_p
='mkdir -p "$as_dir"'
11673 test -d .
/-p && rmdir .
/-p
11677 if test -x / >/dev
/null
2>&1; then
11678 as_test_x
='test -x'
11680 if ls -dL / >/dev
/null
2>&1; then
11687 if test -d "$1"; then
11693 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11694 ???[sx]*):;;*)false;;esac;fi
11698 as_executable_p
=$as_test_x
11700 # Sed expression to map a string onto a valid CPP name.
11701 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11703 # Sed expression to map a string onto a valid variable name.
11704 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11708 ## ----------------------------------- ##
11709 ## Main body of $CONFIG_STATUS script. ##
11710 ## ----------------------------------- ##
11712 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11715 # Save the log message, to keep $0 and so on meaningful, and to
11716 # report actual input values of CONFIG_FILES etc. instead of their
11717 # values after options handling.
11719 This file was extended by $as_me, which was
11720 generated by GNU Autoconf 2.68. Invocation command line was
11722 CONFIG_FILES = $CONFIG_FILES
11723 CONFIG_HEADERS = $CONFIG_HEADERS
11724 CONFIG_LINKS = $CONFIG_LINKS
11725 CONFIG_COMMANDS = $CONFIG_COMMANDS
11728 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11733 case $ac_config_files in *"
11734 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11737 case $ac_config_headers in *"
11738 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11743 # Files that config.status was made for.
11744 config_files="$ac_config_files"
11745 config_headers="$ac_config_headers"
11746 config_commands="$ac_config_commands"
11750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11752 \`$as_me' instantiates files and other configuration actions
11753 from templates according to the current configuration. Unless the files
11754 and actions are specified as TAGs, all are instantiated by default.
11756 Usage: $0 [OPTION]... [TAG]...
11758 -h, --help print this help, then exit
11759 -V, --version print version number and configuration settings, then exit
11760 --config print configuration, then exit
11761 -q, --quiet, --silent
11762 do not print progress messages
11763 -d, --debug don't remove temporary files
11764 --recheck update $as_me by reconfiguring in the same conditions
11765 --file=FILE[:TEMPLATE]
11766 instantiate the configuration file FILE
11767 --header=FILE[:TEMPLATE]
11768 instantiate the configuration header FILE
11770 Configuration files:
11773 Configuration headers:
11776 Configuration commands:
11779 Report bugs to the package provider."
11782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11783 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11786 configured by $0, generated by GNU Autoconf 2.68,
11787 with options \\"\$ac_cs_config\\"
11789 Copyright (C) 2010 Free Software Foundation, Inc.
11790 This config.status script is free software; the Free Software Foundation
11791 gives unlimited permission to copy, distribute and modify it."
11795 test -n "\$AWK" || AWK=awk
11798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11799 # The default lists apply if the user does not specify any file.
11805 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11806 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11810 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11822 # Handling of the options.
11823 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11825 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11826 $as_echo "$ac_cs_version"; exit ;;
11827 --config |
--confi |
--conf |
--con |
--co |
--c )
11828 $as_echo "$ac_cs_config"; exit ;;
11829 --debug |
--debu |
--deb |
--de |
--d |
-d )
11831 --file |
--fil |
--fi |
--f )
11834 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11835 '') as_fn_error $?
"missing file argument" ;;
11837 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11838 ac_need_defaults
=false
;;
11839 --header |
--heade |
--head |
--hea )
11842 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11844 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11845 ac_need_defaults
=false
;;
11847 # Conflict between --help and --header
11848 as_fn_error $?
"ambiguous option: \`$1'
11849 Try \`$0 --help' for more information.";;
11850 --help |
--hel |
-h )
11851 $as_echo "$ac_cs_usage"; exit ;;
11852 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11853 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11856 # This is an error.
11857 -*) as_fn_error $?
"unrecognized option: \`$1'
11858 Try \`$0 --help' for more information." ;;
11860 *) as_fn_append ac_config_targets
" $1"
11861 ac_need_defaults
=false
;;
11867 ac_configure_extra_args
=
11869 if $ac_cs_silent; then
11871 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 if \$ac_cs_recheck; then
11877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11880 CONFIG_SHELL='$SHELL'
11881 export CONFIG_SHELL
11886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11891 ## Running $as_me. ##
11897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11902 aros_host_exe_suffix=${aros_host_exe_suffix}
11903 aros_tools_dir=${aros_tools_dir}
11904 aros_target_cpu=${aros_target_cpu}
11905 aros_target_arch=${aros_target_arch}
11906 aros_target_suffix=${aros_target_suffix}
11907 aros_target_nm_ln=${aros_target_nm_ln}
11908 aros_target_as_ln=${aros_target_as_ln}
11909 aros_target_ar_ln=${aros_target_ar_ln}
11910 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11911 aros_target_objdump_ln=${aros_target_objdump_ln}
11912 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11913 aros_target_strip_ln=${aros_target_strip_ln}
11916 aros_tools_dir=${aros_tools_dir}
11921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11923 # Handling of arguments.
11924 for ac_config_target
in $ac_config_targets
11926 case $ac_config_target in
11927 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11928 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
11929 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
11930 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11931 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
11932 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11933 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11934 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11935 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11936 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
11937 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11938 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11939 "${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" ;;
11940 "${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" ;;
11941 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11942 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
11943 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES
="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
11945 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11950 # If the user did not use the arguments to specify the items to instantiate,
11951 # then the envvar interface is used. Set only those that are not.
11952 # We use the long form for the default assignment because of an extremely
11953 # bizarre bug on SunOS 4.1.3.
11954 if $ac_need_defaults; then
11955 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11956 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11960 # Have a temporary directory for convenience. Make it in the build tree
11961 # simply because there is no reason against having it here, and in addition,
11962 # creating and moving files from /tmp can sometimes cause problems.
11963 # Hook for its removal unless debugging.
11964 # Note that there is a small window in which the directory will not be cleaned:
11965 # after its creation but before its name has been assigned to `$tmp'.
11969 trap 'exit_status=$?
11970 : "${ac_tmp:=$tmp}"
11971 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11973 trap 'as_fn_exit 1' 1 2 13 15
11975 # Create a (secure) tmp directory for tmp files.
11978 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11982 tmp
=.
/conf$$
-$RANDOM
11983 (umask 077 && mkdir
"$tmp")
11984 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11987 # Set up the scripts for CONFIG_FILES section.
11988 # No need to generate them if there are no CONFIG_FILES.
11989 # This happens for instance with `./config.status config.h'.
11990 if test -n "$CONFIG_FILES"; then
11993 ac_cr
=`echo X | tr X '\015'`
11994 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11995 # But we know of no other shell where ac_cr would be empty at this
11996 # point, so we can use a bashism as a fallback.
11997 if test "x$ac_cr" = x
; then
11998 eval ac_cr
=\$
\'\\r
\'
12000 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12001 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12004 ac_cs_awk_cr
=$ac_cr
12007 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12012 echo "cat >conf$$subs.awk <<_ACEOF" &&
12013 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12015 } >conf$$subs.sh ||
12016 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12017 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12019 for ac_last_try in false false false false false :; do
12020 . ./conf$$subs.sh ||
12021 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12023 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12024 if test $ac_delim_n = $ac_delim_num; then
12026 elif $ac_last_try; then
12027 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12029 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12032 rm -f conf$$subs.sh
12034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12035 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
12039 s/^/S["/; s
/!.
*/"]=/
12049 s/\(.\{148\}\)..*/\1/
12051 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12056 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12063 s/\(.\{148\}\)..*/\1/
12065 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12069 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12074 ' <conf$$subs.awk | sed '
12079 ' >>$CONFIG_STATUS || ac_write_fail=1
12080 rm -f conf$$subs.awk
12081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12083 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
12084 for (key in S) S_is_set[key] = 1
12090 nfields = split(line, field, "@
")
12092 len = length(field[1])
12093 for (i = 2; i < nfields; i++) {
12095 keylen = length(key)
12096 if (S_is_set[key]) {
12098 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12099 len += length(value) + length(field[++i])
12110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12111 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12112 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12115 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12116 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12119 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12120 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12121 # trailing colons and then remove the whole line if VPATH becomes empty
12122 # (actually we leave an empty line to preserve line numbers).
12123 if test "x
$srcdir" = x.; then
12124 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12143 fi # test -n "$CONFIG_FILES"
12145 # Set up the scripts for CONFIG_HEADERS section.
12146 # No need to generate them if there are no CONFIG_HEADERS.
12147 # This happens for instance with `./config.status Makefile'.
12148 if test -n "$CONFIG_HEADERS"; then
12149 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12153 # Transform confdefs.h into an awk script `defines.awk', embedded as
12154 # here-document in config.status, that substitutes the proper values into
12155 # config.h.in to produce config.h.
12157 # Create a delimiter string that does not exist in confdefs.h, to ease
12158 # handling of long lines.
12160 for ac_last_try in false false :; do
12161 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12162 if test -z "$ac_tt"; then
12164 elif $ac_last_try; then
12165 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12167 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12171 # For the awk script, D is an array of macro values keyed by name,
12172 # likewise P contains macro parameters if any. Preserve backslash
12173 # newline sequences.
12175 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12177 s/.\{148\}/&'"$ac_delim"'/g
12180 s/^[ ]*#[ ]*define[ ][ ]*/ /
12187 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12189 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12193 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12194 D["\
1"]=" \
3\\\\\\n
"\\/p
12196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12201 s/.\{148\}/&'"$ac_delim"'/g
12206 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12209 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12211 ' <confdefs.h | sed '
12212 s/'"$ac_delim"'/"\\\
12213 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12216 for (key in D) D_is_set[key] = 1
12219 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12221 split(line, arg, " ")
12222 if (arg[1] == "#") {
12226 defundef
= substr
(arg
[1], 2)
12229 split(mac1
, mac2
, "(") #)
12231 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12232 if (D_is_set
[macro
]) {
12233 # Preserve the white space surrounding the "#".
12234 print prefix
"define", macro P
[macro
] D
[macro
]
12237 # Replace #undef with comments. This is necessary, for example,
12238 # in the case of _POSIX_SOURCE, which is predefined and required
12239 # on some systems where configure will not decide to define it.
12240 if (defundef
== "undef") {
12241 print
"/*", prefix defundef
, macro
, "*/"
12249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12250 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12251 fi # test -n "$CONFIG_HEADERS"
12254 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12259 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12261 case $ac_mode$ac_tag in
12263 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12264 :[FH
]-) ac_tag
=-:-;;
12265 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12282 -) ac_f
="$ac_tmp/stdin";;
12283 *) # Look for the file first in the build tree, then in the source tree
12284 # (if the path is not absolute). The absolute path cannot be DOS-style,
12285 # because $ac_f cannot contain `:'.
12289 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12291 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12293 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12294 as_fn_append ac_file_inputs
" '$ac_f'"
12297 # Let's still pretend it is `configure' which instantiates (i.e., don't
12298 # use $as_me), people would be surprised to read:
12299 # /* config.h. Generated by config.status. */
12300 configure_input
='Generated from '`
12301 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12303 if test x
"$ac_file" != x-
; then
12304 configure_input
="$ac_file. $configure_input"
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12306 $as_echo "$as_me: creating $ac_file" >&6;}
12308 # Neutralize special characters interpreted by sed in replacement strings.
12309 case $configure_input in #(
12310 *\
&* |
*\|
* |
*\\* )
12311 ac_sed_conf_input
=`$as_echo "$configure_input" |
12312 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12313 *) ac_sed_conf_input
=$configure_input;;
12317 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12318 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12323 ac_dir
=`$as_dirname -- "$ac_file" ||
12324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12325 X"$ac_file" : 'X\(//\)[^/]' \| \
12326 X"$ac_file" : 'X\(//\)$' \| \
12327 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12328 $as_echo X"$ac_file" |
12329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12333 /^X\(\/\/\)[^/].*/{
12346 as_dir
="$ac_dir"; as_fn_mkdir_p
12350 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12352 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12353 # A ".." for each directory in $ac_dir_suffix.
12354 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12355 case $ac_top_builddir_sub in
12356 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12357 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12360 ac_abs_top_builddir
=$ac_pwd
12361 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12362 # for backward compatibility:
12363 ac_top_builddir
=$ac_top_build_prefix
12366 .
) # We are building in place.
12368 ac_top_srcdir
=$ac_top_builddir_sub
12369 ac_abs_top_srcdir
=$ac_pwd ;;
12370 [\\/]* | ?
:[\\/]* ) # Absolute name.
12371 ac_srcdir
=$srcdir$ac_dir_suffix;
12372 ac_top_srcdir
=$srcdir
12373 ac_abs_top_srcdir
=$srcdir ;;
12374 *) # Relative name.
12375 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12376 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12377 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12379 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12391 # If the template does not know about datarootdir, expand it.
12392 # FIXME: This hack should be removed a few years after 2.60.
12393 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12404 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12405 *datarootdir
*) ac_datarootdir_seen
=yes;;
12406 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12408 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 ac_datarootdir_hack='
12412 s&@datadir@&$datadir&g
12413 s&@docdir@&$docdir&g
12414 s&@infodir@&$infodir&g
12415 s&@localedir@&$localedir&g
12416 s&@mandir@&$mandir&g
12417 s&\\\${datarootdir}&$datarootdir&g' ;;
12421 # Neutralize VPATH when `$srcdir' = `.'.
12422 # Shell code in configure.ac might set extrasub.
12423 # FIXME: do we really want to maintain this feature?
12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12425 ac_sed_extra="$ac_vpsub
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12430 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12431 s|@configure_input@|
$ac_sed_conf_input|
;t t
12432 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12433 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12434 s
&@srcdir@
&$ac_srcdir&;t t
12435 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12436 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12437 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12438 s
&@builddir@
&$ac_builddir&;t t
12439 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12440 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12441 $ac_datarootdir_hack
12443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12444 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12449 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12451 which seems to be undefined. Please make sure it is defined" >&5
12452 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12453 which seems to be undefined. Please make sure it is defined" >&2;}
12455 rm -f "$ac_tmp/stdin"
12457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12466 if test x"$ac_file" != x-; then
12468 $as_echo "/* $configure_input */" \
12469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12470 } >"$ac_tmp/config.h" \
12471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12474 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12477 mv "$ac_tmp/config.h" "$ac_file" \
12478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12481 $as_echo "/* $configure_input */" \
12482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12483 || as_fn_error $? "could not create -" "$LINENO" 5
12487 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12488 $as_echo "$as_me: executing $ac_file commands" >&6;}
12493 case $ac_file$ac_mode in
12494 "compiler_executable":C)
12495 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12497 prefix="${prefix}/${aros_target_cpu}-aros"
12498 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12502 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12504 ln -sf ${prefix2}-gcc ${prefix}-gcc
12505 ln -sf ${prefix2}-ld ${prefix}-ld
12507 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12508 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12509 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12510 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12511 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12512 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12513 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12515 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12516 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12517 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12518 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12519 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12520 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12521 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12523 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12531 ac_clean_files=$ac_clean_files_save
12533 test $ac_write_fail = 0 ||
12534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12537 # configure is writing to config.log, and then calls config.status.
12538 # config.status does its own redirection, appending to config.log.
12539 # Unfortunately, on DOS this fails, as config.log is still kept open
12540 # by configure, so config.status won't be able to
write to it
; its
12541 # output is simply discarded. So we exec the FD to /dev/null,
12542 # effectively closing config.log, so it can be properly (re)opened and
12543 # appended to by config.status. When coming back to configure, we
12544 # need to make the FD available again.
12545 if test "$no_create" != yes; then
12547 ac_config_status_args
=
12548 test "$silent" = yes &&
12549 ac_config_status_args
="$ac_config_status_args --quiet"
12551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12554 # would make configure fail if this is the last instruction.
12555 $ac_cs_success || as_fn_exit
1
12557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12564 #XXX compatability...
12565 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
12567 if test -n "$aros_shared_cflags" ; then
12568 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12569 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg